/* =========================================================================
   STOIC · Home v5 (versión Foco)
   Marca: BRAND.md — blanco de base, petróleo para estructura, gris para
   secciones suaves y lima solo en CTA y títulos destacados.
   Tipografía: Apercu Pro → Figtree mientras se confirma la licencia web.
   ========================================================================= */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --petroleo: #102D35;
  --petroleo-800: #1C3A41;
  --petroleo-600: #2D5560;
  --petroleo-500: #3E646E;
  --neutro: #5F7F87;
  --gris: #F7FAFC;
  --lima: #DBFF00;
  --linea: #DCE4E8;
  --white: #FFFFFF;
  --noche: #0A1D22;            /* fondo detrás de la foto mientras carga */

  --ink: var(--petroleo);
  --ink-soft: var(--petroleo-500);
  --line: var(--linea);

  --font: "Apercu Pro", "Figtree", "Montserrat", system-ui, sans-serif;
  --fs-hero: clamp(3rem, 9.2vw, 7.5rem);
  --fs-display: clamp(2.5rem, 6.4vw, 5.75rem);
  --fs-title: clamp(1.75rem, 2.6vw, 2.5rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-label: .6875rem;

  --radius: 8px;
  --sheet: 32px;               /* radio de las secciones que suben como hoja */
  --gutter: 20px;
  --wrap: 1280px;
  --hh: 108px;                 /* alto del header (se superpone al hero) */

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-focus: cubic-bezier(.2, .7, .15, 1);
}
@media (min-width: 760px) { :root { --gutter: 40px; --hh: 76px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-width: thin; scrollbar-color: var(--petroleo-600) var(--white); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.6 var(--font); font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--petroleo); color: var(--lima); }
:focus-visible { outline: 2px solid var(--petroleo-600); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--lima); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dark { background: var(--petroleo); color: var(--white); }
.acc { color: var(--lima); }
.sheet { position: relative; z-index: 3; margin-top: calc(var(--sheet) * -1); border-radius: var(--sheet) var(--sheet) 0 0; }

.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--lima); color: var(--petroleo); font-weight: 500; text-decoration: none; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }

/* 3. Botón primario: lima, texto petróleo, pastilla ------------------------ */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 34px; border-radius: 999px; border: 1px solid var(--lima); background: var(--lima); color: var(--petroleo); font: 500 .8125rem/56px var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.btn:active { transform: scale(.97); }
.btn .t { position: relative; display: block; height: 100%; transition: transform 380ms var(--ease-out); }
.btn .t::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 100%; text-align: center; }
.btn .arrow { width: 18px; height: 18px; transition: transform 380ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .t { transform: translateY(-100%); }
  .btn:hover .arrow { transform: translateX(4px); }
  .btn:hover { background: var(--petroleo); border-color: var(--petroleo); color: var(--lima); }
  .dark .btn:hover, .hero .btn:hover { background: var(--white); border-color: var(--white); color: var(--petroleo); }
}

/* 4. Barra superior y header ----------------------------------------------- */
.topbar { position: relative; z-index: 31; background: var(--petroleo-800); color: var(--white); text-align: center; font-size: .8125rem; padding: 9px var(--gutter); }
.header { position: sticky; top: 0; z-index: 30; margin-bottom: calc(var(--hh) * -1); color: var(--white); background-color: rgba(255,255,255,0); border-bottom: 1px solid transparent; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
.header.is-light { background-color: rgba(255,255,255,.97); color: var(--ink); border-bottom-color: var(--line); }
.header.is-dark { background-color: rgba(16,45,53,.96); color: var(--white); border-bottom-color: rgba(255,255,255,.1); }
/* progreso de lectura: una línea fina bajo el header */
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--petroleo); transform: scaleX(var(--prog, 0)); transform-origin: left; opacity: 0; transition: opacity 300ms ease; }
.header.is-light::after, .header.is-dark::after { opacity: 1; }
.header.is-dark::after { background: var(--lima); }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 14px; }
.logo { position: relative; display: block; width: 124px; }
.logo img { width: 100%; transition: opacity 300ms ease; }
.logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.header.is-light .logo-dark { opacity: 1; }
.header.is-light .logo-light { opacity: 0; }
.tools { display: flex; }
.tools a { display: grid; place-items: center; width: 44px; height: 44px; transition: transform 160ms var(--ease-out), opacity 200ms; }
.tools a:active { transform: scale(.92); }
.nav { order: 3; flex: 1 0 100%; display: flex; gap: 26px; padding: 4px 0 8px; }
.nav a, .foot-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 280ms var(--ease-out); }
.nav a { font-size: .9375rem; font-weight: 500; padding: 8px 0; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .foot-link:hover { background-size: 100% 1px; }
  .tools a:hover { opacity: .7; }
}
@media (min-width: 760px) {
  .header .wrap { flex-wrap: nowrap; position: relative; padding-top: 18px; padding-bottom: 14px; }
  .logo { width: 148px; }
  .nav { order: 0; flex: 0 0 auto; padding: 0; position: absolute; left: 50%; transform: translateX(-50%); }
}

/* 5. Hero · Foco -------------------------------------------------------------
   La foto entra desenfocada y el enfoque automático busca al ciclista hasta
   fijarlo. El titular sube palabra por palabra. Al bajar, la foto gira a la
   derecha y, al final, el lema sube como una hoja encima. */
.hero { position: relative; isolation: isolate; background: var(--noche); color: var(--white); }
.hero-pin { position: relative; overflow: hidden; min-height: max(640px, calc(100svh - 38px)); }
.hx-stage { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 40%; }
.hero-photo { position: absolute; inset: 0; }
.hx-par { position: absolute; inset: -20px; }
.hx-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hx-img picture { display: block; width: 100%; height: 100%; }
.hx-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 8%; filter: saturate(.86) contrast(1.02); }
.hx-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,45,53,.92) 0%, rgba(16,45,53,.55) 32%, rgba(16,45,53,.08) 62%, rgba(16,45,53,.5) 100%); }
.grain { position: absolute; inset: 0; background: url(https://stoic-wear.com/wp-content/home/img/grano.png) repeat; background-size: 128px; opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.hx-dim { position: absolute; inset: 0; z-index: 8; background: var(--noche); opacity: 0; pointer-events: none; }
.hx-copy { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; }
.hx-copy .wrap { padding-bottom: 72px; }
.hx-title { font-weight: 700; font-size: var(--fs-hero); line-height: .95; letter-spacing: -.035em; }
.hx-line { display: block; white-space: nowrap; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .05em .18em; margin: -.06em -.05em -.18em; }
.wi { display: inline-block; }
.hx-cta { margin-top: 36px; }

/* con movimiento: la foto se ensancha para girar con el scroll */
.is-pin .hero { height: 250svh; margin-bottom: -100svh; }
.is-pin .hero-pin { position: sticky; top: 0; height: 100svh; min-height: 0; }
.is-pin .hx-img { width: max(128vw, 150svh); transform: translate3d(calc(100vw + 40px - max(128vw, 150svh)), 0, 0); will-change: transform; }
.is-pin .hx-par, .is-pin .hx-stage { will-change: transform; }

/* entrada (solo con JS; sin JS todo está visible desde el inicio) */
.js .hero-photo { opacity: 0; }
.js .wi { opacity: 0; transform: translateY(105%); filter: blur(10px); }
.js .hx-cta { opacity: 0; transform: translateY(16px); }
.hx-go .hero-photo { animation: focusIn 2000ms var(--ease-focus) both; }
.hx-go .wi { animation: wordIn 1300ms var(--ease-out) calc(var(--d, 0) * 1ms) forwards; }
.hx-go .hx-cta { animation: rise 900ms var(--ease-out) 2350ms forwards; }
@keyframes focusIn { 0% { opacity: 0; filter: blur(30px); transform: scale(1.1); } 22% { opacity: 1; } 100% { opacity: 1; filter: blur(0); transform: none; } }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* enfoque automático: cuatro esquinas que buscan y se fijan en el rostro */
.af { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; display: none; }
.hx-go .af { display: block; }
.af-in { position: absolute; width: var(--w, 150px); height: var(--h, 180px); left: calc(var(--w, 150px) / -2); top: calc(var(--h, 180px) / -2); opacity: 0; animation: afSeek 1500ms cubic-bezier(.5, 0, .2, 1) 450ms forwards, afOut 600ms ease 3000ms forwards; }
.af-in i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--white); }
.af-in i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.af-in i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.af-in i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.af-in i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.af-in::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--white); transform: scale(0); animation: afDot 500ms var(--ease-out) 1800ms forwards; }
@keyframes afSeek {
  0%   { opacity: 0; transform: translate3d(140px, -60px, 0) scale(2.4); }
  14%  { opacity: .85; }
  40%  { transform: translate3d(-80px, 46px, 0) scale(1.65); }
  62%  { transform: translate3d(38px, -22px, 0) scale(1.22); }
  80%  { transform: translate3d(-6px, 4px, 0) scale(1.04); }
  89%  { opacity: 1; transform: scale(.9); }
  100% { opacity: 1; transform: none; }
}
@keyframes afOut { to { opacity: 0; } }
@keyframes afDot { 0% { transform: scale(0); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* indicador para bajar */
.cue { position: absolute; left: 50%; bottom: 26px; z-index: 7; width: 1px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; display: none; }
.is-pin .cue { display: block; }
.cue::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 20px; background: var(--white); animation: cue 2200ms var(--ease-in-out) 3200ms infinite backwards; }
@keyframes cue { from { transform: translateY(-20px); } to { transform: translateY(56px); } }
@media (min-width: 760px) { .hx-copy .wrap { padding-bottom: 96px; } }
@media (max-width: 759px) { .hx-line { white-space: normal; } }

/* 5b. Lema: "Cada detalle, con propósito." --------------------------------- */
.frase { padding: 112px 0 120px; }
.frase-t { max-width: 18ch; font-weight: 700; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
@media (min-width: 760px) { .frase { padding: 136px 0 144px; } .frase-t { max-width: none; } }
.fl { display: block; }
.fr { display: inline-block; }
.js [data-rise] .fr { transform: translateY(105%); }
.js [data-rise].in .fr { transform: none; transition: transform 1200ms var(--ease-out) calc(var(--k, 0) * 90ms + 120ms); }

/* 6. Zoom al jersey · Serie Headwind ----------------------------------------
   El jersey (recorte con fondo transparente) queda fijo sobre una retícula
   técnica y la cámara se acerca a cuatro zonas. Un visor muestra el
   acercamiento, un mapa marca dónde estás y una línea une la zona con su
   beneficio. */
.zoom { display: none; }
.zoom, .zoom-static { background: var(--white); color: var(--ink); }
.is-pin .zoom { display: block; height: 400svh; }
/* "Headwind" subrayado con un trazo lima, como marcatextos */
.ztitle .acc, .zs-title .acc { color: inherit; background: linear-gradient(var(--lima), var(--lima)) no-repeat 0 86% / 100% .28em; }
.zoom-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; --zt: 2.25rem; --st-top: calc(var(--hh) + var(--zt) + 28px); --st-bot: 236px; --st-mid: calc((var(--st-top) + 100svh - var(--st-bot)) / 2); }
.ztitle { position: absolute; left: var(--gutter); top: calc(var(--hh) + 10px); z-index: 4; font-weight: 700; font-size: var(--zt); line-height: 1; letter-spacing: -.035em; }
.stage { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--st-top); bottom: var(--st-bot); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(45,85,96,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(45,85,96,.12) 1px, transparent 1px); background-size: 48px 48px; background-position: center; }
.cam { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.cam img { width: 100%; height: 100%; object-fit: contain; }

/* visor */
.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hud-zoom { position: absolute; left: 16px; top: 14px; display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.hud-zoom b { padding: 1px 9px; border-radius: 999px; background: var(--lima); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--petroleo); text-align: center; font-variant-numeric: tabular-nums; min-width: 3.4ch; }
.vf { position: absolute; inset: 14%; opacity: 0; transform: scale(1.06); transition: opacity 450ms var(--ease-out), transform 650ms var(--ease-out); }
.zoom.is-zoomed .vf { opacity: 1; transform: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--petroleo); }
.vf i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.vf i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.vf i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.vf i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.hot { position: absolute; z-index: 5; left: 50%; top: var(--st-mid); width: 0; height: 0; pointer-events: none; }
.ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border: 1.5px solid var(--petroleo); border-radius: 50%; background: rgba(219,255,0,.75); opacity: 0; transform: scale(.4); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
.ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--petroleo); }
.ring::before { content: ""; position: absolute; inset: -1.5px; border: 1.5px solid var(--petroleo); border-radius: 50%; opacity: 0; }
.zoom.is-zoomed .ring { opacity: 1; transform: none; }
.zoom.is-zoomed .ring::before { animation: ping 2400ms var(--ease-out) 600ms infinite; }
@keyframes ping { 0% { opacity: .5; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.3); } }
.leader { position: absolute; left: 15px; top: -.5px; height: 1px; width: var(--leader, 200px); background: var(--petroleo); transform: scaleX(0); transform-origin: left; display: none; }
.leader::after { content: ""; position: absolute; right: -3px; top: -2.5px; width: 8px; height: 8px; margin-top: -1px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 1.5px var(--petroleo); }
.zoom.is-zoomed .leader.on { transform: none; transition: transform 700ms var(--ease-out) 200ms; }
.mm { position: absolute; left: 14px; bottom: 14px; width: 72px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.95); }
.mm-in { position: relative; aspect-ratio: 932 / 986; }
.mm-in img { width: 100%; height: 100%; opacity: .7; }
.mm-rect { position: absolute; border: 1.5px solid var(--petroleo); border-radius: 2px; background: rgba(219,255,0,.4); }

/* ficha con el beneficio de cada zona */
.ficha { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px; height: 204px; display: flex; flex-direction: column; padding: 20px 22px 14px; background: var(--white); border: 1px solid var(--petroleo); border-radius: var(--radius); }
.caps { position: relative; flex: 1; }
.cap { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity 250ms ease, visibility 0s linear 250ms; }
.cap.on { visibility: visible; opacity: 1; transition: opacity 250ms ease; }
.cap h3 { font-size: clamp(1.5rem, 5.6vw, 1.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.cap .lead { display: block; margin-top: 10px; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.cap .lead > .mk { background: linear-gradient(var(--lima), var(--lima)) no-repeat 0 88% / 0% .42em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0s; }
.cap.on .lead > .mk { background-size: 100% .42em; transition: background-size 900ms var(--ease-out) 380ms; }
.cap .sub { display: none; margin-top: 10px; color: var(--ink-soft); line-height: 1.5; }
.cap .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.cap .w > span { display: inline-block; transform: translateY(105%); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--k, 0) * 35ms + 80ms); }
.cap.on .w > span { transform: none; }
.dots { display: flex; gap: 4px; margin: 0 -6px; }
.dots button { position: relative; width: 40px; height: 28px; }
.dots button::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--line); transition: background-color 300ms ease; }
.dots button.on::before { background: var(--petroleo); }
@media (hover: hover) and (pointer: fine) { .dots button:hover::before { background: var(--petroleo-500); } .dots button.on:hover::before { background: var(--petroleo); } }

@media (min-width: 760px) {
  .zoom-pin { --zt: clamp(2.75rem, 5.2vw, 4.75rem); --st-top: calc(var(--hh) + var(--zt) + 30px); --st-bot: 24px; --st-mid: calc((var(--st-top) + 100svh - var(--st-bot)) / 2); }
  .stage { right: auto; width: calc(64% - var(--gutter)); }
  .hot { left: calc(var(--gutter) + (64% - var(--gutter)) / 2); }
  .ficha { left: auto; right: var(--gutter); bottom: auto; top: var(--st-mid); transform: translateY(-50%); width: calc(36% - 2 * var(--gutter)); height: auto; min-height: 330px; padding: 30px 30px 18px; }
  .cap h3 { font-size: var(--fs-title); }
  .cap .lead { margin-top: 14px; font-size: var(--fs-lead); }
  .cap .sub { display: block; }
  .leader { display: block; }
  .mm { width: 104px; left: 16px; bottom: 16px; }
}

/* sin movimiento: cuatro tarjetas fijas */
.zoom-static { padding: 96px 0; }
.is-pin .zoom-static { display: none; }
.zs-title { font-size: var(--fs-display); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.zs-grid { display: grid; gap: 20px; margin-top: 40px; }
.zs-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.zs-crop { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); background: var(--white); }
.zs-crop img { position: absolute; max-width: none; width: calc(var(--zs) * 100%); left: calc(50% - var(--ox) * var(--zs) * 100%); top: calc(50% - var(--oy) * var(--zs) * 141.1%); }
.zs-card div { padding: 20px 22px 24px; }
.zs-card h3 { font-size: 1.375rem; line-height: 1.15; letter-spacing: -.02em; }
.zs-card p { margin-top: 6px; font-weight: 500; }
@media (min-width: 760px) { .zs-grid { grid-template-columns: repeat(2, 1fr); } .zoom-static { padding: 140px 0; } }

/* 7. Colección · carrusel giratorio ----------------------------------------- */
.hz { position: relative; background: var(--white); }
.hz-title { font-weight: 700; font-size: var(--fs-display); line-height: .92; letter-spacing: -.035em; padding: 96px var(--gutter) 0; max-width: var(--wrap); margin-inline: auto; }
.hz-track { display: grid; gap: 64px; padding: 64px 0 120px; }
.hz-slide { display: flex; justify-content: center; }
.pcard { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.pic { position: relative; isolation: isolate; width: min(84vw, 54svh); aspect-ratio: 1 / 1; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.pic::after { content: ""; position: absolute; z-index: -1; left: 16%; right: 16%; bottom: -4%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(16,45,53,.22), rgba(16,45,53,0)); }
.hz-ctrl { display: none; }

.is-pin .hz { height: calc(100svh + max(75svh, 50vw) * (var(--n) - 1)); }
.is-pin .hz-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.is-pin .hz-title { position: absolute; z-index: 1; left: var(--gutter); top: calc(var(--hh) + 14px); padding: 0; font-size: 2.25rem; line-height: 1; }
.is-pin .hz-track { position: absolute; inset: 0; display: block; padding: 0; perspective: 1600px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.is-pin .hz-track.is-drag { cursor: grabbing; }
.is-pin .hz-slide { position: absolute; left: 50%; top: calc(50% + var(--hh) / 2 - 20px); transform: translate(-50%, -50%); will-change: transform, opacity; }
.is-pin .pic { will-change: filter; }
.is-pin .pic img { -webkit-user-drag: none; pointer-events: none; }
.is-pin .hz-ctrl { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.hz-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 160ms var(--ease-out); }
.hz-arrow:active { transform: scale(.92); }
.hz-arrow:disabled { opacity: .35; cursor: default; }
.hz-arrow .i { width: 18px; height: 18px; }
.hz-dots { display: flex; gap: 2px; }
.hz-dots button { position: relative; width: 36px; height: 28px; }
.hz-dots button::before { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--line); transition: background-color 300ms ease; }
.hz-dots button.on::before { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .hz-arrow:not(:disabled):hover { background: var(--petroleo); border-color: var(--petroleo); color: var(--white); }
  .hz-dots button:not(.on):hover::before { background: var(--petroleo-500); }
}
@media (min-width: 760px) {
  .pic { width: min(46vw, 56svh); }
  /* título vertical, a un lado, detrás del jersey vecino */
  .is-pin .hz-title { top: 50%; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: clamp(3.5rem, 6vw, 5.75rem); line-height: .9; }
  .is-pin .hz-ctrl { bottom: 26px; }
}

/* 8. Cierre: el viento no se controla; el rumbo sí -------------------------- */
.filo { isolation: isolate; overflow: hidden; padding: 112px 0 128px; }
.wind { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.filo .row { display: grid; gap: 48px; }
.filo-title { max-width: 16ch; font-weight: 700; font-size: clamp(2.125rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.filo-title .fa, .filo-title .fb { display: block; }
.filo-title .fb { margin-top: .7em; }
.wd { opacity: .16; }
@media (min-width: 760px) {
  .filo { padding: 152px 0 160px; }
  .filo .row { grid-template-columns: 1fr auto; align-items: end; gap: 80px; }
  .filo .row > div { padding-bottom: 14px; }
}

/* 9. Footer ------------------------------------------------------------------ */
.footer { position: relative; z-index: 4; border-top: 1px solid var(--petroleo-600); padding-bottom: 40px; overflow: hidden; }
.footer .wrap { display: grid; gap: 32px; padding-top: 56px; }
.footer h3 { margin-bottom: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.footer li a { display: inline-block; padding: 6px 0 4px; }
.legal { font-size: .8125rem; color: rgba(255,255,255,.72); }
.top-link { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.top-link .i { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .top-link:hover .i { transform: rotate(-90deg) translateX(4px); } }
.big-logo { width: min(100%, 1180px); margin: 56px auto 0; }
@media (min-width: 760px) {
  .footer .wrap { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer .base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}

/* 10. Revelados ------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 80ms), transform 900ms var(--ease-out) calc(var(--i, 0) * 80ms); }
.m { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.m > span { display: block; }
.js [data-lines] .m > span { transform: translateY(108%); }
.js [data-lines].in .m > span { transform: none; transition: transform 1100ms var(--ease-out) calc(var(--i, 0) * 110ms); }
.is-pin .hz-title.m-v .m { display: inline-block; }

/* 11. Movimiento reducido: sin pines ni desplazamientos; solo fundidos ---- */
@media (prefers-reduced-motion: reduce) {
  .js .hero-photo, .js .wi, .js .hx-cta { opacity: 1; transform: none; filter: none; animation: none; }
  .hx-go .hero-photo, .hx-go .wi, .hx-go .hx-cta { animation: none; }
  .af, .cue, .grain { display: none !important; }
  .js [data-reveal] { transform: none; }
  .js [data-reveal].in { transition: opacity 300ms ease; }
  .js [data-lines] .m > span, .js [data-rise] .fr { transform: none; }
  .btn .t, .btn .arrow { transition: none; }
  .wd { opacity: 1; }
}

/* =========================================================================
   Ajustes para WordPress (tema Astra). Se añaden al final de home-v8.css.
   Anulan los estilos de títulos y contenedores del tema.
   ========================================================================= */

/* 1. La página ocupa todo el ancho, sin el contenedor del tema */
.stoic-home { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); overflow-x: clip; }
.stoic-home img { max-width: 100%; }

/* 2. Títulos: la fuente, el color y las mayúsculas vienen de la página, no del tema */
.stoic-home .hx-title,
.stoic-home .frase-t,
.stoic-home .filo-title,
.stoic-home .hz-title,
.stoic-home .ztitle,
.stoic-home .zs-title,
.stoic-home .cap h3,
.stoic-home .zs-card h3 {
  font-family: var(--font);
  text-transform: none;
  letter-spacing: -.03em;
  font-style: normal;
}
.stoic-home .hx-title,
.stoic-home .frase-t,
.stoic-home .filo-title { color: var(--white); }
.stoic-home .hz-title,
.stoic-home .ztitle,
.stoic-home .zs-title,
.stoic-home .cap h3,
.stoic-home .zs-card h3 { color: var(--ink); }
.stoic-home .acc { color: var(--lima); }
.stoic-home .ztitle .acc, .stoic-home .zs-title .acc { color: inherit; }

/* 3. Textos del cuerpo y botones */
.stoic-home .cap .lead,
.stoic-home .cap .sub,
.stoic-home .zs-card p,
.stoic-home .legal,
.stoic-home .footer li a,
.stoic-home .foot-link,
.stoic-home .nav a,
.stoic-home .topbar,
.stoic-home .btn,
.stoic-home .hud-zoom { font-family: var(--font); }
.stoic-home .cap .lead { color: var(--ink); }
.stoic-home .cap .sub { color: var(--ink-soft); }
.stoic-home .footer h3 { color: rgba(255,255,255,.72); font-family: var(--font); }

/* 4. Cabecera propia: el tema no debe encimarse */
.stoic-home .header { font-family: var(--font); }

/* 5. Tipos de letra de la página: un solo sistema */
.stoic-home, .stoic-home * { font-family: var(--font); }
.stoic-home .hud-zoom { text-transform: uppercase; }
.stoic-home .footer h3, .stoic-home .top-link { text-transform: uppercase; }
