/* =========================================================
   Seba Morad — Portfolio
   Paleta, tipografías y medidas en un solo lugar (:root).
   Para cambiar colores, editá solo estas variables.
   ========================================================= */
:root {
  --bg: #06080b;
  --bg-alt: #090c11;
  --surface: #0d1218;
  --line: #19212b;
  --line-strong: #26313f;
  --text: #e9eef4;
  --muted: #a3adbb;
  --dim: #8893a3;

  --accent: #3d7bff;          /* azul eléctrico: color principal */
  --accent-rgb: 61 123 255;
  --on-accent: #ffffff;       /* color del texto encima del azul */

  --font-display: "Geist", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 24px;
  --header-h: 68px;
  --gutter: clamp(16px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Fuentes (alojadas en el sitio, solo caracteres latinos; Geist y JetBrains con hinting para que se vean nítidas en Windows) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/geist-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/geist-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* el header nunca tapa un título */
  -webkit-text-size-adjust: 100%;
}
body {
  text-rendering: optimizeLegibility;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.03em; }
p { margin: 0; }
::selection { background: rgb(var(--accent-rgb) / .3); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 8px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 28px rgb(var(--accent-rgb) / .35);
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .02em;
  margin-bottom: 18px;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled,
.header.is-open {
  background: rgb(6 8 11 / .94);
  border-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 16px; white-space: nowrap; position: relative; z-index: 2; }
.brand__logo { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / .55)); animation: neon-on 1.6s .2s both, neon-hum 9s 3s 3; }

/* Cartel de neón: se prende titilando y cada tanto "parpadea" como uno real */
@keyframes neon-on {
  0%   { opacity: 0;  filter: brightness(.4); }
  8%   { opacity: 1;  filter: brightness(1.3); }
  11%  { opacity: .15; }
  18%  { opacity: 1; }
  21%  { opacity: .3; filter: brightness(.6); }
  34%  { opacity: 1;  filter: brightness(1.2); }
  37%  { opacity: .55; }
  45%, 100% { opacity: 1; filter: none; }
}
@keyframes neon-hum {
  0%, 93%, 100% { opacity: 1; }
  94% { opacity: .35; }
  95% { opacity: 1; }
  96.5% { opacity: .6; }
  97.5% { opacity: 1; }
}
.brand__bracket { color: var(--dim); }
.brand__dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav__cta {
  color: var(--on-accent); background: var(--accent);
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.nav .nav__cta:hover { color: var(--on-accent); box-shadow: 0 0 24px rgb(var(--accent-rgb) / .5); }

.burger { display: none; }

@media (max-width: 860px) {
  .burger {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 8px; padding: 0 var(--gutter);
    background: var(--bg);
    font-size: clamp(34px, 10vw, 48px); font-weight: 600; letter-spacing: -.03em;
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a { color: var(--text); transform: translateY(16px); transition: transform .5s var(--ease), color .2s; }
  .nav .nav__cta { margin-top: 20px; font-size: 18px; padding: 14px 26px; }
  /* backdrop-filter haría que el menú fijo quede atrapado dentro del header: se quita al abrir */
  .header.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header.is-open .nav { opacity: 1; visibility: visible; }
  .header.is-open .nav a { transform: none; }
  .header.is-open .nav a:nth-child(2) { transition-delay: .04s; }
  .header.is-open .nav a:nth-child(3) { transition-delay: .08s; }
  .header.is-open .nav a:nth-child(4) { transition-delay: .12s; }
  .header.is-open .nav a:nth-child(5) { transition-delay: .16s; }
  .header.is-open .nav a:nth-child(6) { transition-delay: .2s; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  transition: transform .2s var(--ease), box-shadow .3s, background .2s, border-color .2s;
}
button.btn { font-family: inherit; border: 0; cursor: pointer; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .12), 0 10px 40px rgb(var(--accent-rgb) / .35); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgb(255 255 255 / .02); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--big { padding: 18px 30px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__sign {
  position: absolute; z-index: 1; top: 50%; right: var(--gutter);
  width: clamp(230px, 20vw, 340px); height: auto;
  transform: translateY(-50%) rotate(-6deg);
  animation: neon-on 2.2s .9s both, neon-hum 11s 5s infinite, float 7s ease-in-out infinite;
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hero__sign-img {
  display: block; width: 100%; height: auto;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .08s, filter .08s;
  will-change: transform;
}
.hero__sign.is-off .hero__sign-img { opacity: .1; filter: grayscale(1) brightness(.4); }
.hero__sign.is-igniting .hero__sign-img { animation: neon-on 1.3s both; }
.hero__sign:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 50%; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
/* En computadora el título se achica un poco para dejarle lugar al cartel */
@media (min-width: 1101px) {
  .hero .hero__title { font-size: clamp(50px, 5.4vw, 74px); }
  .hero .hero__content { position: relative; padding-right: calc(var(--gutter) + clamp(250px, 22vw, 370px)); }
}
/* En celular y tablet: el cartel va arriba del texto, centrado y más chico */
@media (max-width: 1100px) {
  .hero .hero__content { display: flex; flex-direction: column; align-items: flex-start; }
  .hero__sign {
    position: relative; order: -1; top: auto; right: auto; z-index: 0;
    align-self: center;
    width: clamp(120px, 32vw, 230px);
    margin: 0 0 14px;
    transform: rotate(-6deg);
  }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-h) + 14px); padding-bottom: 70px; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero .hero__lead { margin-top: 18px; }
  .hero .hero__actions { margin-top: 24px; }
}
@media (min-width: 1101px) and (max-height: 520px) { .hero__sign { display: none; } }
.hero__glow {
  position: absolute; z-index: -2;
  width: 900px; height: 900px; left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .14), transparent 70%);
  pointer-events: none;
}
.hero::after { /* desvanece la malla hacia abajo */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgb(6 8 11 / .6);
  margin-bottom: 28px;
}
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgb(var(--accent-rgb) / .55); animation: dot-ring 2s infinite; }
@keyframes dot-ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgb(var(--accent-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0); } }

.hero__title {
  font-size: clamp(30px, 8.6vw, 104px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .95;
}
.hero__word { color: var(--accent); white-space: nowrap; }
.hero__word .glyph { color: var(--dim); }

.hero__lead { margin-top: 28px; max-width: 520px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); animation: wheel 1.8s infinite var(--ease); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(90px, 14vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: clamp(44px, 7vw, 72px); }
.section__title { font-size: clamp(36px, 6.4vw, 70px); font-weight: 700; text-transform: uppercase; letter-spacing: -.028em; }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 420px;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .4s, transform .5s var(--ease);
}
.card:hover { border-color: rgb(var(--c) / .45); }

/* Luz que sigue al dedo/mouse */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgb(var(--c) / .16), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before, .card.is-touched::before { opacity: 1; }

.card__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 85% 0%, rgb(var(--c) / .18), transparent 55%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask: linear-gradient(to bottom, #000 30%, transparent 85%);
          mask: linear-gradient(to bottom, #000 30%, transparent 85%);
}
.card__trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__trace path { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trace-base { stroke: rgb(var(--c) / .18); }
.trace-pulse {
  stroke: rgb(var(--c));
  stroke-dasharray: 110 1000;
  stroke-dashoffset: 110;
  filter: drop-shadow(0 0 6px rgb(var(--c))) drop-shadow(0 0 14px rgb(var(--c) / .7));
  opacity: 0;
}
.card.is-visible .trace-pulse { opacity: 1; animation: pulse-run 3.6s linear 2 forwards; }
.card:nth-child(2).is-visible .trace-pulse { animation-delay: -.9s; }
.card:nth-child(3).is-visible .trace-pulse { animation-delay: -1.8s; }
.card:nth-child(4).is-visible .trace-pulse { animation-delay: -2.7s; }
@keyframes pulse-run { to { stroke-dashoffset: -1000; } }

.card__num {
  position: absolute; top: 28px; left: 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: rgb(var(--c));
}
.card__icon {
  width: 68px; height: 68px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgb(6 8 11 / .8);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 34px rgb(var(--c) / .22), inset 0 1px 0 rgb(255 255 255 / .05);
  margin-bottom: 24px;
}
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__bar {
  display: block; width: 0; height: 3px; border-radius: 3px; margin-bottom: 20px;
  background: rgb(var(--c));
  box-shadow: 0 0 14px rgb(var(--c) / .8);
  transition: width 1s .3s var(--ease);
}
.card.is-visible .card__bar { width: 92px; }
.card__title { font-size: clamp(28px, 4vw, 36px); font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; }
.card__text { margin-top: 12px; color: var(--muted); max-width: 400px; }

/* ---------- Proyectos: caso Goods ---------- */
.case {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(26px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden; isolation: isolate;
}
.case::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 80% at 100% 100%, rgb(74 144 226 / .16), transparent 60%);
}
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

.case__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.case__title { margin-top: 14px; font-size: clamp(32px, 5vw, 48px); font-weight: 700; text-transform: uppercase; }
.case__text { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 460px; }
.case__list { list-style: none; padding: 0; margin: 26px 0 4px; display: grid; gap: 12px; }
.case__list li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.case__list span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.project__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-weight: 600; color: var(--accent);
  border-bottom: 1px solid rgb(var(--accent-rgb) / .35); padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s;
}
.project__link:hover { gap: 12px; border-color: var(--accent); }
.project__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Tres celulares; en pantallas chicas se deslizan de costado */
.case__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.phone { margin: 0; }
.phone:nth-child(2) { margin-top: 40px; }
.phone img, .phone video {
  display: block;
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top;
  border-radius: 22px; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgb(0 0 0 / .55);
  background: var(--bg);
}
.phone figcaption { margin-top: 10px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }

/* Entrada cinematográfica: cada celular cae, gira en 3D y aterriza con rebote */
.phone { perspective: 1400px; }
.phone:nth-child(1) { --ry: -200deg; --rz: -14deg; --delay: 0s; }
.phone:nth-child(2) { --ry: 190deg;  --rz: 10deg;  --delay: .18s; }
.phone:nth-child(3) { --ry: -170deg; --rz: 16deg;  --delay: .36s; }
html:not(.no-js) .phone:not(.is-landed) img,
html:not(.no-js) .phone:not(.is-landed) video,
html:not(.no-js) .phone:not(.is-landed) figcaption { opacity: 0; }
.phone.is-landed img, .phone.is-landed video { animation: land 1.5s var(--delay) cubic-bezier(.22, .8, .3, 1) both; }
.phone.is-landed figcaption { animation: caption-in .6s calc(var(--delay) + 1.1s) ease both; }
/* Solo transform y opacity: la placa de video lo mueve sin redibujar la imagen (fluido) */
@keyframes land {
  0%   { opacity: 0; transform: translateY(-180px) rotateY(var(--ry)) rotateZ(var(--rz)) scale(.5); }
  15%  { opacity: 1; }
  62%  { transform: translateY(14px) rotateY(0deg) rotateZ(0deg) scale(1.04); }
  78%  { transform: translateY(-6px) scale(.99); }
  90%  { transform: translateY(2px) scale(1.005); }
  100% { opacity: 1; transform: none; }
}
.phone.is-landed:not(.is-done) img, .phone.is-landed:not(.is-done) video { will-change: transform, opacity; backface-visibility: hidden; }
@keyframes caption-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .case__shots {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(26px, 4vw, 48px)); padding: 0 clamp(26px, 4vw, 48px) 6px;
    scrollbar-width: none;
  }
  .case__shots::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 62%; scroll-snap-align: center; }
  .phone:nth-child(2) { margin-top: 0; }
}

/* Testimonio */
.quote {
  position: relative; margin: 20px 0 0; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
}
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.quote__mark { position: absolute; right: clamp(16px, 4vw, 40px); top: -34px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 190px; line-height: 1; color: rgb(var(--accent-rgb) / .14); pointer-events: none; }
.quote blockquote { margin: 0; }
.quote p { position: relative; max-width: 860px; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.45; letter-spacing: -.01em; font-weight: 500; }
.quote em { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15em; color: var(--accent); }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
@media (max-width: 600px) { .quote__mark { font-size: 120px; top: -26px; right: 12px; } .quote p { padding-top: 18px; } }
.quote__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 18px; }
.quote figcaption b { display: block; font-size: 16px; }
.quote figcaption small { color: var(--muted); font-size: 14px; }

.next-project {
  display: flex; align-items: center; gap: 18px; margin-top: 20px;
  padding: 24px 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted); transition: border-color .3s;
}
.next-project strong { display: block; color: var(--text); font-size: 20px; }
.next-project:hover { border-color: var(--accent); }
.next-project__plus {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 26px; color: var(--accent);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.next-project:hover .next-project__plus { transform: rotate(90deg); background: var(--accent); color: var(--on-accent); }

/* ---------- Firma (sobre mí), al cierre de la página ---------- */
.signoff { position: relative; padding: clamp(80px, 12vw, 130px) 0 0; border-top: 1px solid var(--line); background: var(--bg); }
.signoff__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.signoff__logo { width: 110px; height: auto; margin-bottom: 26px; transform: rotate(-6deg); }
.signoff .kicker { margin-bottom: 14px; }
.signoff__text { max-width: 760px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.signoff__text em { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15em; color: var(--accent); }
.signoff__sub { max-width: 560px; margin-top: 18px; color: var(--muted); font-size: 18px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; bottom: -380px; transform: translateX(-50%);
  width: 1000px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .16), transparent);
  pointer-events: none;
}
.contact__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__title { font-size: clamp(40px, 9vw, 108px); font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; }
.contact__lead { margin-top: 26px; max-width: 480px; color: var(--muted); font-size: 18px; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
@media (max-width: 520px) { .contact__actions { flex-direction: column; width: 100%; } }

/* ---------- Footer con firma gigante ---------- */
.footer { position: relative; overflow: hidden; margin-top: -1px;
  background: radial-gradient(70% 60% at 50% 62%, rgb(var(--accent-rgb) / .14), transparent 70%), var(--bg); }

.wordmark { position: relative; display: grid; place-items: center; height: clamp(300px, 46vw, 620px); }
.wordmark__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgb(140 158 182 / .16); transform: translate(-50%, -50%); }
.wordmark__ring--1 { width: clamp(260px, 44vw, 600px); aspect-ratio: 1; }
.wordmark__ring--2 { width: clamp(420px, 70vw, 960px); aspect-ratio: 1; border-color: rgb(140 158 182 / .1); }
.wordmark__ring--3 { width: clamp(560px, 98vw, 1340px); aspect-ratio: 1; border-style: dashed; border-color: rgb(var(--accent-rgb) / .18); animation: ring-spin 60s linear infinite; }
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.wordmark__glow { position: absolute; width: 46%; height: 50%; border-radius: 50%; background: rgb(var(--accent-rgb) / .22); filter: blur(70px); }
.wordmark__text {
  position: relative; display: flex; gap: .22em; align-items: baseline; white-space: nowrap;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(76px, 17vw, 250px); line-height: 1; letter-spacing: -.02em;
}
.wordmark__text span {
  display: inline-block; padding: 0 .06em .12em;
  background: linear-gradient(100deg, #8fb2ff 0%, var(--accent) 35%, #dfe9ff 50%, var(--accent) 65%, #2c55c9 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgb(var(--accent-rgb) / .35));
}
.wordmark__text span:last-child { color: transparent; -webkit-text-stroke: 1.5px rgb(var(--accent-rgb) / .9); background: none; filter: none; }
@media (max-width: 600px) { .wordmark__text { flex-direction: column; align-items: center; gap: 0; font-size: clamp(72px, 24vw, 120px); line-height: .9; } }
/* aparece desde abajo, desenfocada, y una luz recorre el nombre */
.wordmark .wordmark__text > span { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 1.1s, transform 1.4s cubic-bezier(.2, .7, .2, 1), filter 1.2s; }
.wordmark .wordmark__text > span:last-child { transition-delay: .18s; }
.wordmark.is-visible .wordmark__text > span { opacity: 1; transform: none; }
.wordmark.is-visible .wordmark__text > span:first-child { filter: drop-shadow(0 0 24px rgb(var(--accent-rgb) / .35)); animation: shine 7s 1s ease-in-out infinite; }
.wordmark.is-visible .wordmark__text > span:last-child { filter: none; }
@keyframes shine { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }
.wordmark[data-reveal] { opacity: 1; transform: none; }

.footer__bottom {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 22px var(--gutter) 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim);
}
.footer__bottom a { color: var(--muted); } .footer__bottom a:hover { color: var(--text); }
@media (max-width: 700px) { .footer__bottom { flex-direction: column; align-items: center; text-align: center; } }

.section__aside { max-width: 380px; color: var(--muted); font-size: 17px; }

/* ---------- Campos y chips (formularios) ---------- */
.field {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: 16px; /* 16px evita el zoom automático en iPhone */
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .18); }
textarea.field { resize: vertical; min-height: 96px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chips > button {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: 15px; cursor: pointer; text-align: left;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.chips > button:active, .chip:active { transform: scale(.97); }
.chips > button small { color: var(--dim); font-size: 12px; font-family: var(--font-mono); }
.chips > button[aria-pressed="true"], .chip:has(input:checked) {
  border-color: var(--accent); background: rgb(var(--accent-rgb) / .14);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Preguntas frecuentes ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px 64px; align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(17px, 2vw, 20px); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--accent); font-size: 20px; font-weight: 400;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }
.faq details[open] p { animation: faq-in .4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Campos del armador de página ---------- */
.brief__field { display: grid; gap: 8px; }
.brief__field > span, .brief__group legend { font-size: 14px; color: var(--muted); }
.brief__field em { color: var(--dim); font-style: normal; }
.brief__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.brief__group legend { padding: 0; margin-bottom: 10px; }
.contact__alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 28px; color: var(--dim); font-size: 15px; }
.contact__alt a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.contact__alt a:hover { border-color: var(--accent); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / .45), 0 0 0 0 rgb(37 211 102 / .5);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(37 211 102 / .7); opacity: 0; pointer-events: none; }
.wa-float.is-visible::after { animation: wa-ring 2.6s 1s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes wa-ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
.wa-float:hover { transform: scale(1.06); }
@keyframes wa-ping { 0% { box-shadow: 0 10px 30px rgb(0 0 0 / .45), 0 0 0 0 rgb(37 211 102 / .5); } 70%, 100% { box-shadow: 0 10px 30px rgb(0 0 0 / .45), 0 0 0 16px rgb(37 211 102 / 0); } }
.header.is-open ~ .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Antes y después: se reproduce solo al aparecer (solo opacidad y transformaciones: fluido en celulares) ---------- */
.story__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 90px); align-items: center; }
.story__title { font-size: clamp(34px, 5vw, 64px); }
.story__states { position: relative; width: 100%; margin-top: 26px; min-height: 5.5em; max-width: 440px; }
.story__state { position: absolute; inset: 0 0 auto 0; color: var(--muted); font-size: 18px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); }
.story__state b { color: var(--text); }
.story__state[data-state="despues"] b { color: var(--accent); }
.story__state.is-active { opacity: 1; transform: none; }

.story__phone {
  width: 300px; height: 590px; padding: 10px;
  border-radius: 40px; background: #0b0f15; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px rgb(0 0 0 / .5), 0 0 0 6px #111722;
}
.story__screen { text-align: left; position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #0f1620; }
.story__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); background: #121a26; }
.story__app { font-weight: 700; font-size: 16px; white-space: nowrap; }
.story__badge { white-space: nowrap; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; }
.story.is-after .story__badge { background: var(--accent); }
.story__chat { position: absolute; inset: 52px 0 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; max-width: 82%; padding: 7px 11px 6px; border-radius: 14px 14px 14px 4px; background: #1c2735; font-size: 13.5px; line-height: 1.35; opacity: 0; }
.bubble--r { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #233247; }
.bubble b { display: block; font-size: 11px; color: var(--accent); }
.bubble time { display: block; text-align: right; font-size: 10px; color: var(--dim); font-family: var(--font-mono); }
.story__agenda { position: absolute; inset: 52px 0 0; list-style: none; margin: 0; padding: 14px 12px; display: grid; gap: 8px; align-content: start; }
.story__agenda li {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: #141d2a; border: 1px solid var(--line);
  font-size: 13px; opacity: 0;
}
.story__agenda time { font-family: var(--font-mono); color: var(--accent); font-size: 12px; }
.story__agenda b { display: block; font-size: 13.5px; }
.story__agenda span { color: var(--muted); font-size: 12px; }
.story__agenda i { font-style: normal; color: var(--accent); font-weight: 700; }

.story.is-playing .bubble { animation: bub-in .45s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .42s) both; }
.story.is-playing .bubble--r { animation-name: bub-in-r; }
.story.is-after .bubble { animation: bub-out .45s ease-in calc(var(--i) * .05s) both; }
.story.is-after .story__agenda li { animation: row-in .5s cubic-bezier(.2, .7, .2, 1) calc(.45s + var(--i) * .2s) both; }
@keyframes bub-in { from { opacity: 0; transform: translate(-24px, 10px); } to { opacity: 1; transform: none; } }
@keyframes bub-in-r { from { opacity: 0; transform: translate(24px, 10px); } to { opacity: 1; transform: none; } }
@keyframes bub-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-40px) scale(.8); } }
@keyframes row-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .story__grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; }
  .story__text { display: flex; flex-direction: column; align-items: center; }
  .story__title { font-size: clamp(26px, 7.4vw, 36px); }
  .story__title br { display: none; }
  .story__states { margin-top: 10px; min-height: 4.6em; }
  .story__state { font-size: 15px; }
  .story__phone { width: min(74vw, 270px); height: auto; aspect-ratio: 9 / 16; border-radius: 32px; padding: 8px; }
  .story__screen { border-radius: 25px; }
  .story__app { font-size: 14px; }
}

/* ---------- Tu página: vista previa en vivo ---------- */
.builder { display: grid; grid-template-columns: 1fr auto; gap: clamp(36px, 7vw, 100px); align-items: center; }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }
.builder__controls { display: grid; gap: 22px; align-content: start; }
.builder__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.contact .builder { margin-top: clamp(50px, 8vw, 90px); text-align: left; }
.builder .contact__alt { justify-content: flex-start; margin-top: 4px; }
.builder__lead { margin-top: -4px; }
.builder__cta { justify-self: start; }
.chips > button[aria-pressed="true"] { color: var(--text); }
.swatches { display: flex; gap: 12px; }
.swatches button {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); background: var(--sw);
  box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); transform: scale(1.08); }

.swatch-any {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: conic-gradient(from 0deg, #ff3b3b, #ffb13b, #f5ff3b, #3bff6b, #3bf0ff, #3b6bff, #b13bff, #ff3bb1, #ff3b3b);
  border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-strong); transition: transform .2s, box-shadow .2s;
}
.swatch-any span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgb(6 8 11 / .75); color: #fff; font-size: 15px; line-height: 1; font-weight: 600; }
.swatch-any input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.swatch-any:hover { transform: scale(1.08); }
.swatch-any.is-active { box-shadow: 0 0 0 2px var(--text); transform: scale(1.08); background: var(--sw-any, conic-gradient(from 0deg, #ff3b3b, #ffb13b, #f5ff3b, #3bff6b, #3bf0ff, #3b6bff, #b13bff, #ff3bb1, #ff3b3b)); }
.swatch-any:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.swatch-note { margin-top: 10px; font-size: 13px; color: var(--dim); }
.swatch-note b { color: var(--text); }
.swatch-note code { font-family: var(--font-mono); color: var(--text); }
.builder__preview { justify-self: center; text-align: center; }
.builder__note { margin-top: 14px; font-size: 13px; color: var(--dim); }
#tu-pagina { overflow-x: clip; } /* lo que flota al costado nunca genera scroll horizontal */
/* Escenario del celular */
.stage { position: relative; width: 360px; max-width: 100%; height: 680px; display: grid; place-items: center; perspective: 1600px; }
.stage__glow {
  position: absolute; inset: 8% -10%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--stage-brand, #3d7bff) 38%, transparent), transparent 75%);
  filter: blur(20px); opacity: 0; transform: scale(.6); transition: opacity 1.6s ease, transform 1.8s cubic-bezier(.16, 1, .3, 1), background .6s;
}
.stage.is-live .stage__glow { opacity: .9; transform: none; }
.stage__chip {
  position: absolute; z-index: 3; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgb(13 18 24 / .85); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  opacity: 0; transform: translateY(12px); transition: opacity .8s, transform .8s var(--ease);
}
.stage__chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.stage__chip--a { top: 30%; left: -30%; transition-delay: 1.6s; }
.stage__chip--b { top: 74%; left: -26%; transition-delay: 1.9s; }
.stage.is-live .stage__chip { opacity: 1; transform: none; animation: chip-float 6s ease-in-out 2.6s infinite; }
.stage__chip--b { animation-delay: 3.4s !important; }
@keyframes chip-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Entrada de película: llega inclinado y se endereza */
.phone3d { transform-style: preserve-3d; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.mini {
  --brand: #3d7bff;
  position: relative; width: 300px; height: 620px; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #1d2430, #07090d 60%);
  box-shadow: inset 0 0 0 1.5px #2b3442, inset 0 0 0 4px #0a0d12, 0 50px 100px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .04);
  text-align: left; color: #14161a;
  transform-origin: 50% 80%;
}
.mini.is-waiting { opacity: 0; transform: translateY(160px) rotateX(55deg) rotateZ(-8deg) scale(.78); filter: blur(8px); }
.mini.is-entering { transition: opacity .9s ease, transform 1.6s cubic-bezier(.16, 1, .3, 1), filter 1.1s ease; }
.stage.is-live .mini { animation: idle-sway 9s ease-in-out 2s infinite; }
@keyframes idle-sway { 0%, 100% { rotate: y -5deg; } 50% { rotate: y 5deg; } }
.mini__notch { position: absolute; z-index: 6; top: 18px; left: 50%; width: 86px; height: 22px; margin-left: -43px; border-radius: 12px; background: #050608; }
.mini__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f6f5f1; isolation: isolate; }
.mini__screen::after { /* reflejo del vidrio */
  content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / .16) 0%, transparent 28%, transparent 70%, rgb(255 255 255 / .05) 100%);
}
.mini__status { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 14px 22px 0; font-size: 11.5px; font-weight: 700; background: #f6f5f1; }
.mini__url { display: none; }
.mini__bat { width: 20px; height: 10px; border-radius: 3px; border: 1.5px solid #14161a; position: relative; }
.mini__bat::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: #14161a; border-radius: 1px; }
.mini__viewport { position: absolute; inset: 44px 0 0; overflow: hidden; }
.mini__screens { display: flex; width: 200%; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.mini.is-booking .mini__screens { transform: translateX(-50%); }
.mini__home, .mini__book { position: relative; width: 50%; height: 100%; overflow: hidden; }
.mini__page { position: relative; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); will-change: transform; }

/* Intro de cine: foto a pantalla completa, nombre en el centro y se levanta como un telón */
.mini__boot {
  position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  background: #050608; color: #fff; overflow: hidden;
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1), opacity .4s 1s;
}
.mini__boot-bg {
  position: absolute; inset: -4%; background: #111 center / cover no-repeat;
  filter: brightness(.66) saturate(1.05); transform: scale(1.18); opacity: 0;
  transition: opacity 1.2s ease, transform 4.5s cubic-bezier(.2, .6, .2, 1);
}
.mini__boot::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 55%, transparent, rgb(0 0 0 / .55)); }
.mini__boot-name, .mini__boot-tag { position: relative; z-index: 1; }
.mini__boot-name {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 44px; line-height: 1.02; letter-spacing: .02em; padding: 0 16px;
  text-shadow: 0 2px 18px rgb(0 0 0 / .65), 0 1px 3px rgb(0 0 0 / .5);
  opacity: 0; filter: blur(8px); transform: translateY(10px); letter-spacing: .25em;
  transition: opacity 1.2s .5s, filter 1.2s .5s, transform 1.2s .5s, letter-spacing 1.8s .5s cubic-bezier(.2, .7, .2, 1);
}
.mini__boot-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: 0; transition: opacity .8s 1.3s; }
.mini.is-booting .mini__boot-bg { opacity: 1; transform: scale(1); }
.mini.is-booting .mini__boot-name { opacity: 1; filter: none; transform: none; letter-spacing: .02em; }
.mini.is-booting .mini__boot-tag { opacity: .8; }
.mini.is-on .mini__boot { transform: translateY(-101%); opacity: 0; pointer-events: none; }
.mini.is-rebuild .mini__screen > :not(.mini__boot) { animation: rebuild .7s ease both; }
@keyframes rebuild { 0% { filter: none; } 30% { filter: blur(2px); opacity: .55; } 100% { filter: none; opacity: 1; } }

/* Dedo que maneja el celular */
.mini__finger {
  position: absolute; z-index: 9; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgb(20 22 26 / .22); border: 2px solid rgb(255 255 255 / .9); box-shadow: 0 4px 14px rgb(0 0 0 / .25);
  opacity: 0; transition: transform .75s cubic-bezier(.45, 0, .2, 1), opacity .3s;
}
.mini.is-on .mini__finger.is-shown { opacity: 1; }
.mini__finger.is-tap { animation: tap .35s ease; }
.mini__finger.is-tap::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; animation: ripple .5s ease-out forwards; }
@keyframes tap { 50% { scale: .78; } }
@keyframes ripple { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 2.4; } }
.is-pressed { scale: .95; filter: brightness(.92); transition: scale .15s, filter .15s; }

/* Contenido de la página de ejemplo (estilo editorial, con foto) */
.mini { --serif: "Cormorant Garamond", Georgia, serif; }
.mp-hero { position: relative; min-height: 554px; overflow: hidden; color: #1d2320; background: #ece8e0; display: flex; flex-direction: column; }
.mp-hero__bg {
  position: absolute; inset: 0; background: #ddd center / cover no-repeat;
  transform: scale(1.14); transition: transform 3.5s cubic-bezier(.2, .6, .2, 1);
}
.mp-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(244 241 235 / .55) 0%, rgb(244 241 235 / .78) 45%, rgb(244 241 235 / .96) 100%); }
.mini.is-revealed .mp-hero__bg { transform: scale(1); }
.mini.is-dark .mp-hero { color: #f4f1eb; background: #111; }
.mini.is-dark .mp-hero__bg::after { background: linear-gradient(180deg, rgb(10 10 10 / .35) 0%, rgb(10 10 10 / .62) 50%, rgb(10 10 10 / .92) 100%); }
.mp-nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 0; }
.mp-name { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.mp-menu { display: grid; gap: 4px; } .mp-menu i { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; }
.mp-hero__body { position: relative; z-index: 1; margin-top: auto; padding: 0 16px 18px; }
.mp-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-ink, var(--brand)); filter: saturate(.8); }
.mini.is-dark .mp-eyebrow { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.mp-eyebrow::before { content: ""; width: 0; height: 1px; background: currentColor; transition: width .8s .2s cubic-bezier(.2, .7, .2, 1); }
.mini.is-revealed .mp-eyebrow::before { width: 22px; }
.mp-title { display: block; margin: 10px 0 10px; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: .98; letter-spacing: -.01em; }
.mp-line { display: block; overflow: hidden; padding-bottom: 2px; }
.mp-line > * { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.mp-line:nth-child(2) > * { transition-delay: .12s; }
.mp-title em { font-style: italic; color: var(--brand-ink, var(--brand)); }
.mini.is-dark .mp-title em { color: color-mix(in srgb, var(--brand) 60%, #fff); }
.mp-sub { display: block; font-size: 11.5px; line-height: 1.5; opacity: .82; }
.mp-btns { display: flex; gap: 6px; margin-top: 14px; }
.mp-btn { padding: 10px 14px; border-radius: 10px; background: var(--brand); color: var(--on-brand, #fff); font-weight: 600; font-size: 11.5px; white-space: nowrap; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.mp-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: .8; }
.mp-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 11px; border-radius: 999px; font-size: 10px; background: rgb(255 255 255 / .7); color: #1d2320; backdrop-filter: blur(6px); }
.mini.is-dark .mp-pill { background: rgb(255 255 255 / .12); color: #f4f1eb; }
.mp-pill i { width: 6px; height: 6px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 3px rgb(63 191 127 / .25); }
.mp-stats { display: flex; gap: 18px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgb(128 128 128 / .3); }
.mp-stats div { display: grid; gap: 2px; }
.mp-stats b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1; }
.mp-stats span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
/* revelado escalonado después de la intro */
.mp-eyebrow, .mp-sub, .mp-btns, .mp-pill, .mp-stats, .mp-nav { opacity: 0; transform: translateY(10px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.mini.is-revealed .mp-nav { opacity: 1; transform: none; }
.mini.is-revealed .mp-eyebrow { opacity: 1; transform: none; transition-delay: .15s; }
.mini.is-revealed .mp-line > * { transform: none; }
.mini.is-revealed .mp-sub { opacity: .82; transform: none; transition-delay: .45s; }
.mini.is-revealed .mp-btns { opacity: 1; transform: none; transition-delay: .6s; }
.mini.is-revealed .mp-pill { opacity: 1; transform: none; transition-delay: .75s; }
.mini.is-revealed .mp-stats { opacity: 1; transform: none; transition-delay: .9s; }
.mp-sec .mp-label, .mp-hours, .mp-team, .mp-cards { position: relative; }
.mp-sec { padding: 20px 16px 0; }
.mp-label { display: block; margin-bottom: 10px; font-family: var(--serif); font-weight: 600; font-size: 21px; color: #1d2320; }
.mp-cards { display: grid; gap: 8px; }
.mp-card { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #ebe8e2; }
.mp-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); }
.mp-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-card b { display: block; font-family: var(--serif); font-weight: 600; font-size: 16px; } .mp-card small { color: #8a8d93; font-size: 11px; }
.mp-card i { font-style: normal; color: #b6b3ac; font-size: 18px; }
.mp-team { display: flex; gap: 14px; }
.mp-person { display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.mp-person span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 70%, #fff), color-mix(in srgb, var(--brand) 70%, #000)); }
.mp-hours { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #ebe8e2; font-size: 12px; }
.mp-hours div { display: flex; justify-content: space-between; } .mp-hours span { color: #8a8d93; }
.mp-map {
  position: relative; height: 110px; border-radius: 14px; overflow: hidden; display: grid; place-items: end start; padding: 10px 12px; font-size: 12px;
  background: linear-gradient(90deg, #e3e0d8 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(#e3e0d8 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(160deg, #eef1f4 55%, #d6e6f2 55%);
  border: 1px solid #ebe8e2;
}
.mp-pin { position: absolute; left: 52%; top: 30%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 22%, transparent); }
.mp-foot { padding: 22px 16px 70px; font-size: 11px; color: #9a9790; }
.mp-wa { position: absolute; right: 12px; bottom: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: #25d366; box-shadow: 0 6px 16px rgb(0 0 0 / .22); }

/* Pantalla de reserva */
.mb-head { display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px; border-bottom: 1px solid #ebe8e2; }
.mb-back { font-size: 24px; line-height: 1; color: var(--brand); }
.mb-head b { font-size: 15px; }
.mb-body { padding: 4px 16px; }
.mb-label { display: block; margin: 14px 0 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a8d93; }
.mb-opts, .mb-days, .mb-times { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-opts span, .mb-days span, .mb-times span {
  padding: 8px 11px; border-radius: 10px; background: #fff; border: 1px solid #e6e3dc; font-size: 12px; font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.mb-days span { display: grid; justify-items: center; width: 52px; padding: 6px 0; line-height: 1.2; }
.mb-days small { font-size: 9px; color: #8a8d93; text-transform: uppercase; font-weight: 500; }
.mb-times span { width: calc(33.3% - 4px); text-align: center; font-family: var(--font-mono); }
.mb-times span.is-off { color: #c4c1ba; text-decoration: line-through; }
.mb-body .is-picked { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.mb-body .is-picked small { color: rgb(255 255 255 / .8); }
.mb-input { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid #e6e3dc; font-size: 13px; font-weight: 600; }
.mb-caret { display: inline-block; width: 1.5px; height: 16px; margin-left: 2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.mb-confirm { display: block; margin-top: 16px; padding: 12px; border-radius: 12px; text-align: center; background: var(--brand); color: var(--on-brand, #fff); font-weight: 700; font-size: 13px; opacity: .45; transition: opacity .3s; }
.mb-confirm.is-ready { opacity: 1; }
.mb-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px;
  background: #f6f5f1; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mb-done b { font-size: 19px; } .mb-done span { max-width: 210px; font-size: 12.5px; color: #6b6e74; line-height: 1.5; }
.mini.is-done .mb-done { opacity: 1; }
.mb-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 18%, transparent); transform: scale(.4); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.mini.is-done .mb-check { transform: none; }
.mb-check svg { width: 30px; height: 30px; fill: none; stroke: var(--on-brand, #fff); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.mini.is-done .mb-check svg { animation: check .5s .3s ease forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }

/* Aviso que le llega al dueño */
.toast {
  position: absolute; z-index: 4; right: -40%; top: 62%; display: flex; gap: 12px; align-items: center; text-align: left;
  padding: 12px 16px; border-radius: 16px; min-width: 220px;
  background: rgb(13 18 24 / .92); border: 1px solid var(--line-strong); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgb(0 0 0 / .5);
  opacity: 0; transform: translateX(30px) scale(.95); transition: opacity .5s, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.is-shown { opacity: 1; transform: none; }
.toast__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); position: relative; }
.toast__icon::after { content: ""; position: absolute; inset: 9px 8px; border: 2px solid #fff; border-top-width: 5px; border-radius: 3px; }
.toast b { display: block; font-size: 14px; color: var(--text); }
.toast span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1180px) { .stage__chip--a, .stage__chip--b { left: -14%; } .toast { right: -18%; } }
@media (max-width: 860px) { .stage { margin: 0 auto; } }
@media (max-width: 860px) { .stage__chip { display: none; } }
@media (max-width: 420px) {
  .stage { width: 100%; height: 590px; }
  .mini { width: 272px; height: 560px; border-radius: 42px; padding: 10px; }
  .mini__screen { border-radius: 33px; }
  .mp-title { font-size: 32px; }
  .mb-days span { width: 46px; }
  .toast { right: 50%; top: auto; bottom: 6%; transform: translate(50%, 20px) scale(.95); min-width: 230px; }
  .toast.is-shown { transform: translate(50%, 0); }
}

/* ---------- Entrada del inicio: solo CSS, arranca en el primer cuadro (no espera al JavaScript) ---------- */
.hero-in { animation: hero-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in--title { animation-name: hero-title; animation-delay: .05s; }
.hero__lead.hero-in { animation-delay: .15s; }
.hero__actions.hero-in { animation-delay: .25s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-title { from { transform: translateY(22px); } } /* el título siempre visible: se desliza sin desaparecer */

/* ---------- Animación de aparición ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal].is-settled { transition: none; will-change: auto; }
.no-js [data-reveal] { opacity: 1; transform: none; }



/* Precio orientativo */
.price-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 28px; padding: 26px 30px; border-radius: var(--radius);
  border: 1px solid rgb(var(--accent-rgb) / .35);
  background: linear-gradient(120deg, rgb(var(--accent-rgb) / .14), rgb(var(--accent-rgb) / .03) 60%);
}
.price-band__main { flex: 1 1 420px; }
.price-band__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.price-band__title { margin: 8px 0 6px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; color: var(--text); line-height: 1.25; }
.price-band__title span { color: var(--muted); font-weight: 500; }
.price-band__title b { font-weight: 800; letter-spacing: -.02em; }
.price-band__sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 620px; }
.price-band__cta {
  flex: 0 0 auto; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.price-band__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(var(--accent-rgb) / .45); }
@media (max-width: 600px) { .price-band { padding: 22px; } .price-band__cta { width: 100%; text-align: center; } }

/* Rendimiento: las animaciones de una sección se pausan mientras no está a la vista */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
