:root {
  --orange: #F28C28;
  --black: #0F0F0F;
  --white: #FFFFFF;
  --gray: #B0B0B0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(
      rgba(0,0,0,0.6),
      rgba(0,0,0,0.6)
    ),
    url("assets/images/banner.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav {
  padding: 20px;
}

.logo-text {
  font-family: 'Playfair Display', sans-serif;
  color: var(--orange);
}

.hero-content {
  text-align: center;
  padding-bottom: 80px;
}

.hero h1 {
  font-family: 'Playfair Display', sans-serif;
  font-size: 3rem;
  letter-spacing: 2px;
  color: var(--orange);
}

.hero p {
  margin: 10px 0 20px;
  color: var(--gray);
}

.socials a {
  margin: 0 10px;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.socials a:hover {
  border-color: var(--orange);
}

/* SECTIONS */
.section {
  padding: 80px 10%;
}

.section h2 {
  font-family: 'Playfair Display', sans-serif;
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 20px;
}

/* TABLE */
.team-table {
  width: 100%;
  border-collapse: collapse;
}

.team-table th,
.team-table td {
  padding: 12px;
  border-bottom: 1px solid #333;
}

.team-table th {
  text-align: left;
  color: var(--gray);
}

/* SPONSORS */
.sponsors-grid {
  display: flex;
  gap: 40px;
}

/* FOOTER */
.footer {
  padding: 20px;
  text-align: center;
  color: var(--gray);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 6%;
  }
}

/* PATROCINADORES */
.sponsors {
  text-align: center;
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor img {
  max-height: 90px;
  max-width: 180px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.sponsor img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ===== GALERÍA ===== */

.gallery {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ===== NAV ESCUDO ===== */

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 36px;
  height: auto;
}
/* ===== HERO ESCUDO ===== */

.hero-logo {
  width: 120px;
  margin-bottom: 20px;
}
/* ===== LIGHTBOX ===== */

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: pointer;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ===== AJUSTE FINO MÓVIL ===== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  .section {
    padding: 50px 6%;
  }

  .section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
}
@media (max-width: 768px) {

  .hero {
    min-height: 85vh;
  }

  .hero-logo {
    width: 95px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {

  .nav {
    padding: 15px;
  }

  .nav-logo {
    width: 30px;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {

  .nav {
    padding: 15px;
  }

  .nav-logo {
    width: 30px;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {

  .sponsor img {
    max-width: 100px;
    max-height: 50px;
  }
}
@media (max-width: 768px) {

  .gallery-grid img {
    height: 140px;
  }

  #lightbox img {
    max-width: 95%;
    max-height: 80%;
  }
}
/* ===== PULIDO VISUAL ===== */

/* Separación elegante entre secciones */
.section + .section {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Texto más cómodo de leer */
.section p {
  max-width: 720px;
  margin: 0 auto;
}

/* Enlaces más finos */
.link {
  display: inline-block;
  margin-top: 18px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}
.overlay {
  background: rgba(0,0,0,0.55);
}
.team-table tr:hover {
  background: rgba(255,255,255,0.04);
}

.team-table th {
  letter-spacing: 0.5px;
}
.gallery-grid img {
  border-radius: 10px;
}
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* ===== ÚNETE AL CLUB (ACORDEÓN) ===== */

.join {
  text-align: center;
}

.accordion {
  max-width: 800px;
  margin: 30px auto 0;
  text-align: left;
}

.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--orange);
  text-align: left;
  cursor: pointer;
}

.accordion-header:hover {
  opacity: 0.85;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.join-contact {
  margin-top: 30px;
  font-size: 1rem;
  text-align: center;
}

.join-contact a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.join-contact a:hover {
  text-decoration: underline;
}
/* ===== FIX LINK CLASIFICACIÓN (MÓVIL) ===== */

.link,
.link:visited,
.link:hover,
.link:active {
  color: var(--orange);
  text-decoration: none;
}
/* ===== FIX ACORDEÓN MÓVIL ===== */

@media (max-width: 768px) {

  .accordion-header {
    background: none !important;
    color: var(--orange) !important;
    padding: 16px 0;
    border: none;
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
  }

  .accordion-item {
    background: transparent;
  }
}
/* ===== TIENDA (AJUSTE FINAL) ===== */

.shop {
  text-align: center;
}

.shop-text {
  max-width: 600px;
  margin: 0 auto 25px;
  font-size: 1rem;
}

.shop-button {
  display: inline-block;
  padding: 14px 32px;
  background: none;
  border: 2px solid var(--orange);
  color: var(--orange);
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-button:hover {
  background: var(--orange);
  color: #000;
}

/* MÓVIL */
@media (max-width: 768px) {
  .shop-button {
    padding: 12px 26px;
    font-size: 0.9rem;
  }
}
.shop-text {
  max-width: 600px;
  margin: 0 auto 35px; /* ← MÁS AIRE AQUÍ */
  font-size: 1rem;
}
/* ===== CLASIFICACIÓN OFICIAL ===== */

.classification-button {
  margin-top: 25px;
}
/* Links generales */
a {
  color: #f57c00;            /* naranja */
  text-decoration: none;     /* sin subrayado */
}

a:visited {
  color: #f57c00;
}

a:hover {
  opacity: 0.8;
}
/* =========================
   AJUSTES MOBILE
========================= */
@media (max-width: 768px) {

  body {
    font-size: 16px;
  }

  .section {
    padding: 40px 20px;
  }

  .section h2 {
    font-size: 26px;
    text-align: center;
  }

  .section p {
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
  }

  .link,
  .shop-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 15px;
    letter-spacing: 1px;
  }
}
/* Accordion mobile fix */
.accordion-header {
  background: transparent;
  color: #f57c00;
  border: none;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-size: 17px;
}

.accordion-content {
  display: none;
  padding: 10px 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

.accordion-item.active .accordion-content {
  display: block;
}
/* ===== MENÚ SUPERIOR (DISEÑO FINAL) ===== */

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 10px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.nav-logo {
  width: 38px;
}

.nav-title {
  font-family: 'Playfair Display', serif;
  color: var(--orange);
  font-size: 1.3rem;
  letter-spacing: 1px;
}

/* MENÚ */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  font-family: 'Source Sans 3', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

/* Subrayado elegante al hover */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--orange);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* ===== MENÚ MÓVIL (de momento oculto) ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
}
/* ===== AJUSTE FINAL MENÚ MÓVIL ===== */
@media (max-width: 768px) {
  .nav {
    padding: 16px 16px 8px;
  }

  .nav-title {
    font-size: 1.15rem;
  }

  .nav-logo {
    width: 32px;
  }
}
/* ===== HERO AJUSTE FINAL ===== */
.hero-content {
  padding-top: 40px;
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 30px;
  }
}

/* ===== TEXTO DESCRIPTIVO FINAL ===== */
.section p,
.accordion-content p {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .section p,
  .accordion-content p {
    font-size: 0.95rem;
  }
}
/* ===== BOTONES CTA FINAL ===== */
.shop-button,
.classification-button {
  margin-top: 30px;
}

@media (max-width: 768px) {
  .shop-button,
  .classification-button {
    margin-top: 24px;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
  }
}
/* ===== CIERRE VISUAL ÚNETE ===== */
.join {
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .join {
    padding-bottom: 60px;
  }
}
/* ===== MENÚ MÓVIL (HAMBURGUESA) ===== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--orange);
  cursor: pointer;
}

/* MÓVIL */
/* ===== BOTÓN MENÚ (ESCRITORIO) ===== */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {

  .nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--orange);
    cursor: pointer;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 18px;
    align-items: center;
  }

  .nav-menu.open {
    display: flex;
  }
}
}
