/* ============================================================
   PRESULINK landing — estilos (claro + oscuro)
   Marca: verde #16C784. Fuentes: League Spartan (display) + Inter.
   ============================================================ */

/* ---- Tokens de tema ---- */
:root {
  --green:      #16C784;
  --green-2:    #1FA971;
  --green-dark: #0E8F68;
  --turq:       #1FB6A6;
  --blue:       #14678B;
  --grad: linear-gradient(135deg, #16C784 0%, #1FA971 60%, #14678B 130%);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font-display: "League Spartan", "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", "Montserrat", system-ui, -apple-system, sans-serif;

  /* claro (por defecto) */
  --bg:        #ffffff;
  --bg-alt:    #f4f7fa;
  --bg-card:   #ffffff;
  --bg-elev:   #ffffff;
  --text:      #0f1722;
  --text-soft: #51606f;
  --border:    #e4e9f0;
  --shadow:    0 10px 30px rgba(16,40,60,.08);
  --shadow-lg: 0 24px 60px rgba(16,40,60,.14);
  --nav-bg:    rgba(255,255,255,.82);
  /* en claro: halo de color sobre los glifos del logo (PNG transparente) */
  --brand-logo-shadow: drop-shadow(0 1px 5px rgba(22,199,132,.55)) drop-shadow(0 0 1px rgba(20,103,139,.4));
  /* resplandor "Con PRESULINK" — claro = muy acentuado */
  --compare-glow:        rgba(22,199,132,.45);
  --compare-glow-strong: rgba(22,199,132,.85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0b0f17; --bg-alt:#0e131d; --bg-card:#141b27; --bg-elev:#161e2c;
    --text:#eaf1f8; --text-soft:#9fb0c2; --border:#222c3b;
    --shadow:0 10px 30px rgba(0,0,0,.35); --shadow-lg:0 24px 70px rgba(0,0,0,.5);
    --nav-bg:rgba(11,15,23,.78);
    --brand-logo-shadow:none;
    --compare-glow:        rgba(22,199,132,.16);
    --compare-glow-strong: rgba(22,199,132,.40);
  }
}
[data-theme="dark"] {
  --bg:#0b0f17; --bg-alt:#0e131d; --bg-card:#141b27; --bg-elev:#161e2c;
  --text:#eaf1f8; --text-soft:#9fb0c2; --border:#222c3b;
  --shadow:0 10px 30px rgba(0,0,0,.35); --shadow-lg:0 24px 70px rgba(0,0,0,.5);
  --nav-bg:rgba(11,15,23,.78);
  --brand-logo-shadow:none;
  --compare-glow:        rgba(22,199,132,.16);
  --compare-glow-strong: rgba(22,199,132,.40);
}
[data-theme="light"] {
  --bg:#ffffff; --bg-alt:#f4f7fa; --bg-card:#ffffff; --bg-elev:#ffffff;
  --text:#0f1722; --text-soft:#51606f; --border:#e4e9f0;
  --shadow:0 10px 30px rgba(16,40,60,.08); --shadow-lg:0 24px 60px rgba(16,40,60,.14);
  --nav-bg:rgba(255,255,255,.82);
  --compare-glow:        rgba(22,199,132,.45);
  --compare-glow-strong: rgba(22,199,132,.85);
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
/* height:auto = con los atributos width/height de las imágenes (anti-CLS), la
   altura escala proporcional al reducir el ancho → sin deformación vertical en
   móvil. Los logos (.brand-logo) y el hero (.tour-img) fijan su propia altura. */
img, video { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 880px; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--grad); color: #04130c; box-shadow: 0 8px 24px rgba(22,199,132,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22,199,132,.5); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: rgba(22,199,132,.1); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--green); }
/* CTA del nav "Empezar gratis": destaca con un latido suave */
.nav-actions .btn-primary { animation: ctaPulse 2.6s ease-in-out infinite; }
.nav-actions .btn-primary:hover { animation: none; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(22,199,132,.35); }
  50%      { box-shadow: 0 10px 30px rgba(22,199,132,.6), 0 0 0 5px rgba(22,199,132,.18); }
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .25s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 76px; max-width: 1340px; }
.brand { position: relative; display: inline-flex; align-items: center; isolation: isolate; }
.brand-logo { height: 59px; width: auto; max-width: none; position: relative; z-index: 1; filter: var(--brand-logo-shadow); transition: filter .25s; }
.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: block; }
/* Resplandor que recorre lentamente el fondo del logo */
.brand::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 50%; transform: translateY(-50%);
  width: 45%; height: 150%;
  background: radial-gradient(closest-side,
              rgba(22,199,132,.68), rgba(31,169,113,.34) 55%, transparent 80%);
  filter: blur(16px);
  animation: brandGlow 7s ease-in-out infinite;
}
[data-theme="dark"] .brand::before {
  background: radial-gradient(closest-side,
              rgba(22,199,132,.7), rgba(31,169,113,.35) 55%, transparent 80%);
}
@keyframes brandGlow {
  0%   { left: -8%;  opacity: .25; }
  50%  { left: 63%;  opacity: .48; }
  100% { left: -8%;  opacity: .25; }
}
.nav-links { display: flex; gap: 30px; margin: 0 auto; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 18px; }
.theme-toggle { background: var(--bg-alt); border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: transform .2s; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }

/* ---- Hero ---- */
.hero { position: relative; padding: 70px 0 56px; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 600px; z-index: -1;
  background: radial-gradient(60% 60% at 70% 0%, rgba(22,199,132,.22), transparent 70%),
              radial-gradient(50% 50% at 20% 10%, rgba(20,103,139,.18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); background: rgba(22,199,132,.12); border: 1px solid rgba(22,199,132,.3); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--text-soft); margin: 20px 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 14px; color: var(--text-soft); max-width: 520px; }
.hero-media { position: relative; }
.hero-video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ---- Tira de confianza ---- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-items { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 26px 22px; }
.trust-items div { text-align: center; }
.trust-items strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--green); }
.trust-items span { font-size: 13px; color: var(--text-soft); }

/* ---- Secciones ---- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head h2, .section h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; }
.lead { font-size: 18px; color: var(--text-soft); margin-top: 14px; }
.narrow h2 { font-size: clamp(24px,3vw,34px); }
.narrow > .lead { margin-bottom: 26px; }

/* ---- Comparativa problema ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.compare-col { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); }
.compare-col h3 { font-size: 18px; margin-bottom: 12px; }
.compare-col ul { list-style: none; display: grid; gap: 10px; }
.compare-col li { padding-left: 26px; position: relative; font-size: 15px; color: var(--text-soft); }
.compare-bad li::before { content: "✕"; position: absolute; left: 0; color: #e5484d; font-weight: 700; }
.compare-good { border-color: rgba(22,199,132,.5); position: relative; z-index: 0; }
/* Resplandor verde pulsante detrás del recuadro "Con PRESULINK".
   Muy acentuado en claro, sutil en oscuro (var --compare-glow-*). */
.compare-good::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; pointer-events: none;
  border-radius: calc(var(--radius) + 3px);
  box-shadow: 0 0 0 0 var(--compare-glow);
  animation: comparePulse 2.6s ease-in-out infinite;
}
@keyframes comparePulse {
  0%, 100% { box-shadow: 0 0 14px 1px var(--compare-glow); }
  50%      { box-shadow: 0 0 40px 9px var(--compare-glow-strong); }
}
@media (prefers-reduced-motion: reduce) {
  .compare-good::before { animation: none; box-shadow: 0 0 26px 4px var(--compare-glow-strong); }
}
.compare-good li { color: var(--text); }
.compare-good li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---- Split solución ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy p { color: var(--text-soft); margin-bottom: 22px; font-size: 17px; }
.shot { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); cursor: zoom-in; transition: transform .3s; }
.shot:hover { transform: scale(1.01); }

/* ---- Features ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); transition: transform .2s, border-color .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow); }
.feature-ico { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: rgba(22,199,132,.12); margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 15px; }

/* ---- Pasos ---- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 44px; }
.step { text-align: center; padding: 10px; }
.step-n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #04130c; font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: 15px; }
/* Tira de pasos con capturas REALES del flujo del cliente (sección link) */
.shots-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* Variante de 4 pasos (sección Agenda): 4 → 2 → 1 columnas */
.shots-steps.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots-steps.cols-4 .shot-step h3 { font-size: 16px; }
.shots-steps.cols-4 .shot-step p { font-size: 13.5px; }
@media (min-width: 861px) and (max-width: 1150px) { .shots-steps.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .shots-steps.cols-4 { grid-template-columns: 1fr; } }
.shot-step { margin: 0; }
.shot-step .mock { width: 100%; }
.shot-step figcaption { margin-top: 16px; }
.shot-step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #04130c; font-family: var(--font-display); font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.shot-step h3 { font-size: 18px; margin-bottom: 6px; transition: color .35s; }
.shot-step p { color: var(--text-soft); font-size: 14.5px; }

/* ---- Stepper: línea conectora + secuencia animada de pasos ---- */
.shots-steps { --gap: 26px; }
.shots-steps.cols-4 { --gap: 20px; }
.shot-step { position: relative; }
.shot-step figcaption { position: relative; }
/* dos capas de línea, mismo trazado: gris base (::before) + verde que viaja (::after) */
.shot-step figcaption::before,
.shot-step figcaption::after {
  content: ""; position: absolute; z-index: 0;
  top: 15px; left: 15px;                       /* centro del badge de 30px */
  height: 3px; width: calc(100% + var(--gap)); /* llega al centro del nº siguiente */
  border-radius: 3px;
}
.shot-step figcaption::before { background: var(--border); }
/* tramo verde: oculto y, al activarse el paso, CRECE de izq→der (la línea "viaja") */
.shot-step figcaption::after {
  background: var(--grad);
  transform: scaleX(0); transform-origin: left center;
  transition: none;                            /* al desactivarse se repliega al instante */
}
.shot-step.is-active figcaption::after {
  transform: scaleX(1);
  transition: transform .7s cubic-bezier(.45,.05,.2,1); /* solo el avance se anima */
}
.shots-steps .shot-step:last-child figcaption::before,
.shots-steps .shot-step:last-child figcaption::after { display: none; }
/* el nº va por encima de la línea y anima al activarse */
.shot-step-n {
  position: relative; z-index: 1;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s, filter .35s;
}
/* la captura escala suave (origen en su base para no empujar el texto) */
.shot-step .mock {
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s;
  transform-origin: center bottom;
}
/* --- paso ACTIVO (aura suave y difusa) --- */
.shot-step.is-active .mock {
  transform: scale(1.10);
  box-shadow: var(--shadow-lg), 0 0 34px 6px rgba(22,199,132,.20);
}
.shot-step.is-active .shot-step-n {
  transform: scale(1.18);
  /* aureola difuminada (sin anillo duro), en la línea del halo del logo */
  box-shadow: 0 0 16px 4px rgba(22,199,132,.40), 0 0 36px 12px rgba(22,199,132,.18);
}
.shot-step.is-active h3 { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .shot-step .mock, .shot-step-n, .shot-step h3 { transition: none; }
  .shot-step figcaption::after { transition: none; }
}
/* ocultar la línea cuando los pasos se apilan (deja de tener sentido horizontal) */
@media (max-width: 1150px) { .shots-steps.cols-4 .shot-step figcaption::before,
                             .shots-steps.cols-4 .shot-step figcaption::after { display: none; } }
@media (max-width: 860px)  { .shots-steps .shot-step figcaption::before,
                             .shots-steps .shot-step figcaption::after { display: none; } }
/* Sección destacada: resplandor verde sutil para diferenciarla de las contiguas */
.section-highlight {
  background:
    radial-gradient(90% 60% at 50% -8%, rgba(22,199,132,.12), transparent 70%),
    var(--bg);
}
.section-cta { text-align: center; margin-top: 34px; }
.shots-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.shots-row .shot { width: 100%; }

/* ---- Simulador ---- */
.sim { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--bg-card); }
.sim-controls { padding: 28px; display: grid; gap: 18px; }
.sim-field { display: grid; gap: 8px; }
.sim-field > span { font-weight: 600; font-size: 14px; }
.sim-field select { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 15px; }
.seg { display: flex; gap: 6px; background: var(--bg-alt); padding: 5px; border-radius: 999px; }
.seg button { flex: 1; padding: 9px; border: none; background: transparent; color: var(--text-soft); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; transition: .2s; }
.seg button.active { background: var(--green); color: #04130c; }
.sim-extras { border: none; display: grid; gap: 9px; }
.sim-extras legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.sim-extras label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.sim-extras small { margin-left: auto; color: var(--green); font-weight: 700; }
.sim-result { padding: 28px; background: var(--grad); color: #04130c; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sim-result-label { font-size: 14px; font-weight: 600; opacity: .8; }
.sim-total { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 6vw, 56px); margin: 4px 0 10px; }
.sim-note { font-size: 13px; opacity: .85; margin-bottom: 18px; }
.sim-result .btn-primary { background: #04130c; color: var(--green); box-shadow: none; }
.sim-result .btn-primary:hover { background: #001b10; }

/* ---- Precios ---- */
.billing-toggle { display: inline-flex; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); padding: 5px; border-radius: 999px; margin-top: 18px; }
.billing-toggle button { border: none; background: transparent; color: var(--text-soft); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
.billing-toggle button.active { background: var(--green); color: #04130c; }
.billing-toggle .save { font-size: 11px; background: rgba(0,0,0,.15); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(2,minmax(0,380px)); gap: 22px; justify-content: center; }
.plan { position: relative; padding: 32px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.plan-pro { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,199,132,.18), var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #04130c; font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 20px; letter-spacing: .08em; }
.plan-price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 800; font-size: 46px; }
.plan-price .per { color: var(--text-soft); font-weight: 600; }
.plan-sub { color: var(--text-soft); font-size: 14px; margin-bottom: 18px; }
.plan-feats { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; }
.plan-feats li { padding-left: 26px; position: relative; font-size: 15px; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan-feats li.off { color: var(--text-soft); opacity: .6; }
.plan-feats li.off::before { content: "✕"; color: var(--text-soft); }

/* ---- Testimonios ---- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quote { padding: 26px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.quote blockquote { font-size: 16px; margin-bottom: 16px; }
.quote figcaption { font-size: 14px; color: var(--text-soft); }
.disclaimer-mini { text-align: center; font-size: 12px; color: var(--text-soft); margin-top: 18px; opacity: .7; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--green); font-size: 24px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding-bottom: 18px; }

/* ---- CTA final ---- */
.cta-final { padding: 80px 0; text-align: center; background: var(--grad); color: #04130c; }
.cta-final h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; }
.cta-final p { margin: 14px 0 26px; font-size: 18px; opacity: .9; }
.cta-final .btn-primary { background: #04130c; color: var(--green); }

/* ---- Footer ---- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-brand p { color: var(--text-soft); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; color: var(--text-soft); }
.footer-contact { font-size: 13px; color: var(--text-soft); margin-top: 12px; line-height: 1.6; }
.footer-contact a { color: var(--text-soft); }
.footer-contact a:hover { color: var(--green); }

/* ---- Animaciones de scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Lightbox capturas ---- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; place-items: center; z-index: 100; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  /* Logo apaisado (4.43:1): en el nav estrecho se reduce para no chocar con
     el toggle + botón y que el max-width global no lo deforme. */
  .brand-logo { height: 42px; }
  .hero-grid, .split, .sim { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .feature-grid, .steps, .quotes, .shots-row, .shots-steps, .trust-items { grid-template-columns: 1fr; }
  .compare, .plans { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .sim-result { padding: 26px; }
}
@media (max-width: 520px) {
  /* En móvil la barra solo tiene sitio para un botón: dejamos "Entrar" (para
     quien vuelve) y ocultamos "Empezar gratis" — el hero y el resto de la
     página ya tienen CTAs de alta de sobra. */
  .nav-actions .btn-primary { display: none; }
  .brand-logo { height: 30px; }
  .trust-items { grid-template-columns: 1fr 1fr; }
  /* CTAs de texto largo: full-width y que el texto pueda envolver, sin desbordar */
  .hero-cta { width: 100%; }
  .hero-cta .btn, .cta-final .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
}

/* ---- Escalón PORTÁTIL (13–15", 1080p escalado) ----
   Entre tablet (≤860) y monitor grande (≥1601) faltaba un tier intermedio.
   En portátiles 1280–1536px de ancho útil y ~720px de alto, el hero quedaba
   sobredimensionado y los CTA caían por debajo del fold. Aquí compactamos
   tipografía y ritmo vertical sin tocar el diseño de escritorio grande. */
@media (min-width: 861px) and (max-width: 1600px) {
  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: clamp(32px, 3.4vw, 42px); }
  .pill { margin-bottom: 12px; }
  .hero-sub { font-size: clamp(15px, 1.4vw, 17px); margin: 14px 0 22px; }
  .hero-trust { margin-top: 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .cta-final { padding: 60px 0; }
  .trust-items { padding: 22px; }
}
/* Pantallas de poca altura (≤780px): recorta aún más el alto del hero para
   garantizar que titular + subtítulo + CTA entren en el fold. */
@media (min-width: 861px) and (max-height: 780px) {
  .hero { padding: 28px 0 32px; }
  .hero h1 { font-size: clamp(30px, 3.1vw, 38px); }
  .hero-sub { margin: 12px 0 18px; }
  .hero::before { height: 460px; }
}

/* ---- Accesibilidad: respeta reduce-motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   POLISH v2 — marco de navegador, glow y gloss (nivel Antigravity)
   ============================================================ */

/* Marco de navegador alrededor de capturas/vídeo */
.mock {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
}
.mock:hover { transform: translateY(-4px); }
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(127,140,160,.12), rgba(127,140,160,.04));
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-url {
  margin-left: 12px; font-size: 12px; color: var(--text-soft);
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px 14px; border-radius: 999px; flex: 1; max-width: 320px;
}
.mock .hero-video, .mock .shot {
  border: none; border-radius: 0; box-shadow: none; display: block; width: 100%; cursor: default;
}
.mock .shot { cursor: zoom-in; }
.mock-sm .mock-bar { padding: 7px 11px; }
.mock-sm .mock-dot { width: 8px; height: 8px; }

/* Glow verde ambiental alrededor de los mockups destacados */
.mock-glow { position: relative; }
.mock-glow::before {
  content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 30px;
  background: radial-gradient(60% 60% at 60% 30%, rgba(22,199,132,.35), transparent 70%);
  filter: blur(20px); opacity: .9;
}

/* Hero: glow más marcado + textura de puntos */
.hero::before {
  inset: -30% -10% auto -10%; height: 720px;
  background:
    radial-gradient(55% 55% at 72% 0%, rgba(22,199,132,.28), transparent 70%),
    radial-gradient(45% 45% at 15% 5%, rgba(20,103,139,.22), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 80%);
          mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 80%);
}

/* Cards de características: borde superior verde al hover + gloss */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-ico { box-shadow: inset 0 0 0 1px rgba(22,199,132,.25); }

/* Plan PRO: glow verde más premium */
.plan-pro { background: linear-gradient(180deg, rgba(22,199,132,.06), transparent 40%), var(--bg-card); }
.plan-pro::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: var(--radius);
  background: radial-gradient(60% 50% at 50% 0%, rgba(22,199,132,.4), transparent 70%); filter: blur(14px);
}

/* Simulador: glow en el panel de resultado */
.sim-result { position: relative; }
.sim-total { text-shadow: 0 4px 24px rgba(0,0,0,.18); }

/* Botón primario: glow sutil pulsante en hover ya existe; reforzamos foco */
.btn-primary:focus-visible, .btn-outline:focus-visible { outline: 3px solid rgba(22,199,132,.5); outline-offset: 2px; }

/* ============================================================
   WOW v3 — degradado de texto, fondo aurora y mockup 3D inclinado
   ============================================================ */

/* (1) Texto con degradado animado */
.grad-text {
  background: linear-gradient(100deg, #16C784 0%, #1FB6A6 35%, #14678B 70%, #16C784 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* (2) Fondo aurora iluminado — capa fija que ilumina toda la web */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 35% at 78% 8%,  rgba(22,199,132,.30), transparent 70%),
    radial-gradient(38% 32% at 12% 4%,  rgba(31,182,166,.22), transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgba(20,103,139,.18), transparent 70%);
  filter: blur(10px);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
[data-theme="light"] body::before { opacity: .55; }
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.04); }
}

/* refuerza el glow del hero por encima de la aurora */
.hero::before { height: 760px; }

/* (3) Mockup del hero inclinado en 3D + flotación */
.hero-media { perspective: 1600px; perspective-origin: 60% 40%; }
.hero-media .mock {
  transform: rotateY(-16deg) rotateX(6deg) rotate(1deg);
  transform-style: preserve-3d;
  box-shadow: -30px 40px 80px rgba(0,0,0,.35), 0 0 0 1px var(--border);
  animation: floaty 7s ease-in-out infinite;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero-media .mock:hover {
  transform: rotateY(-6deg) rotateX(2deg) rotate(0deg) translateY(-4px);
}
.hero-media .mock-glow::before { inset: -60px; filter: blur(28px); opacity: 1; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* En móvil, sin inclinación (mejor legibilidad) */
@media (max-width: 860px) {
  .hero-media .mock { transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grad-text { animation: none; }
  body::before { animation: none; }
  .hero-media .mock { animation: none; transform: rotateY(-10deg) rotateX(4deg); }
}

/* ============================================================
   TOUR v4 — ventana hero más grande + recorrido animado (Ken Burns)
   ============================================================ */

/* Hero más grande: damos más ancho a la columna del media y lo desbordamos */
@media (min-width: 861px) {
  .hero-grid { grid-template-columns: .92fr 1.18fr; gap: 40px; }
  .hero-media .mock-hero { width: 100%; }           /* entera, sin cortarse por la derecha (antes 132% desbordaba/cortaba) */
}
/* En pantallas grandes (torre/monitor) hay margen de sobra: la captura luce más
   grande (124%) sin llegar a cortarse. En portátil (≤1600) se queda al 100%. */
@media (min-width: 1601px) {
  .hero-media .mock-hero { width: 124%; }
}

/* Contenedor del tour: relación de aspecto de la app */
.tour { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elev); cursor: pointer; }
/* Cada captura entra como en la app: slide-up + fade (igual que el reveal de
   secciones). La saliente se oculta al instante para no solaparse (sin ghosting). */
.tour-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transform: translateY(16px) scale(.995);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
}
.tour-img.is-active { opacity: 1; transform: translateY(0) scale(1); }
.tour-img.leaving { opacity: 0; transform: none; transition: none; }
.tour-caption {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(8,12,18,.66); color: #fff; backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.14);
}
.tour-live { color: #16C784; font-size: 10px; letter-spacing: .04em; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.tour-dots { position: absolute; right: 14px; bottom: 16px; z-index: 3; display: flex; gap: 6px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: .3s; cursor: pointer; }
.tour-dots span.on { background: #16C784; width: 20px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .tour-img.is-active { animation: none; }
  .tour-live { animation: none; }
}

/* ============================================================
   BUILDER v5 — demo standalone del "presupuesto libre"
   ============================================================ */
.builder { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.builder-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; }
.builder-side-title { font-size: 16px; margin-bottom: 14px; color: var(--green); }
.catalog { display: grid; gap: 16px; max-height: 540px; overflow-y: auto; padding-right: 4px; }
.cat-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: 8px; }
.cat-item {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 7px; cursor: pointer; transition: .15s; color: var(--text); font: inherit;
}
.cat-item:hover { border-color: var(--green); transform: translateX(3px); }
.cat-item .ci-name { flex: 1; font-size: 14px; font-weight: 500; }
.cat-item .ci-price { font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.cat-item .ci-add { width: 24px; height: 24px; border-radius: 50%; background: rgba(22,199,132,.14); color: var(--green); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.cat-item.pack { background: linear-gradient(180deg, rgba(22,199,132,.10), transparent); border-color: rgba(22,199,132,.35); }

/* Documento (estilo PDF) */
.builder-main { display: grid; gap: 16px; }
.doc { background: #fff; color: #16202b; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 28px; min-height: 360px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--green); padding-bottom: 14px; margin-bottom: 4px; }
.doc-title strong { font-family: var(--font-display); font-size: 24px; display: block; color: #16202b; }
.doc-title span { font-size: 12px; color: #6b7886; }
.doc-brand { text-align: right; font-family: var(--font-display); font-weight: 800; color: var(--green); line-height: 1.1; }
.doc-brand small { color: #6b7886; font-weight: 600; }
.doc-empty { text-align: center; color: #8593a1; padding: 70px 20px; font-size: 15px; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.doc-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8593a1; text-align: left; padding: 8px 6px; border-bottom: 1px solid #e7ebf0; }
.doc-table td { padding: 9px 6px; border-bottom: 1px solid #f0f3f6; font-size: 14px; color: #2a3744; }
.ta-c { text-align: center; } .ta-r { text-align: right; }
.doc-qty { display: inline-flex; align-items: center; gap: 6px; }
.doc-qty button { width: 20px; height: 20px; border-radius: 6px; border: 1px solid #d8dee5; background: #f6f8fa; cursor: pointer; color: #2a3744; line-height: 1; }
.doc-del { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 16px; opacity: .55; }
.doc-del:hover { opacity: 1; }
.doc-totals { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; gap: 20px; flex-wrap: wrap; }
.doc-iva { display: grid; gap: 6px; }
.doc-iva > span { font-size: 12px; color: #6b7886; }
.seg-sm button { font-size: 12px; padding: 7px 12px; color: #6b7886; }
.seg-sm { background: #eef2f6; }
.seg-sm button.active { background: var(--green); color: #04130c; }
.doc-sums { min-width: 240px; display: grid; gap: 6px; }
.doc-sums > div { display: flex; justify-content: space-between; font-size: 14px; color: #2a3744; }
.doc-grand { border-top: 2px solid #16202b; padding-top: 8px; margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #16202b !important; }
.doc-grand span:last-child { color: var(--green-dark); }
.builder-cta { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.builder-cta p { color: var(--text-soft); font-size: 14px; margin: 0; flex: 1; min-width: 220px; }

@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .builder-side { position: static; max-height: none; }
  .catalog { max-height: 300px; }
}

/* ============================================================
   BUILDER EMBED v9 — iframe del constructor real de la app
   ============================================================ */
.builder-embed { display: grid; gap: 16px; }
.builder-embed .mock { width: 100%; }
/* Etiqueta potente sobre el iframe del constructor */
.builder-label { text-align: center; margin-bottom: 2px; }
.builder-label .pill { margin-bottom: 8px; font-size: 14px; }
.builder-label p { margin: 0; color: var(--text-soft); font-size: 16px; }
.pill-live::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 8px; height: 8px; border-radius: 50%; margin-right: 8px;
  background: var(--green); box-shadow: 0 0 0 0 rgba(22,199,132,.6);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,199,132,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(22,199,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,199,132,0); }
}
#constructorFrame {
  width: 100%; height: 78vh; min-height: 620px; max-height: 900px;
  border: 0; display: block; background: var(--bg-elev);
}
@media (max-width: 860px) { #constructorFrame { height: 88vh; min-height: 560px; } }

/* ============================================================
   EMBED v10 — ventana del constructor más grande y ancha
   ============================================================ */
#simulador .container { max-width: 1400px; }   /* más ancho para las 3 columnas */
#constructorFrame {
  height: 90vh; min-height: 780px; max-height: 1040px;   /* ~+30% más manejable */
}
/* Al pulsar "Ver ejemplo / Demo interactiva" se salta aquí: el iframe queda
   arriba (la barra fija no lo tapa) y se ve app, no texto. */
#probar { scroll-margin-top: 88px; }
/* Sección demo más compacta: menos aire antes del constructor */
#simulador { padding-top: 48px; }
#simulador .section-head { margin-bottom: 24px; }
#simulador .lead { font-size: 16px; margin-top: 10px; }
@media (max-width: 860px) { #constructorFrame { height: 90vh; min-height: 580px; } }
