/* =========================================================
   Copa Chinchorro 2026 — hoja de estilos
   Adaptado del template Vizo Desing. La estructura, el sistema
   de reveal-on-scroll, la cortina de transición y el cursor
   personalizado se mantienen intactos: solo cambian marca,
   paleta, tipografía y contenido.

   PALETA — justificación:
   El logo oficial de Copa Chinchorro usa un degradado índigo
   → coral/ámbar sobre un ícono de trofeo que estiliza a una
   momia Chinchorro (el legado arqueológico de Arica, las
   momias artificiales más antiguas del mundo). Se ancla la
   paleta a esos mismos tonos de marca y se suma un fondo
   "arena" cálido en vez de blanco puro, como guiño al
   desierto costero de Arica/Atacama:
     --indigo      #4433D6  → "COPA" en el logo; color ancla,
                               evoca el cielo de atardecer sobre
                               el Pacífico. Reemplaza el negro
                               editorial de Vizo como color de
                               marca principal.
     --indigo-deep #1B1140  → sombra/profundidad del índigo,
                               usado en la cortina de transición
                               y fondos oscuros (hero, footer).
     --coral       #FF5A43  → "CHINCHORRO" y extremo cálido del
                               trofeo en el logo; acento de
                               energía/pasión (CTAs, hover).
     --amber       #FF9A3E  → extremo ámbar del degradado del
                               trofeo; guiño al barro/adobe y al
                               sol del desierto (categorías,
                               badges).
     --sand        #FAF5EC  → fondo cálido tipo papel arena,
                               en vez del blanco frío de Vizo.
     --ink         #17101F  → texto, casi negro con base violeta
                               para que combine con el índigo.
   ========================================================= */

@font-face {
  font-family: 'Neue Montreal Fallback';
  src: local('Helvetica Neue'), local('Arial');
}

:root {
  --bg: #faf5ec;
  --fg: #17101f;
  --fg-soft: rgba(23, 16, 31, 0.62);
  --fg-faint: rgba(23, 16, 31, 0.35);
  --line: rgba(23, 16, 31, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Marca Copa Chinchorro */
  --indigo: #4433d6;
  --indigo-deep: #1b1140;
  --coral: #ff5a43;
  --amber: #ff9a3e;
  --sand: #faf5ec;
  --ink: #17101f;
  --on-dark: #f6f1ff;
  --line-on-dark: rgba(246, 241, 255, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Raleway', 'Neue Montreal Fallback', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
  html, body {
    scroll-behavior: auto;
  }
}

h1, h2, h3, .hero__title, .hero__bg-word, .page-hero__title, .section__title,
.metrics__title, .cta__title, .price-card__name, .team-card__name,
.testimonial__name, .work-card__name, .blog-card__title,
.service-row__name, .award-row__name {
  font-family: 'Titillium Web', 'Neue Montreal Fallback', 'Helvetica Neue', Arial, sans-serif;
}

/* -------------------- NAV -------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: padding 0.4s var(--ease-in-out), background 0.4s var(--ease-in-out),
    border-color 0.4s var(--ease-in-out), backdrop-filter 0.4s var(--ease-in-out);
}

/* Refuerzo de contraste para el nav "sobre foto": sin esto, si la
   franja superior de la imagen del hero es clara, el logo/links en
   color claro quedan invisibles hasta hacer scroll. */
.nav--on-photo:not(.scrolled)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 6, 20, 0.55) 0%, rgba(10, 6, 20, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.nav.scrolled {
  padding: 16px 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* -------------------- NAV COMPACTO DE GALERÍA (filtros + buscador al hacer scroll) -------------------- */

.nav__galeria-compact {
  display: none;
  flex: 1;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  min-width: 0;
}

.nav__galeria-compact--in {
  animation: galeriaCompactoEntra 0.3s ease;
}

@keyframes galeriaCompactoEntra {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav.is-galeria-compact .nav__links,
.nav.is-galeria-compact .nav__cta {
  display: none;
}

.nav.is-galeria-compact .nav__galeria-compact {
  display: flex;
}

.nav__galeria-compact .work-filters {
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
  min-width: 0;
}

.nav__galeria-compact .work-filters::-webkit-scrollbar {
  display: none;
}

.nav__galeria-compact .work-filters button {
  padding: 7px 14px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__galeria-compact .galeria-search {
  max-width: 220px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav__galeria-compact .galeria-search input {
  padding: 8px 14px 8px 36px;
  font-size: 13px;
}

.nav__galeria-compact .galeria-search svg {
  left: 12px;
  width: 14px;
  height: 14px;
}

@media (max-width: 860px) {
  .nav__galeria-compact { display: none !important; }
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-14px);
  animation: navDrop 0.7s var(--ease-out) forwards;
  animation-delay: 0.15s;
}

.nav__logo-img {
  height: 58px;
  width: auto;
  display: block;
}

/* Toggle hamburguesa (solo visible en mobile/tablet, ver media query) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 220;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.nav--on-photo:not(.scrolled) .nav__toggle span {
  background: var(--on-dark);
}

.nav__toggle.is-open span {
  background: var(--fg);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 16, 31, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 850;
}

.nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links li {
  opacity: 0;
  transform: translateY(-14px);
  animation: navDrop 0.7s var(--ease-out) forwards;
}

.nav__links li:nth-child(1) { animation-delay: 0.22s; }
.nav__links li:nth-child(2) { animation-delay: 0.28s; }
.nav__links li:nth-child(3) { animation-delay: 0.34s; }

.nav__links a {
  position: relative;
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown "Torneo" en el nav */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: inherit;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav__dropdown-trigger:hover {
  color: var(--indigo);
}

.nav__dropdown-chevron {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-in-out);
}

.nav__dropdown.is-open .nav__dropdown-chevron {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 45px -14px rgba(23, 16, 31, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 150;
}

.nav__dropdown.is-open .nav__dropdown-menu,
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__dropdown-menu a:hover {
  background: var(--indigo);
  color: #fff;
}

.nav--on-photo:not(.scrolled) .nav__dropdown-trigger {
  color: var(--on-dark);
}

.nav--on-photo:not(.scrolled) .nav__dropdown-trigger:hover {
  color: var(--coral);
}

/* El panel del dropdown siempre tiene fondo claro (var(--bg)), sin
   importar el estado del nav — por eso su texto SIEMPRE debe ser
   oscuro, incluso cuando el nav está en modo "sobre foto" con
   texto claro. Si no, el texto queda claro-sobre-claro e invisible. */
.nav--on-photo:not(.scrolled) .nav__dropdown .nav__dropdown-menu a {
  color: var(--fg);
}

.nav--on-photo:not(.scrolled) .nav__dropdown .nav__dropdown-menu a:hover {
  color: #fff;
}

.nav__cta {
  opacity: 0;
  transform: translateY(-14px);
  animation: navDrop 0.7s var(--ease-out) forwards;
  animation-delay: 0.4s;
}

.nav__cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.35s var(--ease-in-out), color 0.35s var(--ease-in-out),
    transform 0.35s var(--ease-in-out);
}

.nav__cta-short {
  display: none;
}

.nav__cta a:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  transform: translateY(-2px);
}

.nav__cta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.35s var(--ease-in-out);
}

/* Nav sobre la foto oscura del hero (solo index, antes de hacer scroll) */
.nav--on-photo:not(.scrolled) .nav__links a,
.nav--on-photo:not(.scrolled) .nav__cta a {
  color: var(--on-dark);
}

.nav--on-photo:not(.scrolled) .nav__links a::after {
  background: var(--on-dark);
}

.nav--on-photo:not(.scrolled) .nav__cta a {
  border-color: var(--on-dark);
}

.nav__cta a:hover svg {
  transform: translate(2px, -2px);
}

@keyframes navDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------- HERO -------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 150px;
  color: var(--on-dark);
  isolation: isolate;
}

/* Foto real de fondo + degradado de marca, mismo tratamiento
   que usa copachinchorro.cl en su hero. */
.hero__bg-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 17, 64, 0.72) 0%, rgba(27, 17, 64, 0.55) 45%, rgba(27, 17, 64, 0.88) 100%);
}

.hero__eyebrow {
  overflow: hidden;
  margin-bottom: 22px;
}

.hero__eyebrow span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
  transform: translateY(100%);
  animation: riseIn 0.8s var(--ease-out) forwards;
  animation-delay: 0.5s;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.86;
}

.hero__title-row {
  overflow: hidden;
}

.hero__title-row span {
  display: inline-block;
  font-size: clamp(52px, 11vw, 150px);
  font-weight: 800;
  letter-spacing: -0.02em;
  transform: translateY(105%);
  animation: riseIn 0.9s var(--ease-out) forwards;
}

/* Segunda línea del hero en degradado índigo → coral,
   el mismo recorrido de color que el trofeo del logo oficial. */
.hero__title-row:nth-child(2) span {
  background: linear-gradient(100deg, var(--indigo) 0%, var(--coral) 65%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title-row:nth-child(1) span { animation-delay: 0.15s; }
.hero__title-row:nth-child(2) span { animation-delay: 0.28s; }

@keyframes riseIn {
  to {
    transform: translateY(0);
  }
}

.hero__subtitle {
  margin-top: 32px;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(246, 241, 255, 0.82);
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) forwards;
  animation-delay: 0.75s;
}

.hero .btn:not(.btn--solid) {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------- SCROLL INDICATOR -------------------- */

.hero__scroll {
  position: absolute;
  bottom: 90px;
  right: 48px;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) forwards;
  animation-delay: 1.05s;
}

.hero__scroll a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: rgba(246, 241, 255, 0.6);
}

.hero__scroll span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__scroll-track {
  position: relative;
  width: 1px;
  height: 46px;
  background: var(--line-on-dark);
  overflow: hidden;
}

.hero__scroll-track::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--on-dark);
  animation: scrollDrip 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollDrip {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

/* -------------------- BACKGROUND AMBIENT MOTION -------------------- */

.hero__bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-word span {
  font-size: clamp(220px, 34vw, 520px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16);
  white-space: nowrap;
  opacity: 0;
  animation: ghostFade 1.6s var(--ease-out) forwards, drift 14s ease-in-out infinite;
  animation-delay: 0.3s, 1.6s;
}

@keyframes ghostFade {
  to {
    opacity: 1;
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2%);
  }
}

/* =========================================================
   COUNTDOWN AL TORNEO (nuevo componente, vanilla)
   ========================================================= */

.countdown {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) forwards;
  animation-delay: 0.9s;
}

.countdown__unit {
  min-width: 78px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.countdown__num {
  display: block;
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* =========================================================
   SHARED SECTION STYLES
   ========================================================= */

.section {
  padding: 140px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.section__head {
  margin-bottom: 64px;
}

.eyebrow {
  overflow: hidden;
  margin-bottom: 14px;
}

.eyebrow span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coral);
}

.section__title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 760px;
}

.section__subtitle {
  margin-top: 18px;
  font-size: 16px;
  color: var(--fg-soft);
  max-width: 480px;
  line-height: 1.5;
}

.section__foot {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* Reveal-on-scroll base */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out);
}

.reveal-line.is-inview span {
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.stagger.is-inview > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.14s; }
.stagger > *:nth-child(3) { transition-delay: 0.23s; }
.stagger > *:nth-child(4) { transition-delay: 0.32s; }
.stagger > *:nth-child(5) { transition-delay: 0.41s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease-in-out), color 0.35s var(--ease-in-out),
    transform 0.35s var(--ease-in-out);
}

.btn:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.btn--solid:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* =========================================================
   OUR WORKS
   ========================================================= */

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--on-dark);
  border-radius: 18px;
  overflow: hidden;
  background: var(--indigo-deep);
  aspect-ratio: 4 / 5;
}

.work-card__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #5b3fe8, var(--indigo-deep) 70%);
  transition: transform 0.7s var(--ease-out);
}

.work-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27, 17, 64, 0.92) 0%, rgba(27, 17, 64, 0.15) 55%, rgba(27, 17, 64, 0.35) 100%);
  z-index: 1;
}

.work-card__media::after {
  content: attr(data-index);
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.work-card:hover .work-card__media {
  transform: scale(1.06);
}

.work-card__info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.work-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
  display: block;
}

.work-card__name {
  font-size: 21px;
  font-weight: 700;
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
}

.work-card__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s var(--ease-in-out), border-color 0.35s var(--ease-in-out), transform 0.35s var(--ease-in-out);
}

.work-card:hover .work-card__arrow {
  background: var(--coral);
  border-color: var(--coral);
  transform: rotate(45deg);
}

.work-card__arrow svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  transition: stroke 0.35s var(--ease-in-out);
}

.work-card:hover .work-card__arrow svg {
  stroke: var(--bg);
}

/* =========================================================
   SERVICES
   ========================================================= */

.services__list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease-in-out), background 0.4s var(--ease-in-out);
}

.service-row:hover {
  padding-left: 14px;
  background: #fafafa;
}

.service-row__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
}

.service-row__name {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-row__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s var(--ease-in-out), background 0.35s var(--ease-in-out),
    transform 0.35s var(--ease-in-out);
  justify-self: end;
}

.service-row:hover .service-row__arrow {
  border-color: var(--fg);
  background: var(--fg);
  transform: rotate(45deg);
}

/* Variante clicable del service-row (acordeón de categorías) */
.service-row.category-trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.category-trigger[aria-expanded="true"] .service-row__arrow {
  background: var(--indigo);
  border-color: var(--indigo);
  transform: rotate(45deg);
}

.category-trigger[aria-expanded="true"] .service-row__arrow svg {
  stroke: #fff;
}

.category-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-in-out);
}

.category-panel__inner {
  padding: 4px 0 28px 114px;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}

@media (max-width: 860px) {
  .category-panel__inner {
    padding-left: 62px;
  }
}

.service-row__arrow svg {
  width: 13px;
  height: 13px;
  stroke: var(--fg);
  transition: stroke 0.35s var(--ease-in-out);
}

.service-row:hover .service-row__arrow svg {
  stroke: var(--bg);
}

/* =========================================================
   PARTNER MARQUEE
   ========================================================= */

.partners {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners__head {
  padding: 0 48px;
  max-width: 1280px;
  margin: 0 auto 48px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

/* margin uniforme (no gap) para que el track sea perfectamente
   periódico: así translateX(-50%) cae justo en el borde del set
   duplicado y el loop no se nota. */
.marquee__track > * {
  margin-right: 72px;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg-faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee__track span:hover {
  color: var(--fg);
}

.marquee__track img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.marquee__track img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   METRICS
   ========================================================= */

.metrics {
  padding: 140px 48px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.metrics__title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  max-width: 880px;
  margin: 0 auto 72px;
  letter-spacing: -0.01em;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric {
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.metric__num {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--indigo);
}

.metric__label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.35s var(--ease-in-out), transform 0.35s var(--ease-in-out);
}

.testimonial:hover {
  border-color: var(--fg);
  transform: translateY(-4px);
}

.testimonial__quote {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial__name {
  font-size: 14px;
  font-weight: 700;
}

.testimonial__role {
  font-size: 13px;
  color: var(--fg-soft);
}

/* =========================================================
   AWARDS
   ========================================================= */

.awards__list {
  border-top: 1px solid var(--line);
}

.award-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.award-row__year {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-faint);
}

.award-row__name {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
}

.award-row__org {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.award-row__year {
  color: var(--coral);
}

/* =========================================================
   PRÓXIMOS PARTIDOS / FIXTURE (nuevo componente, vanilla)
   ========================================================= */

.fixture-list {
  border-top: 1px solid var(--line);
}

.fixture-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease-in-out), background 0.4s var(--ease-in-out);
}

.fixture-row:hover {
  padding-left: 14px;
  background: rgba(68, 51, 214, 0.04);
}

.fixture-row__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1.4;
}

.fixture-row__match {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
}

.fixture-row__match span.vs {
  font-size: 12px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: 0.1em;
}

.fixture-row__meta {
  justify-self: end;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* =========================================================
   CARRUSEL DE PRÓXIMOS PARTIDOS (nuevo componente, vanilla)
   ========================================================= */

.fixture-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.fixture-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

/* mismo fix de periodicidad que .marquee__track */
.fixture-track > * {
  margin-right: 20px;
}

.fixture-carousel:hover .fixture-track {
  animation-play-state: paused;
}

.match-card-mini {
  flex: none;
  width: 260px;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(155deg, var(--indigo-deep), #14002e 75%);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.match-card-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-card-mini__date {
  color: rgba(246, 241, 255, 0.7);
}

.match-card-mini__cat {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
}

.match-card-mini__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
}

.match-card-mini__team {
  flex: 1;
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.match-card-mini__vs {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.match-card-mini__foot {
  font-size: 11px;
  color: rgba(246, 241, 255, 0.6);
  border-top: 1px solid var(--line-on-dark);
  padding-top: 14px;
}

.fixture-row__meta .cat {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
}

/* =========================================================
   PRICING
   ========================================================= */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.price-card {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-in-out),
    box-shadow 0.4s var(--ease-in-out);
}

.price-card:hover {
  transform: translateY(-6px);
}

.price-card--featured {
  background: var(--indigo-deep);
  color: var(--on-dark);
  border-color: var(--indigo-deep);
  box-shadow: 0 30px 60px -20px rgba(27, 17, 64, 0.45);
}

.price-card__name {
  font-size: 22px;
  font-weight: 800;
}

.price-card__tag {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.65;
}

.price-card__amount {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-card__amount b {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-card__amount span {
  font-size: 14px;
  opacity: 0.65;
}

.price-card__features {
  list-style: none;
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.price-card__features svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.price-card .btn {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

.price-card--featured .btn {
  border-color: var(--on-dark);
  color: var(--on-dark);
  background: transparent;
}

.price-card--featured .btn:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* =========================================================
   BLOG
   ========================================================= */

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  text-decoration: none;
  color: var(--fg);
  display: block;
}

.blog-card__media {
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  background: linear-gradient(160deg, #efefef, #dcdcdc);
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease-out);
}

.blog-card:hover .blog-card__media {
  transform: scale(1.02);
}

.blog-card__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 10px;
}

.blog-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.cta {
  padding: 160px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 24px;
}

.cta__subtitle {
  font-size: 16px;
  color: var(--fg-soft);
  max-width: 480px;
  margin: 0 auto 40px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 80px 48px 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--indigo-deep) 100%);
  color: rgba(246, 241, 255, 0.7);
}

.footer__logo {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 56px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 241, 255, 0.55);
  max-width: 260px;
}

.footer__col-title {
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 18px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a,
.footer__col p {
  color: rgba(246, 241, 255, 0.62);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.footer__col a:hover {
  color: var(--coral);
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(246, 241, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.footer__social-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--on-dark);
}

.footer__social-icon:hover {
  background: var(--coral);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line-on-dark);
  font-size: 12px;
  text-align: center;
  color: rgba(246, 241, 255, 0.45);
}

.footer__bottom a {
  color: rgba(246, 241, 255, 0.45);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--on-dark);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  transition: border-color 0.35s var(--ease-in-out), transform 0.35s var(--ease-in-out);
}

.back-to-top:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 14px;
  height: 14px;
  stroke: var(--on-dark);
}

/* =========================================================
   PAGE CURTAIN TRANSITION
   ========================================================= */

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--indigo-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.7s var(--ease-in-out);
  pointer-events: none;
}

body.curtain-ready .page-curtain {
  transform: translateY(-100%);
}

body.curtain-out .page-curtain {
  transform: translateY(0);
}

.page-curtain__mark {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}

body:not(.curtain-ready) .page-curtain__mark,
body.curtain-out .page-curtain__mark {
  opacity: 1;
}

/* =========================================================
   CUSTOM CURSOR — activo en todo el sitio: links, botones,
   formularios y texto
   ========================================================= */

.cursor-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 998;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.25s ease, width 0.35s var(--ease-out), height 0.35s var(--ease-out);
}

.cursor-fx.is-active {
  opacity: 1;
  width: 52px;
  height: 52px;
  background: var(--bg);
}

a, button, input, textarea, select,
p, h1, h2, h3, h4, li, td, th, label {
  cursor: none;
}

/* =========================================================
   PAGE HERO (subpáginas)
   ========================================================= */

.page-hero {
  padding: 170px 48px 90px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  font-size: clamp(46px, 8vw, 108px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.page-hero__subtitle {
  margin-top: 22px;
  font-size: 16px;
  color: var(--fg-soft);
  max-width: 520px;
  line-height: 1.55;
}

/* =========================================================
   WORK FILTER TABS
   ========================================================= */

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.work-filters button {
  border: 1px solid var(--line);
  background: none;
  color: var(--fg-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.work-filters button:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.work-filters button.is-active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.work-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 90px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================================
   GRILLA DE EQUIPOS (placeholder de escudo, estilo directorio)
   ========================================================= */

.team-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 36px 20px;
  padding: 70px 48px 110px;
  max-width: 1280px;
  margin: 0 auto;
}

.team-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
}

.team-badge-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px dashed var(--fg-faint);
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 16px;
  transition: border-color 0.3s var(--ease-in-out), transform 0.3s var(--ease-in-out), background 0.3s var(--ease-in-out);
}

.team-badge-circle svg {
  width: 18px;
  height: 18px;
  stroke: var(--fg-faint);
  flex-shrink: 0;
  transition: stroke 0.3s var(--ease-in-out);
}

.team-badge-circle__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-badge-circle__hint span {
  font-size: 7.5px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.team-badge-card:hover .team-badge-circle {
  border-color: var(--indigo);
  background: rgba(68, 51, 214, 0.06);
  transform: translateY(-4px);
}

.team-badge-card:hover .team-badge-circle svg {
  stroke: var(--indigo);
}

.team-badge-name {
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.team-badge-cat {
  margin-top: 3px;
  font-size: 12px;
  color: var(--fg-soft);
}

@media (max-width: 860px) {
  .team-badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 28px 16px;
    padding: 50px 24px 80px;
  }
  .team-badge-circle {
    width: 72px;
    height: 72px;
  }
}

/* =========================================================
   BLOG FULL GRID + CATEGORY PILL
   ========================================================= */

.blog-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 90px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.blog-card__meta span:last-child {
  color: var(--fg-soft);
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 48px 120px;
  max-width: 1280px;
  margin: 0 auto;
}

.about-story__media {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: linear-gradient(150deg, #efefef, #d6d6d6);
}

.about-story__text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin-top: 18px;
}

.about-story__text p:first-child {
  margin-top: 0;
}

.values-list {
  border-top: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: left;
}

.team-card__media {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(150deg, #efefef, #dcdcdc);
  margin-bottom: 16px;
}

.team-card__name {
  font-size: 16px;
  font-weight: 700;
}

.team-card__role {
  font-size: 13px;
  color: var(--fg-soft);
  margin-top: 2px;
}

/* =========================================================
   BASES DEL TORNEO (nuevo componente, vanilla)
   ========================================================= */

.bases-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px;
  background: linear-gradient(155deg, rgba(68, 51, 214, 0.06), rgba(255, 90, 67, 0.05));
}

.bases-panel__text h3 {
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
}

.bases-panel__text p {
  margin-top: 14px;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
}

.bases-panel__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bases-panel__list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.bases-panel__list li:first-child {
  border-top: none;
  padding-top: 0;
}

.bases-panel__list b {
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  color: var(--indigo);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 110px;
}

/* =========================================================
   TABLA DE POSICIONES (nuevo componente, vanilla)
   ========================================================= */

.standings-wrap {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.standings-table th,
.standings-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.standings-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.standings-table td:nth-child(2),
.standings-table th:nth-child(2) {
  text-align: left;
}

.standings-table tbody tr:hover {
  background: rgba(68, 51, 214, 0.04);
}

.standings-table .pos {
  font-family: 'Titillium Web', 'Neue Montreal Fallback', Arial, sans-serif;
  font-weight: 800;
  color: var(--fg-faint);
}

.standings-table tr:nth-child(1) .pos,
.standings-table tr:nth-child(2) .pos {
  color: var(--indigo);
}

.standings-table .team-name {
  font-weight: 700;
}

.standings-table .pts {
  font-weight: 800;
  color: var(--coral);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  padding: 40px 48px 140px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-info__item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.contact-info__item:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-info__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}

.contact-info__value {
  font-size: 19px;
  font-weight: 600;
}

.contact-info__value a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.contact-info__value a:hover {
  border-color: var(--fg);
}

.contact-social {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.contact-social a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  position: relative;
}

.contact-social a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.contact-social a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field {
  position: relative;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-size: 17px;
  font-family: inherit;
  color: var(--fg);
  resize: none;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
}

.field:focus-within::after {
  background: var(--indigo);
}

.field::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.field:focus-within::after {
  transform: scaleX(1);
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
  margin-top: 8px;
}

/* -------------------- REDUCED MOTION -------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 860px) {
  .nav {
    padding: 20px 24px;
  }
  .nav.scrolled {
    padding: 14px 24px;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__cta {
    display: none;
  }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 26px;
    padding: 110px 32px 40px;
    box-shadow: -24px 0 48px rgba(23, 16, 31, 0.18);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-in-out);
    z-index: 200;
  }
  .nav__links.is-open {
    transform: translateX(0);
  }
  .nav__links a,
  .nav--on-photo:not(.scrolled) .nav__links a {
    color: var(--fg);
    font-size: 16px;
  }
  .nav__links a::after,
  .nav--on-photo:not(.scrolled) .nav__links a::after {
    background: var(--fg);
  }
  .nav__dropdown {
    width: 100%;
  }
  .nav__dropdown-trigger,
  .nav--on-photo:not(.scrolled) .nav__dropdown-trigger {
    color: var(--fg);
    font-size: 16px;
  }
  .nav__dropdown-menu,
  .nav__dropdown.is-open .nav__dropdown-menu,
  .nav__dropdown:hover .nav__dropdown-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 10px 0 0 4px;
    display: none;
    min-width: 0;
  }
  .nav__dropdown.is-open .nav__dropdown-menu {
    display: flex;
    flex-direction: column;
  }
  .nav__dropdown-menu a {
    color: var(--fg-soft);
    font-size: 14px;
    padding: 8px 4px;
  }
  .hero {
    padding: 80px 20px 120px;
  }
  .hero__scroll {
    bottom: 60px;
    right: 20px;
  }
  .section,
  .metrics,
  .cta {
    padding-left: 24px;
    padding-right: 24px;
  }
  .section {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .works__grid,
  .testimonials__grid,
  .pricing__grid,
  .blog__grid {
    grid-template-columns: 1fr;
  }
  .metrics__grid {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 50px 1fr 34px;
  }
  .partners__head {
    padding: 0 24px;
  }
  .footer {
    padding: 56px 24px 0;
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .page-hero {
    padding: 130px 24px 60px;
  }
  .work-grid-full,
  .blog-grid-full {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }
  .about-story {
    grid-template-columns: 1fr;
    padding: 20px 24px 80px;
    gap: 32px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 20px 24px 90px;
    gap: 56px;
  }
  .cursor-fx {
    display: none;
  }
  .fixture-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }
  .fixture-row__meta {
    justify-self: start;
    text-align: left;
  }
  .bases-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .countdown__unit {
    min-width: 64px;
    padding: 10px 8px;
  }
}

/* =========================================================
   BANNER DE COOKIES
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  max-width: 620px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 20px 50px rgba(23, 16, 31, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(246, 241, 255, 0.78);
}

.cookie-banner__text a {
  color: var(--amber);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner__actions .btn {
  border-color: rgba(246, 241, 255, 0.3);
  color: var(--on-dark);
}

.cookie-banner__actions .btn:hover {
  border-color: var(--on-dark);
}

.cookie-banner__actions .btn--solid {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--on-dark);
}

.cookie-banner__actions .btn--solid:hover {
  background: var(--amber);
  border-color: var(--amber);
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
  }
  .cookie-banner__actions {
    flex-direction: column;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* =========================================================
   CHATBOT
   ========================================================= */
.chatbot-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 880;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--indigo);
  color: var(--on-dark);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(68, 51, 214, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.chatbot-fab svg { width: 26px; height: 26px; }
.chatbot-fab:hover { transform: scale(1.06); background: var(--coral); }
.chatbot-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.6); }

.chatbot-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 881;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(23, 16, 31, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(120deg, var(--indigo), var(--coral));
  color: var(--on-dark);
}

.chatbot-header strong { display: block; font-size: 15px; }
.chatbot-header span { font-size: 12px; opacity: 0.85; }
.chatbot-close {
  border: none;
  background: transparent;
  color: var(--on-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.chatbot-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--sand);
}

.chatbot-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chatbot-msg--user {
  align-self: flex-end;
  background: var(--indigo);
  color: var(--on-dark);
  border-bottom-right-radius: 4px;
}

.chatbot-msg--bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chatbot-msg--pensando { color: var(--fg-soft); letter-spacing: 2px; }

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chatbot-input input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.chatbot-input input:focus { border-color: var(--indigo); }

.chatbot-input button {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--indigo);
  color: var(--on-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-input button svg { width: 18px; height: 18px; }
.chatbot-input button:hover { background: var(--coral); }

@media (max-width: 640px) {
  .chatbot-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 90px);
    height: calc(100dvh - 90px);
    max-height: calc(100dvh - 90px);
  }
}

/* =========================================================
   PUBLICIDAD
   ========================================================= */
.ad-slot {
  margin: 24px 0;
  text-align: center;
}

.ad-slot + .ad-slot {
  margin-top: 16px;
}

.ad-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  max-width: 300px;
  max-height: calc(100vh - 40px);
  background: var(--on-dark, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(23, 16, 31, 0.28);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.ad-flotante.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ad-flotante__cerrar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 16, 31, 0.65);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-flotante__cerrar:hover {
  background: var(--coral);
}

.ad-flotante__cuerpo img {
  width: 100%;
  display: block;
}

@media (max-width: 640px) {
  .ad-flotante {
    left: auto;
    right: 12px;
    bottom: 12px;
    max-width: min(280px, calc(100vw - 24px));
    max-height: 55vh;
  }
}

/* =========================================================
   FICHA DE EQUIPO: GALERÍA Y EXTRA
   ========================================================= */
.team-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.team-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-extra-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.team-extra-card h3 {
  font-size: 18px;
  margin: 0 0 16px;
}

.team-extra-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-extra-card__row {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-soft);
  margin-bottom: 8px;
}

.team-extra-card__row b {
  color: var(--fg);
  font-weight: 600;
}

/* =========================================================
   GALERÍA — grilla tipo mosaico + visor (lightbox)
   ========================================================= */

.galeria-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 108px 32px 0;
}

.galeria-toolbar + .work-filters {
  margin-top: 16px;
  padding: 0 32px;
}

.galeria-toolbar__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.galeria-toolbar__subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-soft);
  max-width: 460px;
  line-height: 1.5;
}

.galeria-search {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.galeria-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg-faint);
  pointer-events: none;
}

.galeria-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
}

.galeria-search input:focus {
  outline: none;
  border-color: var(--indigo);
}

.galeria-grid {
  columns: 1;
  column-gap: 12px;
  padding: 20px 32px 90px;
}

@media (min-width: 640px) {
  .galeria-grid { columns: 2; }
}

@media (min-width: 1024px) {
  .galeria-grid { columns: 3; }
}

@media (min-width: 1400px) {
  .galeria-grid { columns: 4; }
}

@media (min-width: 1900px) {
  .galeria-grid { columns: 5; }
}

.galeria-card {
  display: block;
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
}

.galeria-card img,
.galeria-card video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease-out);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.galeria-card:hover img,
.galeria-card:hover video {
  transform: scale(1.05);
}

.galeria-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.galeria-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  color: #fff;
}

.galeria-card__info h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
  line-height: 1.3;
}

.galeria-card__info p {
  font-size: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 15, 0.95);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__close,
.lightbox__counter {
  position: absolute;
  top: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.lightbox__close {
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__counter {
  left: 20px;
  padding: 8px 16px;
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.lightbox__media {
  max-height: 65vh;
  max-width: 100%;
  border-radius: 16px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__arrow--prev { left: 4px; }
.lightbox__arrow--next { right: 4px; }

.lightbox__caption {
  text-align: center;
  color: #fff;
  margin-top: 16px;
}

.lightbox__caption h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.lightbox__caption p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.lightbox__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 4px 4px;
  max-width: 100%;
}

.lightbox__thumb {
  width: 44px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.4;
  border: 2px solid transparent;
  cursor: pointer;
  background: #000;
  padding: 0;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lightbox__thumb img,
.lightbox__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox__thumb.is-active,
.lightbox__thumb:hover {
  opacity: 1;
  border-color: #fff;
}

@media (max-width: 640px) {
  .galeria-grid { padding: 60px 20px; }
  .lightbox__arrow--prev { left: -4px; }
  .lightbox__arrow--next { right: -4px; }

  .galeria-toolbar + .work-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .galeria-toolbar + .work-filters::-webkit-scrollbar { display: none; }
  .galeria-toolbar + .work-filters button {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 860px) {
  .team-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-extra-grid {
    grid-template-columns: 1fr;
  }
}