/* ==========================================================================
   GoLoop Digital · inicio
   Dirección visual en DESIGN.md: una idea por pantalla, el celular es el
   protagonista y una sola cosa flotando (WhatsApp). Solo la usa el inicio;
   las demás páginas siguen con styles.css.
   ========================================================================== */
:root {
  --ink: #0B0B0C;
  --ink-2: #151517;
  --ink-3: #222226;
  --accent: #FFD84D;
  --accent-soft: #FFF3C2;
  --bone: #F5F4F0;
  --paper: #FFFFFF;
  --mute: #5C5C63;
  --mute-d: #A3A3A8;
  --line: rgba(11, 11, 12, .10);
  --line-d: rgba(255, 255, 255, .14);
  --wa: #25D366;
  --device: #111113;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: 600 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.btn--y { background: var(--accent); color: var(--ink); }
.btn--y:hover { box-shadow: 0 0 0 5px rgba(255, 216, 77, .28); }
.btn--k { background: var(--ink); color: var(--paper); }
.btn--k:hover { box-shadow: 0 0 0 5px rgba(11, 11, 12, .12); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(11, 11, 12, .08); }
.btn--full { width: 100%; }
.tlink { color: inherit; font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.plink { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Encabezado (no es fijo) ---------- */
.header { position: relative; z-index: 30; background: var(--ink); color: var(--paper); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand__txt { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand__txt b { font-weight: 700; box-shadow: inset 0 -5px 0 var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .86; }
.nav a:hover { opacity: 1; }
.nav .nav__cta { background: var(--paper); color: var(--ink); opacity: 1; border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.header__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; border: 1px solid var(--line-d); border-radius: 999px; padding: 0 12px; color: var(--mute-d); text-decoration: none; font-size: 13px; font-weight: 600; }
.lang .on { color: var(--paper); }
.lang i { font-style: normal; opacity: .5; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--paper); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; }
@media (max-width: 899px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 6px var(--gut-r) 22px var(--gut); border-top: 1px solid var(--line-d); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-d); font-size: 18px; opacity: 1; }
  .nav .nav__cta { margin-top: 16px; text-align: center; border-bottom: 0; padding: 14px 16px; }
  .burger { display: block; }
  .header__tools { margin-left: auto; }
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero__in { position: relative; z-index: 2; display: grid; gap: 4px; padding-block: 26px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mute-d); }
.hero h1 { font-size: clamp(42px, 11.2vw, 78px); line-height: 1.01; font-weight: 700; letter-spacing: -.04em; margin-top: 12px; text-wrap: balance; }
.hl { color: var(--accent); white-space: nowrap; }
.hero__sub { font-size: clamp(22px, 5.8vw, 32px); font-weight: 600; letter-spacing: -.025em; color: var(--mute-d); margin-top: 12px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: var(--mute-d); }
.stage { position: relative; height: 500px; display: grid; place-items: center; perspective: 1100px; margin-top: 6px; }
canvas.spark { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.dev-wrap { position: relative; }
@media (prefers-reduced-motion: no-preference) { .hero .dev-wrap { animation: drift 7s ease-in-out infinite; } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

/* ---------- Celular ---------- */
.device { position: relative; width: 228px; aspect-ratio: 9 / 19.5; max-width: 100%; border-radius: 40px; background: var(--device); padding: 8px; box-shadow: 0 0 0 1.5px #2A2A2E, 0 40px 80px -30px rgba(0, 0, 0, .65), 0 18px 40px -20px rgba(0, 0, 0, .45); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sec--paper .device, .sec--bone .device { box-shadow: 0 0 0 1.5px #2A2A2E, 0 34px 70px -34px rgba(11, 11, 12, .55); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.screen video, .screen .reel-img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* iOS no debe dibujar su botón de play encima: el video corre solo y tiene su propia pausa */
#reel::-webkit-media-controls, #reel::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.vt { position: absolute; left: 12px; bottom: 14px; z-index: 6; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 11, 12, .58); color: var(--paper); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vt::after { content: ""; position: absolute; inset: -5px; } /* zona que se toca de 44 px sin agrandar el botón */
.vt svg { width: 14px; height: 14px; fill: currentColor; }
.vt .vt__play, .vt.is-paused .vt__pause { display: none; }
.vt.is-paused .vt__play { display: block; }
.island { position: absolute; top: 9px; left: 50%; width: 31%; height: 19px; margin-left: -15.5%; background: #000; border-radius: 12px; z-index: 5; }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 14px; padding: 9px 12px 9px 9px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.chip i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.chip svg { width: 15px; height: 15px; fill: currentColor; }
.chip--wa i { background: var(--wa); color: var(--ink); }
.c1 { left: 0; top: 13%; }
.c2 { right: 0; top: 30%; }
.c3 { left: 2%; bottom: 24%; }
.c4 { right: 3%; bottom: 9%; }

/* ---------- Secciones ---------- */
.sec { padding-block: 72px 76px; }
.sec--paper { background: var(--paper); }
.sec--bone { background: var(--bone); }
.sec--ink { background: var(--ink); color: var(--paper); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.sec--ink .kicker { color: var(--mute-d); }
.h2 { font-size: clamp(34px, 8.6vw, 58px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; margin-top: 10px; text-wrap: balance; }
.lead { font-size: clamp(17px, 4.4vw, 20px); line-height: 1.45; color: var(--mute); margin-top: 14px; max-width: 40ch; }
.sec--ink .lead { color: var(--mute-d); }
.more { margin-top: 24px; font-size: 16px; color: var(--mute); }
.note { font-size: 13px; color: var(--mute); }

/* ---------- Pruébalo con tu negocio ---------- */
/* Celular: el campo va justo bajo el título y antes del celular, para ver el nombre aparecer mientras se escribe
   (con el teclado abierto). "¿Qué haces?" va después del celular. */
.try { display: grid; gap: 22px; grid-template-areas: "head" "form" "phone" "kind" "go"; }
.try__head { grid-area: head; }
.try__phone { grid-area: phone; display: grid; justify-items: center; gap: 10px; scroll-margin-top: 12px; }
.try__form { grid-area: form; display: grid; gap: 8px; scroll-margin-top: 12px; }
.try__kind { grid-area: kind; display: grid; gap: 10px; }
.try__go { grid-area: go; display: grid; gap: 10px; justify-items: start; }
.try__form label, .try__lab { font-size: 15px; font-weight: 600; color: var(--ink); }
/* Que se vea que es para escribir: borde fuerte, lápiz y el ejemplo en gris claro (no parece ya lleno) */
.try__form input { width: 100%; min-height: 60px; border-radius: 16px; border: 2px solid var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230B0B0C' d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") no-repeat 18px 50% / 20px 20px; padding: 0 18px 0 50px; font: 600 19px var(--font); color: var(--ink); letter-spacing: -.01em; box-shadow: 0 10px 24px -18px rgba(11, 11, 12, .45); }
.try__form input::placeholder { color: #A3A3A8; font-weight: 400; opacity: 1; }
.try__form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 216, 77, .55); }
.fine { font-size: 13.5px; color: var(--mute); max-width: 44ch; }
/* Elegir el diseño (también se puede deslizar el teléfono de muestra) */
.estilos { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bone); }
.estilos__lab { padding: 0 6px 0 10px; font-size: 13px; font-weight: 600; color: var(--mute); }
.estilos button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 600 14.5px var(--font); color: var(--ink); cursor: pointer; }
.estilos button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 380px) { .estilos__lab { display: none; } .estilos button { padding: 0 11px; } }
.try__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.crop { position: relative; width: 100%; display: grid; justify-items: center; }
@media (max-width: 899px) {
  .try__phone .crop { max-height: 430px; overflow: hidden; }
  .try__phone .crop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(255, 255, 255, 0), var(--paper)); }
}

/* Filtros y rubros */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: 600 15px var(--font); color: var(--ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Página de ejemplo dentro del celular (sus colores son del rubro, no nuestros) */
.site { --rb: #4A2C20; --rb2: #C9516C; --bt: #FFFFFF; position: absolute; inset: 0; background: var(--paper); color: #1A1A1A; display: flex; flex-direction: column; font-family: var(--font); }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 0; font-size: 12px; font-weight: 600; height: 38px; }
.sb i { width: 34px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #1A1A1A 70%, #C9C9CE 70%); }
.url { margin: 4px 14px 0; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 500; background: #F1F1F3; border-radius: 9px; padding: 5px 8px; color: #3A3A40; white-space: nowrap; overflow: hidden; }
.url svg { width: 10px; height: 10px; fill: #3A3A40; flex: none; }
.url span { overflow: hidden; text-overflow: ellipsis; }
.s-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.s-logo { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--rb); color: #FFFFFF; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.s-head b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s-hero { position: relative; height: 40%; flex: none; overflow: hidden; background: var(--rb); }
.s-hero img { width: 100%; height: 100%; object-fit: cover; }
.s-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .72)); }
.s-hero-t { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; color: #FFFFFF; }
.s-kick { display: inline-block; font-size: 9.5px; font-weight: 600; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: 3px 7px; margin-bottom: 6px; }
.s-h { font-family: var(--serif); font-size: 19px; line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }
.s-btns { display: grid; gap: 6px; padding: 11px 12px 0; }
.s-b { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 31px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.s-b svg { width: 12px; height: 12px; fill: currentColor; }
.s-b1 { background: var(--rb2); color: var(--bt); }
.s-b1:not(.s-b1--tel) svg { display: none; }
.s-wa { background: var(--wa); color: var(--ink); }
.s-b3 { box-shadow: inset 0 0 0 1.5px var(--rb); color: var(--rb); }
.s-feat { display: grid; gap: 3px; padding: 10px 14px 0; font-size: 10.5px; color: #4A4A50; }
.s-feat li::before { content: "✓ "; color: var(--rb); font-weight: 700; }
.s-foot { margin-top: auto; padding: 8px 14px 14px; font-size: 9.5px; color: #7A7A80; }

/* Los 3 diseños de la página de ejemplo (site--1 es el de arriba: foto con el texto encima) */
/* Diseño 2 · Moderno: fondo claro, titular grande primero, foto en tarjeta redondeada, botones en dos columnas */
.site--2 { background: #F6F4EF; }
.site--2 .s-head { justify-content: center; padding: 10px 14px 6px; }
.site--2 .s-logo { border-radius: 50%; }
.site--2 .s-hero { height: auto; display: flex; flex-direction: column-reverse; gap: 10px; padding: 2px 12px 0; background: none; overflow: visible; }
.site--2 .s-hero::after { content: none; }
.site--2 .s-hero img { height: 112px; border-radius: 16px; }
.site--2 .s-hero-t { position: static; color: #121212; }
.site--2 .s-kick { background: var(--rb); color: #FFFFFF; border: 0; }
.site--2 .s-h { font-family: var(--font); font-size: 21px; font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.site--2 .s-btns { grid-template-columns: 1fr 1fr; padding-top: 10px; }
.site--2 .s-b3 { grid-column: 1 / -1; }
.site--2 .s-b { white-space: nowrap; }
.site--2 .s-btns--col { grid-template-columns: 1fr; } /* cuando el texto del botón no cabe al lado de WhatsApp (main.js lo mide) */
/* Diseño 3 · Llamativo: todo del color del negocio, foto en arco y titular grande en mayúsculas, centrado */
.site--3 { background: var(--rb); color: #FFFFFF; }
.site--3 .sb { color: #FFFFFF; }
.site--3 .sb i { background: linear-gradient(90deg, #FFFFFF 70%, rgba(255, 255, 255, .35) 70%); }
.site--3 .url { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.site--3 .url svg { fill: #FFFFFF; }
.site--3 .s-logo { background: #FFFFFF; color: var(--rb); }
.site--3 .s-hero { height: auto; display: flex; flex-direction: column; gap: 9px; padding: 2px 14px 0; background: none; overflow: visible; text-align: center; }
.site--3 .s-hero::after { content: none; }
.site--3 .s-hero img { height: 104px; border-radius: 999px 999px 14px 14px; }
.site--3 .s-hero-t { position: static; color: #FFFFFF; }
.site--3 .s-kick { background: var(--rb2); color: var(--bt); border: 0; text-transform: uppercase; letter-spacing: .06em; }
.site--3 .s-h { font-family: var(--font); font-size: 21px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.site--3 .s-b3 { box-shadow: inset 0 0 0 1.5px #FFFFFF; color: #FFFFFF; }
.site--3 .s-feat { color: rgba(255, 255, 255, .85); }
.site--3 .s-feat li::before { color: var(--rb2); }
.site--3 .s-foot { color: rgba(255, 255, 255, .6); }

/* ---------- Ejemplos: todos con el mismo marco de celular ---------- */
.exf { margin-top: 22px; }
.exrail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); padding: 28px var(--gut-r) 10px var(--gut); scrollbar-width: none; }
.exrail::-webkit-scrollbar { display: none; }
.exmore { margin-top: 30px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 600 16px var(--font); color: var(--ink); cursor: pointer; }
.exmore:hover { box-shadow: 0 0 0 5px rgba(11, 11, 12, .08); }
@media (max-width: 899px) { .exmore { display: none !important; } }
.excard { flex: 0 0 min(70vw, 270px); scroll-snap-align: start; display: grid; gap: 10px; align-content: start; color: inherit; text-decoration: none; }
.excard__dev { display: block; border-radius: 30px; padding: 7px; background: var(--device); box-shadow: 0 0 0 1.5px #2A2A2E, 0 26px 50px -30px rgba(11, 11, 12, .6); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.excard__dev img { width: 100%; height: auto; border-radius: 24px; }
.excard:hover .excard__dev { transform: translateY(-5px); }
.tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .1em; background: var(--accent-soft); color: var(--ink); border-radius: 6px; padding: 4px 7px; margin-top: 6px; }
.excard h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.excard p { font-size: 15px; color: var(--mute); }

/* ---------- Y esto pasa después: el texto y el celular van siempre juntos ---------- */
/* Sin JS se ven los cuatro pasos como lista. Con JS (.aft--on) el escenario queda fijo mientras
   se baja y cada tramo cambia el paso y el aviso: nunca hay texto tapado ni pantallas vacías. */
.aftsec { padding-bottom: 36px; }
.aft__head { text-align: center; }
.aft__stage { display: grid; justify-items: center; gap: 18px; margin-top: 26px; }
.aft__txt { width: 100%; text-align: center; }
.aft__bar { display: none; gap: 6px; width: 132px; margin: 0 auto 14px; }
.aft__bar i { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(11, 11, 12, .14); overflow: hidden; }
.aft__bar i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--f, 0)); }
.steps { display: grid; gap: 22px; }
.step h3 { font-size: clamp(28px, 7.6vw, 34px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.step p { font-size: 17px; line-height: 1.45; color: var(--mute); margin: 6px auto 0; max-width: 31ch; }
.aft__phone { display: grid; justify-items: center; }
.aft__phone .device { width: min(56vw, 214px); }
.aft--on { height: calc(100vh + 4 * 40vh); }
.aft--on .aft__stage { position: sticky; top: 0; height: 100vh; margin-top: 0; overflow: hidden; align-content: start; padding-top: clamp(16px, calc((100vh - 640px) / 2), 140px); }
@supports (height: 100svh) {
  .aft__phone .device { width: max(196px, min(56vw, 214px, calc((100svh - 236px) * .4615))); }
  .aft--on { height: calc(100svh + 4 * 40svh); }
  .aft--on .aft__stage { height: 100svh; padding-top: clamp(16px, calc((100svh - 640px) / 2), 140px); }
}
.aft--on .aft__bar { display: flex; }
.aft--on .steps { gap: 0; }
.aft--on .step { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.aft--on .step.on { opacity: 1; transform: none; }
.nts { position: absolute; left: 8px; right: 8px; top: 44px; z-index: 4; display: flex; flex-direction: column-reverse; gap: 6px; }
.nt { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; background: rgba(250, 250, 252, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 14px; padding: 8px 9px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, box-shadow .45s ease; }
.nt i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.nt svg { width: 14px; height: 14px; fill: currentColor; }
.nt--wa i { background: var(--wa); color: var(--ink); }
.nt b { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; font-weight: 700; color: #1A1A1A; }
.nt em { font-style: normal; font-weight: 500; color: #7A7A80; }
.nt__t { display: block; font-size: 10.5px; line-height: 1.3; color: #2A2A30; margin-top: 1px; }
.aft--on .nt.next { display: none; }
.aft--on .nt.past { opacity: .82; }
.aft--on .nt.on { transform: scale(1.04); box-shadow: 0 0 0 2px var(--accent), 0 14px 28px -10px rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: no-preference) { .aft--on .nt.on { animation: pop .5s cubic-bezier(.2, .8, .2, 1) backwards; } }
@keyframes pop { from { transform: translateY(-12px) scale(.94); opacity: .35; } to { transform: scale(1.04); opacity: 1; } }

/* ---------- ¿Te suena? (corto: un título, tres líneas y un cierre) ---------- */
.pains { margin-top: 30px; border-top: 1px solid var(--line-d); }
.pains li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line-d); }
.pains b { font-size: clamp(21px, 5.4vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.pains span { font-size: clamp(16px, 4.2vw, 20px); color: var(--mute-d); }
.deal { margin-top: 36px; font-size: clamp(28px, 7.4vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }

/* ---------- Precios ---------- */
.prices { display: grid; gap: 14px; margin-top: 30px; }
.price { display: grid; gap: 8px; align-content: start; background: var(--paper); border-radius: 24px; padding: 24px; color: inherit; text-decoration: none; transition: transform .2s ease; }
.price:hover { transform: translateY(-3px); }
.price__t { font-size: 15px; font-weight: 600; color: var(--mute); }
.price__px { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price__px strong { font-size: clamp(44px, 12vw, 58px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price__px span { font-size: 15px; color: var(--mute); }
.price__p { font-size: 15.5px; }
.price__go { margin-top: 6px; font-weight: 600; font-size: 15.5px; }
.price--main { background: var(--ink); color: var(--paper); }
.price--main .price__t, .price--main .price__px span { color: var(--mute-d); }
.price--main .price__go { color: var(--accent); }

/* ---------- Cómo trabajamos, en una línea bajo los precios ---------- */
.steps3 { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; }
.steps3 li { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.steps3 b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 14px; }


/* ---------- Nosotros: la foto acompaña al texto, no lo tapa ---------- */
.about { display: grid; gap: 24px; }
.about__ph { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 18px; }
.about__ph img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 22px; }
.about__ph figcaption { font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.about__ph small { display: block; margin-top: 4px; font-weight: 500; font-size: 14.5px; letter-spacing: 0; color: var(--mute); }
.about__body p { font-size: 17.5px; line-height: 1.55; margin-bottom: 14px; }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 26px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--mute); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--mute); font-size: 16px; line-height: 1.55; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 34px; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.way { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line-d); color: var(--paper); text-decoration: none; }
.way__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.way--wa .way__ic { background: var(--wa); }
.way__ic svg { width: 20px; height: 20px; fill: currentColor; }
.way__t { display: grid; gap: 1px; min-width: 0; }
.way__t b { font-size: 15.5px; }
.way__t small { font-size: 12.5px; color: var(--mute-d); }
.ways__line { margin-top: 14px; color: var(--mute-d); font-size: 14.5px; }
.form { position: relative; display: grid; gap: 14px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 26px; padding: 22px; color-scheme: dark; }
.form__row { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mute-d); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line-d); background: var(--ink-3); color: var(--paper); padding: 12px 14px; font: 500 16px var(--font); }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form label.form__check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--mute-d); cursor: pointer; }
.form .form__check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.form__check a { color: var(--paper); }
.form__fine { font-size: 13px; color: var(--mute-d); text-align: center; }
.form__status { min-height: 20px; font-weight: 600; text-align: center; }
.form__status.good { color: var(--accent); }
.form__status.bad { color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-d); }
.footer__in { display: grid; gap: 22px; padding-block: 44px 24px; }
.footer__tag { margin-top: 10px; color: var(--mute-d); font-size: 14px; }
.footer__links, .footer__social { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer__links a, .footer__social a { color: var(--paper); text-decoration: none; font-size: 15px; opacity: .85; }
.footer__links a:hover, .footer__social a:hover { opacity: 1; }
.footer__legal { display: grid; gap: 6px; padding-block: 18px 100px; border-top: 1px solid var(--line-d); color: var(--mute-d); font-size: 13.5px; }

/* ---------- WhatsApp: lo único que flota ---------- */
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--ink); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); text-decoration: none; touch-action: none; -webkit-user-select: none; user-select: none; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; pointer-events: none; }
.contact-bubble--dragging { cursor: grabbing; transform: scale(1.06); }
.contact-bubble--reset { transform: scale(.9); }

/* ---------- Entrada suave al bajar (solo donde el navegador lo soporta; nunca invisible) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
  }
}
@keyframes rise { from { opacity: .3; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Computadora ---------- */
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 30px; padding-block: 40px 30px; min-height: 600px; }
  .stage { height: 590px; margin-top: 0; }
  .hero .device { width: 262px; }
  .chip { font-size: 14.5px; }
  .c1 { left: 4%; } .c2 { right: 2%; } .c3 { left: 6%; } .c4 { right: 6%; }
  .sec { padding-block: 110px 116px; }
  .try { grid-template-columns: 1fr 1fr; grid-template-areas: "head phone" "form phone" "kind phone" "go phone"; column-gap: 56px; row-gap: 24px; align-items: start; }
  .try__phone { position: sticky; top: 40px; }
  .try__phone .device { width: 270px; }
  .exrail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; overflow: visible; max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gut-r) 0 var(--gut); }
  .excard { flex: none; }
  .exrail:not(.is-open) .excard:nth-child(n+5) { display: none; }
  .aft__head { text-align: left; max-width: 980px; }
  .aft__stage { max-width: 980px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "txt phone"; justify-items: stretch; align-items: center; column-gap: 88px; margin-top: 40px; }
  .aft__txt { grid-area: txt; text-align: left; }
  .aft__phone { grid-area: phone; }
  .aft__phone .device { width: min(268px, calc((100vh - 150px) * .4615)); }
  .aft__bar { width: 168px; margin: 0 0 22px; }
  .step h3 { font-size: clamp(40px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
  .step p { font-size: 20px; margin: 10px 0 0; max-width: 30ch; }
  .aft--on { height: calc(100vh + 4 * 50vh); }
  .aft--on .aft__stage { height: 100vh; padding-top: 0; align-content: center; }
  .prices { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "ph head" "ph body"; column-gap: 80px; row-gap: 22px; align-items: start; }
  .about__head { grid-area: head; }
  .about__body { grid-area: body; }
  .about__body p { max-width: 58ch; }
  .about__ph { grid-area: ph; align-self: center; display: block; position: relative; border-radius: 28px; overflow: hidden; }
  .about__ph img { border-radius: 0; }
  .about__ph figcaption { position: absolute; left: 18px; bottom: 16px; color: var(--paper); font-size: 17px; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
  .about__ph small { color: rgba(255, 255, 255, .88); font-size: 13px; }
  .faq { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .contact { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__in { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .footer__legal { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
