/* ============================================================
   ESCUELA DE SKATE GADES — Club Deportivo Skate Cádiz
   Sitio estático · sistema de diseño (piel "skate": negro/lima)
   Motor heredado de la skill web-editorial (Lenis + reveal + cortina).
   ============================================================ */

@import url("../fonts/inter.css");
/* Display: grotesca negra rotunda (titulares). Swappable a self-host luego. */

:root{
  /* --- color --- */
  --lime:       #9BE70D;   /* acento principal (verde lima del flyer) */
  --lime-soft:  #C7F46B;
  --lime-tint:  #EAFBC4;   /* fondos suaves */
  --ink:        #0E0E0E;   /* texto / negro de marca */
  --black:      #000000;
  --grey:       #5E5E5E;
  --grey-light: #D7D7D7;
  --line:       #E6E6E6;
  --paper:      #FFFFFF;   /* fondo principal: blanco */
  --paper-2:    #F6F6F3;   /* sección alterna sutil */
  --white:      #ffffff;

  /* acento "texto": el lima no contrasta como tipografía pequeña → usamos ink */
  --accent-text: var(--ink);

  --display: "Hanken Grotesk", "Archivo", "Inter", system-ui, sans-serif;
  --sans:    "Inter", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 76px;
  --radius: 0px;                     /* editorial: esquinas rectas */
  --bd: 2px solid var(--ink);        /* borde de encuadre */
  --shadow:    7px 7px 0 var(--ink); /* sombra dura desplazada */
  --shadow-lg: 13px 13px 0 var(--ink);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }

.skip-link{ position:fixed; top:.6rem; left:.6rem; z-index:300; transform:translateY(-150%);
  background:var(--ink); color:var(--white); padding:.7rem 1.1rem; border-radius:8px;
  font-size:.85rem; transition:transform .2s ease; }
.skip-link:focus{ transform:none; outline:none; }
:focus-visible{ outline:3px solid var(--ink); outline-offset:3px; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  overflow-x:clip;
  font-size:clamp(1rem,0.96rem + 0.2vw,1.125rem);
  line-height:1.62;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,h6{ margin:0; font-weight:800; line-height:1.02; }

/* ---------- layout helpers ---------- */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:clamp(3.25rem,7vw,7rem); border-top:2px solid var(--ink); }
.section--tint{ background:var(--paper-2); }
.section--dark{ background:var(--ink); color:var(--white); }
.section--lime{ background:var(--lime); color:var(--ink); }
.center{ text-align:center; }
.maxw-prose{ max-width:64ch; }
.hide{ display:none !important; }
.display{ font-family:var(--display); font-weight:800; letter-spacing:-.02em; }

.eyebrow{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--mono);
  font-size:.72rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink);
  margin:0 0 1.4rem;
}
.eyebrow::before{
  content:""; width:26px; height:10px; border-radius:2px;
  background:var(--lime); display:inline-block; flex:none;
}
.section--dark .eyebrow,.section--lime .eyebrow{ color:inherit; }
.section--dark .eyebrow::before{ background:var(--lime); }
.section--lime .eyebrow::before{ background:var(--ink); }

/* títulos de sección reutilizables */
.h-xl{ font-family:var(--display); font-weight:800; letter-spacing:-.025em;
  font-size:clamp(2.4rem,7vw,5.5rem); line-height:.95; text-transform:none; }
.h-lg{ font-family:var(--display); font-weight:800; letter-spacing:-.02em;
  font-size:clamp(1.9rem,4.5vw,3.4rem); line-height:1; }
.h-md{ font-family:var(--display); font-weight:800; letter-spacing:-.015em;
  font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.05; }
.hl{ color:var(--ink); background:var(--lime); padding:0 .18em; border-radius:.08em;
  box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.lead{ font-size:clamp(1.1rem,1.7vw,1.4rem); color:var(--grey); line-height:1.5; max-width:60ch; }
.section--dark .lead{ color:#BdBdBd; }

/* ============================================================
   HEADER + MENÚ OVERLAY
   ============================================================ */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(255,255,255,.86); backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; }
.brand{ font-family:var(--display); font-weight:800; letter-spacing:-.015em;
  font-size:clamp(1.1rem,1rem + 1.1vw,1.6rem); line-height:1;
  display:inline-flex; align-items:center; gap:.55rem; white-space:nowrap; }
.brand .dot{ width:12px; height:12px; border-radius:50%; background:var(--lime); display:inline-block; flex:none; }

.menu-trigger{
  font-family:var(--mono); font-size:.74rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
  background:var(--ink); color:var(--white); border:2px solid var(--ink); cursor:pointer;
  display:flex; align-items:center; gap:.55rem; padding:.55rem 1rem; border-radius:0;
  transition:background .2s ease, color .2s ease;
}
.menu-trigger:hover{ background:var(--lime); color:var(--ink); border-color:var(--ink); }
.menu-trigger::after{
  content:""; width:18px; height:2px; background:currentColor;
  box-shadow:0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.page--light{ padding-top:var(--header-h); }

.nav-overlay{
  position:fixed; inset:0; z-index:200;
  background:var(--ink); color:var(--white);
  display:flex; flex-direction:column;
  padding:var(--gutter);
  opacity:0; visibility:hidden; transform:translateY(-12px);
  transition:opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), visibility .6s;
}
.nav-overlay.open{ opacity:1; visibility:visible; transform:none; }
.nav-overlay__top{ display:flex; align-items:center; justify-content:space-between;
  height:var(--header-h); margin-top:calc(-1 * var(--gutter)); }
.nav-overlay__top strong{ font-family:var(--display); font-size:1.15rem; }
.nav-close{
  font-family:var(--sans); font-size:.78rem; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase;
  background:none; border:1px solid #3a3a3a; color:var(--white); cursor:pointer;
  padding:.5rem 1rem; border-radius:999px; transition:border-color .2s, color .2s;
}
.nav-close:hover{ border-color:var(--lime); color:var(--lime); }
.nav-list{ flex:1; display:flex; flex-direction:column; justify-content:center; gap:clamp(.2rem,1.4vw,.7rem); }
.nav-list a{
  font-family:var(--display); font-weight:800; letter-spacing:-.02em;
  font-size:clamp(2.2rem,8vw,5rem); line-height:1.04;
  color:var(--white); width:max-content;
  opacity:0; transform:translateY(34px);
  transition:color .2s ease, opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.nav-list a:hover,.nav-list a[aria-current="page"]{ color:var(--lime); }
.nav-overlay.open .nav-list a{ opacity:1; transform:none; }
.nav-overlay.open .nav-list li:nth-child(1) a{ transition-delay:.12s; }
.nav-overlay.open .nav-list li:nth-child(2) a{ transition-delay:.18s; }
.nav-overlay.open .nav-list li:nth-child(3) a{ transition-delay:.24s; }
.nav-overlay.open .nav-list li:nth-child(4) a{ transition-delay:.30s; }
.nav-overlay.open .nav-list li:nth-child(5) a{ transition-delay:.36s; }
.nav-overlay.open .nav-list li:nth-child(6) a{ transition-delay:.42s; }
.nav-overlay.open .nav-list li:nth-child(7) a{ transition-delay:.48s; }
.nav-foot{ display:flex; gap:1.4rem; flex-wrap:wrap; color:#9b9b9b; font-size:.85rem; padding-top:1.4rem; border-top:1px solid #2a2a2a; }
.nav-foot a{ color:#cfcfcf; }
.nav-foot a:hover{ color:var(--lime); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--mono); font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  font-size:.82rem; line-height:1; cursor:pointer;
  background:var(--lime); color:var(--ink); border:var(--bd);
  padding:1rem 1.6rem; border-radius:0;
  box-shadow:var(--shadow);
  transition:transform .14s ease, box-shadow .14s ease, background .2s ease, color .2s ease;
}
.btn:hover{ transform:translate(3px,3px); box-shadow:4px 4px 0 var(--ink); background:#8ad30a; }
.btn:active{ transform:translate(7px,7px); box-shadow:0 0 0 var(--ink); }
.btn--ghost{ background:var(--paper); color:var(--ink); }
.btn--ghost:hover{ background:var(--ink); color:var(--white); }
.section--dark .btn{ box-shadow:7px 7px 0 var(--lime); border-color:var(--white); }
.section--dark .btn:hover{ box-shadow:4px 4px 0 var(--lime); }
.section--dark .btn--ghost{ background:transparent; color:var(--white); }
.section--dark .btn--ghost:hover{ background:var(--lime); color:var(--ink); border-color:var(--lime); }
.btn--lg{ padding:1.15rem 2rem; font-size:.86rem; }
.btn-row{ display:flex; flex-wrap:wrap; gap:1.2rem; margin-top:2rem; }
.arrow{ font-size:1.05em; line-height:0; }

/* enlace de texto con subrayado animado */
.link-underline{
  background-image:linear-gradient(var(--lime),var(--lime));
  background-size:0% 3px; background-repeat:no-repeat; background-position:0 100%;
  transition:background-size .35s cubic-bezier(.2,.7,.2,1);
  font-weight:600; padding-bottom:3px;
}
.link-underline:hover{ background-size:100% 3px; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; overflow:hidden; background:var(--paper);
  padding-block:calc(var(--header-h) + clamp(2rem,5vw,4rem)) clamp(2.5rem,6vw,5rem);
}
.hero__grid{ display:grid; gap:clamp(2rem,5vw,3.5rem); grid-template-columns:1fr; align-items:center; }
@media(min-width:920px){ .hero__grid{ grid-template-columns:1.05fr .95fr; } }
.hero__title{
  font-family:var(--display); font-weight:800; letter-spacing:-.03em;
  font-size:clamp(2.8rem,9vw,6.6rem); line-height:.92; text-transform:none;
}
.hero__sub{ margin-top:1.6rem; max-width:46ch; font-size:clamp(1.1rem,1.5vw,1.4rem); color:var(--grey); }
.hero__media{ position:relative; }
.hero__media > img{ width:100%; aspect-ratio:4/5; object-fit:cover; background:var(--paper-2);
  border:var(--bd); box-shadow:var(--shadow-lg); }

/* galería automática (crossfade sin parpadeo + zoom sutil tipo Ken Burns) */
.slideshow{ position:relative; overflow:hidden; background:var(--paper-2);
  border:var(--bd); box-shadow:var(--shadow-lg); }
.slideshow img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; z-index:0; transition:opacity 1.6s ease; }
/* la imagen visible (base, opaca) — con zoom muy lento */
.slideshow img.is-active{ opacity:1; z-index:1; animation:kenburns 9s ease-out both; }
/* la entrante funde por encima de la base; al acabar pasa a ser la nueva base */
.slideshow img.is-entering{ opacity:1; z-index:2; }
@keyframes kenburns{ from{ transform:scale(1.001); } to{ transform:scale(1.06); } }
.hero__media .slideshow{ aspect-ratio:4/5; }
.split .slideshow{ aspect-ratio:4/5; }
@media (prefers-reduced-motion: reduce){
  .slideshow img{ transition:none; animation:none !important; }
}
/* destello (burst) decorativo del flyer */
.burst{ position:absolute; pointer-events:none; color:var(--lime); z-index:0; }
.hero .burst{ top:-40px; right:-30px; width:clamp(140px,22vw,300px); }
.hero__grid{ position:relative; z-index:1; }

/* tira de credenciales bajo el hero */
.cred-row{ display:flex; flex-wrap:wrap; gap:.7rem 1.6rem; margin-top:2.2rem; align-items:center; }
.cred{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--mono); font-size:.74rem;
  font-weight:700; letter-spacing:.02em; text-transform:uppercase; color:var(--ink); }
.cred::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--lime); }

/* ============================================================
   PAGE HERO (subpáginas) — claro, texto negro, acento lima
   ============================================================ */
.pagehero{ position:relative; overflow:hidden; background:var(--paper); color:var(--ink);
  padding-block:clamp(3.25rem,7vw,5.5rem) clamp(2rem,4vw,3.25rem); }
.pagehero h1{ font-family:var(--display); font-weight:800; letter-spacing:-.03em;
  font-size:clamp(2.6rem,8vw,5.6rem); line-height:.95; }
/* barra lima bajo el título: el detalle de color de cada cabecera */
.pagehero h1::after{ content:""; display:block; width:64px; height:7px; border-radius:4px;
  background:var(--lime); margin-top:clamp(1.1rem,2vw,1.5rem); }
.pagehero .lead{ margin-top:clamp(1.2rem,2.2vw,1.6rem); color:var(--grey); }

/* ============================================================
   CONTENIDO GENÉRICO
   ============================================================ */
.prose p{ margin:0 0 1.2rem; }
.prose p:last-child{ margin-bottom:0; }
.lead-text{ font-size:clamp(1.3rem,2.4vw,2rem); line-height:1.28; font-family:var(--display); font-weight:800; letter-spacing:-.02em; }

.split{ display:grid; gap:clamp(2rem,5vw,4.5rem); grid-template-columns:1fr; align-items:center; }
@media(min-width:860px){ .split{ grid-template-columns:1fr 1fr; } .split--text-first>*:first-child{ order:-1; } }
.split img{ width:100%; object-fit:cover; border-radius:var(--radius); }
.media-row{ display:grid; gap:clamp(1rem,2.5vw,1.6rem); grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.media-row img{ border-radius:var(--radius); }

.section-head{ display:flex; flex-direction:column; gap:1.1rem; margin-bottom:clamp(2.5rem,5.5vw,4rem); max-width:62ch; }
.section-head--split{ max-width:none; gap:1.6rem; }
@media(min-width:860px){ .section-head--split{ flex-direction:row; align-items:flex-end; justify-content:space-between; gap:clamp(2rem,5vw,4rem); } }
.section-head--split .lead{ max-width:42ch; }

/* ============================================================
   BLOQUES NUMERADOS (beneficios / pasos) — del flyer
   ============================================================ */
.numgrid{ display:grid; gap:clamp(1.5rem,3.5vw,2.6rem); grid-template-columns:1fr; }
@media(min-width:680px){ .numgrid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:980px){ .numgrid--3{ grid-template-columns:repeat(3,1fr); } }
.numitem{ }
.numitem__n{ font-family:var(--display); font-weight:800; font-size:clamp(2.6rem,4vw,3.4rem);
  line-height:1; color:var(--lime); -webkit-text-stroke:0; letter-spacing:-.02em; }
.section--dark .numitem__n{ color:var(--lime); }
.numitem__t{ font-family:var(--display); font-weight:800; font-size:1.2rem; margin:.5rem 0 .6rem; }
.numitem p{ margin:0; color:var(--grey); font-size:.98rem; }
.section--dark .numitem p{ color:#bdbdbd; }

/* sellos / credenciales con barra lima (01 IMD, 02 FAP, 03 CNS) */
.sellos{ display:grid; gap:clamp(1.4rem,3vw,2.2rem); grid-template-columns:1fr; }
@media(min-width:760px){ .sellos{ grid-template-columns:repeat(3,1fr); } }
.sello{ border-left:4px solid var(--lime); padding-left:1.2rem; }
.sello b{ font-family:var(--display); font-weight:800; font-size:2.2rem; color:var(--lime); display:block; line-height:1; }
.sello strong{ display:block; font-family:var(--display); font-weight:800; font-size:1.05rem; margin:.4rem 0 .4rem; color:var(--ink); }
.section--dark .sello strong{ color:var(--white); }
.sello span{ color:var(--grey); font-size:.95rem; }
.section--dark .sello span{ color:#bdbdbd; }

/* ============================================================
   TARJETAS (pilares, programas)
   ============================================================ */
.cards{ display:grid; gap:clamp(1rem,2.5vw,1.6rem); grid-template-columns:1fr; }
@media(min-width:620px){ .cards{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:980px){ .cards--4{ grid-template-columns:repeat(4,1fr); } .cards--3{ grid-template-columns:repeat(3,1fr); } }
.card{ background:var(--paper); border:var(--bd); border-radius:0;
  padding:clamp(1.5rem,2.6vw,2rem); box-shadow:var(--shadow);
  transition:transform .14s ease, box-shadow .14s ease; }
.card:hover{ transform:translate(-3px,-3px); box-shadow:10px 10px 0 var(--lime); }
.card__icon{ width:44px; height:44px; color:var(--ink); margin-bottom:1.1rem; }
.card h3{ font-family:var(--display); font-weight:800; font-size:1.2rem; margin-bottom:.5rem; }
.card p{ margin:0; color:var(--grey); font-size:.98rem; }
.section--tint .card{ background:var(--white); }

/* tarjetas del blog de Chavs (reutilizan .card) */
.postcard{ display:flex; flex-direction:column; gap:.75rem; text-decoration:none; color:var(--ink); height:100%; }
.postcard__meta{ display:inline-flex; align-items:center; gap:.55rem; font-family:var(--mono);
  font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--grey); }
.postcard__meta::before{ content:""; width:18px; height:8px; background:var(--lime); flex:none; }
.postcard__title{ font-family:var(--display); font-weight:800; font-size:1.22rem; line-height:1.08; color:var(--ink); }
.postcard__excerpt{ margin:0; color:var(--grey); font-size:.95rem; line-height:1.5; }
.postcard__more{ margin-top:auto; padding-top:.5rem; font-family:var(--mono); font-size:.74rem;
  font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink); }
.postcard__more .arrow{ transition:transform .14s ease; display:inline-block; }
.postcard:hover .postcard__more .arrow{ transform:translateX(4px); }

/* tarjetas de grupos por edad / precios */
.plan{ background:var(--paper); border:var(--bd); border-radius:0; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:var(--shadow);
  transition:transform .14s ease, box-shadow .14s ease; }
.plan:hover{ transform:translate(-3px,-3px); box-shadow:10px 10px 0 var(--lime); }
.plan--feature{ box-shadow:10px 10px 0 var(--lime); }
.plan--feature:hover{ box-shadow:14px 14px 0 var(--lime); }
.plan__top{ background:var(--ink); color:var(--white); padding:1.4rem 1.5rem;
  min-height:6.75rem; display:flex; flex-direction:column; justify-content:flex-start; }
.plan--feature .plan__top{ background:var(--lime); color:var(--ink); }
.plan__kicker{ font-family:var(--mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; font-weight:700; opacity:.85; }
.plan__name{ font-family:var(--display); font-weight:800; font-size:1.5rem; margin-top:.3rem; }
.plan__body{ padding:clamp(1.5rem,2.6vw,1.9rem); display:flex; flex-direction:column; gap:1.15rem; flex:1; }
/* hueco fijo para el tag → alinea el resto del contenido entre tarjetas */
.plan__badge{ min-height:1.9rem; display:flex; align-items:flex-start; }
.plan__desc{ color:var(--grey); margin:0; }
.plan ul{ display:flex; flex-direction:column; gap:.72rem; }
.plan li{ position:relative; padding-left:1.7rem; color:var(--ink); font-size:.98rem; font-weight:500; }
.plan li::before{ content:""; position:absolute; left:0; top:.4em; width:12px; height:12px; border-radius:3px; background:var(--lime); }
/* precio anclado abajo, separado con una línea (más jerarquía) */
.plan__price{ margin-top:auto; padding-top:1.15rem; border-top:1px solid var(--line);
  font-family:var(--display); font-weight:800; font-size:clamp(2.2rem,3vw,2.6rem); line-height:1; color:var(--ink); }
.plan__price small{ margin-left:.5rem; font-family:var(--mono); font-weight:500; font-size:.76rem;
  color:var(--grey); letter-spacing:0; white-space:nowrap; }
.plan .btn{ margin-top:1.15rem; justify-content:center; }
.tag-free{ display:inline-block; background:var(--lime); color:var(--ink); font-weight:700;
  font-family:var(--mono); text-transform:uppercase; font-size:.68rem; letter-spacing:.06em;
  padding:.4rem .7rem; border:2px solid var(--ink); border-radius:0; }

/* ============================================================
   CITA GRANDE
   ============================================================ */
.pull{ text-align:center; }
.pull blockquote{ margin:0 auto; max-width:20ch; font-family:var(--display); font-weight:800;
  letter-spacing:-.02em; font-size:clamp(2rem,6vw,4.2rem); line-height:1.02; }
.pull cite{ display:block; margin-top:1.6rem; font-style:normal; font-family:var(--sans);
  font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; }

/* CTA enmarcado (estilo editorial: caja con borde + sombra dura) */
.cta-card{ max-width:780px; margin-inline:auto; background:var(--paper);
  border:var(--bd); box-shadow:var(--shadow-lg); padding:clamp(1.8rem,4.5vw,3.4rem); }
.cta-card .eyebrow{ margin-bottom:1.2rem; }
.cta-card h2{ margin-bottom:1.1rem; max-width:18ch; }
.cta-card p{ font-family:var(--mono); font-size:.96rem; line-height:1.75; color:var(--ink); max-width:56ch; margin:0; }
.cta-card .btn-row{ margin-top:2rem; }

/* ============================================================
   VÍDEO (zona reutilizable; placeholder con botón play)
   ============================================================ */
/* bloque de vídeo: texto al lado del vídeo, fondo claro */
.videoblock .wrap{ display:grid; gap:clamp(1.8rem,4vw,3.5rem); grid-template-columns:1fr; align-items:center; }
@media(min-width:900px){ .videoblock .wrap{ grid-template-columns:0.82fr 1.18fr; } }
.videoblock__text .eyebrow{ margin-bottom:1.1rem; }
.videoblock__text .h-lg{ margin-bottom:1.1rem; }
.videoblock__text p{ color:var(--grey); max-width:40ch; margin:0; }

.videowrap{ position:relative; border-radius:0; overflow:hidden;
  aspect-ratio:16/9; background:var(--paper-2); border:var(--bd); box-shadow:13px 13px 0 var(--lime); }
.videowrap img,.videowrap video,.videowrap iframe{ width:100%; height:100%; object-fit:cover; border:0; display:block; }
.videowrap__ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:repeating-linear-gradient(45deg,#141414,#141414 16px,#1b1b1b 16px,#1b1b1b 32px);
  color:#6a6a6a; font-size:.78rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; }
.videowrap__play{ position:absolute; inset:0; margin:auto; width:84px; height:84px; border-radius:50%;
  background:var(--lime); color:var(--ink); border:0; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:transform .2s ease; box-shadow:0 10px 40px -10px rgba(0,0,0,.6); }
.videowrap__play:hover{ transform:scale(1.08); }
.videowrap__play svg{ width:30px; height:30px; margin-left:4px; }
/* pulso sutil alrededor del play */
.videowrap__play::after{ content:""; position:absolute; inset:-10px; border-radius:50%;
  border:2px solid var(--lime); opacity:.6; animation:pulse 2.4s ease-out infinite; }
@keyframes pulse{ 0%{ transform:scale(1); opacity:.6; } 70%{ transform:scale(1.25); opacity:0; } 100%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){ .videowrap__play::after{ animation:none; } }
.video-caption{ margin-top:1rem; color:var(--grey); font-family:var(--mono); font-size:.78rem; text-align:center; }
.section--dark .video-caption{ color:#9a9a9a; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery{ display:grid; gap:clamp(.8rem,2vw,1.4rem); grid-template-columns:repeat(2,1fr); }
@media(min-width:760px){ .gallery{ grid-template-columns:repeat(3,1fr); } }
.gallery figure{ margin:0; border:var(--bd); border-radius:0; overflow:hidden; background:var(--paper-2);
  aspect-ratio:1/1; transition:transform .18s ease, box-shadow .18s ease, opacity .4s ease; }
/* foco: al pasar sobre una, las demás se atenúan */
.gallery:hover figure{ opacity:.4; }
.gallery:hover figure:hover{ opacity:1; transform:translate(-3px,-3px);
  box-shadow:8px 8px 0 var(--lime); position:relative; z-index:1; }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.gallery figure:hover img{ transform:scale(1.04); }

/* lightbox: amplía la foto al hacer clic */
.lightbox{ position:fixed; inset:0; z-index:400; display:flex; align-items:center; justify-content:center;
  padding:clamp(1rem,5vw,4rem); background:rgba(8,8,8,.9); cursor:zoom-out;
  opacity:0; visibility:hidden; transition:opacity .35s ease, visibility .35s; }
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:92vw; max-height:88vh; width:auto; height:auto; object-fit:contain;
  border:var(--bd); box-shadow:var(--shadow-lg); background:var(--ink);
  transform:scale(.94); transition:transform .4s cubic-bezier(.2,.7,.2,1); }
.lightbox.open img{ transform:scale(1); }
@media (prefers-reduced-motion: reduce){
  .lightbox,.lightbox img{ transition:none; }
}

.gallery .tall{ grid-row:span 2; aspect-ratio:auto; }

/* equipo / profes (reutiliza grid-people del motor, reskin) */
.grid-people{ display:grid; gap:clamp(1.4rem,3vw,2.4rem); grid-template-columns:repeat(2,1fr); }
@media(min-width:760px){ .grid-people{ grid-template-columns:repeat(3,1fr); } }
.person__img{ position:relative; aspect-ratio:3/4; overflow:hidden; border-radius:var(--radius); background:var(--paper-2); }
.person__img img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.person:hover .person__img img{ transform:scale(1.04); }
.person__name{ font-family:var(--display); font-weight:800; font-size:1.15rem; margin-top:.9rem; }
.person__meta{ font-size:.85rem; color:var(--grey); margin-top:.2rem; }

/* ============================================================
   CONTACTO + FORMULARIO
   ============================================================ */
.contact{ background:var(--paper-2); }
.contact h2{ margin-bottom:1.2rem; }
.contact-grid{ display:grid; gap:clamp(2rem,5vw,4rem); grid-template-columns:1fr; }
@media(min-width:860px){ .contact-grid{ grid-template-columns:1fr 1fr; } }
.contact-info{ display:flex; flex-direction:column; gap:1.1rem; }
/* logo a la derecha del texto en la cabecera de Contacto */
.pagehero--logo .wrap{ display:grid; gap:clamp(1.5rem,4vw,3rem); grid-template-columns:1fr; align-items:center; }
@media(min-width:760px){ .pagehero--logo .wrap{ grid-template-columns:1fr auto; } }
.pagehero__logo{ width:clamp(150px,18vw,220px); height:auto; justify-self:start; }
.contact-info a{ font-weight:600; }
.contact-info .row{ display:flex; gap:.7rem; align-items:baseline; }
.contact-info .lbl{ font-family:var(--mono); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--grey); min-width:5.5rem; }
.cform{ display:grid; gap:1.2rem; background:var(--white); padding:clamp(1.6rem,3vw,2.4rem); border-radius:0; border:var(--bd); box-shadow:var(--shadow-lg); }
.cform label{ font-family:var(--mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink); display:block; margin-bottom:.5rem; font-weight:700; }
.cform input,.cform textarea,.cform select{
  width:100%; background:var(--paper); border:2px solid var(--ink); border-radius:0;
  color:var(--ink); font-family:inherit; font-size:1rem; padding:.8rem .9rem;
  transition:box-shadow .14s ease;
}
.cform input:focus,.cform textarea:focus,.cform select:focus{ outline:none; box-shadow:4px 4px 0 var(--lime); }
.cform textarea{ resize:vertical; min-height:110px; }
.cform .check{ display:flex; gap:.6rem; align-items:flex-start; font-size:.85rem; color:var(--grey); }
.cform .check input{ width:auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--ink); color:#cfcfcf; }
.site-footer .wrap{ display:grid; gap:2.5rem; grid-template-columns:1fr; padding-block:clamp(3rem,6vw,4.5rem); }
@media(min-width:860px){ .site-footer .wrap{ grid-template-columns:2fr 1fr 1fr; align-items:start; } }
.footer-brand{ font-family:var(--display); font-weight:800; font-size:1.4rem; color:var(--white); display:flex; align-items:center; gap:.5rem; }
.footer-tag{ font-size:1rem; color:#bdbdbd; line-height:1.5; max-width:34ch; margin-top:1rem; }
.footer-col h4{ font-family:var(--mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--lime); font-weight:700; margin-bottom:1rem; }
.footer-nav{ display:flex; flex-direction:column; gap:.6rem; align-items:flex-start; }
.footer-nav a:hover{ color:var(--lime); }
.footer-legal{ grid-column:1/-1; border-top:1px solid #2a2a2a; padding-top:1.6rem; display:flex;
  gap:1rem 1.5rem; flex-wrap:wrap; justify-content:space-between; font-size:.8rem; color:#8f8f8f; }

/* ============================================================
   MOVIMIENTO — apariciones, cortina, transición de página
   ============================================================ */
.reveal{ opacity:0; transform:translateY(30px); transition:opacity 1s ease, transform 1s cubic-bezier(.22,.65,.18,1); }
.reveal.is-in{ opacity:1; transform:none; }

@view-transition{ navigation:auto; }
::view-transition-old(root){ animation:vt-out .5s ease both; }
::view-transition-new(root){ animation:vt-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out{ to{ opacity:0; } }
@keyframes vt-in{ from{ opacity:0; transform:translateY(28px); } to{ opacity:1; transform:none; } }
@keyframes page-in{ from{ opacity:0; transform:translateY(28px); } to{ opacity:1; transform:none; } }
main#main{ animation:page-in 1.1s cubic-bezier(.2,.7,.2,1) both; }

.img-reveal{ display:block; overflow:hidden; border:var(--bd); box-shadow:var(--shadow-lg); }
.img-reveal img{ will-change:transform, clip-path;
  transform:translateY(14%) scale(1.05); clip-path:inset(100% 0 0 0);
  transition:transform 1.5s cubic-bezier(.2,.7,.2,1), clip-path 1.5s cubic-bezier(.2,.7,.2,1); }
.img-reveal.is-in img{ transform:translateY(0) scale(1); clip-path:inset(0 0 0 0); }

html.lenis,html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-smooth [data-lenis-prevent]{ overscroll-behavior:contain; }
.lenis.lenis-stopped{ overflow:hidden; }

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .reveal{ opacity:1 !important; transform:none !important; }
  .img-reveal img{ transform:none !important; clip-path:none !important; }
  ::view-transition-old(root),::view-transition-new(root){ animation:none !important; }
  main#main{ animation:none !important; }
  .nav-list a{ opacity:1 !important; transform:none !important; transition:color .2s ease !important; }
}
