/* ============================================================
   UNLEASHED OPEN — styles.css
   Paleta: #003a51 fondo | #ef7d00 acción | #bd9c54 dorado | #fff texto
   ============================================================ */

/* ── Reset & Variables ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #003a51;
  --bg-dark:    #002436;
  --bg-card:    #00283d;
  --bg-card2:   #004a68;
  --accent:     #ef7d00;
  --accent-h:   #d46e00;
  --gold:       #bd9c54;
  --gold-light: #d4b96a;
  --text:       #ffffff;
  --text-muted: #8ab4c8;
  --border:     rgba(189,156,84,0.25);
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.25s ease;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilidades ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section--dark { background-color: var(--bg-dark); }
.section--card { background-color: var(--bg-card); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

.gold { color: var(--gold); }
.accent { color: var(--accent); }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239,125,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(189,156,84,0.12);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(0,36,54,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

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

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

.navbar__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.navbar__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  text-transform: uppercase;
}
.navbar__links a:hover { color: var(--text); }

.navbar__cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.navbar__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 100px 20px 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,36,54,0.45) 0%,
    rgba(0,36,54,0.72) 60%,
    rgba(0,36,54,1)    100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Logo normal (navbar) */
.hero__logo {
  height: 90px;
  margin: 0 auto 24px;
}

/* Logo grande en el hero */
.hero__logo--large {
  height: auto;
  width: min(640px, 90vw);
  max-width: 640px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__date {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: 0.06em;
}

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

.hero__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero__badge {
  background: rgba(0,74,104,0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero__badge strong { color: var(--text); }

/* Botón blanco con texto azul */
.btn-white {
  background: #ffffff;
  color: var(--bg);
  border: 2px solid #ffffff;
}
.btn-white:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

/* ── Textura leve en secciones ────────────────────────────── */
.section--dark {
  background-color: var(--bg-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section:not(.section--dark):not(.section--card) {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.015' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.section--card {
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.018' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Info cards ───────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition);
}
.info-card:hover { transform: translateY(-4px); }

.info-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.info-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.info-card__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.info-card__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Cronograma ───────────────────────────────────────────── */
.schedule {
  max-width: 680px;
  margin: 0 auto;
}

.schedule__item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: flex-start;
}
.schedule__item:last-child { border-bottom: none; }

.schedule__time {
  min-width: 80px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}

.schedule__label {
  font-weight: 600;
  margin-bottom: 2px;
}

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

.schedule__dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.schedule__dot--accent { background: var(--accent); }

/* ── Novedades ────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition);
}
.news-card:hover { transform: translateY(-3px); }

.news-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.news-card__tag--info      { background: rgba(37,150,190,0.2); color: #2596be; }
.news-card__tag--importante { background: rgba(239,125,0,0.2);  color: var(--accent); }
.news-card__tag--novedad   { background: rgba(189,156,84,0.2); color: var(--gold); }

.news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.news-card__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-card__date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
}

/* ── Reglamento ───────────────────────────────────────────── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.rule-item {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
}

.rule-item__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.rule-item__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }

.faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}
.faq__question:hover { color: var(--gold); }

.faq__icon {
  color: var(--gold);
  font-size: 1.4rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq__item.open .faq__icon { transform: rotate(45deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq__item.open .faq__answer { max-height: 300px; }

.faq__answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ── Ubicación ────────────────────────────────────────────── */
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.location-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.location-info p {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.location-info .metro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,150,190,0.15);
  border: 1px solid rgba(37,150,190,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #2596be;
  margin-top: 10px;
  margin-bottom: 24px;
}

.map-btn {
  margin-top: 8px;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Sponsors ─────────────────────────────────────────────── */
.sponsors {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}

.sponsor-logo {
  height: 50px;
  width: auto;
  opacity: 0.75;
  filter: brightness(1.1);
  transition: opacity var(--transition);
}
.sponsor-logo:hover { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
  max-width: 240px;
}

.footer__logo {
  height: 36px;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer__col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--text); }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-btn {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text-muted);
}
.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Mobile menu ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .navbar__links.open { display: flex; }
  .navbar__burger { display: flex; }
  .navbar__cta { display: none; }

  .location-inner { grid-template-columns: 1fr; }
  .location-map { height: 220px; }

  .footer__inner { flex-direction: column; gap: 24px; }

  .section { padding: 60px 0; }

  .hero__actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; justify-content: center; }
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
