/* =============================================================================
   GRUPO VC SPORTS — Sistema de diseño compartido
   Un solo archivo para todas las páginas del sitio.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. FUENTES LOCALES
   ----------------------------------------------------------------------------- */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-regular-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* -----------------------------------------------------------------------------
   2. TOKENS DE MARCA — variables CSS globales
   ----------------------------------------------------------------------------- */

:root {
  /* Paleta */
  --color-accent:   #F6B304;
  --color-white:    #FFFFFF;
  --color-black:    #000000;
  --color-gray:     #2B2B2B;
  --color-gray-mid: #6B6B6B;
  --color-gray-lt:  #F0F0F0;
  --color-border:   #E0E0E0;

  /* Tipografía */
  --font-display: 'Anton', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3rem;      /* 48px */
  --text-5xl:  3.75rem;   /* 60px */
  --text-6xl:  4.5rem;    /* 72px */

  /* Espaciado — escala 8 px */
  --sp-1:   8px;
  --sp-2:   16px;
  --sp-3:   24px;
  --sp-4:   32px;
  --sp-5:   40px;
  --sp-6:   48px;
  --sp-8:   64px;
  --sp-10:  80px;
  --sp-12:  96px;
  --sp-16: 128px;
  --sp-20: 160px;
  --sp-24: 192px;

  /* Layout */
  --container-max:  1280px;
  --container-pad:  var(--sp-4);
  --navbar-h:       72px;

  /* Transiciones */
  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 220ms;
}


/* -----------------------------------------------------------------------------
   3. RESET Y BASE
   ----------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}


/* -----------------------------------------------------------------------------
   4. TIPOGRAFÍA
   ----------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-black);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: clamp(var(--text-xl),  2.5vw, var(--text-3xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: 1.75;
  max-width: 68ch;
}

.lead {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.7;
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
}


/* -----------------------------------------------------------------------------
   5. CONTENEDOR Y RETÍCULA
   ----------------------------------------------------------------------------- */

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

.grid {
  display: grid;
  gap: var(--sp-4);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }


/* -----------------------------------------------------------------------------
   6. SECCIONES
   ----------------------------------------------------------------------------- */

.section {
  padding-block: var(--sp-16);
}

.section--sm {
  padding-block: var(--sp-10);
}

.section--lg {
  padding-block: var(--sp-24);
}

.section--dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-gray-lt);
}

.section-header {
  margin-bottom: var(--sp-8);
}

.section-header .eyebrow {
  margin-bottom: var(--sp-2);
}

.section-header .section-title {
  margin-bottom: var(--sp-3);
}

.section-header p {
  color: var(--color-gray-mid);
}


/* -----------------------------------------------------------------------------
   7. LÍNEA DIVISORA DE ACENTO
   ----------------------------------------------------------------------------- */

.accent-rule {
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  margin-block: var(--sp-3);
}

.accent-rule--lg {
  width: 64px;
}


/* -----------------------------------------------------------------------------
   8. BOTONES
   ----------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 14px var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-black);
  border: 2px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-black);
  color: var(--color-accent);
  border-color: var(--color-black);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

.btn--outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn--text {
  padding: 0;
  color: var(--color-black);
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.btn--text:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}


/* -----------------------------------------------------------------------------
   9. NAVBAR
   ----------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--color-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  gap: var(--sp-4);
}

/* Logo */
.navbar__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.navbar__logo img {
  height: 40px;
  width: auto;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.navbar__logo-text span {
  color: var(--color-accent);
}

/* Navegación principal */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.navbar__link {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  padding-block: 4px;
  transition: color var(--duration) var(--ease);
  white-space: nowrap;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--duration) var(--ease);
}

.navbar__link:hover,
.navbar__link.is-active {
  color: var(--color-white);
}

.navbar__link:hover::after,
.navbar__link.is-active::after {
  width: 100%;
}

/* Selector de idioma */
.navbar__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.navbar__lang-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 6px;
  transition: color var(--duration) var(--ease);
  line-height: 1;
}

.navbar__lang-btn:hover,
.navbar__lang-btn.is-active {
  color: var(--color-accent);
}

.navbar__lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--text-xs);
  user-select: none;
}

/* Botón hamburguesa (móvil) */
.navbar__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
}

.navbar__menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-white);
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
  transform-origin: center;
}

.navbar__menu-btn.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.navbar__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Panel móvil */
.navbar__mobile {
  display: none;
  position: absolute;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background-color: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-4) var(--container-pad) var(--sp-5);
}

.navbar__mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.navbar__mobile .navbar__link {
  font-size: var(--text-sm);
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__mobile .navbar__link::after {
  display: none;
}

.navbar__mobile .navbar__lang {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* -----------------------------------------------------------------------------
   10. FOOTER
   ----------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--color-black);
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__body {
  padding-block: var(--sp-12) var(--sp-8);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
}

/* Columna marca */
.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.footer__logo img {
  height: 36px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.footer__logo-text span {
  color: var(--color-accent);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: 30ch;
  margin-bottom: var(--sp-5);
}

.footer__social {
  display: flex;
  gap: var(--sp-2);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.footer__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Columnas de enlaces */
.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--sp-3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration) var(--ease);
  line-height: 1.5;
}

.footer__link:hover {
  color: var(--color-white);
}

/* Barra inferior */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  gap: var(--sp-4);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--duration) var(--ease);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}


/* -----------------------------------------------------------------------------
   11. IMAGEN HERO / PORTADA
   ----------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-black);
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(0, 0, 0, 0.10) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--sp-16);
  color: var(--color-white);
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--sp-3);
}

.hero__content .lead {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}


/* -----------------------------------------------------------------------------
   12. TARJETAS EDITORIALES
   ----------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
}

.card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__body {
  padding: var(--sp-4) 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-1);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-black);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
  transition: color var(--duration) var(--ease);
}

.card:hover .card__title {
  color: var(--color-gray-mid);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--sp-3);
}

.card__meta {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  letter-spacing: 0.06em;
}

/* Tarjeta horizontal (noticias) */
.card--h {
  flex-direction: row;
  gap: var(--sp-5);
}

.card--h .card__image {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: auto;
}

.card--h .card__body {
  padding: 0;
}


/* -----------------------------------------------------------------------------
   13. TABLAS Y LISTAS INSTITUCIONALES
   ----------------------------------------------------------------------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}

.data-table td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}


/* -----------------------------------------------------------------------------
   14. UTILIDADES
   ----------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-right  { text-align: right; }

.text-white  { color: var(--color-white); }
.text-black  { color: var(--color-black); }
.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-gray-mid); }

.bg-black   { background-color: var(--color-black); }
.bg-white   { background-color: var(--color-white); }
.bg-gray-lt { background-color: var(--color-gray-lt); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mt-auto { margin-top: auto; }

/* Separador fino */
hr.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--sp-8);
}

hr.divider--dark {
  border-top-color: rgba(255, 255, 255, 0.1);
}


/* -----------------------------------------------------------------------------
   15. RESPONSIVE
   ----------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --container-pad: var(--sp-5);
  }

  .footer__body {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --container-pad: var(--sp-3);
    --navbar-h: 64px;
  }

  /* Ocultar nav desktop; mostrar hamburguesa */
  .navbar__nav {
    display: none;
  }

  .navbar__lang {
    display: none;
  }

  .navbar__menu-btn {
    display: flex;
  }

  /* Secciones */
  .section     { padding-block: var(--sp-10); }
  .section--lg { padding-block: var(--sp-12); }

  /* Hero */
  .hero { min-height: 85vh; }

  /* Footer */
  .footer__body {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  /* Grillas */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Tarjeta horizontal → vertical en móvil */
  .card--h {
    flex-direction: column;
  }

  .card--h .card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl);  }
}
