/* =====================================================================
   MALLVERSE S.A.S. — HOJA DE ESTILOS
   Índice:
   1. Variables (colores, tamaños) ← edita aquí la identidad visual
   2. Reset y base
   3. Utilidades y botones
   4. Encabezado y menú
   5. Hero y mockup del teléfono
   6. Secciones: pasos, beneficios, planes
   7. Formulario
   8. Pie de página y modal
   9. Animaciones
   10. Responsive
   ===================================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --azul-oscuro: #0F172A;
  --turquesa: #06B6D4;
  --turquesa-oscuro: #0891B2;
  --blanco: #FFFFFF;
  --gris-claro: #F8FAFC;
  --gris-oscuro: #475569;
  --borde: #E2E8F0;
  --error: #DC2626;
  --exito: #059669;

  --radio: 16px;
  --radio-sm: 10px;
  --sombra: 0 10px 30px rgba(15, 23, 42, .08);
  --sombra-lg: 0 25px 60px rgba(15, 23, 42, .18);
  --altura-menu: 72px;
  --fuente: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- 2. RESET Y BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--altura-menu); }
body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--gris-oscuro);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--azul-oscuro); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--turquesa-oscuro); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.text-accent { color: var(--turquesa); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--azul-oscuro); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. BOTONES Y UTILIDADES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--fuente); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--turquesa); color: var(--azul-oscuro); box-shadow: 0 8px 22px rgba(6, 182, 212, .35); }
.btn--primary:hover { background: #22D3EE; box-shadow: 0 12px 28px rgba(6, 182, 212, .5); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--outline { color: var(--azul-oscuro); border-color: var(--azul-oscuro); background: transparent; }
.btn--outline:hover { background: var(--azul-oscuro); color: #fff; }
.btn--sm { padding: 9px 20px; font-size: .92rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--turquesa-oscuro); background: rgba(6, 182, 212, .12); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow--light { color: var(--turquesa); background: rgba(6, 182, 212, .15); }

.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--turquesa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list--sm li { margin-bottom: 9px; font-size: .96rem; }
.check-list--light li { color: #CBD5E1; }

.note { font-size: .85rem; text-align: center; margin: 28px 0 0; color: var(--gris-oscuro); opacity: .85; }

/* ---------- 4. ENCABEZADO Y MENÚ ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--altura-menu);
  background: rgba(15, 23, 42, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(15, 23, 42, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.logo span:last-child { color: var(--turquesa); }
.logo__icon {
  display: block; width: 38px; height: 38px; object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 6px; }
.nav__link { color: #CBD5E1; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .08); }

/* Botón hamburguesa */
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: #CBD5E1;
  padding: calc(var(--altura-menu) + 70px) 0 90px;
  background: var(--azul-oscuro);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(6, 182, 212, .28), transparent 70%),
    radial-gradient(500px 400px at 5% 90%, rgba(6, 182, 212, .14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; }
.hero__slogan {
  display: inline-block; font-weight: 700; color: var(--turquesa); letter-spacing: .04em;
  border: 1px solid rgba(6, 182, 212, .4); padding: 6px 16px; border-radius: 999px; margin-bottom: 22px; font-size: .95rem;
}
.hero__text { font-size: 1.15rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font: 700 1rem/1.15 var(--fuente); text-align: left; cursor: not-allowed; opacity: .85;
}
.store-btn small { display: block; font-size: .72rem; font-weight: 600; color: var(--turquesa); text-transform: uppercase; letter-spacing: .08em; }

/* Mockup del teléfono */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 18.5; padding: 11px; border-radius: 44px;
  background: linear-gradient(145deg, #1E293B, #020617); box-shadow: var(--sombra-lg), 0 0 0 2px #334155 inset, 0 0 80px rgba(6, 182, 212, .25);
  animation: flotar 6s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #020617; border-radius: 14px; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #E8EEF5; }

.app-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 48px 14px 10px; background: linear-gradient(#fff 80%, rgba(255, 255, 255, 0)); }
.app-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 12px;
  font-size: .82rem; font-weight: 600; color: var(--azul-oscuro); box-shadow: 0 4px 14px rgba(15, 23, 42, .12); border: 1px solid var(--borde);
}
.app-search svg { color: var(--turquesa-oscuro); }
.app-chips { display: flex; gap: 6px; margin-top: 9px; }
.chip { font-size: .68rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--borde); color: var(--gris-oscuro); }
.chip--on { background: var(--azul-oscuro); color: #fff; border-color: var(--azul-oscuro); }

.app-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { stroke-dasharray: 600; stroke-dashoffset: 600; animation: trazar 4s ease-in-out infinite; }
.pulse { transform-origin: 48px 214px; animation: pulso 2s ease-out infinite; }

.app-card {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 11px;
  background: var(--azul-oscuro); color: #fff; padding: 12px 14px; border-radius: 16px; box-shadow: 0 12px 28px rgba(15, 23, 42, .4);
}
.app-card__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--turquesa); color: var(--azul-oscuro); flex: none; }
.app-card strong { display: block; font-size: .86rem; line-height: 1.2; }
.app-card span { font-size: .72rem; color: #94A3B8; }
.app-card__eta { margin-left: auto; font-size: .8rem; font-weight: 800; color: var(--turquesa); }

.float-card {
  position: absolute; background: #fff; color: var(--azul-oscuro); font-size: .85rem; font-weight: 700;
  padding: 10px 16px; border-radius: 14px; box-shadow: var(--sombra-lg); display: flex; align-items: center; gap: 8px;
}
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--turquesa); box-shadow: 0 0 0 4px rgba(6, 182, 212, .25); }
.float-card--a { top: 14%; left: -2%; animation: flotar 5s ease-in-out infinite .5s; }
.float-card--b { bottom: 16%; right: -2%; animation: flotar 5.5s ease-in-out infinite 1s; }

/* ---------- 6. SECCIONES ---------- */
.section { padding: 100px 0; }
.section--light { background: var(--gris-claro); }
.section--dark { background: var(--azul-oscuro); color: #CBD5E1; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { font-size: 1.1rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: paso; }
.step {
  position: relative; background: #fff; padding: 34px 26px 28px; border-radius: var(--radio); border: 1px solid var(--borde);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--sombra); border-color: var(--turquesa); }
.step__num {
  position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--azul-oscuro); color: var(--turquesa); font-weight: 800; display: grid; place-items: center; border: 3px solid var(--gris-claro);
}
.step__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(6, 182, 212, .12); color: var(--turquesa-oscuro); margin-bottom: 18px; }
.step h3 { margin-bottom: 14px; }
.step p { margin: 14px 0 0; font-size: .97rem; }
.step__visual {
  height: 190px; overflow: hidden; border: 1px solid var(--borde); border-radius: 16px;
  background: #edf3f8; position: relative;
}
.step__visual--search { padding: 18px 14px; }
.step-search {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px;
  background: #fff; color: var(--gris-oscuro); font-size: .72rem; box-shadow: 0 5px 14px rgba(15,23,42,.08);
}
.step-search svg { color: var(--turquesa-oscuro); }
.step-categories { display: flex; gap: 6px; margin: 10px 0 9px; }
.step-categories span { flex: 1; text-align: center; padding: 6px 4px; border-radius: 999px; background: #fff; color: var(--azul-oscuro); font-size: .58rem; font-weight: 700; }
.step-categories span:first-child { background: var(--azul-oscuro); color: #fff; }
.step-result {
  min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
  background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.step-result img { width: 34px; height: 34px; object-fit: contain; }
.step-result div { flex: 1; }
.step-result strong, .step-result small { display: block; }
.step-result strong { font-size: .78rem; color: var(--azul-oscuro); }
.step-result small { font-size: .64rem; }
.step-result > span { color: var(--turquesa-oscuro); font-size: .68rem; font-weight: 800; }

.step__visual--location { background: #dfeaf5; }
.step-floor {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 9px; border-radius: 999px;
  background: #fff; color: var(--azul-oscuro); font-size: .62rem; font-weight: 800; box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.step-map { position: absolute; inset: 24px 12px 14px; background: #eef4f8; border: 1px solid #b9cada; overflow: hidden; }
.step-store { position: absolute; border: 1px solid #b9cada; background: #cad9e8; }
.step-store--a { left: 8%; top: 8%; width: 36%; height: 30%; }
.step-store--b { right: 8%; top: 8%; width: 28%; height: 30%; }
.step-store--c { left: 8%; bottom: 8%; width: 28%; height: 30%; }
.step-store--d { right: 8%; bottom: 8%; width: 38%; height: 30%; }
.step-location-pin {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  border: 4px solid #fff; border-radius: 50%; background: #1565D8;
  box-shadow: 0 0 0 8px rgba(21,101,216,.16), 0 4px 12px rgba(15,23,42,.24);
}
.step-location-label {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 5px 8px; border-radius: 7px;
  background: var(--azul-oscuro); color: #fff; font-size: .58rem; font-weight: 700; white-space: nowrap;
}

.step__visual--route { background: #dfeaf5; padding: 12px; }
.step-route-map { position: relative; height: 112px; border: 1px solid #c0cfdd; border-radius: 12px; background: #edf3f8; overflow: hidden; }
.step-route-corridor {
  position: absolute; width: 240%; height: 22px; left: -70%; top: 46%; transform: rotate(-12deg);
  background: #fff; border-top: 1px solid #d0dce7; border-bottom: 1px solid #d0dce7;
}
.step-route-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.step-direction {
  height: 48px; display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 7px 10px;
  border-radius: 12px; background: var(--azul-oscuro); color: #fff;
}
.step-direction > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--turquesa); color: var(--azul-oscuro); font-size: 1.2rem; font-weight: 900; }
.step-direction strong, .step-direction small { display: block; }
.step-direction strong { font-size: .68rem; }
.step-direction small { color: #b9cbe0; font-size: .58rem; }

.step__visual--arrive { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #fff 0, #edf3f8 55%, #dfeaf5 100%); color: var(--azul-oscuro); }
.step-arrival-ring {
  width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 10px; border: 7px solid rgba(25,198,234,.18);
  border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.12);
}
.step-arrival-ring img { width: 52px; height: 52px; object-fit: contain; }
.step__visual--arrive > strong { font-size: .78rem; }
.step-arrival-meta { display: flex; gap: 6px; margin-top: 8px; }
.step-arrival-meta span { padding: 5px 8px; border-radius: 999px; background: #fff; font-size: .58rem; font-weight: 800; }

/* Beneficios */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.benefit-card {
  padding: 40px; border-radius: 22px; background: var(--gris-claro); border: 1px solid var(--borde);
  transition: transform .3s ease, box-shadow .3s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.benefit-card--dark { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: #CBD5E1; }
.benefit-card--dark h3 { color: #fff; }
.benefit-card h3 { font-size: 1.6rem; margin-bottom: 22px; }
.benefit-card__tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--turquesa-oscuro); margin-bottom: 12px; }
.benefit-card--dark .benefit-card__tag { color: var(--turquesa); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radio); background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra); }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--azul-oscuro); line-height: 1.1; }
.stat span { font-size: .93rem; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde);
  border-radius: 22px; padding: 38px 30px 32px; transition: transform .3s ease, box-shadow .3s ease;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--sombra-lg); }
.plan__desc { font-size: .95rem; min-height: 3.2em; }
.plan__price { margin: 6px 0 22px; }
.plan__amount { font-size: 2.5rem; font-weight: 800; color: var(--azul-oscuro); letter-spacing: -.03em; }
.plan__period { font-size: .92rem; font-weight: 600; }
.plan .check-list { flex: 1; margin-bottom: 26px; }
.plan--featured {
  background: var(--azul-oscuro); color: #CBD5E1; border-color: var(--turquesa); transform: scale(1.04);
  box-shadow: 0 25px 60px rgba(6, 182, 212, .25);
}
.plan--featured:hover { transform: scale(1.04) translateY(-8px); }
.plan--featured h3, .plan--featured .plan__amount { color: #fff; }
.plan__badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--turquesa); color: var(--azul-oscuro); font-size: .8rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 7px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(6, 182, 212, .45);
}

/* ---------- 7. FORMULARIO ---------- */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.demo__info h2 { color: #fff; }
.demo__info p { font-size: 1.08rem; }
.form { background: #fff; color: var(--gris-oscuro); padding: 36px; border-radius: 22px; box-shadow: var(--sombra-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--azul-oscuro); margin-bottom: 6px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: 400 1rem var(--fuente); color: var(--azul-oscuro);
  background: var(--gris-claro); border: 1.5px solid var(--borde); border-radius: var(--radio-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turquesa); background: #fff; box-shadow: 0 0 0 4px rgba(6, 182, 212, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #FEF2F2; }
.field__error { display: block; min-height: 0; color: var(--error); font-size: .8rem; font-weight: 600; margin-top: 5px; }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--turquesa-oscuro); }
.field--check label { margin: 0; font-weight: 400; font-size: .88rem; }
.field--check .field__error { grid-column: 2; }
.form__success { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radio-sm); background: #ECFDF5; color: var(--exito); font-weight: 600; text-align: center; }

/* ---------- 8. PIE DE PÁGINA Y MODAL ---------- */
.footer { background: #020617; color: #94A3B8; padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0; }
.footer__list li { margin-bottom: 10px; }
.footer a { color: #94A3B8; transition: color .2s; }
.footer a:hover { color: var(--turquesa); }
.footer__legal { font-size: .88rem; }
.logo--light { margin-bottom: 14px; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--turquesa); color: var(--azul-oscuro); transform: translateY(-3px); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer__bottom p { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #94A3B8; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--turquesa); }

.modal { border: 0; padding: 0; border-radius: 22px; width: min(560px, calc(100% - 32px)); box-shadow: var(--sombra-lg); }
.modal::backdrop { background: rgba(2, 6, 23, .72); backdrop-filter: blur(3px); }
.modal__box { position: relative; padding: 38px 34px 30px; color: var(--gris-oscuro); }
.modal__box h2 { font-size: 1.6rem; }
.modal__box .btn { margin-top: 8px; }
.modal__close { position: absolute; top: 12px; right: 16px; font-size: 2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--gris-oscuro); }
.modal__close:hover { color: var(--azul-oscuro); }

/* ---------- 9. ANIMACIONES ---------- */
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes trazar { 0% { stroke-dashoffset: 600; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pulso { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2); opacity: 0; } }

/* Aparición al hacer scroll (la clase .is-visible la añade main.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .plans .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4) { transition-delay: .3s; }
/* El plan destacado conserva su escala cuando ya es visible */
.plan--featured.reveal.is-visible { transform: scale(1.04); }
.plan--featured.reveal.is-visible:hover { transform: scale(1.04) translateY(-8px); }
.plan.reveal.is-visible { transition: transform .3s ease, box-shadow .3s ease; }

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .route { stroke-dashoffset: 0; }
}

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { margin-inline: auto; }
  .hero__actions, .stores { justify-content: center; }
  .hero__visual { margin-top: 20px; }
  .benefits, .demo { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; row-gap: 34px; }
  .plan--featured, .plan--featured.reveal.is-visible { transform: none; }
  .plan--featured:hover, .plan--featured.reveal.is-visible:hover { transform: translateY(-8px); }
  .plan__desc { min-height: 0; }
}

/* Menú móvil: panel desplegable bajo el encabezado */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--altura-menu); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 20px; background: rgba(15, 23, 42, .98); border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { display: block; padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav__cta { width: 100%; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .steps, .stats, .form__row { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .benefit-card { padding: 30px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .hero { padding-top: calc(var(--altura-menu) + 40px); }
  .phone { width: 250px; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
  .btn--lg { width: 100%; }
}
