/* =========================================================
   Fernanda Valladares — Sistema de diseño v2
   Look & feel: póster condensado + azul rey + halftone (ADN DAVA)
   Mobile-first · sin dependencias
   ========================================================= */

:root {
  --ink: #0A0F2C;          /* azul noche */
  --ink-2: #121A45;
  --blue: #2D3FC4;         /* azul rey DAVA */
  --blue-2: #4A63F0;
  --blue-soft: #E8ECFF;
  --yellow: #FFD23F;       /* CTA */
  --yellow-2: #FFC107;
  --mint: #17C3A5;         /* salud */
  --mint-soft: #DDF7F1;
  --pink: #FF5C8A;         /* social: likes / corazones */
  --paper: #F6F7FB;
  --white: #FFFFFF;
  --text: #1E2238;
  --muted: #5E6480;
  --line: #E3E6F0;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --r-sm: 12px; --r: 20px; --r-lg: 32px;
  --shadow: 0 18px 50px -12px rgba(10, 15, 44, .25);
  --shadow-sm: 0 6px 18px -6px rgba(10, 15, 44, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --gutter: 18px;
  --accent: var(--yellow);  /* cada landing puede cambiarlo */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.02rem; line-height: 1.6;
  color: var(--text); background: var(--white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.02; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(2.9rem, 11vw, 6.2rem); line-height: .95; }
h2 { font-size: clamp(2.3rem, 7.5vw, 4.4rem); line-height: .98; }
h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: 84px 0; overflow: hidden; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #C9D0F2; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--blue { background: var(--blue); color: #DDE3FF; }
.section--blue h2, .section--blue h3 { color: var(--white); }
.head { max-width: 780px; margin: 0 0 44px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head p { font-size: 1.1rem; color: var(--muted); }
.section--ink .head p, .section--blue .head p { color: #B9C2EE; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue); padding: 7px 14px; border-radius: 999px;
}
.section--ink .kicker, .section--blue .kicker, .hero .kicker { background: rgba(255,255,255,.1); color: var(--white); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(23,195,165,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(23,195,165,0); } 100% { box-shadow: 0 0 0 0 rgba(23,195,165,0); } }

/* Marcador "resaltador" en titulares */
.mark { position: relative; display: inline-block; color: var(--ink); z-index: 0; padding: .06em .1em .02em; line-height: 1; }
.mark::before {
  content: ""; position: absolute; inset: 0 -.02em; z-index: -1;
  background: var(--accent); transform: skew(-6deg) rotate(-1.5deg) scaleX(0); transform-origin: left;
  border-radius: 4px; transition: transform .8s var(--ease) .3s;
}
.is-in .mark::before, .mark.is-in::before, .hero .mark::before { transform: skew(-6deg) rotate(-1.5deg) scaleX(1); }
.outline { color: transparent; -webkit-text-stroke: 2px currentColor; }
.hero .outline, .section--ink .outline, .section--blue .outline { -webkit-text-stroke-color: var(--white); }
.hand { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--blue); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Halftone (firma visual) ---------- */
.dots {
  position: absolute; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, var(--dot, var(--blue)) 1.6px, transparent 1.9px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
  opacity: .55;
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 16px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none; text-align: center;
  font: 800 1.02rem/1.1 var(--sans); letter-spacing: .01em;
  box-shadow: 0 6px 0 0 rgba(10,15,44,.9), 0 14px 30px -8px rgba(255, 196, 0, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  will-change: transform; isolation: isolate; overflow: hidden;
}
.btn::after { /* brillo que recorre el botón */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.8s infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn:hover { box-shadow: 0 9px 0 0 rgba(10,15,44,.9), 0 20px 36px -8px rgba(255, 196, 0, .6); }
.btn:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 0 rgba(10,15,44,.9); }
.btn:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 4px; }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--big { min-height: 64px; padding: 18px 34px; font-size: 1.1rem; }
.btn--wa { --bg: #25D366; --fg: #fff; box-shadow: 0 6px 0 0 #128C4A, 0 14px 30px -8px rgba(37,211,102,.5); }
.btn--wa:hover { box-shadow: 0 9px 0 0 #128C4A, 0 20px 36px -8px rgba(37,211,102,.55); }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.btn--ghost::after, .btn--wa::after { display: none; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn--dark { --bg: var(--ink); --fg: var(--white); box-shadow: 0 6px 0 0 var(--blue), 0 14px 30px -8px rgba(10,15,44,.4); }
.btn--dark::after { display: none; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.note span { display: inline-flex; align-items: center; gap: 6px; }
.note svg { width: 16px; height: 16px; color: var(--mint); }
.hero .note, .section--ink .note { color: #A9B3E4; }

/* ---------- Barra de progreso de lectura ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--yellow), var(--pink), var(--blue-2)); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s, box-shadow .3s, transform .35s var(--ease); }
.header.is-scrolled { background: rgba(10, 15, 44, .88); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 400 1.25rem/1 var(--display); transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--blue-2); }
.logo__text { font: 400 1.25rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.logo__text small { display: block; font: 700 .62rem/1.3 var(--sans); letter-spacing: .16em; color: #9EA8DA; margin-top: 3px; }
.nav { display: none; gap: 26px; }
.nav a { color: #D2D8F5; text-decoration: none; font-weight: 700; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover { color: var(--white); } .nav a:hover::after { transform: scaleX(1); }
.header .btn { min-height: 44px; padding: 10px 18px; font-size: .88rem; box-shadow: 0 4px 0 0 rgba(0,0,0,.5); white-space: nowrap; gap: 0; }
.header .btn::after { display: none; }
.hide-sm { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #C9D0F2;
  background:
    radial-gradient(900px 520px at 90% 10%, rgba(74,99,240,.55), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255,92,138,.18), transparent 60%),
    var(--ink);
  padding: 108px 0 70px;
}
.hero h1 { color: var(--white); }
.hero__grid { position: relative; display: grid; gap: 46px; align-items: center; z-index: 1; }
.hero__lead { font-size: 1.14rem; max-width: 560px; color: #C9D0F2; }
.hero__lead strong { color: var(--white); }
.hero .dots { --dot: #6D83FF; width: 520px; height: 520px; right: -140px; top: -80px; opacity: .45; }

/* Palabra rotativa */
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1em; line-height: 1; }
.rotator > span { grid-area: 1 / 1; color: var(--accent); transform: translateY(110%); transition: transform .6s var(--ease); white-space: nowrap; }
.rotator > span.is-active { transform: translateY(0); }
.rotator > span.is-out { transform: translateY(-110%); }

/* Prueba social mini */
.proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.proof__logos { display: flex; }
.proof__logos span { width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); margin-left: -12px; display: grid; place-items: center; overflow: hidden; }
.proof__logos span:first-child { margin-left: 0; }
.proof__logos img { width: 82%; height: 82%; object-fit: contain; }
.proof p { margin: 0; font-size: .9rem; line-height: 1.35; color: #B9C2EE; }
.proof strong { color: var(--white); }

/* Foto de marca con formato */
.visual { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.visual__arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--blue-2), var(--blue) 60%, var(--ink-2));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  transform: translateZ(0);
}
.visual__arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.visual:hover .visual__arch img { transform: scale(1.1); }
.visual__arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,15,44,.55)); }
.visual__ring { position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--yellow); border-radius: 999px 999px var(--r-lg) var(--r-lg); z-index: -1; }
.visual .dots { width: 300px; height: 300px; left: -110px; bottom: -70px; --dot: var(--yellow); opacity: .7; z-index: -1; }

/* Sello giratorio */
.seal { position: absolute; width: 124px; height: 124px; right: -14px; top: -10px; z-index: 3; }
.seal svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.seal text { font: 400 11.5px var(--display); letter-spacing: 2.6px; fill: var(--ink); }
.seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.seal b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.9rem/1 var(--display); color: var(--ink); }
.seal b small { display: block; font-size: .7rem; letter-spacing: .08em; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tarjetas flotantes tipo notificación */
.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.45); font-size: .8rem; line-height: 1.25; max-width: 230px;
  animation: bob 5s ease-in-out infinite;
}
.float strong { display: block; font-size: .86rem; }
.float__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.float__ic svg { width: 20px; height: 20px; }
.float--a { left: -12px; bottom: 16%; }
.float--b { right: -10px; bottom: -14px; animation-delay: -2.5s; }
.float--c { left: -18px; top: 18%; animation-delay: -1.2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ic-ig { background: linear-gradient(45deg, #F9A825, #E91E63 50%, #7B1FA2); }
.ic-wa { background: #25D366; }
.ic-up { background: var(--blue); }
.ic-mint { background: var(--mint); }
.hand-note { position: absolute; z-index: 4; color: var(--yellow); font-size: 1.7rem; transform: rotate(-8deg); display: none; }
.hand-note svg { width: 60px; height: 40px; display: block; }

/* ---------- Cintas (ticker) ---------- */
.tape { position: relative; z-index: 2; background: var(--yellow); color: var(--ink); overflow: hidden; transform: rotate(-1.6deg); margin: 0 -20px; padding: 14px 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.3); }
.tape--blue { background: var(--blue); color: var(--white); transform: rotate(1.2deg); margin-top: 4px; }
.tape__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.tape--blue .tape__track { animation-direction: reverse; animation-duration: 34s; }
.tape__track span { font: 400 clamp(1.3rem, 3.6vw, 2rem)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 0 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.tape__track span::after { content: "✺"; font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tapes { position: relative; z-index: 2; margin-top: -40px; padding: 18px 0 22px; overflow: hidden; }

/* ---------- Logos ---------- */
.logos { padding: 56px 0 44px; }
.logos__title { text-align: center; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--muted); margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-chip { height: 86px; min-width: 150px; padding: 14px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; transition: transform .3s var(--ease), box-shadow .3s; }
.logo-chip img { max-height: 56px; max-width: 170px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.logo-chip:hover img { filter: none; opacity: 1; }

/* ---------- Contadores ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { position: relative; background: var(--white); border-radius: var(--r); padding: 24px 18px; border: 1px solid var(--line); overflow: hidden; }
.stat__n { font: 400 clamp(2.8rem, 9vw, 4.2rem)/1 var(--display); color: var(--blue); }
.stat p { margin: 6px 0 0; font-weight: 700; font-size: .92rem; color: var(--muted); line-height: 1.3; }
.stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--blue-soft) 1.5px, transparent 1.8px) 0 0/9px 9px; }

/* ---------- Tarjetas "¿te pasa esto?" que giran ---------- */
.flips { display: grid; gap: 16px; }
.flip { perspective: 1200px; min-height: 230px; cursor: pointer; }
.flip__in { position: relative; width: 100%; height: 100%; min-height: 230px; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip:hover .flip__in, .flip.is-flipped .flip__in { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r); padding: 26px 22px; display: flex; flex-direction: column; }
.flip__front { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flip__back { background: var(--blue); color: #E3E8FF; transform: rotateY(180deg); }
.flip__back h3 { color: var(--white); }
.flip__emoji { font-size: 2rem; margin-bottom: 10px; line-height: 1; }
.flip__front h3 { font-size: 1.3rem; }
.flip__front p { color: var(--muted); margin: 0; }
.flip__hint { margin-top: auto; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; }
.flip__back .flip__hint { color: var(--yellow); }
.flip__tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* ---------- Interruptor "hoy vs lo que vende" ---------- */
.switch { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px; position: relative; margin-bottom: 30px; }
.switch button { position: relative; z-index: 1; border: 0; background: none; color: #C9D0F2; font-weight: 800; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: color .3s; font-size: .95rem; }
.switch button[aria-selected="true"] { color: var(--ink); }
.switch__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--yellow); transition: transform .45s var(--ease), width .45s var(--ease); }
.panes { position: relative; }
.pane { display: none; }
.pane.is-active { display: grid; animation: paneIn .5s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } }
.pane { gap: 12px; }
.row-item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px; }
.row-item b { display: block; color: var(--white); margin-bottom: 2px; font-size: 1.05rem; }
.row-item p { margin: 0; color: #B9C2EE; font-size: .95rem; }
.row-item__ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.2rem; }
.pane--bad .row-item__ic { background: rgba(255,92,138,.15); }
.pane--good .row-item__ic { background: rgba(23,195,165,.18); }

/* ---------- Bento de servicios ---------- */
.bento { display: grid; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; transform-style: preserve-3d; }
.tile:hover { box-shadow: var(--shadow); }
.tile h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.tile p { color: var(--muted); }
.tile ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.tile li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.tile li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.tile__num { position: absolute; right: 18px; top: 10px; font: 400 4.5rem/1 var(--display); color: var(--blue-soft); z-index: 0; }
.tile > :not(.tile__num):not(.tile__icon) { position: relative; z-index: 1; }
.tile--blue { background: var(--blue); border-color: transparent; color: #DDE3FF; }
.tile--blue h3 { color: var(--white); } .tile--blue p { color: #C5CEFF; } .tile--blue .tile__num { color: rgba(255,255,255,.1); }
.tile--ink { background: var(--ink); border-color: transparent; color: #C9D0F2; }
.tile--ink h3 { color: var(--white); } .tile--ink p { color: #A9B3E4; } .tile--ink .tile__num { color: rgba(255,255,255,.07); }
.tile--yellow { background: var(--yellow); border-color: transparent; }
.tile--yellow p { color: #4B4520; } .tile--yellow .tile__num { color: rgba(10,15,44,.08); }
.tile__media { margin: 20px -24px -28px; display: flex; gap: 10px; padding: 0 24px; align-items: flex-end; }
.phone { flex: 1; border-radius: 18px 18px 0 0; overflow: hidden; border: 5px solid var(--ink); border-bottom: 0; background: var(--ink); max-height: 210px; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone:nth-child(2) { transform: translateY(-16px); }
.browser { border-radius: 12px 12px 0 0; overflow: hidden; background: var(--white); box-shadow: 0 -10px 30px -10px rgba(0,0,0,.4); flex: 1; }
.browser__bar { height: 20px; background: #E9EBF3; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #C4C9D8; }
.browser__bar i:first-child { background: #FF6159; } .browser__bar i:nth-child(2) { background: #FFBF2F; } .browser__bar i:nth-child(3) { background: #2ACB42; }
.browser img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: top; }
.tile__icon { width: 180px; position: absolute; right: -24px; bottom: -24px; mix-blend-mode: multiply; opacity: .95; transform: rotate(-8deg); z-index: 0; }

/* ---------- Portafolio con pestañas ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 2px solid var(--line); background: var(--white); color: var(--ink); font-weight: 800; padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: all .25s var(--ease); font-size: .92rem; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.gallery { display: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.gallery.is-active { display: flex; animation: paneIn .5s var(--ease); }
.shot { flex: none; scroll-snap-align: start; position: relative; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s; padding: 0; text-align: left; }
.shot:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot--tall { width: 200px; height: 420px; }
.shot--wide { width: 320px; height: 220px; }
.shot--sq { width: 280px; height: 300px; }
.shot figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(10,15,44,.85); color: var(--white); font-size: .78rem; font-weight: 700; padding: 8px 10px; border-radius: 10px; backdrop-filter: blur(6px); line-height: 1.25; }
.shot figcaption small { display: block; color: #A9B3E4; font-weight: 600; }
.flow-arrow { flex: none; align-self: center; width: 34px; color: var(--blue); }
.gallery-hint { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 4px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,15,44,.88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 14px; margin: 0 auto; }
.lightbox p { color: var(--white); text-align: center; font-weight: 700; margin: 12px 0 0; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); font-size: 1.5rem; font-weight: 800; cursor: pointer; }

/* ---------- Método: línea de tiempo ---------- */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 34px; }
.timeline::before, .timeline__fill { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: rgba(255,255,255,.12); }
.timeline__fill { background: linear-gradient(var(--yellow), var(--pink)); transform-origin: top; transform: scaleY(0); bottom: 8px; }
.tl-step { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 22px 22px 22px 24px; }
.tl-step::before { content: attr(data-n); position: absolute; left: -38px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 3px solid var(--yellow); color: var(--yellow); display: grid; place-items: center; font: 400 .95rem/1 var(--display); }
.tl-step h3 { margin-bottom: 6px; }
.tl-step p { margin: 0; color: #B9C2EE; }
.tl-step .pill { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }

/* ---------- Quiz ---------- */
.quiz { position: relative; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 22px; max-width: 760px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); }
.quiz__bar { height: 8px; background: var(--blue-soft); border-radius: 8px; overflow: hidden; margin-bottom: 22px; }
.quiz__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--pink)); border-radius: 8px; transition: width .5s var(--ease); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: paneIn .45s var(--ease); }
.quiz__q { font: 400 clamp(1.6rem, 5vw, 2.2rem)/1.05 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.quiz__count { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; font-weight: 700; color: var(--ink); transition: all .2s var(--ease); font-size: 1rem; }
.opt:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateX(4px); }
.opt.is-picked { border-color: var(--blue); background: var(--blue); color: var(--white); }
.opt__e { font-size: 1.4rem; line-height: 1; }
.quiz__result h3 { font: 400 clamp(1.9rem, 6vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.quiz__result p { color: var(--muted); }
.quiz__back { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; margin-top: 14px; padding: 6px 0; }
.confetti { position: absolute; width: 10px; height: 14px; top: -20px; border-radius: 2px; animation: fall 1.6s ease-in forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(620px) rotate(540deg); opacity: 0; } }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 44px; align-items: center; }
.about__photo { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.about__photo .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; transform: rotate(-3deg); box-shadow: 14px 14px 0 var(--blue), var(--shadow); transition: transform .5s var(--ease); }
.about__photo:hover .frame { transform: rotate(0); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.sticker { position: absolute; z-index: 2; background: var(--yellow); color: var(--ink); font: 400 1.1rem/1 var(--display); text-transform: uppercase; padding: 12px 16px; border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(6deg); letter-spacing: .02em; }
.sticker--pink { background: var(--pink); color: var(--white); transform: rotate(-7deg); }
.sticker--mint { background: var(--mint); color: var(--ink); transform: rotate(-4deg); }
.about__photo .s1 { right: -10px; top: 30px; }
.about__photo .s2 { left: -14px; bottom: 60px; }
.about__photo .dots { width: 260px; height: 260px; right: -80px; bottom: -60px; z-index: -1; }
.quote { font: 400 clamp(1.5rem, 4.5vw, 2rem)/1.1 var(--display); text-transform: uppercase; color: var(--blue); border-left: 6px solid var(--yellow); padding-left: 16px; margin: 22px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.chip { font-size: .85rem; font-weight: 700; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.section--paper .chip { background: var(--white); }

/* ---------- Casos ---------- */
.cases { display: grid; gap: 16px; }
.case { position: relative; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); padding: 22px; display: flex; gap: 16px; align-items: center; transition: transform .3s var(--ease), box-shadow .3s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.case__logo { width: 72px; height: 72px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; flex: none; padding: 8px; }
.case__logo img { max-height: 100%; object-fit: contain; }
.case h3 { font-size: 1.05rem; margin-bottom: 4px; }
.case p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.case .tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }

/* ---------- Recursos / blog ---------- */
.posts { display: grid; gap: 16px; }
.post { position: relative; border-radius: var(--r); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__top { aspect-ratio: 16/8; display: grid; place-items: center; font: 400 2.2rem/1 var(--display); text-transform: uppercase; color: var(--white); padding: 20px; text-align: center; position: relative; overflow: hidden; }
.post__top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.25) 1.4px, transparent 1.7px) 0 0/10px 10px; -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000); mask-image: linear-gradient(120deg, transparent 40%, #000); }
.post__body { padding: 20px 22px 24px; }
.post__cat { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.post h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.post p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 2px solid var(--line); border-radius: 18px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--ink); box-shadow: 5px 5px 0 var(--yellow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 22px; font-weight: 800; color: var(--ink); position: relative; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Cierre + formulario ---------- */
.closer { position: relative; overflow: hidden; background: var(--blue); color: #DDE3FF; }
.closer .dots { --dot: #fff; width: 600px; height: 600px; right: -200px; top: -200px; opacity: .18; }
.closer__grid { position: relative; z-index: 1; display: grid; gap: 36px; align-items: start; }
.closer h2 { color: var(--white); }
.perks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--white); }
.perks li span { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; font-size: 1.05rem; }
.form-card { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: 28px 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); position: relative; }
.form-card h3 { font: 400 2rem/1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.form-grid { display: grid; gap: 14px; }
.field label { display: block; font-weight: 800; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 12px 16px; font: 600 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230A0F2C' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px var(--blue-soft); }
.field input:user-invalid { border-color: var(--pink); }
.consent { display: flex; gap: 10px; font-size: .84rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.consent a { color: var(--blue); }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }
.form-success { display: none; background: var(--mint-soft); color: var(--ink); padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.form-success.is-visible { display: block; }

/* ---------- Rutas (home) ---------- */
.routes { display: grid; gap: 18px; }
.route { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; border-radius: var(--r-lg); padding: 30px 26px; text-decoration: none; color: #DDE3FF; background: var(--blue); isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; }
.route--med { background: linear-gradient(160deg, #0E8C78, var(--ink)); }
.route:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.route h3 { font: 400 clamp(2.2rem, 7vw, 3.2rem)/.95 var(--display); text-transform: uppercase; color: var(--white); max-width: 11ch; }
.route p { max-width: 34ch; }
.route__tag { align-self: flex-start; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.route > p { max-width: 62%; }
.route__img { position: absolute; right: -26px; bottom: -70px; width: 40%; max-width: 250px; z-index: -1; transform: rotate(6deg); border-radius: 20px; overflow: hidden; border: 5px solid rgba(255,255,255,.9); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.route:hover .route__img { transform: rotate(2deg) translateY(-10px); }
.route__go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; background: var(--white); color: var(--ink); align-self: flex-start; padding: 13px 20px; border-radius: 999px; box-shadow: 0 5px 0 rgba(0,0,0,.35); }
.route__go svg { width: 18px; height: 18px; transition: transform .25s; }
.route:hover .route__go svg { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #8E97C7; padding: 56px 0 120px; font-size: .92rem; }
.footer__grid { display: grid; gap: 26px; }
.footer__big { font: 400 clamp(2.6rem, 10vw, 6rem)/.9 var(--display); text-transform: uppercase; color: var(--white); margin: 0 0 10px; }
.footer__big span { color: var(--yellow); }
.footer a { color: #C9D0F2; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }

/* ---------- WhatsApp flotante + barra móvil ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(37,211,102,.6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-8deg); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.2s infinite; }
.wa-float__bubble { position: absolute; right: 72px; bottom: 10px; white-space: nowrap; background: var(--white); color: var(--ink); font-weight: 800; font-size: .82rem; padding: 9px 13px; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(10px); transition: all .4s var(--ease); pointer-events: none; }
.wa-float.show-bubble .wa-float__bubble { opacity: 1; transform: none; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.mobile-bar { position: fixed; left: 0; right: 88px; bottom: 0; z-index: 85; padding: 12px 0 14px 14px; transform: translateY(120%); transition: transform .4s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { width: 100%; min-height: 56px; font-size: .9rem; padding: 14px 16px; white-space: nowrap; }
@media (max-width: 959px) { .wa-float__bubble { display: none; } }

/* ---------- Animaciones de aparición ---------- */
/* Solo se oculta contenido si hay JS (clase .js puesta en <head>) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal--zoom { transform: scale(.92); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .04em .06em; margin: -.1em -.04em -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 45ms + .1s); }
.split.is-in .w > span { transform: none; }
/* Hero: animación de entrada 100% CSS (no depende de eventos de scroll) */
.js .hero .reveal { animation: heroIn .9s var(--ease) both; animation-delay: var(--d, 0s); }
.hero .split .w > span { animation: wordUp .8s var(--ease) both; animation-delay: calc(var(--i) * 45ms + .1s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal--left, .js .reveal--right, .js .reveal--zoom, .split .w > span { opacity: 1; transform: none; }
  .mark::before { transform: skew(-6deg) rotate(-1.5deg) scaleX(1); }
  .flip:hover .flip__in { transform: none; }
}

/* ===================== ≥ 640px ===================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .flips { grid-template-columns: repeat(2, 1fr); }
  .cases, .posts { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 .full { grid-column: 1 / -1; }
  .opts { grid-template-columns: 1fr 1fr; }
  .quiz { padding: 40px; }
  .hide-sm { display: inline; }
  .shot--tall { width: 230px; height: 470px; }
  .shot--wide { width: 460px; height: 290px; }
  .shot--sq { width: 330px; height: 360px; }
  .hand-note { display: block; }
}
/* ===================== ≥ 960px ===================== */
@media (min-width: 960px) {
  .section { padding: 120px 0; }
  .hero { padding: 140px 0 110px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 60px; }
  .visual { margin-right: 20px; }
  .nav { display: flex; }
  .flips { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .span-3 { grid-column: span 3; } .bento .span-2 { grid-column: span 2; } .bento .span-4 { grid-column: span 4; }
  .about { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .cases { grid-template-columns: repeat(3, 1fr); }
  .posts { grid-template-columns: repeat(3, 1fr); }
  .closer__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .form-card { padding: 38px 34px; }
  .routes { grid-template-columns: 1fr 1fr; }
  .route > :not(.route__img) { max-width: 56%; }
  .route__img { width: 42%; bottom: -30px; }
  .timeline { grid-template-columns: 1fr 1fr; padding-left: 0; gap: 20px; }
  .timeline::before, .timeline__fill { display: none; }
  .tl-step { padding-top: 58px; }
  .tl-step::before { left: 22px; top: 18px; }
  .footer { padding-bottom: 56px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .mobile-bar { display: none; }
  .float--a { left: -60px; } .float--c { left: -70px; } .float--b { right: -40px; }
}
