/* ──────────────────────────────────────────────────────────────────────────
   Colaboraciones — estilos de la página /colaboraciones/ (marcas y alianzas).
   Port limpio de astra-child/landing-colaboraciones.css: se eliminaron los
   overrides del tema base y el header propio del documento original — el tema
   rcio ya provee header/footer globales. Carga condicional vía
   is_page('colaboraciones') (inc/enqueue.php).
   ────────────────────────────────────────────────────────────────────────── */

/* ── TOKENS (específicos de la página) ──────────────────────────────────────── */
:root {
  --rcio-bg:       #111111;
  --rcio-surface:  #1A1A1A;
  --rcio-card-bg:  #0A0A0A;
  --rcio-accent:   #FFFFFF;
  --rcio-muted:    #999999;
  --rcio-activa:   oklch(72% 0.14 52);  /* amber — status vivo, no decorativo */
  --rcio-font:     'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --rcio-ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes badgePulse {
  0%, 100% { opacity: 1;    }
  50%       { opacity: 0.55; }
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
body.lco-body .lco-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 72px;
  background-color: var(--rcio-bg);
  position: relative;
  overflow: hidden;
}

body.lco-body .lco-hero::before {
  content: 'RCIO.';
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%) rotate(90deg);
  font-size: 10rem;
  font-weight: 900;
  font-family: var(--rcio-font);
  color: rgba(255,255,255,0.03);
  letter-spacing: 0.2em;
  pointer-events: none;
  user-select: none;
}

body.lco-body .lco-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 40%, transparent);
}

body.lco-body .lco-hero__h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--rcio-accent);
  margin-bottom: 32px;
  animation: revealUp 0.9s var(--rcio-ease) 0.1s both;
}

body.lco-body .lco-hero__tagline {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--rcio-muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: revealUp 0.9s var(--rcio-ease) 0.25s both;
}

/* ── CARDS — BASE ────────────────────────────────────────────────────────── */
body.lco-body .lco-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--rcio-card-bg);
  text-decoration: none;
  color: var(--rcio-accent);
  animation: revealUp 0.7s var(--rcio-ease) calc(var(--card-index, 0) * 100ms) both;
}

body.lco-body .lco-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--rcio-ease),
              opacity  0.5s ease;
  opacity: 0.78;
}

body.lco-body .lco-card:not(.lco-card--pasada):hover .lco-card__img {
  transform: scale(1.06);
  opacity: 0.50;
}

body.lco-body .lco-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.16) 52%,
    rgba(0,0,0,0.02) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
  gap: 8px;
}

body.lco-body .lco-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid;
  padding: 5px 10px;
  align-self: flex-start;
  margin-bottom: 6px;
  font-family: var(--rcio-font);
  line-height: 1;
}

body.lco-body .lco-card__badge--activa {
  color: var(--rcio-activa);
  border-color: oklch(72% 0.14 52 / 0.5);
  animation: badgePulse 4s ease-in-out infinite;
}

body.lco-body .lco-card__badge--pasada {
  color: var(--rcio-muted);
  border-color: rgba(153,153,153,0.38);
}

body.lco-body .lco-card__title {
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--rcio-accent);
  margin: 0;
  transition: transform 0.5s var(--rcio-ease);
}

body.lco-body .lco-card:not(.lco-card--pasada):hover .lco-card__title {
  transform: translateY(-5px);
}

body.lco-body .lco-card__cta {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.25s ease, letter-spacing 0.35s var(--rcio-ease);
  font-family: var(--rcio-font);
}

body.lco-body .lco-card:hover .lco-card__cta {
  color: var(--rcio-accent);
  letter-spacing: 0.22em;
}

/* Pasada */
body.lco-body .lco-card--pasada { cursor: default; pointer-events: none; }
body.lco-body .lco-card--pasada .lco-card__img { opacity: 0.40; filter: grayscale(50%); }

/* Activa sin tienda: card informativa (no enlaza). Sigue a plena visibilidad,
   pero sin afordancia de clic — se neutraliza el zoom/lift de hover. */
body.lco-body .lco-card--static { cursor: default; }
body.lco-body .lco-card--static:hover .lco-card__img { transform: none; opacity: 0.78; }
body.lco-body .lco-card--static:hover .lco-card__title { transform: none; }

/* ── CARD FULL ───────────────────────────────────────────────────────────── */
body.lco-body .lco-card--full { aspect-ratio: 16 / 9; width: 100%; }

/* ── CARD HALF ───────────────────────────────────────────────────────────── */
/* iOS Safari <15.4: aspect-ratio in flex requires explicit width; flex-basis:0 causes height collapse */
body.lco-body .lco-card--half { aspect-ratio: 3 / 4; flex: 1 1 auto; min-width: 0; width: calc(50% - 1px); min-height: 180px; }

/* ── FILAS ───────────────────────────────────────────────────────────────── */
body.lco-body .lco-row           { display: flex; gap: 2px; }
body.lco-body .lco-row--centered { max-width: 900px; margin: 0 auto; width: 100%; }

/* ── SECCIONES ───────────────────────────────────────────────────────────── */
body.lco-body .lco-activas,
body.lco-body .lco-pasadas {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--rcio-bg);
}

/* ── DIVISOR HISTORIA ────────────────────────────────────────────────────── */
body.lco-body .lco-divisor {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 72px 40px 48px;
  background-color: var(--rcio-bg);
}

body.lco-body .lco-divisor::before,
body.lco-body .lco-divisor::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

body.lco-body .lco-divisor__label {
  font-size: 1.5625rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(153,153,153,0.65);
  white-space: nowrap;
  font-family: var(--rcio-font);
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */
body.lco-body .lco-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
  padding: 120px 40px;
  text-align: left;                        /* off centered-stack — más editorial */
  border-top: 1px solid rgba(255,255,255,0.06);
  background-color: var(--rcio-bg);        /* placeholder oscuro si falta la imagen */
}

/* Fondo full-bleed: imagen de alianza a sangre; si no existe el archivo, queda el
 * background-color oscuro y la estructura no se rompe. */
body.lco-body .lco-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
body.lco-body .lco-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Overlay: oscurece la IZQUIERDA (donde va el texto) para legibilidad; la derecha
 * revela a los atletas. Segundo gradiente sutil da profundidad abajo. */
body.lco-body .lco-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17,17,17,0.94) 0%, rgba(17,17,17,0.74) 34%, rgba(17,17,17,0.3) 70%, rgba(17,17,17,0.06) 100%),
    linear-gradient(0deg, rgba(17,17,17,0.5) 0%, transparent 45%);
}
/* Texto por encima, en columna legible a la izquierda. */
body.lco-body .lco-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
/* Móvil: el texto ocupa casi todo el ancho, se refuerza el scrim (vertical). */
@media (max-width: 768px) {
  body.lco-body .lco-cta__overlay {
    background: linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.85) 100%);
  }
}

body.lco-body .lco-cta__eyebrow {
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--rcio-muted);
  margin-bottom: 20px;
  font-family: var(--rcio-font);
}

body.lco-body .lco-cta__heading {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.88;
  color: var(--rcio-accent);
  margin-bottom: 48px;
}

body.lco-body .lco-cta__btn {
  display: inline-block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 64px;
  min-height: 44px;
  background: var(--rcio-accent);
  color: var(--rcio-bg);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--rcio-font);
  border: 1px solid var(--rcio-accent);
  transition: color 0.35s ease;
}

/* directional fill — slides in from left, text stays on top */
body.lco-body .lco-cta__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rcio-bg);
  transform: translateX(-101%);
  transition: transform 0.45s var(--rcio-ease);
}

body.lco-body .lco-cta__btn:hover::before { transform: translateX(0); }
body.lco-body .lco-cta__btn:hover         { color: var(--rcio-accent); }
body.lco-body .lco-cta__btn:active        { transform: scale(0.98); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body.lco-body .lco-hero     { padding: 0 24px 48px; min-height: 80dvh; }
  body.lco-body .lco-divisor  { padding: 48px 24px 32px; }
  body.lco-body .lco-cta      { padding: 80px 24px; }
  body.lco-body .lco-card__overlay { padding: 24px; }
  body.lco-body .lco-card--full    { aspect-ratio: 3 / 4; }
}

@media (max-width: 480px) {
  body.lco-body .lco-hero          { padding: 0 16px 36px; }
  body.lco-body .lco-divisor       { padding: 32px 16px 24px; }
  body.lco-body .lco-cta           { padding: 60px 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.lco-body .lco-hero__h1,
  body.lco-body .lco-hero__tagline,
  body.lco-body .lco-card,
  body.lco-body .lco-card__badge--activa {
    animation: none;
  }
  body.lco-body .lco-card__img,
  body.lco-body .lco-card__title,
  body.lco-body .lco-card__cta,
  body.lco-body .lco-cta__btn,
  body.lco-body .lco-cta__btn::before {
    transition: none;
  }
}
