/* ============================================================================
   Nolan Pichardo · Creador audiovisual  —  styles.css
   Estructura:
     1. Tokens        2. Reset/base     3. Utilidades    4. Tipografía
     5. Componentes   6. Secciones      7. Efectos       8. Responsive
     9. Reduced-motion
   ========================================================================== */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* Fondo · valores EXACTOS de la referencia (recursos.skilio.com) */
  --bg:        #07080a;
  --bg-2:      #0d0e11;
  --bg-soft:   #0c0c0c;
  --ink:       #f1ece1;
  --ink-dim:   #a39d92;              /* --ink-soft de la referencia */
  --ink-muted: #6a655c;
  --line:      rgba(241, 236, 225, 0.08);
  --line-strong: rgba(241, 236, 225, 0.16);

  /* Acento DORADO (sistema de 3 tonos) */
  --accent:        #c9a86a;   /* dorado antiguo · texto fino, líneas, iconos */
  --accent-bright: #ecdcb6;   /* brillo/sheen · degradados, hover, "playhead" */
  --accent-ink:    #17130a;   /* texto oscuro que va ENCIMA del dorado */
  --accent-warm:   #c89b6c;   /* bronce · degradados del fondo y del CTA */

  /* Panel de cristal (mismo lenguaje que la referencia) */
  --panel:        linear-gradient(rgba(20, 21, 26, 0.7), rgba(12, 13, 16, 0.7));
  --panel-strong: rgba(18, 18, 18, 0.60);
  --blur:         blur(8px);
  --radius:       22px;
  --shadow-card:  0 30px 80px -40px rgba(0, 0, 0, 0.7), 0 6px 20px -10px rgba(0, 0, 0, 0.5);

  --sans:  "Clash Display", "Bricolage Grotesque", "Archivo", Arial, sans-serif;
  --body:  "Inter", system-ui, sans-serif;
  --mono:  "Space Mono", ui-monospace, monospace;

  --green:  #37d67a;   /* verde de ubicación, como la referencia */
  --blue:   #3b9dff;   /* azul de verificado, como la referencia */

  --wrap:   1320px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-quint:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: 5rem; }

body {
  background-color: var(--bg);
  /* Destellos cálidos idénticos a la referencia: arriba y abajo del documento */
  background-image:
    radial-gradient(90% 50% at 50% 0%,   rgba(216, 201, 163, 0.08), rgba(0, 0, 0, 0) 60%),
    radial-gradient(80% 40% at 50% 100%, rgba(200, 155, 108, 0.05), rgba(0, 0, 0, 0) 60%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
sup { font-size: 0.45em; vertical-align: super; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ============================================================
   3. UTILIDADES
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Un elemento con el atributo `hidden` nunca se muestra, aunque su clase defina `display` */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--ink-dim);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.eyebrow span { color: var(--accent); }

/* Cabecera de sección: nº a la IZQUIERDA · //NOMBRE al CENTRO · etiqueta a la DERECHA */
.sec-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: .4rem 1rem;
  margin-bottom: clamp(2rem, 5.5vw, 3.6rem);
}
.sec-top__no {
  justify-self: start;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; color: var(--accent);
}
.sec-top > .eyebrow {
  justify-self: center; text-align: center; margin-bottom: 0;
}
.sec-top__tag {
  justify-self: end; text-align: right;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim);
}
@media (max-width: 520px) {
  .sec-top { grid-template-columns: 1fr auto; }
  .sec-top > .eyebrow { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; }
}

/* ============================================================
   4. TIPOGRAFÍA
   ============================================================ */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Kicker gris que acompaña al título de sección (jerarquía editorial) */
.kicker {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(.9rem, 2vw, 1.4rem);
}

.shead {
  font-size: clamp(2.7rem, 9.5vw, 7.5rem);
  font-weight: 600;
  line-height: 0.75;
  letter-spacing: -0.014em;
  margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem);
}

/* ---- Titular con brillo dorado: misma fuente en ambas líneas, efecto
   completo (degradado + contorno + sombra) igual que el prompt original ---- */
.head-shine {
  display: inline-block;
  font-family: var(--sans); font-weight: 800;
  color: transparent;
  background-image: linear-gradient(
    120deg,
    var(--accent-bright) 0%,
    rgba(236, 220, 182, .35) 22%,
    rgba(236, 220, 182, .08) 40%,
    var(--accent-bright) 52%,
    rgba(236, 220, 182, .2) 70%,
    var(--accent-bright) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(236, 220, 182, .22);
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, .4)) drop-shadow(0 5px 10px rgba(0, 0, 0, .2));
  animation: headShine 9s linear infinite;
}
@keyframes headShine {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}
@media (prefers-reduced-motion: reduce) {
  .head-shine { animation: none; }
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 44ch;
  color: var(--ink);
}
.lead em { color: var(--ink-dim); font-style: normal; }

/* ============================================================
   5. COMPONENTES
   ============================================================ */
.btn {
  --pad: clamp(1rem, 2vw, 1.4rem);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .8rem;
  padding: var(--pad) calc(var(--pad) * 1.6);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translate3d(0, 1px, 0) scale(0.98); }
/* Foco que sigue al cursor DENTRO del botón (misma animación que la referencia) */
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%),
    rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-soft);
}
.btn:hover::after { opacity: 1; }

/* CTA principal · píldora con una luz dorada que gira sin parar por el borde.
   Estructura: el <a> es el aro (2 px de padding + fondo dorado tenue + luz giratoria
   en ::before) y el <span> es el botón oscuro que lo tapa por dentro. Al pasar el
   cursor crece un 5 % y la luz se aviva; al pulsar vuelve a su tamaño. */
.btn--big {
  position: relative; z-index: 0; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px;
  border: 0;
  background: rgba(201, 168, 106, .16);
  color: var(--accent-bright);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(.92rem, 1.7vw, 1.08rem);
  letter-spacing: .04em;
  transition: box-shadow .45s var(--ease-out);
}
.btn--big::after { display: none; }              /* sin el foco de cursor del .btn genérico */
/* Luz: barra dorada desenfocada en el centro-derecha de una caja del doble de tamaño,
   que gira sobre su centro y recorre todo el borde. */
.btn--big::before {
  content: ""; position: absolute; z-index: -2;
  left: -50%; top: -50%; width: 200%; height: 200%;
  background-image: linear-gradient(var(--accent-bright));
  background-repeat: no-repeat; background-position: 100% 50%; background-size: 50% 30%;
  filter: blur(6px);
  animation: btnOrbit 4s linear infinite;
}
@keyframes btnOrbit { 100% { transform: rotate(1turn); } }
.btn--big > span {
  position: relative; z-index: 1; display: block;
  padding: .82rem clamp(1.9rem, 4vw, 2.6rem);
  border-radius: 999px;
  background: rgba(10, 9, 7, .84);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .35s var(--ease-out), background .35s var(--ease-out);
}
/* Al pasar el cursor (o con el teclado): el botón se llena de dorado y las letras
   pasan a oscuro. Sin crecer ni desplazarse. */
.btn--big:hover,
.btn--big:focus-visible {
  box-shadow: 0 10px 40px -12px rgba(201, 168, 106, .6);
}
.btn--big > span::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.btn--big:hover > span,
.btn--big:focus-visible > span { color: var(--accent-ink); }
.btn--big:hover > span::before,
.btn--big:focus-visible > span::before { opacity: 1; }
.btn--big[aria-expanded="true"] { box-shadow: 0 10px 40px -12px rgba(201, 168, 106, .6); }
.btn--big[aria-expanded="true"] > span { color: var(--accent-ink); }
.btn--big[aria-expanded="true"] > span::before { opacity: 1; }
.btn--big:active { transform: none; }

/* Menú de contacto (WhatsApp / Llamar) que se abre bajo el botón */
.cta { position: relative; width: fit-content; margin-inline: auto; }
.cta__menu {
  position: absolute; z-index: 30; top: calc(100% + .9rem); left: 50%;
  width: min(300px, 88vw); padding: .5rem; display: grid; gap: .3rem; text-align: left;
  border: 1px solid rgba(201, 168, 106, .45); border-radius: 22px;
  background: rgba(12, 11, 9, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 40px -14px rgba(201, 168, 106, .35);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -10px) scale(.96); transform-origin: 50% 0;
  transition: opacity .28s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.cta.is-open .cta__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}
.cta__opt {
  display: flex; align-items: center; gap: .85rem; padding: .7rem .8rem; border-radius: 16px;
  color: var(--ink); transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.cta__ic {
  flex: none; width: 38px; height: 38px; padding: 9px; display: grid; place-items: center;
  border: 1px solid rgba(201, 168, 106, .4); border-radius: 50%; color: var(--accent);
  background: radial-gradient(circle at 50% 30%, rgba(201, 168, 106, .18), rgba(201, 168, 106, .03) 72%);
  transition: color .3s, border-color .3s;
}
.cta__ic svg { width: 100%; height: 100%; }
.cta__t b { display: block; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.cta__t small { display: block; margin-top: .15rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--ink-dim); transition: color .3s; }
.cta__opt:hover, .cta__opt:focus-visible {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright)); color: var(--accent-ink); outline: none;
}
.cta__opt:hover .cta__ic, .cta__opt:focus-visible .cta__ic { color: var(--accent-ink); border-color: rgba(23, 19, 10, .45); }
.cta__opt:hover .cta__t small, .cta__opt:focus-visible .cta__t small { color: rgba(23, 19, 10, .75); }
@media (prefers-reduced-motion: reduce) { .cta__menu { transition: opacity .2s, visibility 0s; transform: translate(-50%, 0); } }
.btn--big:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  /* Con "reducir movimiento" (Windows lo trae activo a menudo): la luz sigue girando,
     pero mucho más despacio. */
  .btn--big::before { animation-duration: 14s; }
}

/* ---- Barra superior ---- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  color: var(--ink);
}
/* Velo de legibilidad: mantiene el texto de la barra nítido sobre cualquier sección
   sin tapar nada. Se funde hacia abajo. */
.topbar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1;
  height: 200%;
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.32) 42%, transparent 100%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, #000 0 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0 45%, transparent 100%);
  pointer-events: none;
}
.topbar__side { display: flex; align-items: center; }

/* ---- Ciudad/hora local · píldora con estado en vivo, revela la hora al pasar
   el cursor (puerto de un componente React: location-tag) ---- */
.clocktag {
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .85rem .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: var(--ink);
  cursor: default;
  transition: border-color .5s var(--ease-soft), background-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
@media (hover: hover) {
  .clocktag:hover { border-color: var(--line-strong); box-shadow: 0 0 20px rgba(0, 0, 0, .28); }
}
.clocktag:focus-visible { border-color: var(--accent); }
.clocktag__inner { display: flex; align-items: center; gap: .55rem; }

/* Punto en vivo (parpadeo tipo "ping") */
.clocktag__dot { position: relative; display: inline-flex; flex: none; width: 8px; height: 8px; }
.clocktag__dot-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); opacity: .75;
  animation: clocktagPing 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.clocktag__dot-core { position: relative; width: 100%; height: 100%; border-radius: 50%; background: var(--green); }
@keyframes clocktagPing {
  0%   { transform: scale(1);   opacity: .75; }
  75%, 100% { transform: scale(2.3); opacity: 0; }
}

/* Ciudad ⇄ hora: mismo hueco, una encima de otra (el ancho se fija al más largo) */
.clocktag__stack { position: relative; display: grid; overflow: hidden; }
.clocktag__loc, .clocktag__time {
  grid-area: 1 / 1;
  display: block; white-space: nowrap;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  transition: transform .5s var(--ease-soft), opacity .5s var(--ease-soft);
}
.clocktag__loc  { transform: translateY(0);     opacity: 1; }
.clocktag__time { transform: translateY(100%);  opacity: 0; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .clocktag:hover .clocktag__loc  { transform: translateY(-100%); opacity: 0; }
  .clocktag:hover .clocktag__time { transform: translateY(0);     opacity: 1; }
}
.clocktag:focus-visible .clocktag__loc  { transform: translateY(-100%); opacity: 0; }
.clocktag:focus-visible .clocktag__time { transform: translateY(0);     opacity: 1; }

.clocktag__arrow {
  width: 11px; height: 11px; flex: none; color: var(--ink-dim);
  opacity: .5; transform: rotate(0deg) translateX(0);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), color .35s var(--ease-out);
}
@media (hover: hover) {
  .clocktag:hover .clocktag__arrow { transform: rotate(-45deg) translateX(2px); opacity: 1; color: var(--accent); }
}
.clocktag:focus-visible .clocktag__arrow { transform: rotate(-45deg) translateX(2px); opacity: 1; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .clocktag__loc, .clocktag__time, .clocktag__arrow { transition: none; }
  .clocktag__dot-ping { animation: none; }
}
/* Móvil/tablet: hamburguesa al borde derecho (antes iba centrada y se montaba sobre la
   píldora "Miami, USA"). Área táctil de 44 px. En escritorio (≥1080 px) se oculta y
   el menú son las slide-tabs. */
.topbar__menu {
  display: grid; align-content: center; justify-items: center; gap: 5px;
  min-width: 44px; min-height: 44px; padding: 10px; margin-left: auto; margin-right: -10px;
}
.topbar__menu span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .35s var(--ease-out), opacity .2s; }
.topbar__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.topbar__menu[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---- Menú principal · slide-tabs (píldora con cursor deslizante) ---- */
.slidetabs {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: none;                       /* móvil usa el botón hamburguesa */
}
.slidetabs__list {
  position: relative;
  display: flex; align-items: center;
  width: fit-content; margin-inline: auto;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(201, 168, 106, 0.45);   /* filo dorado, como antes */
  border-radius: 999px;
  background: var(--panel-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.slidetabs__list li { display: block; }
.slidetabs__tab {
  position: relative; z-index: 10; display: block;
  padding: .55rem 1.15rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap;
  color: #fff; mix-blend-mode: difference;
}
.slidetabs__cursor {
  position: absolute; z-index: 0; top: 4px; left: 0;
  width: 0; height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--accent-bright);
  opacity: 0;
  transition: left .32s var(--ease-out), width .32s var(--ease-out), opacity .2s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .slidetabs__cursor { transition: opacity .2s; }
}

/* ---- Menú desplegable ---- */
.drawer {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-out);
}
.drawer[hidden] { display: flex; }          /* mantenemos en DOM para animar */
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer a {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink-dim);
  transition: color .3s, transform .3s var(--ease-out);
}
.drawer a:hover { color: var(--ink); transform: translateX(1rem); }

/* ---- Nav de reserva sin JavaScript ---- */
.nojs-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 180;
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center;
  padding: 4.5rem 1rem 1rem;
  background: linear-gradient(var(--bg), rgba(0,0,0,.6) 70%, transparent);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.nojs-nav a { color: var(--ink-dim); }
.nojs-nav a:hover { color: var(--ink); }

/* ---- HUD cámara ---- */
.hud {
  position: fixed; right: var(--gutter); bottom: 1rem; z-index: 120;
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--ink-dim);
  mix-blend-mode: difference;
}
.hud__rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(1) infinite; }
@media (max-width: 719px) { .hud { display: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   6. SECCIONES
   ============================================================ */
/* El contenido va por ENCIMA de las capas fijas del fondo (aurora/mesh/vignette/grain) */
#main { position: relative; z-index: 2; }

.section { padding-block: clamp(5rem, 14vw, 11rem); position: relative; }

/* Cada sección abre con una BARRA DE PROGRESIÓN tipo reproductor de vídeo.
   ::before = raíl gris (pista completa).
   ::after  = relleno dorado; su ancho = --fill (0→1), que main.js pone en
             CADA sección con el progreso global de scroll de la página.
             Arriba del todo = 0 %, al llegar al pie = 100 %. */
.section { border-top: 0; }
.section::before {
  content: "";
  position: absolute; top: 0;
  left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0,
    var(--line) 6%,
    var(--line) 94%,
    transparent 100%);
}
.section::after {
  content: "";
  position: absolute; top: 0;
  left: var(--gutter); right: var(--gutter);
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    var(--accent) 72%,
    var(--accent-bright) 100%);
  box-shadow: 0 0 9px 0 rgba(236, 220, 182, 0.35);   /* leve resplandor del "cabezal" */
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
  transition: transform .12s linear;
}
@media (prefers-reduced-motion: reduce) {
  .section::after { transition: none; box-shadow: none; }
}

/* ---- Intro / carga ---- */
.intro {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
  transition: transform .8s var(--ease-out);
}
.intro.is-done { transform: translateY(-100%); }
.intro__num  { font-family: var(--sans); font-weight: 600; font-size: clamp(4rem, 22vw, 16rem); line-height: .8; letter-spacing: -0.02em; }
.intro__word { font-family: var(--mono); font-size: .8rem; letter-spacing: .3em; color: var(--ink-dim); padding-bottom: 1rem; }

/* ---- 01 · Portada · deja ver las capas de fondo (aurora / mesh / vignette) --- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: 6rem var(--gutter) 3rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--ink);
  background: transparent;
}
.hero > * { position: relative; z-index: 1; }

/* La imagen de portada · PNG transparente, se apoya en el fondo del sitio.
   Sin marco, sin sombra, sin recorte: se integra con el resto de la página. */
.hero__media {
  width: min(100%, 1440px);
  margin-inline: auto;
  will-change: transform;
}

/* Escenario 16:9 · todo se mide en cqw (1cqw = 1% del ancho), así el diseño
   escala completo igual que una imagen, pero con textos reales y animables. */
.hero__stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  container-type: inline-size;
  --t0: 1.45s;                       /* entra cuando termina la intro */
}
.hs { position: absolute; margin: 0; }

/* Marco dorado (encima de la persona) · mismo filo dorado del menú */
.hs-frame {
  left: 2.34%; top: 4.2%; width: 95.3%; height: 91.6%;
  border: .16cqw solid rgba(201, 168, 106, .5); border-radius: 1.56cqw;
  z-index: 4; pointer-events: none;
}
/* Barra de roles con la apariencia de la barra del menú (.slidetabs): cristal,
   filo dorado, píldora, etiquetas en mono. Va centrada y compacta; la cabeza
   de la persona puede taparla, no importa. */
.hs-pill {
  left: 50%; top: 9.6%; translate: -50% 0; z-index: 1;
  display: flex; align-items: center; gap: 1.1cqw;
  padding: .5cqw 1.5cqw;
  border: 1px solid rgba(201, 168, 106, .45); border-radius: 999px;
  background: var(--panel-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-family: var(--mono); font-size: 1.02cqw; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.hs-pill i { width: .32cqw; height: .32cqw; border-radius: 50%; background: var(--accent); flex: none; }
.hs-name {
  left: 5.6%; top: 24.2%; z-index: 1;
  font-size: 2.5cqw; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
}
.hs-role {
  left: 5.7%; top: 29.8%; z-index: 1;
  font-family: var(--mono); font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.hs-tag {
  right: 5.9%; top: 24.8%; z-index: 1; text-align: right;
  font-family: var(--body); font-weight: 500; font-size: 1.5cqw; line-height: 1.35;
  color: var(--ink);
}

/* PORTFOLIO gigante: relleno detrás, contorno delante de la persona */
.hs-pf { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hs-pf--fill { z-index: 1; }
.hs-pf--fill .pf-l { fill: url(#pfGrad); }
.hs-pf--line { z-index: 3; }
.hs-pf--line .pf-l { fill: none; stroke: rgba(201, 168, 106, .6); stroke-width: 7; stroke-linejoin: round; }

.hs-person {
  left: 29.69%; top: 3.27%; width: 40.63%; height: auto; z-index: 2;
  filter: drop-shadow(0 2.2cqw 3cqw rgba(0, 0, 0, .45));
  pointer-events: none; user-select: none;
}
.hs-vc {
  left: 59.2%; top: 63.4%; z-index: 3;
  font-size: 3.7cqw; line-height: 1.1; letter-spacing: .005em; text-transform: uppercase;
  white-space: nowrap;
}

/* Entrada: mismo movimiento que .reveal (sube, se desenfoca y aparece),
   escalonado con --hd; empieza tras la pantalla de carga. */
.hs-frame, .hs-pill, .hs-role, .hs-tag, .hs-social {
  animation: heroUp .95s var(--ease-out) both;
  animation-delay: calc(var(--t0) + var(--hd, 0s));
}
/* Titulares con brillo: conservan el brillo deslizante (.head-shine) y la
   entrada no toca el filter para no pisar su sombra */
.hs-name, .hs-vc {
  animation: heroUpSoft .95s var(--ease-out) both, headShine 9s linear infinite;
  animation-delay: calc(var(--t0) + var(--hd, 0s)), 0s;
}
.hs-frame { animation-name: heroFrame; --hd: 0s; }
.hs-pill { animation-name: heroPill; }
.hs-pf--fill .pf-l, .hs-pf--line .pf-l {
  animation: pfIn .95s var(--ease-out) both;
  animation-delay: calc(var(--t0) + .45s + var(--i) * .07s);
}
/* ── Aparición del sujeto (secuencia) ─────────────────────────────
   1) letras PORTFOLIO suben · 2) un halo dorado se enciende detrás
   3) el sujeto emerge desde abajo, de silueta oscura a color, con una
      máscara suave que sube · 4) el contorno de las letras se dibuja
      alrededor de él · 5) un barrido de luz une todo. */
.hs-pf--line .pf-l {
  animation: pfDraw 1.5s cubic-bezier(.65, 0, .25, 1) both;
  animation-delay: calc(var(--t0) + 1.35s + var(--i) * .09s);
}
.hs-glow {
  left: 24%; top: 6%; width: 52%; height: 84%; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 50% 55% at 50% 42%, rgba(236, 220, 182, .34), rgba(201, 168, 106, .12) 45%, transparent 72%);
  mix-blend-mode: screen;
  animation: heroGlow 2.2s var(--ease-out) both;
  animation-delay: calc(var(--t0) + .7s);
}
/* Dos capas de máscara: (1) barrido de aparición que sube, (2) difuminado
   permanente del borde inferior para que el sujeto no se vea cortado */
.hs-person {
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0 33.3%, transparent 66.6%), linear-gradient(to bottom, #000 0 74%, transparent 99%);
          mask-image: linear-gradient(to top, #000 0 33.3%, transparent 66.6%), linear-gradient(to bottom, #000 0 74%, transparent 99%);
  -webkit-mask-size: 100% 300%, 100% 100%; mask-size: 100% 300%, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: heroPerson 1.9s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--t0) + .95s);
}
.hs-sweep {
  inset: 4.2% 2.34% 4.2% 2.34%; z-index: 3; pointer-events: none; overflow: hidden;
  border-radius: 1.56cqw;
}
.hs-sweep::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%;
  background: linear-gradient(100deg, transparent 15%, rgba(236, 220, 182, .22) 50%, transparent 85%);
  mix-blend-mode: screen;
  transform: translateX(-120%) skewX(-14deg);
  animation: heroSweep 1.7s cubic-bezier(.4, 0, .2, 1) both;
  animation-delay: calc(var(--t0) + 2.15s);
}
/* Redes · mismo lenguaje del menú: filo dorado, icono de línea, usuario en mono */
.hs-social {
  left: 5.7%; top: 67%; z-index: 3;
  display: flex; flex-direction: column; gap: .75cqw;
}
.hs-social a {
  display: inline-flex; align-items: center; gap: .7cqw; width: fit-content;
  padding: .38cqw 1.1cqw .38cqw .45cqw;
  border: 1px solid rgba(201, 168, 106, .4); border-radius: 999px;
  background: var(--panel-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-family: var(--mono); font-size: .98cqw; letter-spacing: .1em; color: var(--ink);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
}
.hs-social svg {
  width: 1.9cqw; height: 1.9cqw; padding: .38cqw; box-sizing: border-box; flex: none;
  color: var(--accent); border-radius: 50%; background: rgba(201, 168, 106, .1);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.hs-social a:hover { border-color: var(--accent); }
.hs-social a:hover svg { background: var(--accent-bright); color: var(--accent-ink); }
.hs-social a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

/* Profundidad con el cursor (main.js pone --mx / --my de -1 a 1):
   fondo y frente se mueven en sentidos opuestos alrededor del sujeto */
.hs-pf--fill { translate: calc(var(--mx, 0) * .7cqw) calc(var(--my, 0) * .45cqw); }
.hs-person   { translate: calc(var(--mx, 0) * -.55cqw) calc(var(--my, 0) * -.35cqw); }
.hs-pf--line { translate: calc(var(--mx, 0) * .7cqw) calc(var(--my, 0) * .45cqw); }
.hs-glow     { translate: calc(var(--mx, 0) * -.4cqw) calc(var(--my, 0) * -.25cqw); }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes heroUpSoft {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroPill {   /* la barra ya se centra con translate: solo opacidad y blur */
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}
@keyframes heroFrame {
  from { opacity: 0; transform: scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes pfIn {
  from { opacity: 0; transform: translateY(90px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroPerson {
  0%   { -webkit-mask-position: 0 0, 0 0;    mask-position: 0 0, 0 0;    transform: translateY(7%) scale(1.06);
         filter: brightness(.18) saturate(.5) blur(7px) drop-shadow(0 2.2cqw 3cqw rgba(0,0,0,.45)); }
  55%  { filter: brightness(.55) saturate(.85) blur(2px) drop-shadow(0 2.2cqw 3cqw rgba(0,0,0,.45)); }
  100% { -webkit-mask-position: 0 100%, 0 0; mask-position: 0 100%, 0 0; transform: none;
         filter: brightness(1) saturate(1) blur(0) drop-shadow(0 2.2cqw 3cqw rgba(0,0,0,.45)); }
}
@keyframes heroGlow {
  from { opacity: 0; transform: scale(.7); }
  60%  { opacity: 1; }
  to   { opacity: .8; transform: scale(1); }
}
@keyframes pfDraw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes heroSweep {
  from { transform: translateX(-120%) skewX(-14deg); }
  to   { transform: translateX(420%) skewX(-14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hs, .hs .pf-l, .hs-pf .pf-l, .hs-sweep::before { animation: none !important; }
  .hs-sweep { display: none; }
  .hs-person {
    -webkit-mask-image: linear-gradient(to bottom, #000 0 74%, transparent 99%);
            mask-image: linear-gradient(to bottom, #000 0 74%, transparent 99%);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
  .hs-pf, .hs-person, .hs-glow { translate: none !important; }
}
/* Móvil: el banner se lee como imagen; se ocultan los textos más pequeños */
@media (max-width: 700px) {
  .hs-pill, .hs-tag, .hs-social { display: none; }
  .hs-name { font-size: 3.6cqw; }
  .hs-role { font-size: 2.3cqw; letter-spacing: .08em; top: 31%; }
  .hs-vc { font-size: 3.7cqw; }        /* más grande se salía del marco por la derecha */
}

/* Tres iconos (se conservan de la versión anterior) */
.hero__cols {
  position: relative; z-index: 1;
  width: 100%; max-width: 1100px;
  display: grid; gap: 2.2rem; grid-template-columns: 1fr;
  justify-items: center;
  padding-top: clamp(1.8rem, 3.4vw, 2.6rem);
}
/* Filete dorado que abre la franja, como las líneas de sección */
.hero__cols::before {
  content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 106, .5) 50%, transparent);
}
.hero__col {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  max-width: 26ch; text-align: center;
}
/* Icono: aro dorado fino con brillo interior (mismo lenguaje que la píldora del banner) */
.hero__ic {
  width: 48px; height: 48px; margin-bottom: .55rem; padding: 12px;
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid rgba(201, 168, 106, .45); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 168, 106, .2), rgba(201, 168, 106, .03) 72%),
    var(--panel-strong);
  box-shadow: inset 0 0 14px rgba(201, 168, 106, .1), 0 0 0 5px rgba(201, 168, 106, .04);
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), color .4s var(--ease-out);
}
.hero__ic svg { width: 100%; height: 100%; }
.hero__ic--pin, .hero__ic--verified { color: var(--accent); }   /* todo en dorado, sin verde/azul */
.hero__c1, .hero__c2 {
  font-family: var(--mono); font-weight: 400; line-height: 1.4;
  text-transform: uppercase;
}
.hero__c1 { font-size: .72rem; letter-spacing: .16em; color: var(--ink); }
.hero__c2 { font-size: .66rem; letter-spacing: .2em; color: var(--accent); }
@media (hover: hover) {
  .hero__col:hover .hero__ic {
    color: var(--accent-bright); border-color: rgba(236, 220, 182, .8);
    box-shadow: inset 0 0 16px rgba(201, 168, 106, .2), 0 0 26px rgba(201, 168, 106, .28), 0 0 0 5px rgba(201, 168, 106, .07);
  }
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; z-index: 3;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .3em; color: var(--ink-dim);
  animation: bob 2s var(--ease-soft) infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---- 02 · Enfoque ---- */
.phases { list-style: none; padding: 0; display: grid; gap: 0; margin-top: clamp(2rem, 6vw, 4rem); }
.phase {
  display: grid; gap: .6rem 2rem;
  grid-template-columns: 1fr;
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase__no { font-family: var(--mono); color: var(--accent); font-size: .8rem; letter-spacing: .1em; }
.phase__t  { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
.phase__d  { color: var(--ink-dim); max-width: 52ch; }

/* ---- 01 · Portafolio · cabecera editorial (como la referencia) ---- */
/* Fila superior: 01 // PORTFOLIO a la izquierda, rango de años a la derecha */
.portfolio__top {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem 1.5rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}
.portfolio__top .eyebrow { margin-bottom: 0; }
.portfolio__range {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em;
  color: var(--ink-dim); text-transform: uppercase;
}
/* Titular gigante a la izquierda + texto de presentación a la derecha */
.portfolio__head { display: grid; gap: 1.4rem; }
.portfolio__head .shead { margin-bottom: 0; }
.portfolio__head .lead { color: var(--ink); }
@media (min-width: 900px) {
  .portfolio__head {
    grid-template-columns: 1fr minmax(220px, 30ch);
    align-items: end;
    column-gap: clamp(2rem, 7vw, 7rem);
  }
  .portfolio__head .lead { padding-bottom: .4rem; }
}

/* ---- Galerías de reels (una por proyecto) ---- */
.reels {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}
.reel-group { padding-block: clamp(2rem, 5vw, 3.2rem); border-bottom: 1px solid var(--line); }
.reel-group__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem 1.5rem; margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
}
.reel-group__t {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem); line-height: 1; letter-spacing: -0.02em;
}
.reel-group__meta {
  display: block; margin-top: .5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim);
}
.reel-group__nav { display: flex; gap: .5rem; flex: none; }
.reel-nav {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s;
}
.reel-nav:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.reel-nav[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 600px) { .reel-group__nav { display: none; } }

/* Carril que se desliza en horizontal */
.reel-track {
  display: flex; gap: clamp(.8rem, 2vw, 1.4rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem;               /* espacio para la barra de scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.reel-track::-webkit-scrollbar { height: 4px; }
.reel-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.reel-track.is-dragging { scroll-behavior: auto; cursor: grabbing; }
.reel-track.is-dragging .reel { pointer-events: none; }

/* Tarjeta de reel 16:9 (por defecto · grupo "YouTube") */
.reel {
  position: relative; flex: 0 0 clamp(260px, 74vw, 520px);
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #0b0b0b;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), filter .4s var(--ease-out);
}
/* Al pasar el cursor: la tarjeta se adelanta un poco. Sin sombra hacia abajo
   (el carril recorta en vertical y se veía "cortada"): solo escala + brillo. */
@media (hover: hover) {
  .reel-track { padding-block: 14px; }      /* holgura arriba y abajo para el realce */
  .reel:hover,
  .reel:focus-within {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(201, 168, 106, 0.55);
    filter: brightness(1.06);
    z-index: 2;
  }
  /* Con el vídeo en marcha: sin filter ni escala. Chrome dibuja una raya fina en el
     centro de un iframe/vídeo cuando su contenedor lleva filter + scale a la vez. */
  .reel.is-playing,
  .reel.is-playing:hover,
  .reel.is-playing:focus-within {
    filter: none;
    transform: translateY(-6px);
  }
}
.reel { isolation: isolate; }
@media (prefers-reduced-motion: reduce) {
  .reel { transition: border-color .35s var(--ease-out); }
  .reel:hover, .reel:focus-within { transform: none; filter: none; }
}
/* Grupo en formato reel vertical 9:16 (Instagram) */
.reel-group--reels .reel {
  flex-basis: clamp(160px, 46vw, 250px);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
}
.reel-group--reels .reel__play { width: clamp(40px, 12vw, 54px); }
.reel__poster { width: 100%; height: 100%; object-fit: cover; }
.reel__hit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
  transition: background .35s var(--ease-out);
}
.reel__hit:hover { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); }
.reel__play {
  width: clamp(46px, 7vw, 66px); aspect-ratio: 1; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: grid; place-items: center;
  transition: transform .3s var(--ease-bounce, var(--ease-out)), background .3s;
}
.reel__hit:hover .reel__play { transform: scale(1.08); background: rgba(255,255,255,.12); }
.reel__play::after {
  content: ""; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff; margin-left: 3px;
}
.reel__cap {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 2;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: #fff;
  background: rgba(0,0,0,.55); padding: .35rem .55rem; border-radius: 4px;
  pointer-events: none;
}
/* Estado "sin enlace todavía" */
.reel.is-empty .reel__cap { color: var(--accent); }
.reel__hint {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em;
  text-align: center; color: var(--accent-ink); background: var(--accent);
  padding: .5rem; animation: reelHint 2.6s var(--ease-out) forwards;
}
@keyframes reelHint { 0%,80% { opacity: 1; } 100% { opacity: 0; } }

/* Reproduciendo: iframe o vídeo ocupa la tarjeta */
.reel.is-playing .reel__hit { display: none; }
.reel.is-playing .reel__cap { display: none; }
.reel iframe, .reel video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  object-fit: cover; background: #000;
}
/* Vista previa en vídeo (Vimeo) montada de antemano: invisible hasta el hover */
.reel iframe[data-preview] {
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.reel.is-playing iframe[data-preview] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reel-track { scroll-behavior: auto; }
}

/* ---- 04 · Sobre mí ---- */
.about__since { font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; color: var(--ink-dim); display: block; margin-bottom: 1rem; }
.about__title { font-size: clamp(2.4rem, 10vw, 8rem); }
.about__body { display: grid; gap: 2rem; max-width: 62ch; margin-top: clamp(2rem, 5vw, 3rem); }
.about__statement { font-family: var(--sans); font-weight: 700; text-transform: uppercase; font-size: clamp(1.2rem, 3.2vw, 2rem); line-height: 1.2; letter-spacing: -.01em; }
.about__body > p:not(.about__statement) { color: var(--ink-dim); }

/* ---- 02 · Services · acordeón (estructura de la referencia) ---- */
.services__top {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem 1.5rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}
.services__top .eyebrow,
.services__top .kicker { margin-bottom: 0; }

.services__head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.2rem, 6vw, 3.8rem); }
.services__head .shead { margin-bottom: 0; }
.services__head .lead { color: var(--ink); }
@media (min-width: 900px) {
  .services__head {
    grid-template-columns: 1fr minmax(220px, 32ch);
    align-items: end;
    column-gap: clamp(2rem, 7vw, 7rem);
  }
  .services__head .lead { padding-bottom: .4rem; }
}

.svc-acc { border-top: 1px solid var(--line); margin-top: 0; }
.svc-acc .acc__item { border-bottom: 1px solid var(--line); }
.svc-acc .acc__q {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1rem 1.4rem;
  font-family: var(--body); font-weight: 400; text-transform: none;
  font-size: 1rem; line-height: 1.2;
  padding-block: clamp(1.3rem, 3.5vw, 2rem);
  transition: color .3s var(--ease-out), padding-left .4s var(--ease-out);
}
@media (hover: hover) {
  .svc-acc .acc__q:hover { color: var(--accent); padding-left: clamp(.4rem, 2vw, 1.2rem); }
}
.svc-acc .acc__q::after {
  content: ""; width: 11px; height: 11px; margin: 0 .25rem 4px 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); color: var(--ink-dim);
  transition: transform .35s var(--ease-out), color .3s;
}
.svc-acc .acc__q[aria-expanded="true"] { color: var(--accent); }
.svc-acc .acc__q[aria-expanded="true"]::after { transform: rotate(-135deg); color: var(--accent); }

.svc__dots { display: inline-flex; gap: 6px; align-self: center; }
.svc__dots i { width: 7px; height: 7px; border-radius: 999px; border: 1px solid var(--ink-dim); }
.svc__dots i.is-on { background: var(--accent); border-color: var(--accent); }
.svc__label { display: grid; gap: .45rem; text-align: left; }
.svc__name {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.3rem, 3.6vw, 2.1rem); line-height: 1; letter-spacing: -.01em;
}
.svc__tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim);
}
.svc-acc .acc__a > p { max-width: 58ch; }
@media (max-width: 520px) {
  .svc-acc .acc__q { grid-template-columns: 1fr auto; row-gap: .8rem; }
  .svc__dots { grid-column: 1 / -1; }
}

/* ---- Banner · frase manifiesto (estilo referencia) ---- */
.voz__top {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem 1.5rem;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}
.voz__top .eyebrow { margin-bottom: 0; }
.voz__since {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim);
}
.voz__statement {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  line-height: 0.85; letter-spacing: -0.01em;
  text-align: center; text-wrap: balance;
  max-width: 34ch; margin-inline: auto; color: var(--ink);
}
.voz__statement .word {
  display: inline-block;
  opacity: 0.22;                 /* estado "sin leer"; JS lo ilumina al hacer scroll */
  transition: opacity .3s var(--ease-out);
}
html:not(.is-ready) .voz__statement .word { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .voz__statement .word { opacity: 1; }
}
@media (min-width: 900px) { .voz__statement { max-width: 40ch; } }

/* ---- 03 · Stats · contadores (estructura "Fun facts" de la referencia) ---- */
.stats__top {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem 1.5rem;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}
.stats__top .eyebrow { margin-bottom: 0; }
.stats__tag {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
/* Los números llevan .head-shine (mismo degradado dorado con brillo deslizante que los
   titulares): el color lo pone el degradado, por eso ni el número ni el "+" / "%" llevan
   `color`. El padding vertical evita que el degradado recorte las cifras. */
.stat__n {
  font-family: var(--sans); font-weight: 600; font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: .85; letter-spacing: -0.02em; display: inline-block; padding-block: .06em;
  font-variant-numeric: tabular-nums;
}
.stat__n i { font-style: normal; }
.stat__l {
  display: block; margin-top: .7rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  color: var(--ink-dim); text-transform: uppercase;
}

/* ---- Slide bar de logos de cliente (bajo los stats) ---- */
.logos {
  --logos-speed: 40s;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logos__track {
  display: flex; align-items: center;
  gap: clamp(.8rem, 2vw, 1.4rem);
  width: max-content;
  list-style: none;
  animation: slide var(--logos-speed) linear infinite;
}
/* La marquesina de logos NO se detiene al pasar el cursor (avance continuo) */

/* Cada logo: marco redondeado tipo botón, solo imagen (no seleccionable) */
.logo {
  flex: none;
  width: clamp(128px, 22vw, 170px);
  height: clamp(66px, 12vw, 86px);
  display: grid; place-items: center;
  padding: 0 clamp(1rem, 3vw, 1.8rem);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: border-color .4s var(--ease-soft), transform .5s var(--ease-quint);
  -webkit-user-select: none; user-select: none;
}
.logo img {
  max-width: 100%; max-height: 60%;
  width: auto; object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none; user-select: none;
}
@media (hover: hover) {
  .logo:hover { border-color: var(--line-strong); }
}
/* Carrusel de columnas (main.js · initLogoCarousel): cada celda cambia de logo
   con desenfoque y deslizamiento; las celdas entran escalonadas desde abajo */
.logos.is-carousel { overflow: visible; overflow-x: clip; -webkit-mask-image: none; mask-image: none; }
/* La lista original (respaldo para lectores de pantalla) queda reducida a 1 px: sin esto su
   `width: max-content` y su animación ensanchaban la página y en móvil la barra superior y
   el menú se salían de la pantalla. */
.logos.is-carousel .logos__track {
  position: absolute; width: 1px; max-width: 1px; height: 1px; overflow: hidden;
  animation: none; margin: -1px; padding: 0; clip: rect(0 0 0 0); clip-path: inset(50%);
}
.logo-cols {
  display: flex; justify-content: center; gap: clamp(.6rem, 2vw, 1.4rem);
  width: min(calc(100% - 2 * var(--gutter)), 860px); margin-inline: auto;
}
.logo-col {
  position: relative; overflow: hidden;
  flex: 1 1 0; min-width: 0; width: auto; max-width: 210px;
  height: clamp(72px, 14vw, 116px); padding: 0;
  opacity: 0; transform: translateY(50px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), border-color .4s var(--ease-soft);
  transition-delay: calc(var(--ci, 0) * .1s), calc(var(--ci, 0) * .1s), 0s;
}
.logos.is-live .logo-col { opacity: 1; transform: none; }
.logo-col__in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(.8rem, 2.4vw, 1.6rem); }
.logo-col__in img { max-width: 100%; max-height: 66%; width: auto; object-fit: contain; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .logos { -webkit-mask-image: none; mask-image: none; }
  .logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; row-gap: 1rem; }
}

/* ---- 07 · Experiencia ---- */
.xp { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.xp__item {
  display: grid; gap: .5rem 2rem;
  grid-template-columns: 1fr;
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}
.xp__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem 1.2rem; }
.xp__main h3 { font-size: clamp(1.4rem, 4vw, 2.4rem); }
.xp__role { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--accent); }
.xp__date { font-family: var(--mono); font-size: .74rem; color: var(--ink-dim); }
.xp__desc { color: var(--ink-dim); max-width: 54ch; }

/* ---- 08 · Reconocimientos ---- */
.award-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.award {
  display: grid; gap: .5rem 2rem;
  grid-template-columns: 1fr;
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}
.award__org   { font-family: var(--sans); font-weight: 800; text-transform: uppercase; font-size: clamp(1.2rem, 3.5vw, 2rem); }
.award__prize { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--ink); }
.award__year  { font-family: var(--mono); font-size: .74rem; color: var(--accent); }
.award__note  { color: var(--ink-dim); max-width: 56ch; }

/* ---- 04 · Pricing · cabecera centrada + conmutador + cuadros ---- */
.pricing__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .9rem;
  margin-bottom: clamp(2.6rem, 7vw, 4.5rem);
}
.pricing__head .eyebrow,
.pricing__head .kicker { margin-bottom: 0; }
.pricing__title {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem); line-height: 0.95; letter-spacing: -0.02em;
  margin: .3rem 0 1.1rem;
}

/* ── Pricing · animación de bloques (referencia "pricing-section"):
   1) el título entra con corte vertical, línea por línea;
   2) el conmutador y los planes caen desde arriba con desenfoque, en secuencia;
   3) los precios cuentan hasta su valor (main.js);
   4) al cambiar de modo, nombre, descripción y lista se re-componen escalonados. */
.pricing__title.reveal { opacity: 1; transform: none; filter: none; transition: none; }
.pricing__title .cut {
  display: block;
  clip-path: inset(0 -80px);              /* recorta arriba/abajo, deja respirar los lados */
}
.pricing__title .cut > .head-shine {
  transform: translateY(-115%);
  transition: transform .95s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--cd, 0s);
}
.pricing__title.is-in .cut > .head-shine { transform: none; }
.pricing__title.is-in .cut {              /* al terminar, libera la sombra del titular */
  clip-path: inset(-90px);
  transition: clip-path 0s linear 1.25s;
}

.pricing .pricing__switch.reveal,
.pricing .plans > .plan.reveal {
  transform: translateY(-20px); filter: blur(10px);
  transition-duration: .6s;
}
.pricing .pricing__switch.reveal.is-in,
.pricing .plans > .plan.reveal.is-in { transform: none; filter: none; }
.pricing .pricing__switch.reveal { --reveal-delay: .35s; }
.pricing .plans > .plan.reveal:nth-child(1) { --reveal-delay: .55s; }
.pricing .plans > .plan.reveal:nth-child(2) { --reveal-delay: .9s; }
.pricing .plans > .plan.reveal:nth-child(3) { --reveal-delay: 1.25s; }

@keyframes planSwap {
  from { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.plan.is-swap .plan__name,
.plan.is-swap .plan__desc,
.plan.is-swap .plan__per,
.plan.is-swap .plan__list li {
  animation: planSwap .55s var(--ease-out) both;
}
.plan.is-swap .plan__desc { animation-delay: .06s; }
.plan.is-swap .plan__list li:nth-child(1) { animation-delay: .12s; }
.plan.is-swap .plan__list li:nth-child(2) { animation-delay: .17s; }
.plan.is-swap .plan__list li:nth-child(3) { animation-delay: .22s; }
.plan.is-swap .plan__list li:nth-child(4) { animation-delay: .27s; }
.plan.is-swap .plan__list li:nth-child(5) { animation-delay: .32s; }
.plan.is-swap .plan__list li:nth-child(6) { animation-delay: .37s; }
.plan.is-swap .plan__list li:nth-child(7) { animation-delay: .42s; }
.plan.is-swap .plan__list li:nth-child(8) { animation-delay: .47s; }
html:not(.is-ready) .pricing__title .cut > .head-shine,
html:not(.is-ready) .pricing .pricing__switch.reveal,
html:not(.is-ready) .pricing .plans > .plan.reveal { transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .pricing__title .cut > .head-shine { transform: none; transition: none; }
  .pricing .pricing__switch.reveal, .pricing .plans > .plan.reveal { transform: none; filter: none; }
  .plan.is-swap * { animation: none !important; }
}

/* Conmutador: [Por proyecto] ( ● ) [Tarifa cerrada] */
.pricing__switch {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.pricing__switch .toggle__opt {
  color: var(--ink-dim); transition: color .3s var(--ease-out); padding: .3rem .2rem;
}
.pricing__switch .toggle__opt.is-active { color: var(--ink); }
.toggle__track {
  position: relative; flex: none;
  width: 52px; height: 28px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
}
.toggle__knob {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink);
  transition: transform .35s var(--ease-out), background-color .3s;
}
.pricing__switch[data-mode="annual"] .toggle__knob {
  transform: translateX(24px); background: var(--accent);
}

/* Cuadros de plan */
.plans { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
.plan {
  position: relative;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: clamp(1.7rem, 3.6vw, 2.4rem);
  display: grid; gap: 1.1rem; align-content: start;
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
  transition: transform .6s var(--ease-quint), border-color .4s var(--ease-soft);
}
.plan:hover { border-color: rgba(216, 201, 163, 0.3); transform: translate3d(0, -2px, 0); }
.plan--pro { border-color: rgba(216, 201, 163, 0.35); }
/* Glow de esquina en el plan destacado (como .cta-card__glow de la referencia) */
.plan--pro::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  pointer-events: none; z-index: 0; opacity: .9;
  background:
    radial-gradient(600px at 0% 0%,     rgba(216, 201, 163, 0.18), transparent 55%),
    radial-gradient(600px at 100% 100%, rgba(200, 155, 108, 0.18), transparent 55%);
}
.plan--pro > *:not(.plan__flag):not(.plan__plus) { position: relative; z-index: 1; }
.plan--pro > .plan__flag, .plan--pro > .plan__plus { z-index: 2; }
.plan__plus {
  position: absolute; top: 1rem; right: 1.2rem;
  font-family: var(--mono); font-size: 1.15rem; line-height: 1; color: var(--ink-dim);
}
.plan__flag {
  position: absolute; top: -1px; right: 1.4rem; translate: 0 -50%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 5px;
}
.plan__pricing { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.plan__price {
  font-family: var(--sans); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.plan__per {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim);
}
.plan__name {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); letter-spacing: -0.01em;
}
.plan__desc { color: var(--ink-dim); font-size: .92rem; line-height: 1.5; }
.plan__inc {
  padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-dim);
}
.plan__list { list-style: none; padding: 0; display: grid; gap: .65rem; font-size: .88rem; color: var(--ink); }
.plan__list li { display: flex; gap: .65rem; align-items: flex-start; }
.plan__list li::before {
  content: ""; flex: none; margin-top: .3em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---- 10 · Equipo y herramientas ---- */
.tools { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.tool { padding-block: clamp(1.4rem, 4vw, 2.2rem); border-bottom: 1px solid var(--line); display: grid; gap: .8rem; }
.tool__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.tool__name { font-family: var(--sans); font-weight: 600; text-transform: uppercase; font-size: clamp(1.1rem, 3vw, 1.7rem); letter-spacing: -0.01em; flex: 1 1 auto; }
.tool__tag  { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--ink-dim); }
.tool__pct  { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.tool__bar  { height: 2px; background: var(--line); overflow: hidden; }
.tool__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.1s var(--ease-out); }
.tool__note { color: var(--ink-dim); font-size: .88rem; }

/* ---- 11 · Voces ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.2rem, 3vw, 2rem); margin-block: clamp(2.5rem, 6vw, 4rem); }
.marquee__track {
  display: flex; gap: 3rem; width: max-content;
  animation: slide 32s linear infinite;
}
.marquee__track span {
  font-family: var(--sans); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.6rem); color: var(--ink-dim);
  white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }
.quote {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em;
  max-width: 24ch;
}
.quote cite { display: block; margin-top: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--ink-dim); font-style: normal; text-transform: none; }

/* ---- 06 · Testimonial (dos filas de tarjetas, como la referencia) ---- */
/* Encabezado centrado en dos líneas, tamaño reducido (igual a la referencia: ~34px). */
.testimonial__head {
  text-align: center;
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.06; letter-spacing: -.01em;
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
}

.tmarq {
  --tmarq-speed: 62s;
  display: flex; flex-direction: column;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  margin-top: clamp(2rem, 5vw, 3.2rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tmarq__track {
  display: flex; align-items: stretch;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  width: max-content;
  list-style: none;
  animation: slide var(--tmarq-speed) linear infinite;
}
.tmarq__track--rev { animation-direction: reverse; --tmarq-speed: 70s; }
/* Las filas de testimonios NO se detienen al pasar el cursor (avance continuo) */

/* Tarjeta: más grande, marco fino + relleno translúcido, foto arriba-izq,
   logo en la esquina superior derecha, nombre en negrita y ocupación fina. */
.tcard {
  position: relative;
  flex: none;
  width: clamp(300px, 86vw, 500px);
  min-height: clamp(232px, 58vw, 300px);
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 3.4vw, 1.9rem);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
  transition: transform .6s var(--ease-quint), border-color .4s var(--ease-soft);
}
@media (hover: hover) { .tcard:hover { border-color: rgba(216, 201, 163, 0.32); transform: translate3d(0, -2px, 0); } }
.tcard__head { display: flex; align-items: center; gap: .8rem; padding-right: 3rem; }
.tcard__avatar {
  flex: none; width: 52px; height: 52px;
  border-radius: 10px; object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.tcard__id { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.tcard__name {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: 1rem; line-height: 1.1; letter-spacing: -.01em; color: var(--ink);
}
.tcard__role {
  font-family: var(--mono); font-size: .62rem; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-dim);
}
.tcard__logo {
  position: absolute;
  top: clamp(1.1rem, 3vw, 1.5rem); right: clamp(1.1rem, 3vw, 1.5rem);
  width: 38px; height: 38px; border-radius: 9px;
  object-fit: contain; opacity: .9;
}
.tcard__quote {
  margin: 1.05rem 0 0;
  font-family: var(--body); font-size: .95rem; line-height: 1.55;
  color: var(--ink-dim);
}
@media (prefers-reduced-motion: reduce) {
  .tmarq { -webkit-mask-image: none; mask-image: none; }
  .tmarq__track { animation: none; flex-wrap: wrap; width: 100%; row-gap: 1rem; }
  .tcard { width: 100%; }
}

/* ---- 12 · FAQ ---- */
.acc { border-top: 1px solid var(--line); margin-top: clamp(2rem, 6vw, 3.5rem); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 1rem;
  padding-block: clamp(1.2rem, 3.5vw, 1.9rem);
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1rem, 3vw, 1.5rem); line-height: 1.2;
  transition: color .3s;
}
.acc__q::after {
  content: "+"; margin-left: auto; font-family: var(--mono); font-weight: 400;
  font-size: 1.4rem; color: var(--accent);
  transition: transform .35s var(--ease-out);
}
.acc__q[aria-expanded="true"] { color: var(--accent); }
.acc__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-out);
}
.acc__a > p {
  overflow: hidden;
  color: var(--ink-dim); max-width: 62ch;
  padding-bottom: 0; transition: padding-bottom .4s var(--ease-out);
}
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__item.is-open .acc__a > p { padding-bottom: clamp(1.2rem, 3.5vw, 1.9rem); }

/* ---- 07 · Let's work together (sección final) ---- */
.closer { text-align: center; overflow: hidden; }
.closer__title {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 12vw, 9rem); line-height: .86; letter-spacing: -.03em;
  margin-bottom: clamp(1.8rem, 5vw, 3rem);
}
.closer .btn--big { margin-inline: auto; }
/* Hueco para una imagen · entra con la misma animación (.reveal) */
.closer__media {
  width: min(82vw, 400px); aspect-ratio: 1116 / 2000;
  margin: clamp(2.4rem, 7vw, 4rem) auto 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(201, 168, 106, .4);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(201, 168, 106, .25);
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.closer__media:hover { border-color: var(--accent); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 70px -15px rgba(201, 168, 106, .4); }
.closer__media a { display: block; width: 100%; height: 100%; }
.closer__media a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -4px; }
.closer__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.closer__bio { color: var(--ink-dim); max-width: 54ch; margin: clamp(2rem, 6vw, 3rem) auto 0; text-wrap: balance; }
/* Plataformas · logos simplificados en dorado dentro de un aro pequeño (sin texto ni enlaces) */
.closer__stack {
  list-style: none; padding: 0;
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: clamp(.55rem, 2.4vw, .9rem);
  margin: 2.2rem auto 0;
}
.closer__stack li { line-height: 0; }
.stk { display: block; color: var(--accent); }
.stk__ic {
  display: grid; place-items: center;
  width: clamp(34px, 8.6vw, 40px); height: clamp(34px, 8.6vw, 40px); padding: clamp(8px, 2.2vw, 10px);
  border: 1px solid rgba(201, 168, 106, .4); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 168, 106, .18), rgba(201, 168, 106, .03) 72%),
    var(--panel-strong);
  box-shadow: inset 0 0 10px rgba(201, 168, 106, .08), 0 0 0 4px rgba(201, 168, 106, .035);
}
.stk__ic svg { display: block; width: 100%; height: 100%; }
/* Firma gigante a pie de sección (como el wordmark de la referencia).
   line-height 1 + padding-bottom: la 'y' de @soynolanfilm no se recorta.
   Lleva la clase .head-shine (brillo dorado deslizante de los titulares): el color
   lo pone el degradado, por eso aquí no hay `color`. Siempre en minúsculas. */
.closer__wordmark {
  display: block; width: 100%;
  margin-top: clamp(2.6rem, 9vw, 6rem);
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(1.5rem, 12.2vw, 10.5rem);
  line-height: 1; padding-bottom: .12em;
  letter-spacing: -.02em; text-align: center; white-space: nowrap;
  text-transform: none; overflow: visible;
}
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 9vw, 6rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--ink-dim);
}
.foot__info { display: flex; flex-direction: column; gap: .55rem; }
.foot__tel { color: inherit; width: fit-content; transition: color .3s; }
.foot__tel:hover, .foot__tel:focus-visible { color: var(--accent); }   /* igual que "Volver arriba" */
.foot__top { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--ink-dim); transition: color .3s; }
.foot__top:hover { color: var(--accent); }

/* ============================================================
   7. EFECTOS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
html:not(.is-ready) .reveal { opacity: 1; transform: none; filter: none; } /* fallo de JS: mostrar */

/* Escalonado: los hijos .reveal de un grupo entran uno tras otro */
[data-stagger] > .reveal:nth-child(1) { --reveal-delay: 0s; }
[data-stagger] > .reveal:nth-child(2) { --reveal-delay: .08s; }
[data-stagger] > .reveal:nth-child(3) { --reveal-delay: .16s; }
[data-stagger] > .reveal:nth-child(4) { --reveal-delay: .24s; }
[data-stagger] > .reveal:nth-child(5) { --reveal-delay: .32s; }
[data-stagger] > .reveal:nth-child(6) { --reveal-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  [data-stagger] > .reveal { --reveal-delay: 0s; }
}

/* ============================================================
   FONDO · réplica exacta de recursos.skilio.com
   Orden de pintado (todas fixed, detrás del contenido z:2):
   aurora (z:0) → mesh (z:0) → vignette (z:0) → grain (z:1)
   ============================================================ */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.aurora__blob--1 {
  width: 100vmax; height: 100vmax; left: -30vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(216, 201, 163, 0.16), transparent 70%);
}
.aurora__blob--2 {
  width: 90vmax; height: 90vmax; right: -35vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(200, 155, 108, 0.13), transparent 70%);
}
.aurora__blob--3 {
  width: 110vmax; height: 110vmax; left: 10%; bottom: -55vmax;
  background: radial-gradient(closest-side, rgba(216, 201, 163, 0.10), transparent 70%);
}

.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.85;
}

.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 78% 65% at center, transparent 30%, var(--bg) 100%);
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Partículas ambiente · polvo subiendo lentamente por toda la página.
   main.js las dibuja en el canvas; el tono es el mismo --ink del sitio. */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
.pixel-reveal { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: screen; }

@media (max-width: 980px) {
  .aurora { display: none !important; }
  .grain { display: none !important; }
  .particles { display: none !important; }
  .pixel-reveal { display: none !important; }
  body { background-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  .particles { display: none !important; }
  .pixel-reveal { display: none !important; }
}

/* Marcas de visor (corner brackets) alrededor del banner de la portada. */
.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: clamp(-10px, -2vw, -20px);
  border: 1px solid var(--accent);
  opacity: .55; pointer-events: none;
  --c: clamp(18px, 4vw, 30px);
  -webkit-mask:
    linear-gradient(#000 0 0) top left    / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) top right   / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) bottom left / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) bottom right/ var(--c) var(--c) no-repeat;
          mask:
    linear-gradient(#000 0 0) top left    / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) top right   / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) bottom left / var(--c) var(--c) no-repeat,
    linear-gradient(#000 0 0) bottom right/ var(--c) var(--c) no-repeat;
}

/* ---- Cursor personalizado (solo puntero fino; se activa desde main.js) ---- */
.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor [data-magnetic],
.has-cursor .index__row,
.has-cursor .acc__q { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none; border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff;
  transition: opacity .2s var(--ease-out);
}
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: width .28s var(--ease-out), height .28s var(--ease-out),
              margin .28s var(--ease-out), background-color .28s var(--ease-out);
}
.cursor-hover .cursor-ring {
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  background-color: rgba(255, 255, 255, 0.10);
}
.cursor-hover .cursor-dot { opacity: 0; }
.cursor-down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (min-width: 720px) {
  .hero__cols { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
  /* Filetes verticales dorados entre columnas */
  .hero__col + .hero__col::before {
    content: ""; position: absolute; left: -1.25rem; top: 6%; bottom: 6%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 168, 106, .38), transparent);
  }
  .phase   { grid-template-columns: 5rem 1fr; }
  .xp__item { grid-template-columns: 1.4fr 1fr; }
  .xp__desc { grid-column: 1 / -1; }
  .award   { grid-template-columns: 1.4fr 1fr auto; align-items: baseline; }
  .award__note { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
}

/* El menú slide-tabs solo cabe con holgura a partir de ~1080px;
   por debajo se usa el botón hamburguesa + panel. */
@media (min-width: 1080px) {
  .slidetabs { display: block; }
  .topbar__menu { display: none; }
}

@media (min-width: 1280px) {
  .about__body { margin-left: auto; margin-right: 0; }
}

/* ============================================================
   9. REDUCED MOTION  (solo efectos intrusivos)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; flex-wrap: wrap; }
  .hero__scroll, .hud__rec { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .intro { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
