/* Google Fonts cargadas vía HTML preload para evitar bloqueo de renderizado */

.redesigned-header .header-nav > a,
.redesigned-header .comunidad-dropdown-btn {
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(30,41,59,0.13), 0 1px 0 #fff;
}
.redesigned-header .header-icon-btn i.lucide {
  color: #fff !important;
  transition: color 0.2s;
}
.redesigned-header .header-icon-btn:hover i.lucide,
.redesigned-header .header-nav > a:hover i.lucide,
.redesigned-header .comunidad-dropdown-btn:hover i.lucide {
  color: #22304a !important;
}
.redesigned-header .dropdown-menu {
  border: 2px solid #C5D97E !important;
  box-shadow: 0 8px 32px rgba(30,41,59,0.13), 0 1px 0 #fff;
}
.redesigned-header .header-nav > a,
.redesigned-header .comunidad-dropdown-btn {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(30,41,59,0.10);
}
.redesigned-header .header-nav > a:hover, .redesigned-header .header-nav > a.active,
.redesigned-header .comunidad-dropdown-btn:hover, .redesigned-header .comunidad-dropdown-btn.active {
  background: #fff !important;
  color: #22304a !important;
  text-shadow: none;
}
.redesigned-header .dropdown-menu {
  background: #fff !important;
  color: #22304a !important;
  border: 1px solid #C5D97E;
}
.redesigned-header .dropdown-menu a {
  color: #22304a !important;
  background: transparent;
}
.redesigned-header .dropdown-menu a:hover {
  background: #C5D97E !important;
  color: #22304a !important;
}
.dark .redesigned-header .header-nav > a,
.dark .redesigned-header .comunidad-dropdown-btn {
  color: #fff !important;
  text-shadow: 0 1px 2px #111e2e;
}
.dark .redesigned-header .header-nav > a:hover, .dark .redesigned-header .header-nav > a.active,
.dark .redesigned-header .comunidad-dropdown-btn:hover, .dark .redesigned-header .comunidad-dropdown-btn.active {
  background: #C5D97E !important;
  color: #22304a !important;
  text-shadow: none;
}
.dark .redesigned-header .dropdown-menu {
  background: #22304a !important;
  color: #fff !important;
  border: 1px solid #9DBF21;
}
.dark .redesigned-header .dropdown-menu a {
  color: #fff !important;
  background: transparent;
}
.dark .redesigned-header .dropdown-menu a:hover {
  background: #9DBF21 !important;
  color: #22304a !important;
}
/* === HEADER REDISEÑADO === */
.redesigned-header {
  position: relative;
  background: linear-gradient(120deg, #6b8a13 0%, #22304a 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(30,41,59,0.10);
  z-index: 100;
  font-family: 'Poppins', Arial, sans-serif;
}
.redesigned-header .header-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 10%, #C5D97E44 0%, transparent 70%),
              radial-gradient(circle at 90% 80%, #22304a55 0%, transparent 70%);
  z-index: 0;
}
.redesigned-header .header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
}
.redesigned-header .header-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
.redesigned-header .header-logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px #9DBF21aa);
}
.redesigned-header .header-logo-highlight {
  color: #9DBF21;
  font-weight: 900;
}
.redesigned-header .header-nav {
  display: none;
}
@media (min-width: 1024px) {
  .redesigned-header .header-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
  }
}
/* Entre 1024 y 1279 px el menú va compacto para que quepan "Nosotros" y los
   botones de radio/tema; desde 1536 px recupera su aire original (con el botón
   "Instalar" visible, a 1280-1535 px el radio y el tema quedaban fuera de pantalla). */
@media (min-width: 1536px) {
  .redesigned-header .header-nav { gap: 1.5rem; }
}
.redesigned-header .header-nav > a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5em 0.7em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
@media (min-width: 1536px) {
  .redesigned-header .header-nav > a { padding: 0.5em 1.1em; }
}
.redesigned-header .header-nav > a:hover, .redesigned-header .header-nav > a.active {
  background: var(--color-accent, #C5D97E);
  color: var(--color-primary-dark, #6b8a13);
  box-shadow: 0 2px 8px rgba(157,191,33,0.08);
}
.redesigned-header .comunidad-dropdown-group {
  position: relative;
}
.redesigned-header .comunidad-dropdown-btn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  font-size: 1rem;
  padding: 0.5em 1.1em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.redesigned-header .comunidad-dropdown-btn:hover, .redesigned-header .comunidad-dropdown-btn.active {
  background: var(--color-accent, #C5D97E);
  color: var(--color-primary-dark, #6b8a13);
}
.redesigned-header .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 2.2rem;
  background: #fff;
  color: var(--color-secondary, #1e293b);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(30,41,59,0.13);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.redesigned-header .dropdown-menu.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.redesigned-header .dropdown-menu a {
  display: block;
  padding: 0.7em 1.5em;
  color: var(--color-secondary, #1e293b);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.redesigned-header .dropdown-menu a:hover {
  background: var(--color-accent, #C5D97E);
  color: var(--color-primary-dark, #6b8a13);
}
.redesigned-header .header-icon-btn {
  background: #22304a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-left: 0.5rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px #111e2e33;
  cursor: pointer;
}
/* El play de la radio en vivo destaca sobre el resto de iconos. */
.redesigned-header #radio-play-btn {
  background: #9DBF21;
  color: #22304a;
}
.redesigned-header .header-icon-btn:hover {
  background: #9DBF21;
  color: #22304a;
  transform: scale(1.08);
}
.redesigned-header .mobile-only {
  display: none;
}
@media (max-width: 1023px) {
  .redesigned-header .header-content {
    display: flex;
    justify-content: center;
    padding: 0.8rem 1rem;
    position: relative;
    min-height: 70px;
  }
  .redesigned-header .header-logo {
    margin: 0 auto;
    text-align: center;
  }
  .redesigned-header .mobile-icons-group {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* === MOBILE MENU PREMIUM (Slide-out) === */
#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#mobile-menu.hidden {
  display: flex !important; /* Permitir animaciones de entrada/salida */
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-menu-active {
  overflow: hidden !important;
}

.glass-mobile-nav {
  background: rgba(255, 255, 255, 0.85);
}
.dark .glass-mobile-nav {
  background: rgba(17, 24, 39, 0.9);
}

.mobile-menu-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.mobile-menu-item:hover, .mobile-menu-item.active {
  background: rgba(157, 191, 33, 0.1);
  border-left-color: #9DBF21;
  padding-left: 1rem;
}

/* Scrollbar para menú móvil */
#mobile-menu nav::-webkit-scrollbar {
  width: 4px;
}
#mobile-menu nav::-webkit-scrollbar-thumb {
  background: rgba(157, 191, 33, 0.3);
  border-radius: 10px;
}
.dark .redesigned-header {
  background: linear-gradient(120deg, #6b8a13 0%, #1e293b 90%);
  color: #fff;
}
.dark .redesigned-header .header-logo-highlight {
  color: #C5D97E;
}
.dark .redesigned-header .header-nav > a:hover, .dark .redesigned-header .header-nav > a.active {
  background: #C5D97E;
  color: #1e293b;
}
.dark .redesigned-header .comunidad-dropdown-btn:hover, .dark .redesigned-header .comunidad-dropdown-btn.active {
  background: #C5D97E;
  color: #1e293b;
}
.dark .redesigned-header .dropdown-menu {
  background: #22304a;
  color: #fff;
  box-shadow: 0 8px 32px rgba(16,24,39,0.18);
}
.dark .redesigned-header .dropdown-menu a {
  color: #fff;
}
.dark .redesigned-header .dropdown-menu a:hover {
  background: #9DBF21;
  color: #22304a;
}
/* === FOOTER REDISEÑADO === */
.redesigned-footer {
  position: relative;
  background: linear-gradient(120deg, #111e2e 70%, #9DBF21 100%);
  color: #fff;
  padding: 0;
  margin-top: 3rem;
  overflow: hidden;
  font-family: 'Poppins', Arial, sans-serif;
}
.redesigned-footer .footer-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, #C5D97E33 0%, transparent 70%),
              radial-gradient(circle at 10% 80%, #6b8a1333 0%, transparent 70%);
  z-index: 0;
}
.redesigned-footer .footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}
.redesigned-footer .footer-brand {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 340px;
}
.redesigned-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.redesigned-footer .footer-logo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px #9DBF21aa);
}
.redesigned-footer .footer-logo-highlight {
  color: #9DBF21;
  font-weight: 900;
}
.redesigned-footer .footer-desc {
  margin: 1.2rem 0 1.7rem 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #e5e7eb;
}
.redesigned-footer .footer-social {
  display: flex;
  gap: 1.2rem;
}
.redesigned-footer .footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #22304a;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px #111e2e33;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.redesigned-footer .footer-social-btn.ig:hover {
  background: #E1306C;
  color: #fff;
  transform: scale(1.12) rotate(-8deg);
}
.redesigned-footer .footer-social-btn.yt:hover {
  background: #FF0000;
  color: #fff;
  transform: scale(1.12) rotate(8deg);
}
.redesigned-footer .footer-sections {
  display: flex;
  flex: 2 1 400px;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.redesigned-footer .footer-section {
  min-width: 180px;
  margin-bottom: 1.5rem;
}
.redesigned-footer .footer-section h2,
.redesigned-footer .footer-section h3,
.redesigned-footer .footer-section .footer-heading {
  color: #C5D97E;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.redesigned-footer .footer-section h2 span,
.redesigned-footer .footer-section h3 span,
.redesigned-footer .footer-section .footer-heading span {
  color: #fff;
  font-weight: 800;
}
.redesigned-footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.redesigned-footer .footer-section li {
  margin-bottom: 0.7em;
  font-size: 1rem;
  color: #fff;
}
.redesigned-footer .footer-section a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}
.redesigned-footer .footer-section a:hover {
  color: #9DBF21;
}
.redesigned-footer .footer-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.2rem 1rem 0.5rem 1rem;
  font-size: 0.98rem;
  color: #cbd5e1;
  border-top: 1px solid #22304a;
  background: transparent;
}
@media (max-width: 900px) {
  .redesigned-footer .footer-content {
    flex-direction: column;
    gap: 2.2rem;
    align-items: stretch;
    padding: 2.2rem 1rem 1rem 1rem;
  }
  .redesigned-footer .footer-sections {
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
  }
}
.dark .redesigned-footer {
  background: linear-gradient(120deg, #1e293b 70%, #6b8a13 100%);
  color: #fff;
}
.dark .redesigned-footer .footer-section h2,
.dark .redesigned-footer .footer-section h3,
.dark .redesigned-footer .footer-section .footer-heading {
  color: #C5D97E;
}
.dark .redesigned-footer .footer-section a {
  color: #fff;
}
.dark .redesigned-footer .footer-section a:hover {
  color: #9DBF21;
}
/* Formulario compacto de contacto */
.compact-contact-form .compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .compact-contact-form .compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
  }
  .compact-contact-form .compact-grid > .col-span-2 {
    grid-column: span 2;
  }
}
@media (min-width: 640px) {
  .compact-contact-form .compact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .compact-contact-form .compact-grid > .col-span-2 {
    grid-column: span 2;
  }
}
.compact-contact-form input,
.compact-contact-form textarea {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #222;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.compact-contact-form input:focus,
.compact-contact-form textarea:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px #3b82f633;
}
.compact-contact-form input[type="file"] {
  padding: 0.5rem 0.5rem;
  background: #f8fafc;
  border-radius: 0.375rem;
  color: #222;
}
.dark .compact-contact-form input[type="file"] {
  background: #232b36;
  color: #f3f3f3;
  border-color: #444c5e;
}
.compact-contact-form label {
  font-size: 1rem;
  font-weight: 600;
}
.compact-contact-form button[type="submit"] {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px 0 #0001;
}

/* Dark mode for compact form */
/* Reparación profunda: reglas dark .compact-contact-form */
.dark .compact-contact-form {
  background: #23272f;
  border-color: #2d3340;
}
.dark .compact-contact-form input {
  background: #232b36;
  color: #f3f3f3;
  border-color: #444c5e;
}
.dark .compact-contact-form input:focus {
  border-color: #9DBF21;
  box-shadow: 0 0 0 2px #9DBF2133;
}
.dark .compact-contact-form label {
  color: #e5e7eb;
}
.dark .compact-contact-form button[type="submit"] {
  background: #9DBF21;
  color: #23272f;
}
.compact-contact-form .col-span-2 {
  grid-column: span 2;
}
@media (max-width: 700px) {
  .compact-contact-form .compact-grid {
    grid-template-columns: 1fr;
  }
  .compact-contact-form .col-span-2 {
    grid-column: span 1;
  }
}
/* Dropdown Comunidad coherente con tema */
.dropdown-menu {
  background: #fff;
  color: var(--color-secondary);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a {
  display: block;
  padding: 0.7em 1.5em;
  color: var(--color-secondary);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.dark .dropdown-menu {
  background: #22304a;
  color: #fff;
  box-shadow: 0 8px 32px rgba(16,24,39,0.18);
}
.dark .dropdown-menu a {
  color: #fff;
}
.dark .dropdown-menu a:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
/* 9. Formulario de Contacto Mejorado */
.contact-form label {
  font-weight: 600;
  margin-bottom: 0.3em;
  display: block;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form input[type="file"] {
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--color-text);
  font-size: 1rem;
  margin-top: 0.2em;
  margin-bottom: 0.7em;
  transition: border 0.2s, background 0.2s;
}
.dark .contact-form input[type="text"],
.dark .contact-form input[type="email"],
.dark .contact-form input[type="tel"],
.dark .contact-form input[type="url"],
.dark .contact-form textarea,
.dark .contact-form input[type="file"] {
  background: #22304a;
  color: #fff;
  border: 1px solid #374151;
}
.contact-form input[type="file"] {
  padding: 0.5em 0.5em;
  background: #f1f5f9;
}
.dark .contact-form input[type="file"] {
  background: #1e293b;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.dark .contact-form input:focus,
.dark .contact-form textarea:focus {
  background: #22304a;
  border-color: var(--color-accent);
}
.contact-form .flex-col.gap-2 > input {
  margin-bottom: 0.3em;
}
.contact-form .text-xs {
  font-size: 0.85em;
  color: #6b7280;
}
.dark .contact-form .text-xs {
  color: #cbd5e1;
}
.contact-form button[type="submit"] {
  margin-top: 1.2em;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
@media (max-width: 600px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 0.98rem;
    padding: 0.6em 0.7em;
  }
}
/* 7B. Página Deportistas */
.deportistas-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem 1rem;
}
.deportistas-main h1 {
  color: var(--color-secondary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.deportistas-main p {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.deportistas-main .btn, .deportistas-main a {
  margin-bottom: 2rem;
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.7em 2em;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.deportistas-main .btn:hover, .deportistas-main a:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
.deportista-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}
.deportista-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.deportista-card img {
  max-height: 180px;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.deportista-card p {
  margin-bottom: 0.5rem;
}

/* Import Poppins Font (moved to top for compliance) */

@media (max-width: 900px) {
.deportistas-main { padding: 1.5rem 0.5rem; }
}
@media (max-width: 600px) {
  .deportistas-main h1 { font-size: 1.5rem; }
}


/* 1. Importar fuentes y variables globales */

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --color-primary: #9DBF21;
  --color-primary-dark: #6b8a13;
  --color-secondary: #1e293b;
  --color-accent: #C5D97E;
  --color-bg: #f8fafc;
  --color-text: #222;
  --color-footer: #111e2e;
  --color-footer-text: #fff;
  --radius: 12px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* Dark mode: sobrescribe variables base para que body y heredados funcionen */
.dark {
  --color-bg: #111827;
  --color-text: #f3f4f6;
  --color-secondary: #e2e8f0;
}

/* html.dark body — especificidad 0,1,2, sin @layer: gana sobre cualquier
   clase de Tailwind (@layer utilities tiene menor precedencia en Cascade L5) */
html.dark body {
  background: #111827 !important;
  color: #f3f4f6 !important;
}

/* 2. Reset y base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scrollbar Premium Global */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
  border-radius: 10px;
}
.dark ::-webkit-scrollbar-thumb {
  background-color: rgba(75, 85, 99, 0.5);
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}


body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}
a { color: var(--color-primary); text-decoration: underline; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', Arial, sans-serif; margin-top: 0; }

/* 3. Utilidades globales */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75em 2em;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.btn:hover { background: var(--color-primary-dark); }

/* 4. Header */
.main-header {
  background: linear-gradient(90deg, #fff 80%, #f8fafc 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30,41,59,0.06);
  transition: box-shadow 0.2s, background 0.2s;
}
.dark .main-header {
  background: linear-gradient(90deg, #1e293b 80%, #111e2e 100%);
  border-bottom: 1px solid #22304a;
  box-shadow: 0 2px 12px rgba(16,24,39,0.18);
}
.main-header .logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--color-secondary);
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(157,191,33,0.08);
}
.dark .main-header .logo {
  color: #fff;
  text-shadow: 0 1px 0 #22304a, 0 2px 8px rgba(30,41,59,0.18);
}
.main-header nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  border-left: 1px solid #e5e7eb;
  padding-left: 2rem;
}

/* El cajon movil (#mobile-menu) vive dentro del <header>: sin esto heredaba
   la regla de arriba y pintaba sus enlaces en una fila cortada. */
.main-header #mobile-menu nav {
  display: block;
  border-left: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}
.dark .main-header nav {
  border-left: 1px solid #22304a;
}
.main-header nav a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5em 1.1em;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
}
.dark .main-header nav a {
  color: #fff;
}
.main-header nav a:hover, .main-header nav a.active {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(157,191,33,0.08);
}
.dark .main-header nav a:hover, .dark .main-header nav a.active {
  background: var(--color-primary-dark);
  color: #fff;
}
.main-header nav .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 2.2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(30,41,59,0.13);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.dark .main-header nav .dropdown-menu {
  background: #22304a;
  box-shadow: 0 8px 32px rgba(16,24,39,0.18);
}
.main-header nav .dropdown-menu.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.main-header nav .dropdown-menu a {
  display: block;
  padding: 0.7em 1.5em;
  color: var(--color-secondary);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.dark .main-header nav .dropdown-menu a {
  color: #fff;
}
.main-header nav .dropdown-menu a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.dark .main-header nav .dropdown-menu a:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* 5. Footer */
.main-footer {
  background: linear-gradient(90deg, #111e2e 80%, #1e293b 100%);
  color: var(--color-footer-text);
  padding: 2.5rem 0 1.5rem 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 16px rgba(30,41,59,0.10);
  transition: background 0.3s, color 0.3s;
}
.dark .main-footer {
  background: linear-gradient(90deg, #1e293b 80%, #111e2e 100%);
  color: var(--color-footer-text);
}
.main-footer .footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  border-top: 1px solid #22304a;
  padding-top: 1.5rem;
}
.main-footer h3 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.main-footer ul { list-style: none; padding: 0; margin: 0; }
.main-footer a, .main-footer a:visited, .main-footer a:active {
  color: #fff !important;
  text-decoration: underline;
  transition: color var(--transition);
}
.main-footer a:hover {
  color: var(--color-primary) !important;
}
.dark .main-footer a, .dark .main-footer a:visited, .dark .main-footer a:active {
  color: #fff !important;
}
.dark .main-footer a:hover {
  color: var(--color-primary) !important;
}
.main-footer .footer-cols > div:not(:last-child) {
  border-right: 1px solid #22304a;
  padding-right: 2rem;
}
.main-footer .footer-cols > div {
  flex: 1 1 0;
  min-width: 220px;
}
.main-footer .footer-cols .social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.main-footer .footer-cols .social-icons a {
  font-size: 1.5rem;
  color: #fff;
  background: var(--color-secondary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.main-footer .footer-cols .social-icons a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.12);
}
.dark .main-footer .footer-cols .social-icons a {
  background: var(--color-secondary);
  color: #fff;
}
.dark .main-footer .footer-cols .social-icons a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* 6. WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-size: 2rem;
  z-index: 200;
  transition: background var(--transition), transform var(--transition);
}
.whatsapp-btn:hover { background: #128C7E; transform: scale(1.08); }

/* 7. Página Cultura y Música */
.cultura-musica-banner {
  width: 100%;
  min-height: 220px;
  background: url('../img/banner-cultura-musica.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}
.cultura-musica-banner span {
  background: rgba(255,255,255,0.85);
  color: var(--color-secondary);
  font-size: 2rem;
  font-weight: 800;
  padding: 1.5rem 3rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--color-accent);
}
.cultura-musica-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem 1rem;
}
.cultura-musica-main h1 {
  color: var(--color-secondary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.cultura-musica-main p {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.cultura-musica-main .btn {
  margin-bottom: 2rem;
}
.cultura-musica-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}
.cultura-musica-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cultura-musica-card img {
  max-height: 180px;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.cultura-musica-card p {
  margin-bottom: 0.5rem;
}

/* 8. Responsive */
@media (max-width: 900px) {
  .main-footer .footer-cols { flex-direction: column; gap: 1.5rem; border-top: none; }
  .main-footer .footer-cols > div:not(:last-child) { border-right: none; padding-right: 0; }
  .cultura-musica-main { padding: 1.5rem 0.5rem; }
}
@media (max-width: 600px) {
  .main-header nav { gap: 0.5rem; }
  .cultura-musica-banner span { font-size: 1.2rem; padding: 1rem 1.5rem; }
  .cultura-musica-main h1 { font-size: 1.5rem; }
}

/* --- Fix: Eliminar espacio blanco superior en admin panel --- */
html, body, #app, #root {
  margin: 0 !important;
  padding: 0 !important;
}
.flex.flex-1, .flex.flex-col, main, .main-content, .admin-main-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 9. Utility & Normalization Overlays */
#login-overlay {
  z-index: 9999 !important;
}

#admin-mobile-header {
  z-index: 60;
}

@media (max-width: 640px) {
  .section-mobile-padding {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
/* --- Fin fix --- */


/* === PREMIUM MAIL CENTER ENHANCEMENTS === */
.mc-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.dark .mc-glass {
    background: rgba(17, 24, 39, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mc-nebula-glow {
    box-shadow: 0 0 20px rgba(157, 191, 33, 0.15), 0 0 40px rgba(157, 191, 33, 0.05) !important;
}

.mc-item-active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
    box-shadow: 0 8px 16px -4px rgba(157, 191, 33, 0.4) !important;
}

.mc-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1);
}

.mc-ai-footer {
    position: relative;
    overflow: hidden;
}

.mc-ai-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(157, 191, 33, 0.3), transparent);
}

@keyframes mc-fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-mc-item {
    animation: mc-fade-in-up 0.4s ease forwards;
}

/* ==========================================================================
   Banner de consentimiento de cookies (consent-banner.js)
   ========================================================================== */
#cg-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--cg-ink, #22304A);
    color: var(--cg-white, #fff);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    animation: cg-consent-up 0.4s ease;
}

@keyframes cg-consent-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

#cg-consent-banner.cg-consent-hide {
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: translateY(100%);
    opacity: 0;
}

.cg-consent-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.cg-consent-text {
    flex: 1 1 20rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.cg-consent-text a {
    color: var(--cg-guayacan-soft, #C5D97E);
    text-decoration: underline;
}

.cg-consent-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.cg-consent-btn {
    border: none;
    border-radius: 0.75rem;
    padding: 0.65rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.cg-consent-btn-primary {
    background: var(--cg-guayacan, #6B8A13);
    color: var(--cg-white, #fff);
}

.cg-consent-btn-primary:hover {
    background: var(--cg-guayacan-dark, #3F5300);
}

.cg-consent-btn-secondary {
    background: transparent;
    color: var(--cg-gray-300, #CBD5E1);
    border: 1px solid var(--cg-gray-500, #64748B);
}

.cg-consent-btn-secondary:hover {
    color: var(--cg-white, #fff);
    border-color: var(--cg-gray-300, #CBD5E1);
}

/* ==========================================================================
   Historias (stories.js): visor, progreso, navegación y etiquetas
   ========================================================================== */
#stories-modal { z-index: 10000; } /* por encima del banner de cookies (9999) */

.story-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}
.story-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
}
.story-progress-fill.completed { width: 100%; }
.story-progress-fill.active {
    animation: story-progress var(--story-duration, 5000ms) linear forwards;
}
#stories-modal.story-paused .story-progress-fill.active { animation-play-state: paused; }
@keyframes story-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .story-progress-fill.active { animation: none; width: 100%; }
}

/* Zonas de toque izquierda/derecha; no cubren cabecera ni el bloque de texto/botón */
.story-nav {
    position: absolute;
    top: 5rem;
    bottom: 13rem;
    z-index: 30;
    display: flex;
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.story-nav-prev { left: 0; width: 30%; justify-content: flex-start; padding-left: .75rem; }
.story-nav-next { right: 0; width: 70%; justify-content: flex-end; padding-right: .75rem; }
.story-nav svg { opacity: 0; transition: opacity .2s; background: rgba(0,0,0,.4); border-radius: 9999px; padding: 2px; }
@media (hover: hover) { .story-nav:hover svg, .story-nav:focus-visible svg { opacity: 1; } }
.story-nav:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Etiqueta bajo cada burbuja: 2 líneas en vez de una truncada a 9px */
.story-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    margin-top: .25rem;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: anywhere;
}
