/* =========================================================================
   7 EN 1 — Landing Premium
   Sistema de diseño propio construido en torno al arco del isotipo oficial.
   ========================================================================= */

/* ---------- Fuentes locales (Montserrat autoalojada) ---------- */
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0D1B3D;
  --navy-deep: #070E22;
  --blue: #0A78D9;
  --green: #6DC443;
  --n-100: #F7F9FA;
  --n-200: #E6E8EB;
  --white: #FFFFFF;

  --ink: var(--navy);
  --ink-muted: rgba(13, 27, 61, 0.66);
  --on-dark: #F7F9FA;
  --on-dark-muted: rgba(247, 249, 250, 0.68);

  --gradient-brand: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  --gradient-dark: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.5rem, 5.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --ease-premium: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-whatsapp use, use[href="#icon-whatsapp"] { fill: currentColor; stroke: none; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--n-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { line-height: 1.65; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--space-2);
  background: var(--white); color: var(--navy);
  padding: 12px 20px; border-radius: var(--radius-sm);
  z-index: 999; transition: top 0.25s var(--ease-out);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-2); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}
.container--bleed { width: min(1280px, 100% - 24px); }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--gradient-brand); border-radius: 2px;
}
.eyebrow--dark { color: var(--blue); }

.section-lead {
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
  max-width: 620px;
  margin-top: var(--space-2);
}
.section-lead--light { color: var(--on-dark-muted); }
.problema .section-lead, .beneficios .section-lead { color: var(--ink-muted); }

section { position: relative; padding: var(--space-16) 0; overflow: clip; }
section[class]:not(.hero) h2 { max-width: 780px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gradient-brand); color: var(--white);
  box-shadow: 0 8px 30px -8px rgba(10, 120, 217, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -10px rgba(109, 196, 67, 0.6); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-sm { padding: 11px 20px; font-size: 0.88rem; }

.hero-cta { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.hero-cta--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(247, 249, 250, 0.98);
  border-bottom: 1px solid transparent;
  box-shadow: 0 4px 24px -14px rgba(13,27,61,0.18);
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  animation: header-drop 0.9s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(247, 249, 250, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255,255,255,0.55);
  box-shadow: 0 8px 32px -16px rgba(13,27,61,0.3);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent);
  background-size: 200% 100%;
  opacity: 0; transition: opacity 0.5s ease;
  animation: shimmer-flow 7s linear infinite;
  pointer-events: none;
}
.site-header.is-scrolled::after { opacity: 0.7; }
@keyframes header-drop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shimmer-flow { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); position: relative; z-index: 1; }

.brand-chip { display: inline-flex; align-items: center; }
.brand-logo {
  width: 100px; height: auto; display: block;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-logo { transform: scale(1.03); }

.main-nav ul { display: flex; gap: var(--space-4); }
.main-nav a {
  font-size: 0.94rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gradient-brand); transition: width 0.3s var(--ease-out);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  color: var(--ink); border-radius: var(--radius-sm); border: 1px solid rgba(13,27,61,0.15);
}

.scroll-progress { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: rgba(13,27,61,0.08); }
.scroll-progress span { display: block; height: 100%; width: 0%; background: var(--gradient-brand); }

/* ---------- Fondos cinematográficos / arcos orbitales ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbit-arc {
  position: absolute; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0deg, var(--blue) 70deg, var(--green) 190deg, transparent 260deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  opacity: 0.55;
  animation: orbit-spin 50s linear infinite;
}
.orbit-arc--1 { width: 900px; height: 900px; top: -320px; right: -260px; }
.orbit-arc--2 { width: 520px; height: 520px; bottom: -220px; left: -160px; opacity: 0.35; animation-duration: 70s; animation-direction: reverse; }
.orbit-arc--3 { width: 780px; height: 780px; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.28; }
.orbit-arc--4 { width: 640px; height: 640px; top: -260px; left: 50%; }
.orbit-arc--5 { width: 820px; height: 820px; bottom: -360px; right: -220px; }
.orbit-arc--6 { width: 560px; height: 560px; bottom: -280px; left: -140px; animation-duration: 90s; }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit-arc--3 { animation-name: orbit-spin-center; }
@keyframes orbit-spin-center { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  left: var(--mx, 60%); top: var(--my, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(10, 120, 217, 0.32), transparent 70%);
  filter: blur(10px);
}

.grid-noise {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.grid-noise--light {
  background-image: radial-gradient(rgba(13,27,61,0.07) 1px, transparent 1px);
  animation: grid-drift 22s linear infinite;
}
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 52px 52px; } }

/* ---------- Línea "circuito" divisoria animada ---------- */
.circuit-line { position: relative; }
.circuit-line::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent);
  background-size: 200% 100%;
  animation: shimmer-flow 8s linear infinite;
  opacity: 0.55;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--gradient-dark);
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-12);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8);
  align-items: center;
}
.hero-title { font-size: var(--fs-display); }
.hero-sub { margin-top: var(--space-3); font-size: var(--fs-lead); color: var(--on-dark-muted); max-width: 560px; }
.hero-trust { display: flex; gap: var(--space-4); margin-top: var(--space-4); flex-wrap: wrap; }
.hero-trust span { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--on-dark-muted); }
.hero-trust svg { color: var(--green); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-mock {
  width: 280px; padding: 14px; border-radius: 44px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  transition: transform 0.4s var(--ease-out);
}
.phone-mock__notch { width: 90px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.25); margin: 0 auto 10px; }
.phone-mock__screen {
  background: linear-gradient(165deg, #0F2249, #0A1730);
  border-radius: 32px; padding: 26px 22px; min-height: 420px;
}
.phone-mock__greet { font-weight: 700; font-size: 1.15rem; }
.phone-mock__sub { color: var(--on-dark-muted); font-size: 0.85rem; margin-top: 4px; }
.phone-mock__stats { display: flex; gap: 12px; margin-top: var(--space-3); }
.phone-mock__stat {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.stat-num { display: block; font-weight: 700; font-size: 1.05rem; color: var(--white); }
.stat-label { font-size: 0.72rem; color: var(--on-dark-muted); }
.phone-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: var(--space-3); }
.phone-mock__app {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.68rem; color: var(--on-dark-muted);
  transition: background 0.3s ease, transform 0.3s ease;
}
.phone-mock__app:hover { background: rgba(109,196,67,0.14); transform: translateY(-2px); color: var(--white); }
.phone-mock__app svg { color: var(--green); }

.floating-badge {
  position: absolute; padding: 10px 18px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px); font-size: 0.82rem; font-weight: 600;
  animation: float-idle 5s ease-in-out infinite;
}
.floating-badge--1 { top: 8%; left: -4%; animation-delay: 0.3s; }
.floating-badge--2 { bottom: 10%; right: -6%; animation-delay: 1.1s; }
@keyframes float-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.35); border-radius: var(--radius-full);
  z-index: 1;
}
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--green); border-radius: 2px; transform: translateX(-50%); animation: cue-bounce 1.8s ease infinite; }
@keyframes cue-bounce { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 8px; } }

/* ================= PROBLEMA ================= */
.problema { background: var(--n-100); }
.chaos-field {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-8); max-width: 820px;
}
.chaos-tag {
  padding: 14px 22px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--n-200);
  font-weight: 600; color: var(--ink-muted);
  box-shadow: 0 10px 24px -16px rgba(13,27,61,0.3);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.35s var(--ease-out), color 0.35s ease, border-color 0.35s ease;
  text-decoration: line-through;
  text-decoration-color: rgba(13,27,61,0.25);
}
.chaos-tag:hover { transform: rotate(0deg) translateY(-4px); color: var(--navy); border-color: var(--blue); }
.chaos-conclusion { margin-top: var(--space-6); font-size: var(--fs-h3); font-weight: 700; color: var(--navy); }

/* ================= SOLUCIÓN ================= */
.solucion { background: var(--gradient-dark); color: var(--on-dark); }
.constellation {
  position: relative; width: min(680px, 92vw); aspect-ratio: 1 / 1;
  margin: var(--space-12) auto 0;
}
.constellation-center {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: 0 0 70px rgba(10,120,217,0.55);
  z-index: 2;
}
.constellation-nodes { position: absolute; inset: 0; }
.node {
  position: absolute; top: 50%; left: 50%; width: 168px; text-align: center;
  transform: rotate(var(--angle)) translate(min(270px, 40vw)) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
}
.node-inner {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; color: var(--green);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.node:hover .node-inner { background: rgba(109,196,67,0.16); transform: translateY(-4px); box-shadow: 0 12px 30px -12px rgba(109,196,67,0.5); }
.node-label { font-weight: 700; font-size: 0.95rem; }
.node-desc { font-size: 0.76rem; color: var(--on-dark-muted); margin-top: 4px; line-height: 1.4; }

/* ================= BENEFICIOS ================= */
.beneficios { background: var(--n-100); }
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3);
  margin-top: var(--space-8);
}
.bento-tile {
  background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: 0 16px 40px -28px rgba(13,27,61,0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.bento-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 48px -24px rgba(13,27,61,0.3); }
.bento-tile svg { color: var(--blue); margin-bottom: var(--space-2); }
.bento-tile-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.bento-tile-desc { font-size: 0.9rem; color: var(--ink-muted); }
.bento-tile--feature {
  grid-column: span 2; grid-row: span 2;
  background: var(--gradient-dark); color: var(--on-dark); border: none;
  display: flex; flex-direction: column; justify-content: center;
}
.bento-counter { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: var(--white); }
.bento-tile--feature .bento-tile-title { font-size: 1.2rem; }
.bento-tile--feature .bento-tile-desc { color: var(--on-dark-muted); }
.fine-print { display: block; font-size: 0.72rem; color: rgba(247,249,250,0.45); margin-top: 8px; }

/* ================= CÓMO FUNCIONA ================= */
.como-funciona { background: var(--n-100); }
.timeline { position: relative; max-width: 880px; margin: var(--space-10, var(--space-8)) auto 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--n-200); transform: translateX(-50%);
}
.timeline::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%;
  background: var(--gradient-brand); transform: translateX(-50%) scaleY(var(--progress, 0));
  transform-origin: top; transition: transform 0.1s linear;
}
.timeline-step { position: relative; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; }
.timeline-step:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.timeline-marker {
  position: relative; z-index: 1; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: 0 0 0 6px var(--n-100);
}
.timeline-content { max-width: 340px; }
.timeline-content p { color: var(--ink-muted); margin-top: 6px; font-size: 0.94rem; }

/* ================= CASOS DE USO ================= */
.casos-de-uso { background: var(--gradient-dark); color: var(--on-dark); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--on-dark);
  transition: background 0.3s ease;
}
.carousel-btn:hover { background: rgba(255,255,255,0.1); }

.cases-track {
  display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-8) max(24px, calc((100vw - 1280px) / 2 + 24px));
  scrollbar-width: none;
}
.cases-track::-webkit-scrollbar { display: none; }
.case-card {
  flex: 0 0 min(320px, 82vw); scroll-snap-align: start;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: var(--space-4);
}
.case-card h3 { margin: var(--space-2) 0 10px; }
.case-pain { font-size: 0.8rem; color: rgba(247,249,250,0.5); }
.case-gain { font-size: 0.92rem; color: var(--on-dark-muted); }

/* ================= TESTIMONIOS ================= */
.testimonios { background: var(--n-100); }
.testimonial-spotlight {
  position: relative; max-width: 760px; margin: var(--space-8) auto 0; text-align: center;
}
.quote-mark { color: var(--green); opacity: 0.6; margin-bottom: var(--space-2); }
.testimonial-slide {
  display: none; animation: fade-in 0.6s var(--ease-out);
}
.testimonial-slide.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-text { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.5; color: var(--navy); }
.testimonial-author { margin-top: var(--space-3); font-weight: 700; }
.testimonial-author span { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.85rem; margin-top: 2px; }
.testimonial-dots { display: flex; gap: 10px; justify-content: center; margin-top: var(--space-4); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--n-200); transition: background 0.3s ease, transform 0.3s ease; }
.dot.is-active { background: var(--gradient-brand); transform: scale(1.3); }

/* ================= ANTES / DESPUÉS ================= */
.antes-despues { background: var(--n-100); }
.compare {
  position: relative; margin-top: var(--space-8); border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16 / 8; box-shadow: 0 30px 60px -30px rgba(13,27,61,0.4);
  --reveal: 50%;
}
.compare-panel { position: absolute; inset: 0; padding: var(--space-6); display: flex; flex-direction: column; justify-content: center; }
.compare-panel--before { background: var(--gradient-dark); color: var(--on-dark); }
.compare-panel--before li { color: rgba(247,249,250,0.55); text-decoration: line-through; margin-bottom: 10px; font-weight: 600; }
.compare-panel--after {
  background: linear-gradient(135deg, #FFFFFF, var(--n-100));
  color: var(--navy);
  clip-path: inset(0 0 0 calc(100% - var(--reveal)));
  align-items: flex-end; text-align: right;
}
.compare-panel--after li { margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-direction: row-reverse; }
.compare-panel--after li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.compare-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-2); opacity: 0.6; }
.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 3px; background: var(--white);
  transform: translateX(-50%); box-shadow: 0 0 20px rgba(255,255,255,0.6); pointer-events: none;
}
.compare-divider::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px -6px rgba(13,27,61,0.4);
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; appearance: none; -webkit-appearance: none;
}

/* ================= CTA FINAL ================= */
.cta-final { background: var(--gradient-dark); color: var(--on-dark); text-align: center; }
.cta-final h2 { max-width: 100%; margin: 0 auto; }
.cta-final .section-lead { margin-inline: auto; }

/* ================= FOOTER ================= */
.site-footer { background: var(--n-100); color: var(--ink); padding: 32px 0 16px; position: relative; overflow: clip; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); padding-bottom: 22px; border-bottom: 1px solid rgba(13,27,61,0.1); position: relative; z-index: 1; }
.brand-chip--footer { margin-bottom: 10px; }
.brand-chip--footer .brand-logo { width: 68px; }
.footer-brand p { color: var(--ink-muted); max-width: 260px; font-size: 0.92rem; }
.footer-heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(13,27,61,0.5); margin-bottom: 10px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--ink-muted); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--navy); }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; }
.footer-status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.footer-status-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--green); opacity: 0.6;
  animation: status-ping 2.2s ease-out infinite;
}
@keyframes status-ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
.footer-bottom { padding-top: 14px; font-size: 0.8rem; color: rgba(13,27,61,0.45); position: relative; z-index: 1; }

.footer-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5; }
.footer-orbit .orbit-arc { opacity: 0.22; }

/* ================= WHATSAPP FAB ================= */
.whatsapp-fab-wrap { position: fixed; bottom: var(--space-3); right: var(--space-3); z-index: 90; }
.whatsapp-fab {
  display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--gradient-brand); color: var(--white);
  box-shadow: 0 14px 34px -10px rgba(10,120,217,0.6);
  opacity: 0; transform: scale(0.6) translateY(20px); pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.whatsapp-fab.is-visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.whatsapp-fab:hover { transform: scale(1.08); }

/* ================= Magnetic buttons cursor helper ================= */
.magnetic { transform: translate(var(--mx, 0), var(--my, 0)) translateY(0); }
.btn-primary.magnetic:hover, .btn-ghost.magnetic:hover { transform: translate(var(--mx, 0), var(--my, 0)) translateY(-3px); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { margin-top: var(--space-6); }
  .main-nav { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tile--feature { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 860px) {
  .constellation { transform: none; }
  .constellation-nodes { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
  .constellation { display: flex; flex-direction: column; align-items: center; aspect-ratio: auto; width: 100%; }
  .constellation-center { position: static; margin-bottom: var(--space-2); }
  .node { position: static; transform: none !important; width: auto; text-align: left; display: flex; align-items: center; gap: var(--space-2); }
  .node-inner { margin: 0; flex: 0 0 auto; }
  .timeline::before, .timeline::after { left: 20px; }
  .timeline-step, .timeline-step:nth-child(even) { flex-direction: row; text-align: left; padding-left: 0; }
  .timeline-marker { width: 44px; height: 44px; font-size: 0.85rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-tile--feature { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .compare { aspect-ratio: 4 / 5; }
  .phone-mock { transform: none; width: 240px; }
  .brand-logo { width: 76px; }
}

/* ---------- Menú móvil ---------- */
@media (max-width: 1024px) {
  .main-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--navy-deep); padding: var(--space-6) var(--space-3);
    transform: translateX(100%); transition: transform 0.4s var(--ease-out);
    z-index: 95;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: var(--space-3); }
  .main-nav a { font-size: 1.3rem; color: var(--on-dark); }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
