/* ============================================
   Festival Pewma Antü — Hoja de estilos
   ============================================ */

:root {
  --bg-dark: #0a0e1c;
  --bg-dark-2: #10152a;
  --bg-dark-3: #151b33;
  --bg-light: #f4f5f8;

  --gold: #d9b354;
  --gold-light: #f0d685;
  --purple: #7c5aa6;
  --green: #3f8a5c;
  --red: #a13636;
  --red-dark: #8a3535;

  --text-light: #f4f3f8;
  --text-muted: #b9b7c9;
  --text-dark: #1c1c2e;
  --text-dark-muted: #5a5a6e;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-main: "Poppins", "Segoe UI", sans-serif;

  --container-width: 1240px;
  --radius: 14px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;                        /* más aire entre líneas: se lee mejor */
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;     /* texto más nítido en pantallas Retina */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Párrafos: ancho de lectura cómodo y sin cortes feos */
p { text-wrap: pretty; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}

.btn--block { width: 100%; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #241a05;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(217, 179, 84, 0.35);
}

.btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn--donate {
  background: var(--red);
  color: #fff;
  flex-direction: column;
  gap: 4px;
}

.btn--donate:hover,
.btn--donate:focus-visible {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--bg-dark-3);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--bg-dark);
}

/* ---------- Utilidades ---------- */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
  letter-spacing: -0.015em;      /* títulos serif más compactos y elegantes */
  text-wrap: balance;            /* evita títulos con una palabra huérfana */
  margin-bottom: 1.2rem;
}

/* Filete dorado bajo los títulos centrados */
.section-title--center {
  position: relative;
  text-align: center;
  padding-bottom: 0.9rem;
  margin-bottom: 1.4rem;
}

.section-title--center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 28, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(217, 179, 84, 0.12);
  padding: 12px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.is-scrolled {
  background: rgba(10, 14, 28, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  padding: 8px 0;
}

.navbar__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar__logo-icon,
.footer__logo-icon {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 1.5px rgba(217, 179, 84, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Logo más grande para que se aprecie mejor */
.navbar__logo-icon { width: 66px; height: 66px; }
.footer__logo-icon { width: 76px; height: 76px; }

.navbar__brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.navbar__brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.navbar__brand-sub {
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Menú lateral desplegable (hamburguesa) en todos los tamaños */
.navbar__nav {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(84vw, 340px);
  background: var(--bg-dark-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 100px 28px 32px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  z-index: 1001;
}

.navbar__nav.is-open { transform: translateX(0); visibility: visible; }

.navbar__item--dropdown { position: relative; width: 100%; }

.navbar__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.navbar__link--active,
.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--gold);
}

.navbar__link--active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.navbar__dropdown-toggle svg { transition: transform var(--transition); }

.navbar__item--dropdown:hover .navbar__dropdown-toggle svg,
.navbar__item--dropdown.is-open .navbar__dropdown-toggle svg {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  display: none;
  padding: 4px 0 6px 14px;
  width: 100%;
}

.navbar__item--dropdown.is-open .navbar__dropdown-menu { display: block; }

.navbar__dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.navbar__dropdown-menu a:hover,
.navbar__dropdown-menu a:focus-visible {
  background: rgba(217, 179, 84, 0.1);
  color: var(--gold);
}

.navbar__donate { padding: 11px 24px; font-size: 0.85rem; flex-shrink: 0; }

/* Selector de idioma ES / EN */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(217, 179, 84, 0.35);
  border-radius: 999px;
  margin-left: auto;
}

.lang-switch__btn {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn.is-active {
  background: var(--gold);
  color: #241a05;
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
  z-index: 1002; /* por encima del panel para poder cerrarlo */
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO / CARRUSEL
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hero__carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

.hero__slide--active { opacity: 1; visibility: visible; }

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* favorece los rostros de los danzantes */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,14,28,0.94) 15%, rgba(10,14,28,0.6) 45%, rgba(10,14,28,0.25) 75%),
    linear-gradient(0deg, rgba(10,14,28,0.5), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5% 0 6%;
}

.hero__eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.hero__ornament-line {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__ornament { color: var(--gold); opacity: 0.8; }

.hero__text {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Tarjeta flotante: próxima edición */
.edition-card {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 2;
  width: 300px;
  background: rgba(16, 21, 42, 0.82);
  border: 1px solid rgba(217, 179, 84, 0.25);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.edition-card.is-visible { transform: translateY(-50%); }

.edition-card__eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.edition-card__dates {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.edition-card__year {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
}

.edition-card__regions {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 6px;
}

.edition-card__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 18px 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.countdown__block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px 2px;
}

.countdown__number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.countdown__label {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.edition-card__donate-sub {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.hero__arrow:hover,
.hero__arrow:focus-visible { background: rgba(217, 179, 84, 0.35); }

.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

.hero__indicators {
  position: absolute;
  bottom: 24px;
  left: 6%;
  right: 6%;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero__dot:hover { background: rgba(255, 255, 255, 0.6); }

.hero__dot--active { background: var(--gold); transform: scale(1.3); }

/* ============================================
   FRANJA DE ACCESOS RÁPIDOS
   ============================================ */
.quick-links {
  background: var(--bg-dark-2);
  border-bottom: 1px solid rgba(217, 179, 84, 0.1);
  padding: 40px 0;
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  transition: background var(--transition), transform var(--transition);
}

.quick-link:hover,
.quick-link:focus-visible {
  background: rgba(217, 179, 84, 0.06);
  transform: translateY(-3px);
}

.quick-link__icon { color: var(--gold); margin-bottom: 4px; }

.quick-link__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
}

.quick-link__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   SOBRE EL FESTIVAL
   ============================================ */
.about { padding: 100px 0; }

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about__text p { color: var(--text-muted); margin-bottom: 1.2rem; }

.about__image img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* respeta el formato horizontal de la foto grupal */
  object-fit: cover;
  object-position: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ============================================
   NOTICIAS / PROGRAMACIÓN / INSTAGRAM
   ============================================ */
.hub {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 90px 0;
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.hub__col-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.hub__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hub__handle {
  display: block;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--purple);
}

.hub__see-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  white-space: nowrap;
  transition: color var(--transition);
}

.hub__see-all:hover,
.hub__see-all:focus-visible { color: var(--red); }

/* Noticias */
.news-card {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.news-card img {
  width: 100px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.news-card__date {
  display: block;
  font-size: 0.72rem;
  color: var(--purple);
  margin-bottom: 4px;
}

.news-card__excerpt {
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  line-height: 1.4;
}

.news-card__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b08a2e;
}

.news-card__link:hover { color: var(--gold); }

/* Programación */
.schedule-list {
  margin-bottom: 20px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.schedule-list::-webkit-scrollbar { width: 6px; }
.schedule-list::-webkit-scrollbar-thumb { background: rgba(255, 216, 77, 0.3); border-radius: 3px; }

.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.schedule-item:first-child { padding-top: 0; }

.schedule-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dark-muted);
  letter-spacing: 0.5px;
}

.schedule-item__date span {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.1;
}

.schedule-item__info { flex: 1; min-width: 0; }

.schedule-item__info h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.schedule-item__info p {
  font-size: 0.76rem;
  color: var(--text-dark-muted);
}

.schedule-item__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule-item__tag--purple { background: var(--purple); }
.schedule-item__tag--green { background: var(--green); }
.schedule-item__tag--red { background: var(--red); }
.schedule-item__tag--gold { background: #c99a2e; }
.schedule-item__tag--blue { background: #3a7bd5; }

/* Instagram */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.insta-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.insta-grid img:hover { transform: scale(1.05); opacity: 0.9; }

/* ============================================
   AUSPICIADORES
   ============================================ */
.sponsors {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 179, 84, 0.14), transparent 60%),
    var(--bg-light);
  color: var(--text-dark);
  padding: 80px 0;
  border-top: 3px solid var(--gold);
}

.sponsors__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.sponsors .section-title { color: #2a2320; }

.sponsors__eyebrow {
  display: inline-block;
  color: #b08a2e;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.sponsors__intro {
  color: var(--text-dark-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.sponsors__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

/* Tarjeta blanca para cada logo de patrocinador */
.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  width: 260px;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sponsor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.3;
}

.sponsor-badge small {
  font-weight: 500;
  color: var(--text-dark-muted);
  font-size: 0.68rem;
}

.sponsor-badge--muted {
  background: transparent;
  border-style: dashed;
  color: var(--text-dark-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(217, 179, 84, 0.12);
  padding: 50px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.footer__brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-light);
}

.footer__brand-sub {
  font-size: 0.6rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__legal {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__legal p { margin-bottom: 6px; }

.footer__legal a { transition: color var(--transition); }
.footer__legal a:hover,
.footer__legal a:focus-visible { color: var(--gold); }

.footer__contact-line { color: var(--text-muted); }

.footer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer__social { display: flex; align-items: center; gap: 12px; }

.footer__social-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__social-icons { display: flex; gap: 10px; }

.footer__social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background var(--transition), border-color var(--transition);
}

.footer__social-icon:hover,
.footer__social-icon:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #241a05;
}

.footer__counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__counter-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__counter-digits {
  display: flex;
  gap: 3px;
}

.footer__counter-digits span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 26px;
  background: #000;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 3px;
  border: 1px solid rgba(217, 179, 84, 0.25);
}

/* ---------- Botón volver arriba ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #241a05;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible { transform: translateY(-3px); }

/* Botón flotante de música (himno) */
.music-fab {
  position: fixed;
  bottom: 92px;
  left: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light, #ffe486), var(--gold));
  color: #241a05;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.music-fab:hover,
.music-fab:focus-visible { transform: scale(1.1); outline: none; }

/* Barras animadas cuando suena; ícono de nota cuando está pausado */
.music-fab__bars { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.music-fab__bars i {
  width: 3px;
  background: #241a05;
  border-radius: 2px;
  animation: musicBar 0.9s ease-in-out infinite;
}
.music-fab__bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.music-fab__bars i:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.music-fab__bars i:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.music-fab__bars i:nth-child(4) { height: 80%; animation-delay: 0.45s; }

@keyframes musicBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.music-fab.is-playing .music-fab__icon-play { display: none; }
.music-fab.is-playing .music-fab__bars { display: flex; }

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waPulse 2.4s ease-out infinite;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  outline: none;
}

@keyframes waPulse {
  0% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   LA VISIÓN DE JEREMY ARMIJO
   ============================================ */
.vision {
  padding: 90px 0;
  background: var(--bg-dark-2);
}

.vision__inner {
  max-width: 830px;
  margin: 0 auto;
  text-align: center;
}

.vision__eyebrow {
  display: inline-block;
  color: var(--purple-hover, #b473c0);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* Todos los párrafos con el mismo formato, sin negrita */
.vision__inner p {
  color: var(--text-light);
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
}

/* ============================================
   NUESTRO EQUIPO
   ============================================ */
.team {
  padding: 90px 0;
  background: var(--bg-dark);
}

.team__intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
}

/* Lista de integrantes sin fotos, con monograma */
.team__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.team-member:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 179, 84, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.team-member__mono {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #241a05;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.team-member__name {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.2;
}

.team-member__name strong { color: var(--text-light); font-weight: 600; }

/* ============================================
   EL HIMNO
   ============================================ */
.anthem {
  padding: 90px 0;
  background: var(--bg-dark);
}

.anthem__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.anthem__eyebrow {
  display: inline-block;
  color: var(--purple-hover, #b473c0);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.anthem__author {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.anthem__player {
  max-width: 520px;
  margin: 0 auto 2.4rem;
}

.anthem__player audio {
  width: 100%;
  border-radius: 999px;
}

.anthem__lyrics {
  position: relative;
  color: var(--text-light);
  font-size: 1.12rem;
  line-height: 1.9;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 1.6rem;
}

.anthem__lyrics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.anthem__spotify {
  max-width: 560px;
  margin: 3rem auto 0;
}

.anthem__spotify-title {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.anthem__spotify-player {
  border-radius: 12px;
  border: 0;
  display: block;
}

/* ============================================
   BANDA / FRASE DESTACADA
   ============================================ */
.banner {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 28, 0.92) 15%, rgba(10, 14, 28, 0.6) 65%, rgba(10, 14, 28, 0.4) 100%);
}

.banner__content {
  position: relative;
  max-width: 780px;
}

.banner__title {
  color: var(--gold);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.3rem;
}

.banner__text {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   GALERÍA
   ============================================ */
.gallery {
  padding: 90px 0;
  background: var(--bg-dark);
}

.gallery__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.6rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.08);
}

/* Icono de "ampliar" al pasar el cursor */
.gallery__item::after {
  content: "⤢";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 14, 28, 0.7);
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.gallery__item--wide { grid-column: span 2; }

/* ============================================
   RESEÑAS / EXPERIENCIAS
   ============================================ */
.reviews {
  padding: 90px 0;
  background: var(--bg-dark-2);
}

.reviews__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.6rem;
}

.review-form {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
}

.review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.review-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.review-form__field > span {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.review-form__field small { color: var(--text-muted); font-weight: 400; }

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  background: rgba(10, 14, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.review-form textarea { resize: vertical; }

.review-stars {
  display: flex;
  gap: 6px;
}

.review-stars__star {
  font-size: 1.9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.15s ease, transform 0.15s ease;
}

.review-stars__star:hover { transform: scale(1.15); }

.review-stars__star.is-active { color: var(--gold); }

.review-form__error {
  color: #ff8a8a;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.review-form__submit {
  width: 100%;
  margin-top: 6px;
  border: none;
  cursor: pointer;
}

.review-form__note {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 14px;
}

.review-form__note a { color: var(--purple-hover, #b473c0); }

/* ============================================
   MAPA DE PAÍSES PARTICIPANTES
   ============================================ */
.worldmap {
  padding: 90px 0;
  background: var(--bg-dark-2);
}

.worldmap__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.worldmap__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.4rem;
}

.map-legend__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.map-legend__chip:hover { transform: translateY(-2px); }

.map-legend__chip.is-active {
  border-color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 18%, transparent);
}

.map-legend__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--chip-color);
}

.worldmap__stage {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.worldmap__map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 1100;
  border-radius: 18px;
  background:
    radial-gradient(circle at 57% 75%, rgba(255, 216, 77, 0.10), transparent 40%),
    radial-gradient(circle at 50% 40%, rgba(155, 91, 165, 0.10), transparent 55%),
    #0a0e1c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

/* Textura de puntos tipo mapa */
.worldmap__map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* Contornos geográficos reales */
.worldmap__geo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.worldmap__country {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill 0.3s ease;
}

/* Países que han participado: pintados con el color de su edición */
.worldmap__country--active {
  fill: color-mix(in srgb, var(--pais-color) 32%, transparent);
  stroke: var(--pais-color);
  stroke-width: 1.2;
}

/* Chile, país anfitrión */
.worldmap__country--host {
  fill: color-mix(in srgb, var(--gold) 38%, transparent);
  stroke: var(--gold);
  stroke-width: 1.4;
}

.worldmap__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Líneas con flujo animado hacia la sede */
.worldmap__line { animation: lineaFlujo 24s linear infinite; }

@keyframes lineaFlujo {
  to { stroke-dashoffset: -60; }
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--pin-color, var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
  z-index: 2;
}

.map-pin__flag {
  font-size: 16px;
  line-height: 1;
}

.map-pin:hover,
.map-pin.is-hover,
.map-pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.28);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--pin-color, var(--gold)) 30%, transparent), 0 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 5;
  outline: none;
}

.map-pin.is-dimmed {
  opacity: 0.2;
  filter: grayscale(0.6);
}

/* Pin anfitrión (Chile) */
.map-pin--host {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-color: #fff;
  z-index: 3;
}

.map-pin--host .map-pin__star {
  color: var(--bg-dark);
  font-size: 20px;
  line-height: 1;
}

.map-pin--host::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.6;
  animation: hostPulse 2.2s ease-out infinite;
}

@keyframes hostPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 16px));
  min-width: 190px;
  max-width: 240px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 216, 77, 0.35);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 20;
}

.map-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.map-tooltip::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-dark);
  border-right: 1px solid rgba(255, 216, 77, 0.35);
  border-bottom: 1px solid rgba(255, 216, 77, 0.35);
}

.map-tooltip__flag { font-size: 26px; line-height: 1.1; }

.map-tooltip__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.map-tooltip__country {
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 700;
}

.map-tooltip__badge {
  align-self: flex-start;
  color: #0a0e1c;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
}

.map-tooltip__badge--host {
  background: var(--gold);
}

.map-tooltip__group {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-tooltip__link {
  color: var(--purple-hover, #b473c0);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 2px;
}

.map-tooltip__link:hover { color: var(--gold); }

/* ============================================
   PÁGINAS LEGALES
   ============================================ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(10, 14, 28, 0.95);
  border-bottom: 1px solid rgba(217, 179, 84, 0.15);
}

.legal-header__brand { display: flex; align-items: center; gap: 12px; }

.legal-header__logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(217, 179, 84, 0.4);
}

.legal-header__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.1rem;
}

.legal-main { padding: 60px 0 80px; }

.legal {
  max-width: 820px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.legal__updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.4rem;
}

.legal h2 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin: 2rem 0 0.8rem;
}

.legal p, .legal li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.legal ul { padding-left: 1.3rem; list-style: disc; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--gold); text-decoration: underline; }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2.5rem;
  color: var(--gold);
  font-weight: 600;
}

/* ============================================
   ESTADÍSTICAS / CIFRAS
   ============================================ */
.stats {
  padding: 90px 0;
  background: var(--bg-dark-2);
  text-align: center;
}

.stats__eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0.6rem auto 0;
}

.stat {
  padding: 26px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(217, 179, 84, 0.18);
  border-radius: 16px;
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.stats__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2.4rem;
}

.stats__tag {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(217, 179, 84, 0.1);
  border: 1px solid rgba(217, 179, 84, 0.3);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Invitación a sumar colaboradores */
.sponsors__cta {
  margin-top: 3rem;
  text-align: center;
}

.sponsors__cta-text {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

/* ============================================
   CAMPEONES DE CUECA
   ============================================ */
.champions {
  padding: 90px 0;
  background: var(--bg-dark-2);
  text-align: center;
}

.champions__eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.champions__subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.4rem;
}

.champions__placeholder {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 24px;
  border: 1px dashed rgba(217, 179, 84, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

.champions__placeholder-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }

/* Galería de campeones */
.champions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
  margin-top: 1rem;
}

.champions__item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.champions__item:first-child { grid-column: span 2; grid-row: span 2; }

.champions__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.champions__item:hover img { transform: scale(1.07); }

/* ============================================
   VIDEO
   ============================================ */
.video {
  padding: 90px 0;
  background: var(--bg-dark);
}

.video__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.4rem;
}

.video__frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(217, 179, 84, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__channel {
  display: block;
  text-align: center;
  margin-top: 1.6rem;
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s ease;
}

.video__channel:hover { color: var(--gold-light); }

/* ============================================
   MAPA DE LA RUTA POR CHILE
   ============================================ */
.chilemap { margin-top: 4rem; }

.chilemap__title {
  text-align: center;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.chilemap__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 2.6rem;
}

/* Mapa alto y angosto (como Chile) + calendario al costado */
.chilemap__layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: 44px;
  align-items: start;
}

.chilemap__stage { position: relative; }

.chilemap__map {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 1201;   /* proporción real: el mapa no se deforma */
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(217, 179, 84, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.chilemap__geo { position: absolute; inset: 0; width: 100%; height: 100%; }

.chilemap__country {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-opacity: 0.9;
  vector-effect: non-scaling-stroke;
}

.chilemap__grid line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chilemap__divider {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.chilemap__region-label {
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.75;
}

/* Ruta: trazo con halo + línea animada */
.chilemap__route-glow {
  fill: none;
  stroke: var(--gold);
  stroke-width: 7;
  stroke-opacity: 0.16;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chilemap__route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-opacity: 0.95;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 8 7;
  animation: rutaFlujo 24s linear infinite;
}

@keyframes rutaFlujo { to { stroke-dashoffset: -300; } }

/* Pines sobre el mapa */
.route-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.route-pin__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pin-color, var(--gold));
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* La etiqueta aparece solo al señalar el pin: en la zona de Santiago hay
   cuatro comunas muy juntas y, siempre visibles, se encimaban entre sí. */
.route-pin__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: rgba(8, 12, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 5px;
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.route-pin:hover .route-pin__label,
.route-pin:focus-visible .route-pin__label,
.route-pin.is-active .route-pin__label {
  opacity: 1;
  transform: translateX(0);
}

.route-pin:hover,
.route-pin:focus-visible,
.route-pin.is-active { z-index: 8; outline: none; }

.route-pin:hover .route-pin__dot,
.route-pin:focus-visible .route-pin__dot,
.route-pin.is-active .route-pin__dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--pin-color) 35%, transparent), 0 2px 10px rgba(0, 0, 0, 0.7);
}

.route-pin:hover .route-pin__label,
.route-pin:focus-visible .route-pin__label,
.route-pin.is-active .route-pin__label {
  background: var(--pin-color);
  border-color: #fff;
  color: #0a0e1c;
}

/* Calendario lateral */
.route-list { display: flex; flex-direction: column; gap: 8px; }

.route-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--pin-color, var(--gold));
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.route-item.is-active,
.route-item:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--pin-color) 55%, transparent);
  border-left-color: var(--pin-color);
}

.route-item__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.route-item__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  min-width: 40px;
}

.route-item__day b {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.route-item__day small {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.route-item__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.route-item__info strong { color: var(--text-light); font-size: 1rem; }

.route-item__group {
  color: var(--text-muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-item__region {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--pin-color);
  background: color-mix(in srgb, var(--pin-color) 15%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.route-item__ig { color: var(--gold); font-size: 0.95rem; opacity: 0.7; }
.route-item__link--plain { cursor: default; }

/* Agrupaciones nacionales */
.worldmap__nationals {
  margin-top: 3.4rem;
}

.worldmap__nationals-title {
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1.6rem;
}

.nationals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.national-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.national-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 216, 77, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.national-card__name {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.national-card__comuna {
  color: var(--text-muted);
  font-size: 0.85rem;
}


/* ============================================
   REFINAMIENTOS TIPOGRÁFICOS
   ============================================ */

/* Antetítulos en mayúsculas: mejor interletrado y peso */
.vision__eyebrow,
.anthem__eyebrow,
.hero__eyebrow,
.sponsors__label,
.countdown__label,
.footer__counter-label {
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.78rem;
}

/* Subtítulos de sección: ancho de lectura y color parejo */
.vision__inner p,
.reviews__subtitle,
.gallery__subtitle,
.worldmap__subtitle,
.chilemap__subtitle,
.about__text p,
.banner__text {
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Títulos de tarjetas y encabezados secundarios */
.hub__title,
.team-card__name,
.event-card__title,
.news-card__title,
.footer__heading,
.chilemap__title,
.worldmap__nationals-title,
.anthem__spotify-title {
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* La letra del himno: más aire, en cursiva elegante */
.anthem__lyrics {
  line-height: 2;
  letter-spacing: 0.015em;
}

/* Números grandes del contador: tabulares para que no "bailen" al cambiar */
.countdown__number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ============================================
   FOOTER · ORGANIZA (Corporación Pewma Hetu'u)
   ============================================ */
.footer__org {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 20px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__org-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__org-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 0 1.5px rgba(217, 179, 84, 0.4), 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* ============================================
   VENTANA DE NOTICIAS (modal)
   ============================================ */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-modal[hidden] { display: none; }

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-modal.is-open .news-modal__backdrop { opacity: 1; }

.news-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-dark-3), var(--bg-dark-2));
  border: 1px solid rgba(217, 179, 84, 0.35);
  border-radius: 18px;
  padding: 34px 30px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.35s ease;
}

.news-modal.is-open .news-modal__panel { transform: translateY(0) scale(1); opacity: 1; }

.news-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-modal__close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }

.news-modal__eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-modal__title {
  font-family: var(--font-serif);
  color: var(--text-light);
  font-size: 1.5rem;
  margin: 6px 0 18px;
}

.news-modal__items { display: flex; flex-direction: column; gap: 18px; }

.news-modal__item {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.news-modal__item h3 { color: var(--text-light); font-size: 1.05rem; margin: 3px 0 6px; }
.news-modal__item p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.news-modal__date { color: var(--gold); font-size: 0.78rem; font-weight: 600; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet grande / 1024px */
@media (max-width: 1024px) {
  /* La tarjeta pasa al flujo normal.
     Se anula el transform también en .is-visible: si no, la animación de
     aparición reaplica translateY(-50%) (por mayor especificidad) y la tarjeta
     se sube encima de los botones del hero. */
  .edition-card,
  .edition-card.is-visible,
  .edition-card.fade-in.is-visible {
    position: static;
    transform: none;
    width: 100%;
    max-width: 360px;
    margin: 28px auto 44px;
  }

  /* Hero en tablet/móvil: la imagen ocupa una banda superior y el texto fluye debajo */
  .hero { height: auto; min-height: 0; padding: 82px 0 0; background: var(--bg-dark); }
  .hero__carousel { position: relative; height: auto; }
  .hero__slide { position: absolute; top: 0; left: 0; right: 0; height: 56vh; }
  .hero__slide--active { position: relative; }
  .hero__overlay { background: linear-gradient(0deg, var(--bg-dark) 2%, rgba(10,14,28,0.15) 45%, transparent 70%); }
  .hero__content {
    position: relative;
    height: auto !important;
    justify-content: flex-start;
    padding: 26px 6% 16px;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .hero__ornament-line { justify-content: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__indicators {
    top: calc(56vh - 30px);
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
  }
  .hero__arrow { display: none; }

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

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__image { order: -1; max-width: 480px; margin: 0 auto; }

  .hub__grid { grid-template-columns: 1fr; gap: 50px; }

  .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer__brand { justify-content: center; }
  .footer__side { align-items: center; }
}

/* Tablet / 768px */
@media (max-width: 768px) {
  .nationals-grid { grid-template-columns: repeat(3, 1fr); }
  .worldmap__stage { max-width: 440px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .champions__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }

  /* Mapa de la ruta: una columna, mapa arriba y calendario debajo */
  .chilemap__layout { grid-template-columns: 1fr; gap: 30px; justify-items: center; }
  .chilemap__stage { width: 100%; max-width: 300px; }
  .route-list { width: 100%; }

  .navbar__nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(82vw, 320px);
    background: var(--bg-dark-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 100px 28px 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
    overflow-y: auto;
  }

  .navbar__nav.is-open { transform: translateX(0); }

  .navbar__item--dropdown { width: 100%; }

  .navbar__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 4px 14px;
    width: 100%;
  }

  .navbar__item--dropdown.is-open .navbar__dropdown-menu { display: block; }

  .navbar__donate { display: none; }

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

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

/* Móvil / 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Navbar compacta: evita que la hamburguesa se salga en pantallas angostas */
  .navbar__container { padding-left: 16px; padding-right: 16px; }
  .navbar__brand-sub { display: none; }
  .navbar__logo-icon { width: 52px; height: 52px; }

  .about, .hub, .vision, .team, .anthem, .banner, .worldmap, .gallery { padding: 60px 0; }

  .nationals-grid { grid-template-columns: 1fr 1fr; }

  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__item--wide { grid-column: span 1; }
  .champions__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .champions__item:first-child { grid-column: span 1; grid-row: span 1; }

  .review-form { padding: 22px; }
  .review-form__row { grid-template-columns: 1fr; gap: 0; }
  .whatsapp-fab { width: 50px; height: 50px; bottom: 20px; left: 20px; }

  .map-pin { width: 28px; height: 28px; }
  .map-pin__flag { font-size: 13px; }
  .map-pin--host { width: 32px; height: 32px; }
  .map-tooltip { min-width: 160px; max-width: 200px; padding: 11px; }

  .chilemap__stage { max-width: 250px; }
  .route-pin__label { font-size: 0.6rem; padding: 1px 5px; }
  .route-pin__dot { width: 11px; height: 11px; }
  .route-item__link { padding: 10px 12px; gap: 10px; }
  .route-item__region { display: none; }
  .route-item__day b { font-size: 1.25rem; }


  .music-fab { width: 50px; height: 50px; bottom: 80px; left: 20px; }

  .hero__title { font-size: 2.2rem; }

  /* Tarjetas del equipo: 2 por fila en móvil */
  .team__grid { gap: 14px; }
  .team-card { flex: 1 1 140px; max-width: 47%; padding: 20px 12px 18px; }
  .team-card__photo { width: 88px; height: 88px; }
  .team-card__name { font-size: 0.9rem; }

  .quick-links__grid { grid-template-columns: 1fr 1fr; gap: 16px; }

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

  .schedule-item__info h3 { font-size: 0.82rem; }
  .schedule-item__tag { display: none; }

  .sponsors { padding: 56px 0; }
  .sponsors__logos { gap: 18px; }
  .sponsor-card { width: 46%; max-width: 240px; height: 120px; padding: 18px; }

  .back-to-top { width: 40px; height: 40px; bottom: 18px; right: 18px; }
}

/* Desktop grande / 1440px+ */
@media (min-width: 1440px) {
  :root { --container-width: 1360px; }
}

/* Respeta preferencia de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
