/* ==================
   VARIABLES GLOBALES
================== */
:root {
  --naranja-primary: #f26522;
  --naranja-dark: #d94d0a;
  --naranja-light: #ff8a4c;
  --naranja-ultra-light: #fff0e8;

  --negro: #1c1c1c;
  --gris-oscuro: #2d3748;
  --gris-medio: #718096;
  --gris-claro: #e2e8f0;
  --gris-ultra-claro: #f7fafc;
  --blanco: #ffffff;

  --sombra-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --sombra-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --sombra-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --sombra-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

/* ==================
   RESET Y BASE
================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--gris-ultra-claro) 0%, var(--blanco) 100%);
  color: var(--negro);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==================
   MENÚ LATERAL
================== */
.menu-lateral {
  position: fixed;
  left: -320px;
  top: 0;
  width: 320px;
  height: 100vh;
  background: var(--negro);
  box-shadow: var(--sombra-xl);
  z-index: 9999;
  box-shadow: var(--sombra-xl);
  z-index: 9999;
  transition: left 0.5s cubic-bezier(0.68, -0.25, 0.265, 1.25), box-shadow 0.3s ease;
  overflow-y: auto;
}

.menu-lateral.active {
  left: 0;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--naranja-primary) 0%, var(--naranja-dark) 100%);
  position: relative;
  overflow: hidden;
}

.menu-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

@keyframes menuHeaderGlow {

  0%,
  100% {
    opacity: 0.5;
    transform: rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: rotate(180deg);
  }
}

.menu-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

@keyframes menuLogoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.menu-header h3 {
  color: var(--blanco);
  font-size: 1.3rem;
  font-weight: 700;
  flex: 1;
  position: relative;
  z-index: 1;
}

.btn-cerrar-menu {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
}

.btn-cerrar-menu:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-nav {
  padding: var(--spacing-lg) 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
}

.menu-lateral.active .menu-item {
  animation: menuItemSlideIn 0.5s ease-out forwards;
}

.menu-lateral.active .menu-item:nth-child(1) {
  animation-delay: 0.1s;
}

.menu-lateral.active .menu-item:nth-child(2) {
  animation-delay: 0.15s;
}

.menu-lateral.active .menu-item:nth-child(3) {
  animation-delay: 0.2s;
}

.menu-lateral.active .menu-item:nth-child(4) {
  animation-delay: 0.25s;
}

.menu-lateral.active .menu-item:nth-child(5) {
  animation-delay: 0.3s;
}

.menu-lateral.active .menu-item:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes menuItemSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



.menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--naranja-primary);
  transition: height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--blanco);
  padding-left: calc(var(--spacing-xl) + 8px);
  transform: translateX(4px);
}

.menu-item:hover::before {
  height: 100%;
}

.menu-item.active {
  background: rgba(242, 101, 34, 0.15);
  color: var(--naranja-light);
  border-left-color: var(--naranja-primary);
}

.menu-item.active::before {
  height: 100%;
}

.menu-text {
  flex: 1;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ==================
   HEADER
================== */
.main-header {
  background: var(--negro);
  padding: 1.5rem 0;
  box-shadow: var(--sombra-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--blanco);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--sombra-md);
}

.btn-menu {
  display: none;
  /* Oculto en desktop */
  margin-right: 0.5rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.desktop-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  padding: 10px 0;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
  color: var(--naranja-primary);
}

.desktop-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--naranja-primary);
  border-radius: 2px;
}

.btn-volver-nav {
  background: var(--naranja-primary);
  color: var(--blanco) !important;
  padding: 8px 18px !important;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid var(--naranja-primary);
  transition: all 0.3s ease;
  margin-left: 10px;
}

.btn-volver-nav:after {
  display: none !important;
}

.btn-volver-nav:hover {
  background: transparent;
  color: var(--naranja-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 106, 33, 0.2);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .btn-menu {
    display: flex;
  }
}

.club-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.header-text h1 {
  color: var(--blanco);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.header-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ==================
   PÁGINA SEDES
================== */
.sedes-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.sedes-hero {
  border-radius: 24px;
  padding: 4rem 3rem;
  color: var(--negro);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bandera {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Flag_of_Mexico.svg/2560px-Flag_of_Mexico.svg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  animation: banderaFloat 20s ease-in-out infinite;
}

@keyframes banderaFloat {

  0%,
  100% {
    transform: scale(1.05) translateY(0);
  }

  50% {
    transform: scale(1.1) translateY(-10px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.sedes-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sedes-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.mapa-container {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.mapa-titulo {
  text-align: center;
  margin-bottom: 2rem;
}

.mapa-titulo h2 {
  color: var(--naranja-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.mapa-titulo p {
  color: var(--gris-medio);
  font-size: 1.1rem;
}

.mapa-svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.estado {
  fill: var(--gris-claro);
  stroke: #fff;
  stroke-width: 1.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.estado.con-visoria {
  fill: var(--naranja-primary);
}

.estado:hover {
  fill: var(--naranja-light);
  stroke: var(--naranja-dark);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(242, 101, 34, 0.5));
  z-index: 10;
}

/* Hover específico para estados sin visoría (próximamente) */
.estado:not(.con-visoria):hover {
  fill: var(--gris-medio);
  stroke: var(--gris-oscuro);
  stroke-width: 1;
}

.info-tooltip {
  position: fixed;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  max-width: 300px;
}

.info-tooltip.active {
  opacity: 1;
}

/* Estilo para tooltip de estados próximamente */
.info-tooltip.proximamente {
  border-color: var(--gris-medio);
  background: var(--gris-ultra-claro);
}

.info-tooltip h3 {
  color: var(--naranja-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Color del título para estados próximamente */
.info-tooltip.proximamente h3 {
  color: var(--gris-oscuro);
}

.info-tooltip p {
  color: var(--gris-medio);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.info-badge {
  display: inline-block;
  background: var(--naranja-ultra-light);
  color: var(--naranja-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Badge para estados próximamente */
.info-badge.proximamente {
  background: var(--gris-claro);
  color: var(--gris-oscuro);
}

.leyenda {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.leyenda-color {
  width: 40px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-visoria {
  background: var(--naranja-primary);
}

.color-sin-visoria {
  background: var(--gris-claro);
}

.section-title {
  text-align: center;
  color: var(--naranja-primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

/* Sedes Styles Removed */

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--naranja-primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 2rem;
}

.back-button:hover {
  background: var(--naranja-dark);
  transform: translateY(-2px);
}

/* ==================
   RESPONSIVE
================== */
@media (max-width: 768px) {
  .header-wrapper {
    padding: 0 1rem;
  }

  .club-logo {
    width: 50px;
    height: 50px;
  }

  .header-text h1 {
    font-size: 1.2rem;
  }

  .header-text p {
    font-size: 0.8rem;
  }

  .sedes-page {
    padding: 2rem 1rem;
  }

  .sedes-hero {
    padding: 2rem 1.5rem;
  }

  .sedes-hero h1 {
    font-size: 2rem;
  }

  .sedes-hero p {
    font-size: 1rem;
  }

  .mapa-container {
    padding: 1.5rem;
  }

  .sedes-lista {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-section {
    gap: 1rem;
  }

  .club-logo {
    width: 40px;
    height: 40px;
  }

  .header-text h1 {
    font-size: 1rem;
  }

  .sedes-hero h1 {
    font-size: 1.5rem;
  }

  .mapa-titulo h2 {
    font-size: 1.5rem;
  }

  .sede-icono {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Footer Copied from Main Site */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    background-color: #050505;
    color: #aaa;
    padding: 80px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    max-width: 300px;
}

.footer-logo-img {
    height: 60px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.7;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--blanco);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--naranja-primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: var(--naranja-primary);
}

.footer-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    color: var(--naranja-primary);
    display: inline-block;
}

/* Social Links in Footer - Column Layout */
.social-links-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.social-link-item:hover {
    color: var(--blanco);
    background: var(--naranja-primary);
    transform: translateX(5px);
}

.social-link-item svg {
    flex-shrink: 0;
}

.footer-icon-social {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}