/* ===================================================================
   Alerta TEL WA - styles.css
   Paleta tecnológica/telecomunicaciones, fondo oscuro con acentos
   en cyan/verde eléctrico. Mobile-first, sin frameworks.
   =================================================================== */

/* ---------- Variables de tema (fácil de modificar) ---------- */
:root {
  /* Fondos */
  --bg-deep:        #060d1c;
  --bg-base:        #0a1628;
  --bg-elev:        #0f1f3a;
  --bg-card:        rgba(255, 255, 255, 0.03);
  --bg-card-hover:  rgba(255, 255, 255, 0.06);

  /* Bordes */
  --border-soft:    rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.16);

  /* Texto */
  --text-primary:   #e6f1ff;
  --text-secondary: #a8b8cf;
  --text-muted:     #6b7d99;

  /* Acentos */
  --accent-1:       #00e0a4;   /* verde menta tech */
  --accent-2:       #00b3ff;   /* cyan eléctrico */
  --accent-3:       #4f8cff;   /* azul eléctrico */
  --warn:           #ffb547;
  --danger:         #ff5e7a;

  /* Gradientes */
  --grad-primary:   linear-gradient(135deg, #00e0a4 0%, #00b3ff 100%);
  --grad-soft:      linear-gradient(135deg, rgba(0,224,164,.15) 0%, rgba(0,179,255,.15) 100%);

  /* Tipografía (system fonts, sin externas) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Espaciado y radios */
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;

  /* Sombras */
  --shadow-soft:    0 6px 22px rgba(0, 0, 0, 0.35);
  --shadow-glow:    0 0 40px rgba(0, 224, 164, 0.25);

  /* Transiciones */
  --t-fast:         .18s ease;
  --t-norm:         .28s ease;

  /* Layout */
  --container:      1200px;
  --header-h:       72px;
}

/* ---------- Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--text-secondary); }

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-1);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 224, 164, 0.08);
  border: 1px solid rgba(0, 224, 164, 0.2);
  margin-bottom: 16px;
}
.eyebrow-warn {
  color: var(--warn);
  background: rgba(255, 181, 71, 0.08);
  border-color: rgba(255, 181, 71, 0.25);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--grad-primary);
  color: #062018;
  box-shadow: 0 8px 24px rgba(0, 224, 164, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 224, 164, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.btn-sm  { padding: 10px 16px; font-size: 14px; }
.btn-lg  { padding: 18px 30px; font-size: 17px; }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--text-primary);
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 224, 164, 0.25);
}
.brand-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul {
  display: flex;
  gap: 28px;
}
.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-primary);
  transition: width var(--t-norm);
}
.primary-nav a:hover { color: var(--text-primary); }
.primary-nav a:hover::after { width: 100%; }

/* Toggle hamburguesa */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.glow-1 { width: 480px; height: 480px; background: #00e0a4; top: -120px; left: -120px; }
.glow-2 { width: 520px; height: 520px; background: #00b3ff; bottom: -180px; right: -120px; opacity: .25; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 0 rgba(0, 224, 164, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 224, 164, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 224, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 224, 164, 0); }
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.hero-tagline {
  font-weight: 600;
  color: var(--accent-1);
  font-size: 15px;
  letter-spacing: .02em;
  margin: 0;
}

/* ---- Visual del hero (mock teléfono) ---- */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mock {
  width: 280px;
  height: 540px;
  background: linear-gradient(160deg, #1a2a44 0%, #0d1828 100%);
  border-radius: 38px;
  border: 1px solid var(--border-strong);
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #050a14;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  background: #0c1830;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-header {
  padding: 30px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #122845 0%, #0c1830 100%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #052018;
  font-size: 15px;
}
.chat-name { font-weight: 600; font-size: 14px; }
.chat-status {
  font-size: 11px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.dot-online {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-1);
}
.chat-body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.msg {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn .5s forwards;
}
.msg-in  {
  background: #1a2a44;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}
.msg-out {
  background: linear-gradient(135deg, #00b3ff 0%, #4f8cff 100%);
  color: #062028;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.delay-1 { animation-delay: .4s; }
.delay-2 { animation-delay: .8s; }
.delay-3 { animation-delay: 1.2s; }
.delay-4 { animation-delay: 1.6s; }
@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}
.typing {
  align-self: flex-start;
  background: #1a2a44;
  padding: 10px 12px;
  border-radius: 14px;
  display: inline-flex;
  gap: 4px;
  opacity: 0;
  animation: msgIn .5s forwards;
}
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Tarjetas flotantes */
.floating-card {
  position: absolute;
  background: rgba(15, 31, 58, .9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
}
.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-1);
}
.card-value span { font-size: 14px; opacity: .8; }
.card-uptime { top: 60px; left: -10px; animation: float 4s ease-in-out infinite; }
.card-alerts { bottom: 80px; right: -10px; animation: float 4s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===================================================================
   SECCIONES GENERALES
   =================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ---------- PROBLEMA ---------- */
.section-problem {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.problem-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform var(--t-norm), border-color var(--t-norm), background var(--t-norm);
}
.problem-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 181, 71, 0.3);
}
.problem-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 181, 71, 0.1);
  border: 1px solid rgba(255, 181, 71, 0.2);
  color: var(--warn);
  margin-bottom: 18px;
}
.problem-card h3 { font-size: 1.05rem; }
.problem-card p { font-size: .94rem; margin: 0; }

/* ---------- SOLUCIÓN ---------- */
.section-solution {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.solution-text h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}
.check-list svg {
  flex-shrink: 0;
  color: var(--accent-1);
  margin-top: 4px;
}

/* Diagrama solución */
.solution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.diagram-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--t-norm);
}
.diagram-node svg {
  flex-shrink: 0;
}
.node-net  { color: var(--accent-3); border-color: rgba(79, 140, 255, .3); }
.node-core { color: var(--accent-1); border-color: rgba(0, 224, 164, .35); background: rgba(0, 224, 164, .06); box-shadow: 0 0 30px rgba(0, 224, 164, .12); }
.node-wa   { color: #25d366; border-color: rgba(37, 211, 102, .3); }
.node-tg   { color: #29b6f6; border-color: rgba(41, 182, 246, .3); }

.diagram-line {
  width: 2px;
  height: 22px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--accent-2) 0%, transparent 100%);
  position: relative;
}
.diagram-line::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  left: 50%;
  transform: translateX(-50%);
  animation: travel 2s linear infinite;
}
@keyframes travel {
  0%   { top: 0;   opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- BENEFICIOS ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.benefit-card {
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--t-norm), border-color var(--t-norm), background var(--t-norm);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--t-norm);
}
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background: var(--bg-elev);
}
.benefit-card:hover::before { opacity: .8; }
.benefit-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 224, 164, .2);
  color: var(--accent-1);
  margin-bottom: 20px;
}
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit-card p  { font-size: .95rem; margin: 0; }

/* ---------- CÓMO FUNCIONA ---------- */
.section-how {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  z-index: 0;
}
.step {
  text-align: center;
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  transition: transform var(--t-norm);
}
.step:hover { transform: translateY(-4px); }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #062018;
  font-weight: 800;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(0, 224, 164, .35);
}
.step h3 { font-size: 1.1rem; }
.step p  { font-size: .95rem; margin: 0; }

/* ---------- CASOS DE USO ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.case-card {
  padding: 26px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform var(--t-norm), border-color var(--t-norm);
  border-left: 3px solid transparent;
}
.case-card:hover {
  transform: translateX(4px);
  border-left-color: var(--accent-1);
  background: var(--bg-card-hover);
}
.case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0, 179, 255, .08);
  color: var(--accent-2);
  margin-bottom: 14px;
}
.case-card h3 { font-size: 1.05rem; }
.case-card p  { font-size: .92rem; margin: 0; }

/* ---------- DIFERENCIADOR ---------- */
.section-diff { padding: 60px 0; }
.diff-card {
  background: linear-gradient(135deg, rgba(0, 224, 164, .08), rgba(0, 179, 255, .08));
  border: 1px solid rgba(0, 224, 164, .2);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.diff-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 224, 164, .15), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}
.diff-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  position: relative;
}
.diff-card p { font-size: 1.05rem; max-width: 640px; margin: 0 auto 30px; }
.quote {
  margin: 32px auto 0;
  max-width: 640px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid var(--accent-1);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  position: relative;
}
.quote-mark {
  color: var(--accent-1);
  opacity: .35;
  position: absolute;
  top: -10px; left: 14px;
}

/* ---------- CTA FINAL ---------- */
.section-cta {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 224, 164, .15), transparent 60%),
    var(--bg-deep);
}
.cta-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 224, 164, .04), transparent 50%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  position: relative;
}
.cta-box p { font-size: 1.05rem; margin-bottom: 32px; position: relative; }
.cta-box .btn { position: relative; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline {
  color: var(--text-secondary);
  font-size: .95rem;
  margin: 0 0 6px;
}
.footer-domain {
  color: var(--accent-1);
  font-family: var(--font-mono);
  font-size: .9rem;
  margin: 0;
}
.footer-nav h4,
.footer-contact h4 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a {
  color: var(--text-secondary);
  font-size: .95rem;
}
.footer-nav a:hover { color: var(--accent-1); }
.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ===================================================================
   FAB WhatsApp
   =================================================================== */
.fab-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  z-index: 60;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.fab-wa::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .4);
  animation: ring 2s infinite;
}
@keyframes ring {
  0%   { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(37, 211, 102, .55);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .hero-inner          { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual         { height: 480px; order: 2; }
  .solution-grid       { grid-template-columns: 1fr; gap: 40px; }
  .solution-visual     { order: 2; }
  .footer-inner        { grid-template-columns: 1fr 1fr; }
  .steps               { grid-template-columns: 1fr; gap: 18px; }
  .steps::before       { display: none; }
  .diff-card           { padding: 40px 28px; }
  .cta-box             { padding: 44px 24px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-norm), opacity var(--t-norm), visibility var(--t-norm);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .primary-nav a {
    display: block;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }
  .primary-nav a:hover { background: var(--bg-card); }
  .nav-cta { width: 100%; }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: 50px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 460px; }
  .floating-card { padding: 12px 14px; }
  .card-uptime { left: -4px; }
  .card-alerts { right: -4px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .brand-text { font-size: 16px; }
  .hero-title { font-size: 1.85rem; }
  .phone-mock { width: 240px; height: 480px; }
  .hero-visual { height: 480px; }
  .fab-wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* ===================================================================
   ACCESIBILIDAD
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco accesible para enlaces */
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
