/* =========================================================
   ANYLA · Grupo Inversor — Sistema visual deportivo premium
   Paleta: carmín corporativo #AE0A3C sobre negro casi puro + blanco
   Tipografía: Archivo Black/Expanded (titulares) + Inter (texto/UI)
   ========================================================= */

:root {
  /* Negro + carmín corporativo como único acento */
  --emerald: #ae0a3c;        /* (nombre heredado) = carmín corporativo */
  --gold: #ae0a3c;           /* (nombre heredado) = carmín corporativo */
  --crimson: #ae0a3c;        /* rojo corporativo — acento */
  --crimson-bright: #e21348; /* hover / sobre oscuro — más saturado, energía deportiva */
  --crimson-deep: #7d1528;   /* eyebrows y énfasis sobre claro (legible) */
  --blue: #17161a;           /* neutralizado */
  --magenta: #7d1528;        /* neutralizado */

  /* Neutros: blanco + negro casi puro (base deportiva de alto contraste) */
  --ink: #0a0a0b;            /* negro casi puro: texto y secciones oscuras */
  --ink-2: #000000;
  --paper: #ffffff;          /* blanco */
  --card: #f7f7f8;
  --smoke: #f0f0f1;
  --smoke-2: #e4e4e6;
  --muted: #63636a;
  --line: rgba(10, 10, 11, 0.12);
  --line-soft: rgba(10, 10, 11, 0.07);

  /* Tipografía: grotesca extra-bold para titulares, Inter para UI/texto */
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
h3 { text-transform: none; font-weight: 800; line-height: 1.08; }
h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); }

/* ===== Símbolo matemático / etiqueta de sección ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.on-dark { color: #fff; }

/* =========================================================
   INTRO (splash de entrada — copiado del demo)
   ========================================================= */
.intro-lock { overflow: hidden; height: 100vh; }
.intro {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 50% 38%, #211d20 0%, #16151a 52%, #0c0b0e 100%);
  will-change: transform;
}
.intro::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 42%, rgba(174, 10, 60, 0.18), transparent 72%);
  pointer-events: none;
}
.intro-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 52px); padding: 24px; }
.intro-brand {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; transform: translateY(12px) scale(0.97);
  transition: opacity 0.8s var(--ease) 0.25s, transform 0.8s var(--ease) 0.25s;
}
.intro.run .intro-brand { opacity: 1; transform: none; }
.intro-mark { width: clamp(56px, 8vw, 94px); height: auto; }
.intro-mark path { fill: var(--crimson); }
.intro-name { font-family: var(--display); font-weight: 600; letter-spacing: 0.34em; font-size: clamp(28px, 4.6vw, 54px); color: var(--paper); padding-left: 0.34em; }

/* Contenedor de palabras: una visible cada vez, deslizando hacia arriba */
.intro-words {
  position: relative; height: 1.25em; width: min(80vw, 640px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.intro-word {
  position: absolute; left: 0; right: 0; text-align: center;
  font-family: var(--display); font-weight: 600; letter-spacing: 0.22em;
  font-size: clamp(17px, 3vw, 32px); color: var(--paper);
  transform: translateY(115%); opacity: 0;
}
.intro-word.in { transform: translateY(0); opacity: 1; transition: transform 0.62s var(--ease), opacity 0.62s var(--ease); }
.intro-word.out { transform: translateY(-115%); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }

/* Wipe final: el splash sube y revela el hero */
.intro.wipe { transform: translateY(-100%); transition: transform 1.3s cubic-bezier(0.76, 0, 0.24, 1); }

@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* =========================================================
   PROGRESO + HEADER
   ========================================================= */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--crimson-deep), var(--gold), var(--crimson-bright));
  z-index: 200; transition: width 0.1s linear;
}

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  display: flex; align-items: center;
  height: 84px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.scrolled {
  height: 66px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0, 0, 0, 0.4);
}

/* Marca en el header */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark path { fill: #fff; transition: fill 0.4s var(--ease); }
.header.scrolled .brand-mark path { fill: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: 0.16em; color: #fff; transition: color 0.4s var(--ease);
}
.brand-sub {
  font-family: var(--display); font-weight: 600; font-size: 8.5px;
  letter-spacing: 0.42em; color: rgba(255, 255, 255, 0.7); margin-top: 4px;
  transition: color 0.4s var(--ease);
}
.header.scrolled .brand-name { color: var(--ink); }
.header.scrolled .brand-sub { color: var(--muted); }

/* Navegación — versalitas de club */
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88); position: relative; padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav a.btn { text-transform: uppercase; letter-spacing: 0.12em; }
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--crimson-bright); transition: width 0.3s var(--ease);
}
.nav a.navlink:hover::after { width: 100%; }
.header.scrolled .nav a.navlink { color: var(--ink); }
.header.scrolled .nav a.navlink:hover { color: var(--crimson); }

.btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 15px 26px; border-radius: 4px; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary { background: var(--emerald); color: var(--paper); box-shadow: 0 12px 30px -16px rgba(10, 26, 20, 0.8); }
.btn-primary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
/* En el hero (sobre vídeo oscuro) el CTA principal va en marfil, como una tarjeta */
.hero .hero-cta .btn-primary { background: var(--paper); color: var(--ink); }
.hero .hero-cta .btn-primary:hover { background: var(--emerald); color: var(--paper); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--emerald); color: var(--paper); transform: translateY(-2px); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.header .btn { padding: 10px 20px; }

/* Toggle móvil */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  position: relative; flex: none;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-video, .hero-video video, .hero-video img, .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
/* Bucle/secuencia sin corte: dos capas que se funden entre sí */
.seamless .hv-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s linear;
}
.seamless .hv-layer:first-child { opacity: 1; }
.hero-poster { background-size: cover; background-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 12, 15, 0.55) 0%, rgba(13, 12, 15, 0.20) 35%, rgba(13, 12, 15, 0.58) 78%, rgba(12, 11, 14, 0.95) 100%),
    radial-gradient(120% 80% at 80% 12%, rgba(174, 10, 60, 0.22), transparent 62%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vw, 110px); padding-top: 120px; }

.hero-lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.hero-mark { width: 56px; height: 56px; }
.hero-mark path { fill: #fff; }

.hero h1 {
  font-size: clamp(42px, 8vw, 116px);
  font-weight: 600; letter-spacing: -0.015em; max-width: 15ch; margin-bottom: 26px;
}
.hero h1 em { font-style: normal; font-weight: 900; color: var(--crimson-bright); }
.hero-lead {
  font-size: clamp(16px, 1.7vw, 21px); max-width: 52ch; color: rgba(255, 255, 255, 0.86);
  margin-bottom: 34px; font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  font-family: var(--display); font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.hero-scroll .line { width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: scrollline 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollline { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== Inicio con más impacto ===== */
/* Zoom lento y continuo del vídeo del hero (cinemático) */
#heroVideo { animation: heroZoom 28s ease-in-out infinite alternate; transform-origin: 50% 42%; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }

/* Titular mayor y con revelado por líneas (máscara) */
.hero h1 { font-size: clamp(48px, 10vw, 150px); line-height: 0.98; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(116%); }
.hero.entered .hero-title .line > span { transform: none; transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1); }
.hero.entered .hero-title .line:nth-child(1) > span { transition-delay: 0.15s; }
.hero.entered .hero-title .line:nth-child(2) > span { transition-delay: 0.32s; }

/* Entrada escalonada de kicker, titular y botones tras la intro */
.hero .ribbon, .hero h1, .hero .hero-lead, .hero .hero-cta { opacity: 0; transform: translateY(20px); }
.hero.entered .ribbon { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.05s, transform 0.9s var(--ease) 0.05s; }
.hero.entered h1 { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.2s, transform 0.9s var(--ease) 0.2s; }
.hero.entered .hero-lead { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.4s, transform 0.9s var(--ease) 0.4s; }
.hero.entered .hero-cta { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.6s, transform 0.9s var(--ease) 0.6s; }

/* Marco de cine: borde fino + marcas de encuadre en las esquinas */
.hero-frame {
  position: absolute; inset: clamp(16px, 2.4vw, 34px); z-index: 3; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0; transition: opacity 1.1s var(--ease) 0.3s;
}
.hero.entered .hero-frame { opacity: 1; }
.hero-frame span {
  position: absolute; width: 26px; height: 26px;
  border-color: rgba(255, 255, 255, 0.85); border-style: solid; border-width: 0;
}
.hero.entered .hero-frame span { opacity: 1; }
.hero-frame .tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-frame .tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-frame .bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame .br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Grano de cine sobre el hero */
.hero-grain {
  position: absolute; inset: -8%; z-index: 4; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.11; mix-blend-mode: overlay;
  animation: grain 0.62s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* Hero sin texto: contenido centrado */
.hero-bare .wrap { text-align: center; }
.hero-bare .hero-cta { justify-content: center; }
.hero-bare .hero-scroll { display: none; }

@media (prefers-reduced-motion: reduce) {
  #heroVideo, .hero-grain { animation: none; }
  .hero-title .line > span, .hero .ribbon, .hero h1, .hero .hero-lead, .hero .hero-cta, .hero-frame, .hero-frame span { opacity: 1; transform: none; }
}

/* ===== Emblema / sello del club ===== */
.seal { width: clamp(84px, 11vw, 116px); height: auto; margin-bottom: 30px; color: rgba(255, 255, 255, 0.92); }
.seal svg { width: 100%; height: auto; display: block; animation: sealspin 40s linear infinite; }
@keyframes sealspin { to { transform: rotate(360deg); } }
.seal .seal-core { animation: sealspin 40s linear infinite reverse; transform-origin: 60px 60px; }
.footer-seal { margin: 0 auto clamp(40px, 6vw, 68px); color: rgba(255, 255, 255, 0.85); }
@media (prefers-reduced-motion: reduce) { .seal svg, .seal .seal-core { animation: none; } }

/* Cinta "por invitación" */
.ribbon {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.34em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}
.ribbon::before, .ribbon::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.6; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--ink); color: #fff; padding-block: 24px; overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 30px; padding-inline: 30px;
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.01em; white-space: nowrap; text-transform: uppercase;
}
.marquee-item .sep { color: var(--crimson-bright); font-weight: 700; }
.marquee-item.ghost { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   MANIFIESTO
   ========================================================= */
.manifesto { background: var(--paper); }
.manifesto .wrap { max-width: 1100px; }
.manifesto p {
  font-family: var(--head); font-weight: 500;
  font-size: clamp(28px, 5vw, 66px); line-height: 1.1; letter-spacing: -0.01em;
  margin: 22px 0 0;
}
.manifesto .dim { color: var(--smoke-2); }
.manifesto .hl { color: var(--crimson); }
.manifesto .sign { margin-top: 34px; color: var(--muted); font-size: 15px; max-width: 60ch; font-family: var(--sans); font-weight: 400; }

/* =========================================================
   POSICIONAMIENTO (3 columnas color)
   ========================================================= */
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.pos-card {
  position: relative; border-radius: var(--radius); padding: 38px 32px 34px; color: #fff;
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.pos-card .num {
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.2em;
  opacity: 0.7; margin-bottom: auto;
}
.pos-card h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.pos-card p { font-size: 15px; color: rgba(255, 255, 255, 0.88); margin: 0; }
.pos-card .glyph {
  position: absolute; top: -18px; right: 6px; font-family: var(--display); font-weight: 800;
  font-size: 150px; line-height: 1; opacity: 0.16; z-index: -1;
}
.pos-card.c1 { background: var(--crimson); }
.pos-card.c2 { background: var(--blue); }
.pos-card.c3 { background: var(--magenta); }

/* =========================================================
   ARQUITECTURA (4 verbos)
   ========================================================= */
.arch { background: var(--smoke); }
.arch-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.arch-head h2 { font-size: clamp(32px, 5vw, 64px); max-width: 16ch; }
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.arch-card {
  background: var(--paper); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line-soft); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.arch-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(0,0,0,0.4); }
.arch-card .sym {
  font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--crimson);
  line-height: 1; margin-bottom: 22px;
}
.arch-card:nth-child(2) .sym { color: var(--blue); }
.arch-card:nth-child(3) .sym { color: var(--magenta); }
.arch-card:nth-child(4) .sym { color: var(--ink); }
.arch-card h3 { font-size: 21px; letter-spacing: 0.02em; margin-bottom: 10px; }
.arch-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

.aragon {
  margin-top: 22px; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--ink); color: #fff; padding: 40px clamp(26px, 4vw, 52px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.aragon p { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.01em; }
.aragon .hl { color: var(--crimson-bright); }
.aragon span.tag { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* =========================================================
   VERTICALES (filas inmersivas)
   ========================================================= */
.verticales { background: var(--ink); }
.vert-intro { color: #fff; margin-bottom: 50px; }
.vert-intro h2 { font-size: clamp(32px, 5.4vw, 70px); max-width: 16ch; color: #fff; }
.vert-list { display: flex; flex-direction: column; gap: 16px; }
.vert {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
/* Los vídeos son los protagonistas: sus filas ocupan más. */
.vert.has-video { min-height: clamp(420px, 56vh, 620px); }
/* Deporte: ancla el vídeo arriba-derecha para que el logo del campus entre en cuadro */
.vert-media.logo-top .hv-layer { object-position: 100% 0; }
.vert-media { position: absolute; inset: 0; z-index: -2; }
.vert-media img, .vert-media video { width: 100%; height: 100%; object-fit: cover; }
.vert::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,13,18,0.92) 0%, rgba(13,13,18,0.6) 45%, rgba(13,13,18,0.2) 100%);
}
.vert-body { padding: clamp(26px, 3.5vw, 48px); max-width: 620px; }
.vert-index { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.24em; color: var(--crimson-bright); margin-bottom: 14px; }
.vert h3 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
.vert p { font-size: 15.5px; color: rgba(255, 255, 255, 0.84); margin: 0 0 18px; max-width: 48ch; }
.vert-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vert-tags span {
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 100px;
  backdrop-filter: blur(4px); background: rgba(255,255,255,0.05);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.vert-tags span.linked { cursor: pointer; }
.vert-tags span.linked::after { content: " ↗"; opacity: 0.7; }
.vert-tags span.linked:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-1px); }

/* =========================================================
   CARTERA (grid de logos)
   ========================================================= */
.cartera { background: var(--paper); }
.cartera-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 46px; }
.cartera-head h2 { font-size: clamp(32px, 5vw, 64px); max-width: 14ch; }
.cartera-head p { color: var(--muted); max-width: 40ch; margin: 0; font-size: 15px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logo-cell {
  aspect-ratio: 16 / 10; background: var(--ink); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.logo-cell:hover { transform: translateY(-4px); box-shadow: 0 26px 52px -34px rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.22); }
/* Muro de logos: marcas reales, a todo color y nítidas. Tarjeta oscura para
   que destaquen los logos blancos; chip claro (.on-light) para las marcas
   cuyo logo es oscuro, de modo que también se lean con claridad. */
.logo-cell img {
  max-height: 70px; max-width: 84%; width: auto; object-fit: contain;
  opacity: 1; transition: transform 0.35s var(--ease);
}
.logo-cell:hover img { transform: scale(1.05); }
.logo-cell.on-light { background: #f4f4f5; border-color: var(--line); }
.logo-cell.linked { cursor: pointer; }
.logo-cell.linked:hover img { opacity: 1; }
.logo-cell.linked::after {
  content: "↗"; position: absolute; top: 12px; right: 14px;
  font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--crimson);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.logo-cell { position: relative; }
.logo-cell.linked:hover::after { opacity: 1; }

/* =========================================================
   CIFRAS (banda de datos, dentro de verticales/oscuro)
   ========================================================= */
.cifras {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 20px; padding: 40px clamp(24px, 4vw, 52px);
  border-radius: var(--radius); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cifra { text-align: center; color: #fff; }
.cifra strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.cifra:nth-child(1) strong { color: var(--crimson-bright); }
.cifra:nth-child(2) strong { color: #fff; }
.cifra:nth-child(3) strong { color: var(--blue); }
.cifra:nth-child(4) strong { color: #fff; font-size: clamp(22px, 2.6vw, 34px); }
.cifra span { display: block; margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.03em; }

/* =========================================================
   EL GRUPO — cifras + mapa de presencia
   ========================================================= */
.grupo { background: var(--paper); }
.grupo-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 74px); align-items: center; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kpi { background: var(--paper); padding: clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 30px); }
.kpi strong { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(32px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.kpi strong .u { font-size: 0.46em; color: var(--crimson); font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.kpi span { display: block; margin-top: 12px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.map-wrap { position: relative; }
.es-map { width: 100%; height: auto; display: block; overflow: visible; max-width: 620px; margin-inline: auto; }
.es-map .land path { fill: var(--smoke-2); stroke: rgba(23, 22, 26, 0.16); stroke-width: 3; }
.es-map .pin { fill: var(--crimson); transform-box: fill-box; transform-origin: center; animation: pinpulse 2.6s ease-in-out infinite; }
.es-map .pin.hq { animation-duration: 2s; }
@keyframes pinpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.28); opacity: 0.7; } }
.map-legend { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12.5px; color: var(--muted); font-family: var(--display); }
.map-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--crimson); display: inline-block; }
.map-legend .dot.hq { width: 13px; height: 13px; box-shadow: 0 0 0 3px rgba(174, 10, 60, 0.18); }
@media (prefers-reduced-motion: reduce) { .es-map .pin { animation: none; } }

/* =========================================================
   EQUIPO
   ========================================================= */
.equipo { background: var(--smoke); }
.equipo-head { margin-bottom: 50px; }
.equipo-head h2 { font-size: clamp(30px, 4.6vw, 58px); max-width: 18ch; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { text-align: left; }
.team-photo {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  margin-bottom: 18px; background: var(--smoke-2);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: grayscale(1) contrast(1.02); transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.team-card:hover .team-photo img { filter: grayscale(0); transform: scale(1.04); }
.team-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(174, 10, 60, 0.20) 100%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.team-card:hover .team-photo::after { opacity: 1; }
.team-card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 4px; }
.team-card span { font-size: 13px; color: var(--muted); }

/* =========================================================
   FORMATOS PROPIOS
   ========================================================= */
.formatos { background: var(--ink); color: #fff; }
.formatos h2 { color: #fff; }
.fmt-head { margin-bottom: 50px; }
.fmt-head h2 { font-size: clamp(32px, 5vw, 64px); max-width: 16ch; }
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fmt-card {
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius);
  padding: 34px 30px 30px; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.fmt-card:hover { transform: translateY(-6px); border-color: var(--crimson-bright); }
.fmt-card .sym { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--crimson-bright); margin-bottom: 26px; }
.fmt-card:nth-child(2) .sym { color: var(--blue); }
.fmt-card:nth-child(3) .sym { color: var(--magenta); }
.fmt-card h3 { font-size: 24px; margin-bottom: 12px; }
.fmt-card p { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); margin: 0; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto { background: var(--paper); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.contacto-aside h2 { font-size: clamp(34px, 5.4vw, 70px); margin-bottom: 20px; }
.contacto-aside h2 .hl { color: var(--crimson); }
.contacto-aside p { color: var(--muted); font-size: 16px; max-width: 42ch; margin: 0 0 30px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line .ci { font-family: var(--display); font-weight: 800; color: var(--crimson); font-size: 20px; width: 22px; text-align: center; }
.contact-line a, .contact-line span { font-size: 15.5px; font-weight: 500; }
.contact-line small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--smoke);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson); background: #fff;
  box-shadow: 0 0 0 4px rgba(174, 10, 60, 0.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .btn { justify-content: center; width: 100%; padding: 15px; font-size: 14.5px; }
.form-note {
  background: #eef7ee; border: 1px solid #c6e6c6; color: #226b22;
  padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
}
.form-legal { font-size: 12px; color: var(--muted); margin: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding-block: 64px 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 34ch; margin: 0; }
.footer-col h4 { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 6px 0; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 12.5px; }
.footer-bottom .credit { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   SUB-PÁGINA (Renovables / verticales internas)
   ========================================================= */
.subhero { min-height: 78svh; }
.subhero .wrap { padding-bottom: clamp(48px, 7vw, 90px); }
.subhero h1 { font-size: clamp(40px, 8vw, 104px); }
.back-link {
  display: block; width: fit-content; margin-bottom: 22px; color: rgba(255,255,255,0.8);
  font-family: var(--display); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-link:hover { color: #fff; transform: translateX(-3px); }

.cifras-light { background: var(--smoke); border-color: var(--line-soft); margin-top: 44px; }
.cifras-light .cifra { color: var(--ink); }
.cifras-light .cifra:nth-child(2) strong { color: var(--ink); }
.cifras-light .cifra span { color: var(--muted); }

.plant-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.plant-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; }
.plant-photo img { width: 100%; height: 100%; object-fit: cover; }
.plant-photo .badge {
  position: absolute; left: 16px; bottom: 16px; background: var(--crimson); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 8px 15px; border-radius: 100px;
}
.plant-body h2 { font-size: clamp(30px, 4.4vw, 54px); margin-bottom: 16px; }
.plant-body > p { color: #34343c; font-size: 15.5px; margin: 0 0 26px; max-width: 46ch; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec { background: var(--paper); padding: 16px 18px; }
.spec span { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.spec strong { font-family: var(--display); font-weight: 700; font-size: 15.5px; color: var(--ink); }

.plants-more { background: var(--smoke); }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.more-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Galería (páginas internas) */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gal-item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.gal-item.gal-wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }
.more-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
}
.more-card .more-sym { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--magenta); margin-bottom: 20px; }
.more-card h3 { font-size: 21px; margin-bottom: 10px; }
.more-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.more-card .soon {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson);
  background: rgba(174, 10, 60, 0.10); padding: 6px 12px; border-radius: 100px;
}

.subcta { background: var(--ink); }
.subcta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.subcta-inner h2 { color: #fff; font-size: clamp(26px, 3.6vw, 44px); margin-top: 14px; max-width: 20ch; }

.vert-clickable { cursor: pointer; }
.vert-clickable:hover .vert-link { gap: 12px; color: var(--crimson-bright); }

/* Enlace "conocer la vertical" dentro de una fila de vertical */
.vert-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--display); font-weight: 700; font-size: 13.5px; color: #fff;
  border-bottom: 2px solid var(--crimson-bright); padding-bottom: 3px; width: fit-content;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.vert-link:hover { gap: 12px; color: var(--crimson-bright); }

/* =========================================================
   PROGRAMAS (tarjetas numeradas — Anyla Academy)
   ========================================================= */
.programas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.programa-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate;
  background: var(--ink);
}
.programa-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.programa-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10,10,11,0.94) 10%, rgba(10,10,11,0.35) 65%, rgba(10,10,11,0.15) 100%);
}
.programa-card.soon::after { content: none; }
.programa-card.soon { border: 1.5px dashed var(--line); justify-content: flex-start; }
.programa-card .p-num { font-family: var(--head); font-weight: 900; font-size: 15px; letter-spacing: 0.1em; color: var(--crimson-bright); padding: 28px 28px 0; }
.programa-card .p-body { padding: 14px 28px 28px; }
.programa-card h3 { font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; margin-bottom: 10px; }
.programa-card p { font-size: 14.5px; color: rgba(255,255,255,0.82); margin: 0 0 16px; max-width: 42ch; }

/* =========================================================
   TICKER (banda de cifras en bucle, estilo marcador deportivo)
   ========================================================= */
.ticker { background: var(--crimson); color: #fff; padding-block: 14px; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 16px; padding-inline: 24px;
  font-family: var(--head); font-weight: 800; font-size: clamp(13px, 1.6vw, 16px);
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.ticker-item .sep { opacity: 0.55; }

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-card {
  background: var(--smoke); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--line-soft); display: flex; flex-direction: column;
}
.testi-card .quote-mark { font-family: var(--head); font-weight: 900; font-size: 42px; color: var(--crimson); line-height: 1; margin-bottom: 8px; }
.testi-card p { font-size: 15.5px; color: var(--ink); margin: 0 0 18px; flex: 1; }
.testi-card cite { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--muted); }

/* =========================================================
   FAQ (acordeón)
   ========================================================= */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; padding: 22px 4px; text-align: left;
  font-family: var(--head); font-weight: 800; font-size: clamp(16px, 2vw, 19px); color: var(--ink);
}
.faq-q .plus { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--crimson); transition: transform 0.3s var(--ease); flex: none; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 4px 22px; margin: 0; font-size: 15px; color: var(--muted); max-width: 62ch; }

/* =========================================================
   CTA STICKY (móvil, campus.html)
   ========================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink); color: #fff; padding: 14px clamp(16px, 4vw, 24px);
  box-shadow: 0 -12px 30px -18px rgba(0,0,0,0.5);
}
.sticky-cta strong { font-family: var(--head); font-size: 14px; text-transform: uppercase; }
.sticky-cta .btn { flex: none; padding: 12px 18px; font-size: 12px; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .pos-grid, .arch-grid, .fmt-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .plant-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 40px; transform: translateX(100%); transition: transform 0.45s var(--ease);
    box-shadow: -30px 0 80px -40px rgba(0,0,0,0.8);
  }
  .nav.open { transform: none; }
  .nav a { color: #fff !important; font-size: 22px; font-weight: 700; padding-block: 10px; }
  .nav .btn { margin-top: 18px; }
  .nav-toggle { display: block; z-index: 160; }
  .header .brand-sub { display: none; }
  .logo-grid, .field-row, .footer-top, .team-grid, .cifras, .more-grid, .more-grid-3, .specs, .gallery { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item, .gal-item.gal-wide { aspect-ratio: 16 / 10; }
  .vert { min-height: 380px; }
  .vert::after { background: linear-gradient(0deg, rgba(13,13,18,0.94) 8%, rgba(13,13,18,0.45) 70%, rgba(13,13,18,0.3) 100%); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .programas-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body:has(.sticky-cta) { padding-bottom: 64px; }
}

@media (max-height: 880px) {
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
