/* =========================================================
   TOKENS
   ========================================================= */
:root{
  color-scheme: dark;

  --color-bg-0: #0b0b0d;
  --color-bg-1: #141417;
  --color-bg-2: #1b1b1f;
  --color-text: #f4efe6;
  --color-text-dim: rgba(244,239,230,.66);
  --color-text-faint: rgba(244,239,230,.4);
  --color-magenta: #ff007f;
  --color-lime: #c1ff1a;
  --color-whatsapp: #25d366;
  --color-border: rgba(244,239,230,.12);

  /* modo claro / editorial */
  --color-paper: #f3f3ef;
  --color-ink: #0b0b0d;

  /* roles semanticos: rosa = accion/marca, lima = conversion/resultado */
  --color-accent: var(--color-magenta);
  --color-success: var(--color-lime);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --fs-h1: clamp(2.75rem, 4.2vw + 1.5rem, 8rem);
  --fs-h2: clamp(2rem, 2.4vw + 1.1rem, 3.75rem);
  --fs-h3: clamp(1.2rem, .5vw + 1.05rem, 1.5rem);
  --fs-body: clamp(1rem, .2vw + .95rem, 1.15rem);
  --fs-eyebrow: clamp(.75rem, .3vw + .68rem, .9rem);
  --fs-rotator: clamp(1.75rem, 3.6vw + 1rem, 4.5rem);

  --space-section: clamp(4rem, 8vw, 8rem);
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 4rem);

  --radius-card: 20px;
  --radius-pill: 999px;

  --shadow-glow-magenta: 0 0 60px rgba(255,0,127,.28);
  --shadow-glow-whatsapp: 0 0 60px rgba(37,211,102,.3);

  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* z-index scale: 0 decorative bg layers, 10 content, 100 sticky nav, 9999 cursor */

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-bg-0);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg{ display:block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button, input, textarea{ font: inherit; color: inherit; }
h1,h2,h3,p,fieldset{ margin: 0; padding:0; border:0; }
ul{ list-style: none; margin:0; padding:0; }

::selection{ background: var(--color-magenta); color: var(--color-bg-0); }

/* =========================================================
   MODOS DE SECCION
   Las secciones claras redefinen los tokens en vez de duplicar
   reglas: todo componente que lea --color-text / --color-border
   se invierte solo.
   ========================================================= */
.section--light{
  --color-bg-0: var(--color-paper);
  --color-bg-1: #ffffff;
  --color-bg-2: #e9e9e3;
  --color-text: var(--color-ink);
  --color-text-dim: rgba(11,11,13,.62);
  --color-text-faint: rgba(11,11,13,.38);
  --color-border: rgba(11,11,13,.16);
  background: var(--color-paper);
  color: var(--color-text);
}

/* Bloque de color pleno: mismo mecanismo que .section--light pero en
   lima. Es la contraparte del bloque rosa de "Tu mejor vendedor". */
.section--lime{
  --color-bg-0: var(--color-lime);
  --color-bg-1: #d2ff5c;
  --color-bg-2: #b2ee0f;
  --color-text: var(--color-ink);
  --color-text-dim: rgba(11,11,13,.7);
  --color-text-faint: rgba(11,11,13,.45);
  --color-border: rgba(11,11,13,.22);
  background: var(--color-lime);
  color: var(--color-text);
}

/* Grano sutil global: da cuerpo a los degradados y unifica las
   secciones claras con las oscuras. */
body::after{
  content:'';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link{
  position:absolute; left:0; top:-100%;
  background:var(--color-lime); color:var(--color-bg-0);
  padding:.75rem 1.25rem; z-index:10000; font-weight:600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus{ top:0; }

:focus-visible{
  outline: 2px solid var(--color-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.eyebrow{
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-magenta);
  margin-bottom: 1rem;
}

.section-title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 18ch;
}

/* =========================================================
   Palabra que se dibuja y se pinta, en bucle

   Tres fases: contorno con degradado multicolor, contorno
   blanco y relleno blanco.

   -webkit-text-stroke solo acepta un color plano, asi que el
   degradado no puede ir en el trazo. El truco es pintar el
   degradado sobre glifo + trazo con background-clip:text y
   tapar el interior con una copia del texto en el color del
   fondo de la seccion, que aca es plano. Al desvanecerse esa
   copia, la palabra queda rellena.
   ========================================================= */
.word-paint{
  /* La caja tiene que ser mas grande que los glifos: background-clip:text
     pinta solo dentro de la caja, y con line-height 1 la tilde de la I y
     el trazo de la L quedaban afuera y se cortaban. El margen negativo
     devuelve el espacio para que no se corra el resto del titular. */
  --pad-y: .16em;
  --pad-x: .10em;
  padding: var(--pad-y) var(--pad-x);
  margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1);
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px transparent;
  background-image: linear-gradient(95deg,
    var(--color-magenta) 0%,
    #ff7ac2 9%,
    var(--color-lime) 19%,
    #7fd4ff 29%,
    #ff4fa8 39%,
    var(--color-text) 54%,
    var(--color-text) 100%);
  background-size: 230% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
          background-clip: text;
  animation: word-stroke 7s ease-in-out infinite;
}
/* copia interior: deja a la vista solo el borde */
.word-paint::after{
  content: attr(data-text);
  position: absolute;
  left: var(--pad-x);
  top: var(--pad-y);
  color: var(--color-bg-0);
  -webkit-text-stroke: 0;
  animation: word-fill 7s ease-in-out infinite;
}
@keyframes word-stroke{
  0%, 18%   { background-position: 0% 0; }     /* contorno multicolor */
  34%, 84%  { background-position: 100% 0; }   /* contorno blanco */
  /* vuelve al color deslizandose: si el ciclo terminaba en blanco, al
     reiniciar el degradado aparecia de golpe */
  100%      { background-position: 0% 0; }
}
@keyframes word-fill{
  0%, 50%  { opacity: 1; }    /* interior tapado: se ve el contorno */
  66%, 84% { opacity: 0; }    /* se rellena */
  100%     { opacity: 1; }
}

/* =========================================================
   Resaltado tipo marcador, en bucle

   El bloque fucsia entra barriendo y despues se retira por el
   mismo lado. Una copia blanca del texto se recorta con el
   mismo avance, asi la letra cambia de tinta a blanco justo
   cuando el marcador la alcanza, y no antes.
   ========================================================= */
.word-mark{
  --mark-x: .1em;
  --mark-y: .04em;
  position: relative;
  display: inline-block;
  padding: var(--mark-y) var(--mark-x);
  margin: 0 calc(var(--mark-x) * -1);
}
.word-mark::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: -1;                 /* detras del texto propio del h2 */
  animation: mark-sweep 7s ease-in-out infinite;
}
.word-mark::after{
  content: attr(data-text);
  position: absolute;
  left: var(--mark-x);
  top: var(--mark-y);
  color: #fff;
  clip-path: inset(0 100% 0 0);
  animation: mark-text 7s ease-in-out infinite;
}
@keyframes mark-sweep{
  0%, 8%    { transform: scaleX(0); }
  30%, 62%  { transform: scaleX(1); }
  84%, 100% { transform: scaleX(0); }
}
@keyframes mark-text{
  0%, 8%    { clip-path: inset(0 100% 0 0); }
  30%, 62%  { clip-path: inset(0 0 0 0); }
  84%, 100% { clip-path: inset(0 100% 0 0); }
}

.section-lead{
  margin-top: 1.25rem;
  max-width: 52ch;
  color: var(--color-text-dim);
  font-size: var(--fs-body);
}

.text-glow{
  display: inline-block;
  color: var(--color-magenta);
  text-shadow: 0 0 18px rgba(255,0,127,.4);
  transition: text-shadow .3s ease, transform .3s ease;
}
.text-glow:hover{
  text-shadow: 0 0 25px rgba(255,0,127,.7);
  transform: skewX(-4deg);
}

/* Destello de entrada. Va por text-shadow y no por filter: brightness()
   amplificaba el text-shadow de reposo hasta convertir ese halo en un
   bloque rectangular del tamano de la caja inline. El text-shadow, en
   cambio, siempre sigue el contorno de las letras. */
@keyframes venda-flash{
  0%{
    text-shadow: 0 0 12px rgba(255,255,255,.95),
                 0 0 30px rgba(255,0,127,1),
                 0 0 66px rgba(255,0,127,.8);
  }
  100%{
    text-shadow: 0 0 18px rgba(255,0,127,.4);
  }
}
.text-glow.is-flashing{
  animation: venda-flash 1.1s var(--ease-out) forwards;
}

.line-mask{
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.line-inner{
  display: inline-block;
  will-change: transform, opacity;
}

/* =========================================================
   SISTEMA GRAFICO TRANSVERSAL
   Dos recursos que se repiten en toda la pagina para que la
   identidad se lea como sistema y no como decoracion suelta.
   ========================================================= */

/* --- .idx: numero + regla + etiqueta --------------------- */
.idx{
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.idx__num{
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  flex-shrink: 0;
}
.idx__rule{
  flex: 1 1 auto;
  min-width: 18px;
  max-width: 64px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s var(--ease-out) .15s;
}
.idx__label{ flex-shrink: 0; color: var(--color-text-dim); }
[data-reveal].is-visible .idx__rule,
.is-visible > .idx .idx__rule{ transform: scaleX(1); }
html:not(.gsap-ready) .idx__rule{ transform: scaleX(1); }

/* lima = conversion / resultado (siempre el ultimo de la serie) */
.idx--success{ color: var(--color-success); }

/* --- .shape: formas de vidrio 3D ------------------------- */
.shape{
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  width: var(--shape-size, 280px);
  height: auto;
  opacity: var(--shape-opacity, .85);
  filter: drop-shadow(0 24px 60px var(--shape-glow, rgba(255,0,127,.25)));
  will-change: transform;
}

/* Las formas van en cromo tal cual vienen del render. El color de marca
   lo aporta el halo de --shape-glow, no un teñido sobre la pieza. */

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--radius-pill);
  padding: 1rem 1.75rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn--sm{ padding: .6rem 1.25rem; font-size: .85rem; }
.btn--full{ width: 100%; }
.btn--magenta{
  background: var(--color-magenta);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255,0,127,.4);
}
.btn--whatsapp{
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: var(--shadow-glow-whatsapp);
}
.btn--shimmer{ position: relative; overflow: hidden; }
.btn--shimmer::after{
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shimmer{
  0%{ left: -150%; }
  35%{ left: 150%; }
  100%{ left: 150%; }
}
.btn__arrow{
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.btn:hover .btn__arrow{ transform: translateX(4px); }
.btn__icon{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.btn:disabled{ opacity:.6; cursor: progress; transform:none; }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor{
  position: fixed;
  top:0; left:0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.cursor__glow{
  position:absolute; top:50%; left:50%;
  width: 32px; height: 32px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--color-magenta);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .25s ease;
}
.cursor__dot{
  position:absolute; top:50%; left:50%;
  width: 6px; height: 6px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--color-magenta);
  transition: opacity .2s ease;
}
html.has-custom-cursor, html.has-custom-cursor *{ cursor: none !important; }
.cursor.is-hover .cursor__glow{
  width: 56px; height: 56px;
  background: transparent;
  border: 1.5px solid var(--color-lime);
  filter: none;
}
.cursor.is-hover .cursor__dot{ opacity: 0; }

@media (pointer: coarse){
  .cursor{ display:none !important; }
  html.has-custom-cursor, html.has-custom-cursor *{ cursor: auto !important; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 1.5rem;
  transition: padding .3s var(--ease-out), background .3s var(--ease-out), backdrop-filter .3s var(--ease-out);
}
.navbar--scrolled{
  padding-block: .9rem;
  background: rgba(11,11,13,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.navbar__inner{
  display:flex; align-items:center; justify-content: space-between;
}
.navbar__logo{
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.navbar__logo-img{
  height: 34px;
  width: auto;
}
.navbar__nav{ display:flex; align-items:center; gap: 1.5rem; }
.navbar__link{
  font-size: .9rem;
  color: var(--color-text-dim);
  transition: color .2s ease;
}
.navbar__link:hover{ color: var(--color-text); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display:flex;
  align-items:center;
  padding-block: clamp(5rem, 10vw, 8rem) var(--space-section);
  overflow: clip;
}
.hero__bg{
  position:absolute; inset:0;
  z-index: 0;
  pointer-events:none;
}
.blob{
  position:absolute;
  border-radius: 42% 58% 63% 37% / 41% 42% 58% 59%;
  filter: blur(3px) saturate(1.3);
  mix-blend-mode: screen;
  opacity: .8;
}
/* El lavado blanco de aca era lo que desaturaba: con mix-blend-mode
   screen sobre negro, el blanco tira el tono a gris. */
.blob::before{
  content:'';
  position:absolute; inset:0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 55%);
}
.blob--1{
  width: clamp(240px, 28vw, 460px);
  height: clamp(240px, 28vw, 460px);
  top: 6%; right: -7%;            /* sale parcialmente del viewport */
  background: radial-gradient(circle at 30% 28%, rgba(255,0,127,.95), rgba(255,0,127,.12) 62%);
  animation: float-1 9s ease-in-out infinite;
}
/* La mas saturada de las tres: nucleo de lima pleno con meseta, para que
   lea como var(--color-success) y no como un verde apagado. */
.blob--2{
  width: clamp(160px, 18vw, 300px);
  height: clamp(160px, 18vw, 300px);
  bottom: 10%; left: -4%;
  opacity: 1;
  filter: blur(3px) saturate(1.6);
  background: radial-gradient(circle at 38% 38%,
    var(--color-lime) 0%,
    var(--color-lime) 30%,
    rgba(193,255,26,.55) 55%,
    rgba(193,255,26,.06) 74%);
  animation: float-2 11s ease-in-out infinite;
}
/* el lavado blanco tira el lima hacia el blanco: aca casi se anula */
.blob--2::before{
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 50%);
  border-color: rgba(193,255,26,.3);
}
/* tercera forma muy tenue, solo para dar profundidad */
.blob--3{
  width: clamp(200px, 20vw, 340px);
  height: clamp(200px, 20vw, 340px);
  top: 46%; right: 26%;
  opacity: .3;
  filter: blur(22px);
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.4), rgba(255,255,255,.02) 70%);
  animation: float-3 7s ease-in-out infinite;
}
.shape--hero{
  --shape-size: clamp(190px, 24vw, 400px);
  --shape-opacity: .9;
  --shape-glow: rgba(255,0,127,.4);
  bottom: -6%;
  left: -6%;
}

/* Estrella de vidrio en la esquina superior derecha, apoyada sobre el
   halo magenta: el blob hace de fuente de luz detras del cromo. */
.shape--hero-top{
  --shape-size: clamp(150px, 21vw, 360px);
  --shape-opacity: .5;
  --shape-glow: rgba(255,0,127,.45);
  top: 2%;
  right: -24%;   /* en movil solo asoma, para no pisar el titular */
}
@media (min-width: 900px){
  .shape--hero-top{ --shape-opacity: .9; top: 4%; right: 3%; }
}

@keyframes float-1{ 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-18px, 22px);} }
@keyframes float-2{ 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(20px, -16px);} }
@keyframes float-3{ 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-12px, -14px);} }

.hero__inner{
  position: relative;
  z-index: 10;
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.hero__title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.hero__subtitle{
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: var(--fs-body);
  color: var(--color-text-dim);
}

/* =========================================================
   FORMS (shared)
   ========================================================= */
.form{
  background: rgba(255,255,255,.035);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  backdrop-filter: blur(10px);
}
.form--hero{
  max-width: 480px;
  width: 100%;
  background: rgba(15,15,18,.88);
}

.form__header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.form__badge{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(193,255,26,.08);
  color: var(--color-lime);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.form__badge-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 0 0 rgba(193,255,26,.6);
  animation: badge-pulse 2s ease-out infinite;
}
@keyframes badge-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(193,255,26,.55); }
  70%{ box-shadow: 0 0 0 8px rgba(193,255,26,0); }
  100%{ box-shadow: 0 0 0 0 rgba(193,255,26,0); }
}
.countdown{
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .7rem;
  background: var(--color-bg-0);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  white-space: nowrap;
}
.countdown__icon{ font-size: .85rem; margin-right: .05rem; }
.countdown__value{
  font-family: 'Courier New', ui-monospace, monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-magenta);
  text-shadow: 0 0 12px rgba(255,0,127,.6);
  font-variant-numeric: tabular-nums;
}
.countdown__sep{
  color: var(--color-text-faint);
  font-weight: 700;
}
.form__title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: .6rem;
}
.form__microcopy{
  font-weight: 400;
  color: var(--color-text-dim);
  font-size: .92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.form__row{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}
.field--goals{
  margin-bottom: 1.25rem;
}
.field--goals legend{
  display: flex;
  align-items: center;
  gap: .4em;
  width: 100%;
}
.field--goals legend::after{
  content: '›';
  font-size: 1.1em;
  opacity: .45;
  animation: hint-slide .9s ease-in-out infinite alternate;
}
@keyframes hint-slide{
  from { transform: translateX(0); opacity: .45; }
  to   { transform: translateX(4px); opacity: .8; }
}
.field{ display:flex; flex-direction:column; gap:.5rem; margin-bottom: 1.25rem; min-width: 0; }
.field:last-of-type{ margin-bottom: 0; }
.field label, .field legend{
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: .02em;
}
.field input, .field textarea{
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--color-text);
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--color-text-faint); }
.field input:focus, .field textarea:focus{
  border-color: var(--color-magenta);
  box-shadow: 0 0 0 3px rgba(255,0,127,.18);
  outline: none;
}
.form--hero .btn{ margin-top: .25rem; margin-bottom: 1rem; }
.form--quote .btn{ margin-top: 1.5rem; }
.form__trust{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}
.form__trust span{ display: inline-flex; align-items: center; gap: .35rem; }
.form__trust-check{ font-weight: 800; }
.form__trust-check--lime{ color: var(--color-lime); }
.form__trust-check--magenta{ color: var(--color-magenta); }

.form__feedback{
  min-height: 1.2em;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 10px;
}
.form__feedback[data-state]{ padding: .85rem 1rem; }
.form__feedback[data-state="success"]{ background: rgba(193,255,26,.12); color: var(--color-lime); }
.form__feedback[data-state="error"]{ background: rgba(255,0,127,.12); color: var(--color-magenta); }
.form__feedback a{ text-decoration: underline; }

.pill-group{
  display:flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* show thin scrollbar on desktop (768+); hidden on mobile via media query below */
  gap:.6rem;
  margin-top:.35rem;
  padding-bottom: .35rem;
  scrollbar-width: none;
}
.pill-group::-webkit-scrollbar{ display:none; }
/* On desktop, show a thin scrollbar so users know they can scroll */
@media (min-width: 768px){
  .pill-group{ scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; padding-bottom: .5rem; }
  .pill-group::-webkit-scrollbar{ display:block; height:3px; }
  .pill-group::-webkit-scrollbar-track{ background:transparent; }
  .pill-group::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.25); border-radius:99px; }
}
.pill-input{
  position:absolute; opacity:0; width:1px; height:1px; overflow:hidden;
}
.pill-label{
  display:inline-flex; align-items:center;
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.pill-input:checked + .pill-label{
  background: var(--color-magenta);
  border-color: var(--color-magenta);
  color: #fff;
}
.pill-input:focus-visible + .pill-label{
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
}

/* =========================================================
   PAIN VS SOLUTION
   ========================================================= */
.pain{
  position: relative;
  /* el modo claro es el respiro de la pagina: necesita mas aire que
     las secciones oscuras */
  padding-top: calc(var(--space-section) + clamp(1.5rem, 4vw, 4rem));
  /* aire extra abajo: el bloque rosa se monta sobre esta seccion y no
     tiene que llegar a tocar las tarjetas */
  padding-bottom: calc(var(--space-section) + clamp(4rem, 9vw, 9rem));
  overflow: clip;
}
.pain__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Forma de vidrio cortada por el borde derecho del viewport */
/* Sin deriva de scroll: con ella la forma subia y quedaba demasiado
   recortada por el overflow de la seccion. */
.shape--pain{
  --shape-size: clamp(190px, 26vw, 400px);
  --shape-opacity: .7;
  --shape-glow: rgba(11,11,13,.18);
  top: 7%;
  right: -6%;
}
.pain > .container{ position: relative; z-index: 1; }

.cards-compare{
  margin-top: clamp(3rem, 6vw, 5.5rem);
  display:grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card{
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-1);
}
.card__icon{ font-size: 1.5rem; display:block; margin-bottom: 1rem; }
.card h3{ font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; margin-bottom: .85rem; }
.card p{ color: var(--color-text-dim); }

/* Variante editorial: sin relleno, borde fino, tipografia al frente.
   Deja de parecer una card de UI y pasa a ser un bloque de diagramacion. */
.card--editorial{
  background: none;
  border: 1px solid var(--color-border);
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;              /* la franja lima sigue la curva */
  box-shadow: none;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  transition: border-color .4s var(--ease-out),
              transform .4s var(--ease-out),
              box-shadow .4s var(--ease-out);
}
.card--editorial h3{
  display: flex;
  align-items: baseline;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.card__glyph{
  color: var(--color-accent);
  font-size: 1.15em;
  line-height: 1;
  flex-shrink: 0;
}
.card__glyph--success{ color: var(--color-success); filter: brightness(.72) saturate(1.6); }
.card--editorial:hover{ transform: translateY(-6px) scale(1.012); }
.card--editorial.card--problem:hover{
  border-color: var(--color-accent);
  box-shadow: 0 18px 40px -18px rgba(255,0,127,.45);
}

/* El resultado se invierte a fondo oscuro sobre la seccion clara: es el
   contraste mas fuerte posible y refuerza el relato. Redefiniendo los
   tokens adentro de la tarjeta, el h3, el p y la etiqueta del .idx se
   invierten solos — mismo mecanismo que .section--light. */
.card--editorial.card--solution{
  --color-text: #f4efe6;
  --color-text-dim: rgba(244,239,230,.68);
  --color-border: rgba(244,239,230,.14);
  background: var(--color-ink);
  color: var(--color-text);
  border-color: transparent;
  box-shadow: 0 24px 50px -20px rgba(11,11,13,.5);
}
.card--editorial.card--solution:hover{
  box-shadow: 0 26px 60px -20px rgba(193,255,26,.35);
}
/* sobre negro el lima ya se lee, no hace falta oscurecerlo */
.card--solution .card__glyph--success{ filter: none; }

/* =========================================================
   FRASE DE IMPACTO (bloque de color invertido)
   ========================================================= */
.impact-statement{
  position: relative;
  z-index: 2;
  background: var(--color-magenta);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  margin-inline: clamp(1rem, 4vw, 3rem);
  /* Monta el bloque sobre la seccion clara de arriba y la oscura de
     abajo: rompe la lectura de secciones apiladas. Los margenes
     laterales dejan ver el corte claro/oscuro a los costados. */
  margin-block: clamp(-9rem, -10vw, -3.5rem);
  border-radius: clamp(24px, 4vw, 48px);
  overflow: clip;
}
.impact-statement__text{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 5.5rem);
  line-height: 1.1;
  color: var(--color-bg-0);
  text-align: center;
  text-transform: uppercase;
  max-width: 20ch;
  margin-inline: auto;
}
.pill-tag{
  display: inline-block;
  background: var(--color-bg-0);
  color: var(--color-magenta);
  padding: .1em .5em;
  border-radius: var(--radius-pill);
  transform: rotate(-4deg);
  margin: 0 .05em;
}

/* =========================================================
   ROTATOR
   ========================================================= */
.rotator{
  position: relative;
  height: 300vh;
}
.rotator__pin{
  position: sticky;
  top: 0;
  height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-inline: var(--container-pad);
  text-align:center;
}
/* Trama de puntos animada. Es un SVG con animaciones SMIL, que corren
   igual dentro de un <img>; por eso no hace falta inlinearlo. Va lazy
   porque son 2,5 MB en crudo (~210 KB servido con gzip). */
.rotator__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .9;
}
.rotator__line{
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-rotator);
  line-height: 1.15;
  max-width: 22ch;
}
.rotator__base{ display:block; color: var(--color-text); }
.rotator__stack{
  position: relative;
  display:block;
  min-height: 1.3em;
}
.rotator__phrase{
  position:absolute; inset:0;
  color: var(--color-lime);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
}
.rotator__phrase.is-active{
  position: relative;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* =========================================================
   PROCESO / CERO ESTRÉS
   ========================================================= */
.process{
  position: relative;
  /* como Dolor: el modo claro es el respiro de la pagina y pide mas aire */
  padding-block: calc(var(--space-section) + clamp(2rem, 5vw, 5rem));
  overflow: clip;
}
.process__bg{ position:absolute; inset:0; z-index:0; pointer-events:none; }
/* El envoltorio recibe los transforms de GSAP (parallax y deriva) y la
   imagen de adentro levita con keyframes: si compartieran elemento, uno
   pisaria al otro. */
.shape-float{
  position: absolute;
  width: var(--shape-size, 280px);
  line-height: 0;
  pointer-events: none;
}
.shape-float .shape{
  position: static;
  width: 100%;
  animation: shape-levitate var(--float-dur, 5.5s) ease-in-out infinite;
}
@keyframes shape-levitate{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-14px) rotate(2.5deg); }
}

.shape-float--process{
  --shape-size: clamp(130px, 18vw, 300px);
  --shape-opacity: .45;
  --shape-glow: rgba(11,11,13,.16);
  --float-dur: 5s;
  top: 4%;
  right: -16%;   /* en movil se corre fuera para no pisar el titular */
}
@media (min-width: 900px){
  .shape-float--process{ --shape-opacity: .6; top: 8%; right: 5%; }
}
.process > .container{ position: relative; z-index: 1; }
.process__grid{
  position: relative;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.process__line{
  display: none;
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.process__line-fill{
  position: relative;
  display: block;
  height: 100%;
  width: 0%;
  background-color: var(--color-magenta);
  box-shadow: 0 0 10px rgba(255,0,127,.6);
  transition: width 1.6s var(--ease-out);
}
.process__line-fill.is-active{ width: 100%; }
/* Flujo de energia: un destello blanco recorre el trazo. El tile es fijo
   en px y no un porcentaje, para que la velocidad no dependa del ancho
   que la linea vaya ganando. */
.process__line-fill.is-active{
  background-image: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.9) 46%,
    #ffffff 50%,
    rgba(255,255,255,.9) 54%,
    transparent 100%);
  background-size: 340px 100%;
  background-repeat: repeat-x;
  animation: line-flow 2.8s linear infinite 1.6s;
}
@keyframes line-flow{
  from{ background-position: -340px 0; }
  to  { background-position: 340px 0; }
}
/* Cabeza de cometa: viaja con el ancho, asi que recorre la linea sola */
.process__line-fill::after{
  content:'';
  position: absolute;
  right: -3px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--color-magenta);
  box-shadow: 0 0 12px 3px rgba(255,0,127,.75);
  opacity: 0;
  transition: opacity .3s ease 1.6s;   /* se apaga al terminar el recorrido */
}
.process__line-fill.is-active::after{ opacity: 1; transition-delay: 0s; animation: comet-fade .4s ease 1.6s forwards; }
@keyframes comet-fade{ to{ opacity: 0; } }
.process__step{
  position: relative;
  z-index: 1;
  padding-top: 1rem;
}
.process__num{
  display:block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-border);
  margin-bottom: 1rem;
  transition: color .3s ease, -webkit-text-stroke-color .3s ease;
  cursor: default;
}
.process__num:hover{
  color: var(--color-magenta);
  -webkit-text-stroke-color: var(--color-magenta);
}

/* El numero gigante usa el sistema .idx: numero + regla animada */
.idx--step{ margin-bottom: 1rem; }
.idx--step .process__num{ margin-bottom: 0; line-height: 1; }
.idx--step .idx__rule{ max-width: 90px; }
/* En el modo claro el borde por defecto deja el numero calado ilegible */
.section--light .process__num{ -webkit-text-stroke-color: rgba(11,11,13,.5); }

/* Nodos de la linea de tiempo, alineados al centro de cada paso */
.process__step::before{
  content:'';
  display: none;
  position: absolute;
  top: 5rem;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--color-bg-0);
  border: 2px solid var(--color-border);
  z-index: 2;
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.process__grid:has(.process__line-fill.is-active) .process__step::before{
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(255,0,127,.16);
}
/* el ultimo nodo en lima: el proceso termina en resultado */
.process__grid:has(.process__line-fill.is-active) .process__step:last-child::before{
  background: var(--color-success);
  border-color: var(--color-success);
  box-shadow: 0 0 0 4px rgba(193,255,26,.3), 0 0 16px 2px rgba(193,255,26,.55);
}

/* Pulso de radar: un anillo se expande y se desvanece detras de cada
   nodo. El delay de cada uno corresponde al momento en que la linea lo
   alcanza, asi el pulso parece disparado por el recorrido. */
.process__step::after{
  content:'';
  display: none;
  position: absolute;
  top: 5rem;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.process__step:last-child::after{ border-color: var(--color-success); }
.process__grid:has(.process__line-fill.is-active) .process__step::after{
  animation: node-pulse 2.6s ease-out infinite;
}
/* los delays van dentro del :has(), si no el atajo `animation` de la
   regla de arriba los pisa por especificidad */
.process__grid:has(.process__line-fill.is-active) .process__step:nth-child(2)::after{ animation-delay: .2s; }
.process__grid:has(.process__line-fill.is-active) .process__step:nth-child(3)::after{ animation-delay: .75s; }
.process__grid:has(.process__line-fill.is-active) .process__step:nth-child(4)::after{ animation-delay: 1.3s; }
@keyframes node-pulse{
  0%{ transform: scale(1); opacity: .9; }
  70%{ transform: scale(3.2); opacity: 0; }
  100%{ transform: scale(3.2); opacity: 0; }
}
.process__step:nth-child(2)::before{ transition-delay: .1s; }
.process__step:nth-child(3)::before{ transition-delay: .55s; }
.process__step:nth-child(4)::before{ transition-delay: 1s; }
.process__step h3{
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: .75rem;
  max-width: 22ch;
}
.process__step p{ color: var(--color-text-dim); max-width: 32ch; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery{
  position: relative;
  /* algo mas compacta que el resto: la composicion flotante ya aporta
     aire propio y si no la seccion se come dos pantallas */
  padding-block: calc(var(--space-section) * .8);
  overflow: clip;
}
.gallery > .container{ position:relative; z-index:10; }

/* Bajada corta: al ser poco texto sobre el lima neon, gana con mas cuerpo,
   peso medio y tinta plena en vez del gris atenuado. */
/* Abajo a la derecha, cerrando la composicion */
.gallery__lead{
  margin-top: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 0;
  margin-left: auto;
  text-align: right;
  max-width: 48ch;
  color: var(--color-text);
  font-size: clamp(1.125rem, .9vw + .85rem, 1.375rem);
  font-weight: 500;
}

/* =========================================================
   CONVERSION como textura estructural

   Desborda la pantalla por ambos lados y va en tone-on-tone
   para no competir con las ventanas de los proyectos: deja de
   ser un titulo y pasa a ser fondo. El recorte lo hace el
   overflow:clip de la seccion.
   ========================================================= */
.gallery__word{
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  /* centrado sin transform: GSAP toma el control del transform para la
     deriva y pisaria un translate puesto desde CSS. 0.4em es la mitad
     de la altura de linea. */
  margin: -.4em 0 0;
  /* flex y no text-align: con nowrap, si el texto excede la caja,
     text-align:center lo deja pegado a la izquierda y todo el desborde
     se va a la derecha. Con justify-content el desborde es parejo. */
  display: flex;
  justify-content: center;
  /* z-index auto a proposito: si creara contexto de apilado, la letra
     levantada quedaria encerrada y no podria pasar por delante de las
     tarjetas. El apilado lo deciden los .gword. */
  z-index: auto;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15.4vw;
  line-height: .8;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

/* El grueso de la palabra queda detras del .container (z 10) */
.gword{
  position: relative;
  z-index: 0;
  color: var(--color-magenta);
}
/* Una sola letra pasa al frente y se apoya sobre una tarjeta */
/* semitransparente: en fucsia pleno tapaba el nombre del proyecto */
.gword--lift{ z-index: 20; opacity: .5; }

.gallery__stage{
  position: relative;
  /* holgura arriba para el recorrido del parallax: la bajada ya no esta
     aca para absorberlo */
  margin-top: clamp(3rem, 5.5vw, 5rem);
}

.gallery__cards{
  display:flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card__wrap{ width: 100%; }

/* El data-reveal va en la tarjeta y su transform de .is-visible le
   ganaba por especificidad al rotate, dejandolas planas. Esta regla lo
   devuelve: la tarjeta entra subiendo y rotando a su angulo. */
[data-reveal].project-card.is-visible{ transform: rotate(var(--tilt-rot, 0deg)); }

.project-card{
  position:relative;
  background: var(--color-bg-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem 1.5rem;
  width: 100%;
  max-width: 420px;
  transform: rotate(var(--tilt-rot, 0deg));
  transition: transform .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.75);
}
/* Isla oscura dentro de la seccion lima: las tarjetas conservan su
   propio juego de tokens para no volverse verdes con la seccion. */
.section--lime .project-card{
  --color-bg-0: #0b0b0d;
  --color-text: #f4efe6;
  --color-text-dim: rgba(244,239,230,.66);
  --color-text-faint: rgba(244,239,230,.4);
  --color-border: rgba(244,239,230,.12);
  color: var(--color-text);
  box-shadow: 0 40px 80px -24px rgba(11,11,13,.55);
}

.project-card__badge{
  position:absolute; top: -.6rem; right: 1.25rem;
  background: var(--color-lime);
  color: var(--color-bg-0);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.project-card__chrome{
  display:flex; align-items:center; gap:.4rem;
  padding-bottom: .85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.project-card__chrome .dot{ width:8px; height:8px; border-radius:50%; background: var(--color-border); flex-shrink:0; }
.project-card__url{
  margin-left: .6rem;
  font-size: .72rem;
  color: var(--color-text-faint);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.project-card__thumb{
  position: relative;
  display: block;
  width: 100%;
  height: 160px;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-2);
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.project-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out);
}
.project-card:hover .project-card__thumb img{ transform: scale(1.05); }
.project-card__expand{
  position: absolute;
  top: .6rem; right: .6rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(11,11,13,.55);
  backdrop-filter: blur(4px);
  color: var(--color-text);
  transition: background .25s ease, transform .25s var(--ease-out);
}
.project-card__expand svg{ width: 16px; height: 16px; }
.project-card__thumb:hover .project-card__expand,
.project-card__thumb:focus-visible .project-card__expand{
  background: var(--color-magenta);
  transform: scale(1.08);
}
.project-card__tag{
  margin-top: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-dim);
}

/* desktop-only floating overlap; JS/CSS breakpoint switches layout at 1024px */

/* =========================================================
   PILLARS
   ========================================================= */
.pillars{ position: relative; }
.pillars__bg{ position:absolute; inset:0; z-index:0; pointer-events:none; }
/* Halo luminoso detras del grupo de tarjetas, como en la referencia */
.pillars__glow{
  position:absolute;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 94%);
  height: 66%;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(193,255,26,.16), transparent 60%),
    radial-gradient(ellipse at 34% 58%, rgba(255,0,127,.26), transparent 62%);
  filter: blur(10px);
}
/* Abajo a la izquierda, recortada por el borde: la columna 01 deja poco
   alto libre y asi no se le cruza al texto. En movil el contenido ocupa
   toda la seccion, asi que solo asoma por la esquina. */
.shape--pillars{
  --shape-size: clamp(220px, 32vw, 500px);
  --shape-opacity: .4;
  --shape-glow: rgba(193,255,26,.22);
  bottom: 2%;
  left: -26%;
}
@media (min-width: 1024px){
  .shape--pillars{ --shape-opacity: .6; bottom: -8%; left: -9%; }
}
.pillars > .container{ position: relative; z-index: 1; padding-top: var(--space-section); }
@media (max-width: 767.98px){
  .pillars > .container{
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
  }
}

.pillars__grid{
  margin-top: 3rem;
  display:grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
/* Tarjetas escalonadas: mismo patron de transform que .project-card,
   asi initTilt() las toma sin tocar JS (lee --tilt-rot como base).
   El data-reveal va en el envoltorio porque su transform pisaria la
   rotacion de la tarjeta. */
.pillar-card__wrap{ height: 100%; }
.pillar-card{
  height: 100%;
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: clamp(20px, 2.4vw, 32px);
  transform: rotate(var(--tilt-rot, 0deg));
  transition: transform .5s var(--ease-out),
              border-color .4s var(--ease-out),
              box-shadow .4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 34px 70px -28px rgba(0,0,0,.85);
}
.pillar-card:hover{
  border-color: rgba(255,0,127,.45);
  box-shadow: 0 40px 80px -28px rgba(255,0,127,.4);
}
.pillar-card--success:hover{
  border-color: rgba(193,255,26,.45);
  box-shadow: 0 40px 80px -28px rgba(193,255,26,.32);
}

.pillar-card__badge{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255,0,127,.35);
  background: rgba(255,0,127,.1);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.pillar-card--success .pillar-card__badge{
  border-color: rgba(193,255,26,.35);
  background: rgba(193,255,26,.1);
  color: var(--color-success);
}

.pillar-card h3{
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: .35rem;
  max-width: 22ch;
}
.pillar-card__tag{
  color: var(--color-text-faint);
  font-size: .85rem;
  margin-bottom: 1rem;
}
.pillar-card p{ color: var(--color-text-dim); }

/* =========================================================
   FAQ
   ========================================================= */
.faq{ position: relative; padding-block: var(--space-section); overflow: clip; }
.faq__bg{ position:absolute; inset:0; z-index:0; pointer-events:none; }
/* Seccion clara: la forma queda en cromo, como en Dolor y Proceso */
.shape--faq{
  --shape-size: clamp(180px, 26vw, 420px);
  --shape-opacity: .45;
  --shape-glow: rgba(11,11,13,.16);
  top: 10%;
  right: -22%;   /* en movil solo asoma, para no cruzar las preguntas */
}
@media (min-width: 900px){
  .shape--faq{ --shape-opacity: .6; top: 14%; right: 5%; }
}
.faq > .container{ position: relative; z-index: 1; }

.faq__q{ display: flex; align-items: baseline; gap: .9rem; }
.faq__n{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq__list{
  margin-top: 2.5rem;
  max-width: 70ch;
  border-top: 1px solid var(--color-border);
}
.faq__item{
  border-bottom: 1px solid var(--color-border);
}
.faq__item summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker{ display: none; }
.faq__icon{
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  font-size: 1.1rem;
  transition: transform .3s var(--ease-out), background .3s ease, border-color .3s ease;
}
.faq__item[open] .faq__icon{
  transform: rotate(135deg);
  background: var(--color-magenta);
  border-color: var(--color-magenta);
}
.faq__item p{
  padding-bottom: 1.5rem;
  max-width: 60ch;
  color: var(--color-text-dim);
}

/* =========================================================
   QUOTE FORM
   ========================================================= */
.quote{
  position: relative;
  padding-block: var(--space-section);
  background: var(--color-bg-1);
  overflow: clip;
}
.quote > .container{ position: relative; z-index: 1; }
/* Grano propio de la seccion, mas marcado que el global: los degradados
   radiales del orbe son donde mas se nota el banding. Se pinta despues
   del deco y antes del contenido. */
.quote::after{
  content:'';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23q)'/%3E%3C/svg%3E");
}
.quote__inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
/* Sticky solo en el layout de dos columnas. En una sola columna el
   formulario le pasa por encima, y con el vidrio traslucido eso se ve. */
.quote__copy{ position: static; }
@media (min-width: 1024px){
  .quote__copy{
    position: sticky;
    top: 6rem;
  }
}

/* Tipografia de fondo: contorno sin relleno, con el degradado holografico
   sobre el propio trazo. Va en SVG porque -webkit-text-stroke solo acepta
   un color plano, no un degradado. Se pinta ultima dentro del deco para
   que el mix-blend-mode tenga debajo el orbe con el que fusionarse. */
.quote__bg-type{
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: min(96vw, 1440px);
  height: clamp(3.4rem, 13vw, 12rem);
  overflow: visible;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 10.6vw, 10rem);
  letter-spacing: -.04em;
  opacity: .55;
}
.quote__bg-type text{
  fill: url(#salto-holo);
  stroke: url(#salto-holo);
  stroke-width: 0.5;
}
/* pisa el texto gigante de fondo: la capa intermedia de la composicion */
.shape--quote{
  --shape-size: clamp(190px, 27vw, 440px);
  /* por debajo del CTA: el boton tiene que seguir siendo el magenta
     mas brillante de la seccion */
  --shape-opacity: .72;
  --shape-glow: rgba(255,0,127,.32);
  bottom: 0%;
  left: -7%;
}
.quote__deco{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.quote__orb-wrap{
  position: absolute;
  top: 8%;
  left: 46%;
  width: clamp(280px, 30vw, 460px);
  height: clamp(280px, 30vw, 460px);
}
.quote__orb{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,0,127,.72), rgba(255,0,127,.05) 70%);
  filter: blur(10px);
  opacity: .75;
  animation: quote-orb-float 8s ease-in-out infinite;
  transition: filter .4s ease, opacity .4s ease;
}
.quote:hover .quote__orb{ filter: blur(8px) brightness(1.25); opacity: .92; }
@keyframes quote-orb-float{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-14px, 18px) scale(1.05); }
}

.quote__ring{
  position: absolute;
  border: 1px solid rgba(255,0,127,.3);
  border-radius: 50%;
}
.quote__ring--1{
  top: -6%; left: 38%;
  width: clamp(420px, 44vw, 680px);
  height: clamp(420px, 44vw, 680px);
  animation: quote-ring-spin 40s linear infinite;
}
.quote__ring--2{
  top: 4%; left: 44%;
  width: clamp(340px, 36vw, 560px);
  height: clamp(340px, 36vw, 560px);
  border-color: rgba(193,255,26,.26);
  animation: quote-ring-spin 30s linear infinite reverse;
}
@keyframes quote-ring-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.quote__star{
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text);
  opacity: .3;
  animation: quote-twinkle 3s ease-in-out infinite;
}
.quote__star:nth-child(odd){ animation-delay: 1s; }
.quote__star:nth-child(3n){ animation-delay: 1.8s; background: var(--color-lime); }
@keyframes quote-twinkle{
  0%, 100%{ opacity: .2; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.8); }
}

/* Glass: deja pasar el orbe, los anillos y la tipografia de fondo.
   .form ya trae backdrop-filter, aca se sube el desenfoque. */
.form--quote{
  min-width: 0;
  background: rgba(20,20,24,.55);
  border-color: rgba(244,239,230,.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
          backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8),
              inset 0 1px 0 rgba(244,239,230,.08);
}
/* los campos suben un poco de opacidad para seguir legibles sobre el vidrio */
.form--quote input,
.form--quote textarea{ background: rgba(11,11,13,.5); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ padding-top: var(--space-section); }

.footer__marquee{
  overflow: hidden;
  background: var(--color-magenta);
}
.footer__marquee-track{
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}
.footer__marquee-track span{
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 3rem);
  white-space: nowrap;
  padding-block: .75rem;
  padding-inline: 1rem;
  color: var(--color-bg-0);
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.footer__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.footer__brand{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__logo{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.footer__logo-img{ height: 32px; width: auto; }
.footer__tagline{ color: var(--color-text-dim); max-width: 32ch; }

.footer__col-title{
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text-faint);
  margin-bottom: 1rem;
}
.footer__links{ display:flex; flex-direction:column; align-items:center; gap:.85rem; }
.footer__links a{
  position: relative;
  width: fit-content;
  color: var(--color-text-dim);
  transition: color .25s ease;
}
.footer__links a::after{
  content:'';
  position:absolute; left:0; bottom:-3px;
  width:0; height:1px;
  background: var(--color-lime);
  transition: width .3s var(--ease-out);
}
.footer__links a:hover{ color: var(--color-text); }
.footer__links a:hover::after{ width:100%; }

.footer__social{ display:flex; flex-direction:column; align-items:center; }
.social-icons{ display:flex; gap:.75rem; }
.social-icon{
  display:flex; align-items:center; justify-content:center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: transform .3s var(--ease-out), background .3s ease, color .3s ease, border-color .3s ease;
}
.social-icon svg{ width: 19px; height: 19px; }
.social-icon:hover{
  background: var(--color-magenta);
  border-color: var(--color-magenta);
  color: #fff;
  transform: translateY(-4px) scale(1.06);
}
.social-icon--whatsapp{
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
  color: #fff;
}
.social-icon--whatsapp:hover{
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
  transform: translateY(-4px) scale(1.06);
}

.footer__bottom{
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.footer__legal{ font-size: .8rem; color: var(--color-text-faint); }

/* =========================================================
   PREVIEW MODAL
   ========================================================= */
body.no-scroll{ overflow: hidden; }

.preview-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.preview-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}
.preview-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11,11,13,.82);
  backdrop-filter: blur(6px);
}
.preview-modal__panel{
  position: relative;
  width: min(1100px, 92vw);
  height: min(720px, 85vh);
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(.94);
  transition: transform .3s var(--ease-out);
}
.preview-modal.is-open .preview-modal__panel{ transform: scale(1); }
.preview-modal__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-0);
}
.preview-modal__external{
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-dim);
  transition: color .2s ease;
}
.preview-modal__external:hover{ color: var(--color-lime); }
.preview-modal__close{
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.preview-modal__close:hover{
  background: var(--color-magenta);
  border-color: var(--color-magenta);
}
.preview-modal__frame{
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

/* =========================================================
   REVEAL ON SCROLL (JS toggles .is-visible; CSS default = hidden)
   ========================================================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
html:not(.gsap-ready) [data-reveal]{
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px){
  .cards-compare{ grid-template-columns: 1fr 1fr; }
  .pillars__grid{ grid-template-columns: 1fr 1fr; }
  .process__grid{ grid-template-columns: repeat(3, 1fr); }
  .process__line{ display: block; }
  .process__step::before{ display: block; }
  .process__step::after{ display: block; }
  /* la linea de tiempo continua reemplaza a las reglas individuales
     y necesita aire entre el numero y el titulo */
  .idx--step{ margin-bottom: 2.25rem; }
  .idx--step .idx__rule{ display: none; }

  .footer__grid{
    grid-template-columns: 1.2fr 1fr 1fr;
    text-align: left;
  }
  .footer__brand{ align-items: flex-start; }
  .footer__links{ align-items: flex-start; }
  .footer__social{ align-items: flex-start; }
}

@media (min-width: 1024px){
  .hero__inner{ grid-template-columns: 1.2fr .8fr; align-items:center; }

  /* Escalonado: alturas y rotaciones alternadas, como la referencia */
  .pillars__grid{
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.4vw, 2.25rem);
    align-items: start;
  }
  .pillars__grid > .pillar-card__wrap:nth-child(1){ --tilt-rot: -3deg; margin-top: clamp(1.5rem, 3.5vw, 3rem); }
  .pillars__grid > .pillar-card__wrap:nth-child(2){ --tilt-rot: 2.5deg; margin-top: 0; }
  .pillars__grid > .pillar-card__wrap:nth-child(3){ --tilt-rot: -2deg; margin-top: clamp(2rem, 5vw, 4rem); }
  .quote__inner{ grid-template-columns: .9fr 1.1fr; }

  /* Composicion flotante compacta: la cuarta tarjeta sube y se mete
     bajo las otras en vez de colgar en una fila propia, que era lo que
     estiraba la seccion a un scroll y medio. */
  .gallery__cards{
    position: relative;
    display:block;
    height: 560px;
  }
  .project-card__wrap{ position:absolute; width: auto; }
  .project-card{ max-width: 430px; }
  .project-card__thumb{ height: 132px; }
  .pc--1{ top: 4%;   left: 0%;   --tilt-rot: -5deg; z-index: 4; }
  .pc--2{ top: 6%;   left: 33%;  --tilt-rot: 4deg;  z-index: 3; }
  .pc--3{ top: 3%;   left: 65%;  --tilt-rot: -3deg; z-index: 2; }
  /* por encima de la 01: solo se monta sobre su esquina inferior
     derecha, despues de donde termina el nombre del proyecto */
  .pc--4{ top: 57%;  left: 9%;   --tilt-rot: 3deg;  z-index: 5; }
}

@media (min-width: 1440px){
  .gallery__cards{ height: 575px; }
  .project-card{ max-width: 460px; }
}

/* =========================================================
   REDUCED MOTION / ACCESSIBILITY
   ========================================================= */
/* =========================================================
   MOBILE / RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 767.98px){
  /* Container: limitado a 100% en mobile */
  .container{
    max-width: 100%;
  }

  /* Hero form: reduce ancho y ajusta grid de inputs */
  .form--hero{
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-top: 2rem;
    padding: 1.5rem;
  }
  .form__row{
    grid-template-columns: 1fr;
  }
  .field input, .field textarea{
    padding: 0.8rem 0.75rem;
    font-size: 16px;
  }

  .hero__copy{
    max-width: 100%;
  }

  .hero__subtitle{
    max-width: 100%;
  }

  /* Gallery mobile: auto-play carrusel con indicadores de estrellas */
  .gallery{
    padding-block: var(--space-section);
    overflow: clip;
  }
  .gallery__word{
    position: sticky;
    top: 10vh;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 40vw;
    line-height: 0.88;
    letter-spacing: -.04em;
    white-space: nowrap;
    color: var(--color-magenta);
    text-transform: uppercase;
    margin: 0;
    pointer-events: none;
  }
  .gallery__word .gword{
    display: block;
    z-index: 0;
    opacity: 1;
  }
  .gallery__word .gword--lift{
    z-index: 0;
    opacity: 1;
  }
  .gallery > .container{
    position: relative;
    height: auto;
    margin-top: -3rem;
  }
  .gallery__lead{
    display: none;
  }
  .gallery__stage{
    margin-top: 1.5rem;
    position: relative;
  }
  .gallery__cards{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem 1rem;
    scrollbar-width: none;
  }
  .gallery__cards::-webkit-scrollbar{
    display: none;
  }
  .project-card__wrap{
    flex: 0 0 88vw;
    max-width: none;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }
  .project-card{
    opacity: 1;
    max-width: 100% !important;
    padding: 0.8rem 1rem 1rem;
    box-shadow: none !important;
  }
  .project-card__thumb{
    height: 160px;
  }
  /* Indicadores de estrella del carrusel */
  .gallery__stars{
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.25rem;
  }
  .gallery__star{
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0.3;
    padding: 0.25rem;
    transition: opacity .3s ease, transform .3s ease, color .3s ease;
    line-height: 0;
  }
  .gallery__star--active{
    opacity: 1;
    transform: scale(1.4);
    color: var(--color-magenta);
  }

  /* Pilares mobile: efecto 3D cartas apiladas con perspectiva */
  .pillars{
    height: 350vh;
    padding-block: 0;
  }
  .pillars > .container{
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--space-section);
  }
  .pillars__grid{
    display: block;
    position: relative;
    margin-top: 2rem;
    height: 50vh;
    overflow: hidden;
  }
  .pillar-card__wrap{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    will-change: opacity, transform;
  }
  .pillar-card{
    height: 100%;
    padding: 1.75rem 1.5rem;
  }
  .pillar-card__badge{
    margin-bottom: 1.1rem;
  }
  .pillar-card h3{
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
    margin-bottom: 0.25rem;
  }
  .pillar-card__tag{
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  .pillar-card p{
    font-size: 1.05rem;
    line-height: 1.5;
  }

  /* Píxel: aumenta letter-spacing en mobile */
  .word-paint{
    --pad-x: .15em;
  }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .cursor{ display:none !important; }
  html.has-custom-cursor, html.has-custom-cursor *{ cursor: auto !important; }
  [data-reveal]{ opacity:1 !important; transform:none !important; }

  .rotator{ height:auto; padding-block: var(--space-section); }
  .rotator__pin{ position:static; height:auto; }
  /* Sin scroll que las rote, se muestra solo la frase activa. Antes se
     apilaban las cuatro y la seccion se leia como una lista pegoteada
     en vez de como un enunciado. La primera ya trae .is-active en el
     HTML, asi que alcanza con no pisar el CSS base. */
  .rotator__stack{ min-height: 0; }
  .rotator__phrase{ transition: none !important; }
  .rotator__phrase.is-active{ filter: none !important; transform: none !important; }

  .project-card, .pillar-card{ transform: none !important; }
  .process__step::after{ animation: none !important; opacity: 0 !important; }
  .process__line-fill{ background-image: none !important; animation: none !important; }
  .shape-float .shape{ animation: none !important; }
  .process__line-fill::after{ display: none; }

  .shape{ transform: none !important; }
  /* sin animacion, la palabra queda pintada y no en contorno */
  /* sin animacion, la palabra queda rellena de blanco: el degradado se
     corre al extremo claro y se oculta la copia que tapa el interior */
  .word-paint{
    animation: none !important;
    background-position: 100% 0;
  }
  .word-paint::after{ animation: none !important; opacity: 0; }
  .word-mark::before{ animation: none !important; transform: scaleX(0); }
  .word-mark::after{ animation: none !important; clip-path: inset(0 100% 0 0); }
  /* las animaciones SMIL van dentro del <img>: no se pueden frenar
     desde afuera, asi que la trama se oculta */
  .rotator__bg{ display: none; }
  .idx__rule{ transform: scaleX(1) !important; }
  body::after{ display: none; }
}

/* Pilares mobile sin animacion: con reduce-motion el JS no arma las cartas
   apiladas, y el layout sticky/absoluto las dejaba encimadas y quietas en
   350vh de scroll vacio. Se vuelve a la columna normal. */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){
  .pillars{ height: auto; }
  .pillars > .container{ position: relative !important; height: auto; }
  .pillars__grid{ display: grid; height: auto; perspective: none; }
  .pillar-card__wrap{ position: static; }
}

/* =========================================================
   SOBRE MI (sobre-mi.html) — portfolio / CV
   ========================================================= */
.about-hero{
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) 0 var(--space-section);
}
.about-hero__inner{ display: grid; gap: 2.5rem; align-items: center; }
.about-hero__photo{
  justify-self: center;
  width: min(78vw, 340px);
  aspect-ratio: 4 / 5;
  background: var(--color-lime);
  border-radius: var(--radius-card);
  box-shadow: 12px 12px 0 var(--color-magenta);
  overflow: hidden;
}
.about-hero__photo{ position: relative; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); will-change: transform; }
.about-hero__dots{
  position: absolute; inset: -40px; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,0,127,.55) 1.6px, transparent 2px);
  background-size: 22px 22px;
  animation: about-dots-drift 14s linear infinite;
  transition: opacity .45s ease;
}
.about-hero__photo:hover .about-hero__dots{ opacity: 0; }
@keyframes about-dots-drift{ to{ background-position: 22px 22px; } }
.about-hero__photo img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.about-hero__photo::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, var(--color-magenta) 0%, #ff7ab8 55%, #ffc2e0 100%);
  opacity: 0;
  transition: opacity .45s ease;
}
.about-hero__photo:hover::before{ opacity: 1; }
.about-hero__photo .about-hero__cutout{ z-index: 2; transform: translate3d(var(--cut-x, 0px), var(--cut-y, 0px), 0) scale(1.04); will-change: transform; }
.about-hero__photo::after{
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 20%), rgba(255,255,255,.22), transparent 55%);
  opacity: 0; transition: opacity .45s ease;
}
.about-hero__photo:hover::after{ opacity: 1; }
.about-deco{ translate: var(--px, 0px) var(--py, 0px); will-change: translate; }
@media (prefers-reduced-motion: reduce){
  .about-hero__dots{ animation: none; }
  .about-hero__photo{ transform: none; }
}
.about-hero__title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin: .5rem 0 1.25rem;
}
.about-hero__title span{ color: var(--color-magenta); display: block; }
/* apellido: mismo contorno multicolor del home, pero el ciclo termina en magenta */
.about-hero__title .word-paint{
  display: block;
  width: fit-content;
  color: transparent;
  background-image: linear-gradient(95deg,
    var(--color-magenta) 0%,
    #ff7ac2 9%,
    var(--color-lime) 19%,
    #7fd4ff 29%,
    #ff4fa8 39%,
    var(--color-magenta) 54%,
    var(--color-magenta) 100%);
}
.about-hero__title .word-paint::after{ color: var(--color-bg-0); }
@media print{ .about-hero__title .word-paint::after{ display: none; } .about-hero__title .word-paint{ color: var(--color-magenta); } }
.about-hero__role{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1vw + .8rem, 1.4rem);
  color: var(--color-lime);
  margin-bottom: 1rem;
}
.about-hero__lead{ max-width: 56ch; color: var(--color-text-dim); }
.about-hero__lead + .about-hero__lead{ margin-top: .85rem; }
.about-actions{ display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.about-chip{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem;
  background: transparent; color: inherit; cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .35s var(--ease-out);
}
@media (max-width: 479.98px){ .about-chip__long{ display: none; } }
.about-chip:hover{ border-color: var(--color-lime); transform: translateY(-2px); }
.about-chip svg{ width: 18px; height: 18px; }

.about-section{ padding: var(--space-section) 0; }
.about-section__head{ margin-bottom: 2.5rem; max-width: 60ch; }
.about-section__head .section-lead{ margin-top: .75rem; }

.about-logos{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.about-logo{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  min-height: 104px;
  padding: 1rem;
  text-align: center;
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.about-logo img{ height: 30px; width: auto; max-width: 130px; object-fit: contain; }
.about-logo__name{ font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-faint); }
.about-logo--light{ background: var(--color-paper); }
.about-logo--light img{ height: 48px; }
.about-logo--light .about-logo__name{ color: rgba(11,11,13,.55); }
.about-logo__sub{ font-size: .7rem; line-height: 1.3; color: rgba(11,11,13,.62); }
.about-card__brand img.about-card__logo--light{ background: var(--color-paper); border: 1px solid var(--color-border); }
.about-logo--text .about-logo__name{
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  letter-spacing: .02em; text-transform: none; color: var(--color-text);
}

.about-group + .about-group{ margin-top: 3.5rem; }
.about-group__title{
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-h3);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.about-group__title::after{ content: ''; flex: 1; height: 1px; background: var(--color-border); }
.about-grid{ display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.about-card{
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.5rem;
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.about-card:hover{ transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(11,11,13,.35); }
.about-card__brand{
  display: flex; align-items: center; gap: .6rem; min-height: 28px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-text-faint);
}
.about-card__brand img{
  height: 22px; width: auto; max-width: 110px; object-fit: contain; box-sizing: content-box;
  padding: 7px 10px; background: #0b0b0d; border-radius: 8px;
}
.about-card h4{ font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; margin: 0; }
.about-card p{ color: var(--color-text-dim); font-size: .95rem; margin: 0; }
.about-card ul{ display: grid; gap: .4rem; font-size: .92rem; color: var(--color-text-dim); }
.about-card li{ position: relative; padding-left: 1.1rem; }
.about-card li::before{ content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-magenta); }
.about-card__links{ display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: auto; padding-top: .5rem; }
.about-card__links a{
  font-size: .85rem; font-weight: 700; border-bottom: 1.5px solid var(--color-magenta);
  transition: color .2s ease;
}
.about-card__links a:hover{ color: var(--color-magenta); }
/* sobre fondo oscuro las tarjetas pasan a bg-2 para no perderse */
.about-section--dark .about-card{ background: var(--color-bg-1); }

.about-job{
  display: grid; gap: .5rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}
.about-job:last-child{ border-bottom: 1px solid var(--color-border); }
.about-job__meta{ display: flex; flex-direction: column; gap: .35rem; }
.about-job__date{ font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-lime); }
.about-job__company{ font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.about-job__body h4{ font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 .75rem; color: var(--color-text-dim); }
.about-job__body ul{ display: grid; gap: .55rem; }
.about-job__body li{ position: relative; padding-left: 1.25rem; color: var(--color-text-dim); }
.about-job__body li::before{ content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-lime); }

.about-chips{ display: flex; flex-wrap: wrap; gap: .6rem; }
.about-chips li{ padding: .5rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem; background: var(--color-bg-1); }

.about-edu{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.about-edu__item{ padding: 1.25rem 1.5rem; background: var(--color-bg-1); border: 1px solid var(--color-border); border-radius: 16px; }
.about-edu__item b{ display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.about-edu__item span{ font-size: .85rem; color: var(--color-text-dim); }

.about-cta{ text-align: center; padding: var(--space-section) 0; }
.about-cta .section-title{ margin-inline: auto; }
.about-cta .about-actions{ justify-content: center; }
.about-cta .btn svg, .about-cta .btn img{ width: 20px; height: 20px; flex-shrink: 0; }

@media (min-width: 768px){
  .about-hero__inner{ grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .about-job{ grid-template-columns: 240px 1fr; }
}

@media print{
  .navbar, .about-actions, .about-cta, .footer, .cursor, .skip-link{ display: none !important; }
  body{ background: #fff; color: #000; }
  .about-hero, .about-section{ padding: 1.5rem 0; }
  .about-card, .about-job, .about-edu__item{ break-inside: avoid; }
}

/* ---- Sobre mi: v2 (carrusel, timeline, popup, imagenes) ---- */
.about-deco{ height: auto; position: absolute; pointer-events: none; user-select: none; z-index: 0; }
.about-deco--1{ width: clamp(220px, 30vw, 460px); right: -8%; top: 2%; opacity: .4; }
.about-deco--2{ width: clamp(120px, 16vw, 240px); left: -3%; bottom: 2%; opacity: .75; }
.about-deco--cta{ width: clamp(160px, 24vw, 340px); right: 4%; top: 50%; transform: translateY(-50%); opacity: .9; }
.about-hero__inner, .about-cta .container{ position: relative; z-index: 1; }
.about-cta{ position: relative; overflow: hidden; }

.about-chip__be{ font-family: var(--font-display); font-weight: 900; font-size: .95rem; line-height: 1; }
.about-eyebrow-ico{ display: inline-flex; align-items: center; gap: .5rem; }
.about-eyebrow-ico svg{ width: 18px; height: 18px; }

.about-section--tight{ padding: clamp(2rem, 4vw, 3.5rem) 0; }
.about-section__head--row{ display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; flex-wrap: wrap; }
.about-facts{ display: grid; gap: 1px; margin: 0; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px){ .about-facts{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){ .about-facts{ grid-template-columns: repeat(4, 1fr); } }
.about-facts > div{ background: var(--color-bg-1); padding: 1rem 1.25rem; }
.about-facts dt{ font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-lime); margin-bottom: .25rem; }
.about-facts dd{ margin: 0; font-size: .95rem; color: var(--color-text-dim); }
.about-facts a{ border-bottom: 1px solid var(--color-border); }

/* carrusel */
.about-carousel{
  display: flex; gap: 1rem; margin: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  padding: .5rem var(--container-pad) 1rem;
}
.about-carousel::-webkit-scrollbar{ display: none; }
.about-carousel__nav{ display: flex; gap: .5rem; flex-shrink: 0; }
.about-carousel__btn{
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--color-border); background: transparent; color: var(--color-text);
  font-size: 1.1rem; transition: border-color .25s ease, background .25s ease;
}
.about-carousel__btn:hover{ border-color: var(--color-lime); background: rgba(193,255,26,.08); }
.about-brand{
  position: relative; flex: 0 0 clamp(210px, 24vw, 300px); height: clamp(150px, 16vw, 190px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.25rem; text-align: center; overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg, #141417); color: var(--fg, #f4efe6);
  border-radius: 18px; border: 1px solid rgba(244,239,230,.1);
}
.about-brand img{ max-height: 64px; max-width: 78%; width: auto; object-fit: contain; }
.about-brand img.about-brand__mark{ max-height: 84px; }
.about-brand__name{ font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.about-brand__sub{ font-size: .68rem; line-height: 1.3; opacity: .7; max-width: 24ch; }
.about-brand__word{ font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.05; }
.about-brand--cover{ padding: 0; justify-content: flex-end; }
.about-brand--cover img{ position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.about-brand--cover::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,13,.78), transparent 55%); }
.about-brand--cover .about-brand__name{ position: relative; z-index: 1; padding: 1rem; opacity: 1; color: #fff; align-self: flex-start; }

/* cards con imagen / popup */
.about-card__media{ margin: -1.5rem -1.5rem .25rem; border-radius: var(--radius-card) var(--radius-card) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--color-bg-2); }
.about-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.about-card.is-zoomable{ cursor: zoom-in; }
.about-card.is-zoomable:hover .about-card__media img{ transform: scale(1.04); }
.about-card.is-zoomable:focus-visible{ outline: 2px solid var(--color-magenta); outline-offset: 3px; }
.about-lightbox{
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,11,13,.88); backdrop-filter: blur(6px); padding: 1.5rem;
}
.about-lightbox[hidden]{ display: none; }
.about-lightbox__fig{ margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.about-lightbox__fig img{ max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.about-lightbox__fig video{ max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #000; }
.about-lightbox__fig [hidden]{ display: none; }
.about-lightbox__fig figcaption{ color: #f4efe6; font-weight: 600; text-align: center; }
.about-lightbox__close{
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(244,239,230,.3); background: rgba(11,11,13,.6); color: #fff; font-size: 1.1rem; cursor: pointer;
}
.about-lightbox__close:hover{ background: var(--color-magenta); border-color: var(--color-magenta); }

@media print{
  .about-carousel__nav, .about-deco, .about-lightbox{ display: none !important; }
  .about-carousel{ flex-wrap: wrap; overflow: visible; }
}
@media (prefers-reduced-motion: reduce){ .about-card__media img{ transition: none; } }

.about-card__media--logo{ background: var(--bg, #050505); }
.about-card__media--logo img{ object-fit: contain; padding: 1rem; }
.about-lightbox__fig img[src$="lux-clover.png"]{ background: #050505; padding: 1.5rem; }

/* ---- Sobre mi: v3 ---- */
.about-actions--hero{
  grid-column: 1 / -1; width: 100%; margin-top: .5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem;
}
@media (min-width: 1000px){ .about-actions--hero{ grid-template-columns: 1fr 1.7fr 1fr 1fr 1.3fr; } }
.about-actions--hero > *{ width: 100%; min-height: 50px; justify-content: center; font-size: .9rem; }
.about-actions--hero .btn--whatsapp{ background: transparent; color: var(--color-lime); border: 1px solid var(--color-lime); box-shadow: none; font-weight: 700; }
.about-actions--hero .btn--whatsapp:hover{ background: rgba(193,255,26,.1); }
.about-chip svg{ flex-shrink: 0; }

.about-facts dt{ display: flex; align-items: center; gap: .55rem; }
.about-facts dt svg{ width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(193,255,26,.12); color: var(--color-lime); flex-shrink: 0; }

.about-card__brand img[src*="Evweb_logo"]{ background: #2196F3; }
.about-card__brand img[src*="stark.svg"]{ background: #00020F; }
.about-card__brand img[src*="kima.svg"]{ background: #3E1896; }
.about-card__brand img[src*="foresta.svg"]{ background: #0A7F6A; }
.about-card__brand img[src*="perfect-bio-domus"]{ background: #3E6842; }
.about-card__brand img[src*="bardo.png"]{ background: #FEF6E4; border: 1px solid var(--color-border); }
.about-card__brand--pair{ gap: .5rem; }
.about-card__brand--pair img[src*="caprichoso"]{ background: #00266B; }
.about-card__brand--pair img[src*="innovaia"]{ background: #0A0A0A; }
.about-card__media{ position: relative; }
.about-card__badge{ position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(11,11,13,.82); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

.about-lightbox__nav{
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(244,239,230,.3); background: rgba(11,11,13,.6); color: #fff; font-size: 1.25rem; cursor: pointer; z-index: 2;
}
.about-lightbox__nav[hidden]{ display: none; }
.about-lightbox__nav:hover{ background: var(--color-magenta); border-color: var(--color-magenta); }
.about-lightbox__nav--prev{ left: 1rem; }
.about-lightbox__nav--next{ right: 1rem; }

/* linea de tiempo horizontal */
.about-hz__count{ align-self: center; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--color-text-dim); margin-right: .5rem; }
.about-hz__track{
  position: relative; display: flex; gap: 1.5rem; margin: 0; padding: 3.25rem 1rem 1.5rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; scroll-padding-left: 1rem;
}
.about-hz__track::-webkit-scrollbar{ display: none; }
.about-hz__track.is-drag{ cursor: grabbing; scroll-snap-type: none; user-select: none; }
.about-tl{
  position: relative; flex: 0 0 min(430px, 84vw); scroll-snap-align: start;
  opacity: .62; transition: opacity .3s ease, transform .35s var(--ease-out); outline: none;
}
.about-tl.is-active{ opacity: 1; }
.about-tl::before{
  content: ""; position: absolute; top: -1.7rem; left: 0; right: -1.5rem; height: 2px;
  background: linear-gradient(90deg, var(--color-magenta), var(--color-lime));
}
.about-tl:last-child::before{ right: 0; }
.about-tl__dot{
  position: absolute; top: -2.15rem; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-bg-0); border: 3px solid var(--color-magenta); transition: transform .3s var(--ease-out), background .3s ease;
}
.about-tl.is-active .about-tl__dot{ background: var(--color-lime); border-color: var(--color-lime); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(193,255,26,.18); }
.about-tl__card{ height: 100%; padding: 1.5rem; background: var(--color-bg-1); border: 1px solid var(--color-border); border-radius: var(--radius-card); transition: border-color .3s ease, box-shadow .3s ease; }
.about-tl.is-active .about-tl__card{ border-color: var(--color-lime); box-shadow: 0 20px 50px -28px rgba(193,255,26,.45); }
.about-tl:focus-visible .about-tl__card{ outline: 2px solid var(--color-magenta); outline-offset: 3px; }
.about-tl__date{ font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-lime); margin-bottom: .35rem; }
.about-tl__company{ display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 0; }
.about-tl__company img{ height: 26px; width: auto; background: #00020F; padding: 4px 6px; border-radius: 6px; box-sizing: content-box; }
.about-tl__company small{ font-weight: 600; font-size: .85rem; color: var(--color-text-faint); }
.about-tl__role{ color: var(--color-text-dim); font-weight: 600; margin: .15rem 0 .9rem; }
.about-tl__card ul{ display: grid; gap: .5rem; }
.about-tl__card li{ position: relative; padding-left: 1.2rem; color: var(--color-text-dim); font-size: .95rem; }
.about-tl__card li::before{ content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-magenta); }
@media print{ .about-hz__track{ flex-wrap: wrap; overflow: visible; } .about-tl{ opacity: 1; flex-basis: 100%; } .about-tl::before, .about-tl__dot{ display: none; } }

.about-card__brand--pair img{ max-height: 22px; }

.about-tools{ display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.about-tools__group h4{ font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-faint); margin: 0 0 .75rem; }

/* sobre-mi: carruseles manuales, videos, buscador, enlaces en fotos */
.about-carousel--manual{ scroll-snap-type: x mandatory; scroll-padding-inline: var(--container-pad); align-items: center; }
.about-videos{ gap: 1.25rem; }
.about-video{ flex: 0 0 auto; width: 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: .6rem; }
.about-video--wide{ width: min(86vw, 360px); }
.about-video__frame{ position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #000; }
.about-video__frame--wide{ aspect-ratio: 16 / 9; }
.about-video__frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* el embed de Instagram muestra el reel (9:16) dentro de un cuadro 4:5 con cabecera y pie: se agranda y se recorta al video */
.about-video__frame--ig iframe{ inset: auto; left: 0; top: 0; width: 326px; height: 760px; transform-origin: 0 0; --k: .9; transform: translate(calc(-49px * var(--k) - 3px), calc(-60px * var(--k) - 3px)) scale(var(--k)); }
.about-video__link{ font-size: .82rem; font-weight: 700; color: var(--color-text-dim); align-self: flex-start; }
.about-video__link:hover{ color: var(--color-lime); }

.about-edu-wrap{ display: flex; align-items: center; gap: .75rem; }
.about-edu-wrap > .about-carousel__btn{ flex-shrink: 0; }
.about-edu--carousel{ display: flex; flex: 1; min-width: 0; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem 0; }
.about-edu--carousel::-webkit-scrollbar{ display: none; }
.about-edu--carousel .about-edu__item{ flex: 0 0 min(100%, 280px); scroll-snap-align: start; }
.about-edu--carousel:focus-visible{ outline: 2px solid var(--color-magenta); outline-offset: 4px; border-radius: 16px; }
@media (max-width: 599.98px){ .about-edu-wrap > .about-carousel__btn{ display: none; } }
@media print{ .about-edu--carousel{ flex-wrap: wrap; overflow: visible; } .about-edu-wrap > .about-carousel__btn, .about-search, .about-search__open{ display: none !important; } .about-video iframe{ display: none; } }

.about-tl__company img.about-tl__logo--light{ background: #fff; height: 22px; }

.about-card__media-link{ display: block; position: relative; width: 100%; height: 100%; }
.about-card__media-link::after{ content: ""; position: absolute; inset: 0; background: rgba(11,11,13,.55); opacity: 0; transition: opacity .3s ease; }
.about-card__go{
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-magenta); color: #fff;
  transform: translate(-50%, -40%) scale(.8); opacity: 0; transition: opacity .3s ease, transform .3s var(--ease-out);
}
.about-card__go svg{ width: 26px; height: 26px; }
.about-card__media:hover .about-card__media-link::after, .about-card__media-link:focus-visible::after{ opacity: 1; }
.about-card__media:hover .about-card__go, .about-card__media-link:focus-visible .about-card__go{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.about-card__media:hover img{ transform: scale(1.04); }
.about-card__media-link:focus-visible{ outline: 2px solid var(--color-magenta); outline-offset: -4px; }
@media (hover: none){ .about-card__go{ opacity: 1; transform: translate(-50%, -50%) scale(.7); left: auto; right: .75rem; top: auto; bottom: .75rem; } .about-card__go{ transform: scale(.7); } }

.about-search{ position: absolute; left: 0; right: 0; top: 100%; background: rgba(11,11,13,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); padding-block: .75rem; }
.about-search[hidden]{ display: none; }
.about-search__inner{ display: flex; align-items: center; gap: .5rem; }
.about-search__input{ flex: 1; min-width: 0; height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-bg-1); color: var(--color-text); font: inherit; }
.about-search__input:focus{ outline: 2px solid var(--color-lime); outline-offset: 2px; }
.about-search__count{ font-size: .8rem; font-weight: 700; color: var(--color-text-dim); min-width: 5.5rem; text-align: right; }
mark.search-hit{ background: rgba(193,255,26,.55); color: inherit; border-radius: 3px; padding: 0 1px; }
mark.search-hit.is-current{ background: var(--color-magenta); color: #fff; }
@media (max-width: 599.98px){ .about-search__count{ min-width: 0; font-size: .72rem; } }

/* sobre-mi: grupos de cards como carrusel manual */
.about-group__title .about-carousel__nav{ order: 3; }
.about-cards-carousel{ display: flex !important; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem .25rem 1.5rem; margin: -.5rem -.25rem -1rem; }
.about-cards-carousel::-webkit-scrollbar{ display: none; }
.about-cards-carousel > *{ flex: 0 0 min(86%, 340px); scroll-snap-align: start; }
.about-cards-carousel:focus-visible{ outline: 2px solid var(--color-magenta); outline-offset: 4px; border-radius: 16px; }
@media print{ .about-cards-carousel{ flex-wrap: wrap; overflow: visible; } .about-group__title .about-carousel__nav{ display: none; } }

/* el reproductor de Drive se renderiza a tamaño normal y se reduce, para que centre el video vertical */
.about-video__frame--drive iframe{ inset: auto; left: 0; top: 0; width: 405px; height: 720px; transform-origin: 0 0; transform: scale(.4938); }

/* sobre-mi: reels como clips, cursor */
.about-video__clip{ display: block; }
.about-video__clip video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-video__clip::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244,239,230,.12); pointer-events: none; }

/* sobre-mi: botón flotante de mail */
.about-fab{
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 90;
  display: inline-flex; align-items: center; gap: 0; height: 56px; min-width: 56px; padding: 0 16px; justify-content: center;
  border-radius: 999px; background: var(--color-magenta); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  transition: transform .25s var(--ease-out), gap .25s var(--ease-out), padding .25s var(--ease-out), box-shadow .25s ease;
}
.about-fab svg{ width: 24px; height: 24px; flex-shrink: 0; }
.about-fab__label{ max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .95rem; transition: max-width .3s var(--ease-out); }
.about-fab:hover, .about-fab:focus-visible{ gap: .6rem; padding: 0 20px; transform: translateY(-3px); box-shadow: 0 16px 36px -10px rgba(255,0,128,.55); }
.about-fab:hover .about-fab__label, .about-fab:focus-visible .about-fab__label{ max-width: 7rem; }
.about-fab:focus-visible{ outline: 2px solid var(--color-lime); outline-offset: 3px; }
@media print{ .about-fab{ display: none !important; } }

/* sobre-mi: el chip del mail ocupa toda la fila en pantallas angostas para no desbordar */
.about-actions--hero > *{ min-width: 0; }
@media (max-width: 999.98px){ .about-actions--hero .about-chip--mail{ grid-column: 1 / -1; } }
.about-chip--mail{ overflow-wrap: anywhere; }

/* sobre-mi: parpadeo leve del botón de mail */
@keyframes about-fab-blink{
  0%, 100%{ box-shadow: 0 12px 30px -10px rgba(0,0,0,.6), 0 0 0 0 rgba(255,0,128,.45); opacity: 1; }
  50%{ box-shadow: 0 12px 30px -10px rgba(0,0,0,.6), 0 0 0 12px rgba(255,0,128,0); opacity: .82; }
}
.about-fab{ animation: about-fab-blink 2.6s ease-in-out infinite; }
.about-fab:hover, .about-fab:focus-visible{ animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce){ .about-fab{ animation: none; } }

/* oculta el cartel flotante "Powered by Netlify" que inyecta la plataforma */
#nl-badge-frame{ display: none !important; }

/* sobre-mi: botones del hero — una sola fila en desktop; en mobile, 4 íconos + 2 descargas */
.about-actions--hero > *{ white-space: nowrap; }
@media (min-width: 1000px){
  .about-actions--hero{ display: flex; flex-wrap: nowrap; gap: .6rem; }
  .about-actions--hero > *{ flex: 1 1 auto; width: auto; padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 999.98px){
  .about-actions--hero{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about-actions--hero .about-chip--mail{ grid-column: auto; }
  .about-actions--hero .about-act--icon{ padding: 0; gap: 0; }
  .about-actions--hero .about-act--icon .about-chip__label{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .about-actions--hero .about-act--icon svg{ width: 22px !important; height: 22px !important; }
  .about-actions--hero .about-act--icon .about-chip__be{ font-size: 1.15rem; }
  .about-actions--hero .about-act--dl{ grid-column: span 2; padding-left: .75rem; padding-right: .75rem; }
}
@media (max-width: 379.98px){
  .about-actions--hero{ gap: .5rem; }
  .about-actions--hero .about-act--dl{ padding-left: .35rem; padding-right: .35rem; gap: .3rem; font-size: .76rem; }
  .about-actions--hero .about-act--dl svg{ width: 15px; height: 15px; }
}
@media (max-width: 339.98px){ .about-actions--hero .about-act--dl svg{ display: none; } }
