/* ===== Desafío La Codosera — estilos compartidos (home + el-desafio) ===== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  background: #F8F8F5;
  color: #0A0A0A;
  -webkit-font-smoothing: antialiased;
}
a { color: #0B3220; text-decoration: none; }
a:hover { color: #557a12; }
img { max-width: 100%; display: block; }
::selection { background: #CDEF00; color: #0B3220; }

@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes bobY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes marqueeX { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #CDEF00; color: #0B3220; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,36,24,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(205,239,0,0.15);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo { display: flex; align-items: center; gap: 12px; color: #F8F8F5; }
.site-header__logo img {
  width: 46px; height: auto;
  filter: drop-shadow(0 0 1px rgba(248,248,245,0.9)) drop-shadow(0 0 1px rgba(248,248,245,0.6));
}
.site-header__logo span {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #F8F8F5; line-height: 1;
}
.site-header__logo span em { color: #CDEF00; font-style: normal; }

.site-header__nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: #F8F8F5; font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.nav-link:hover { color: #CDEF00; }
.nav-link.is-current { color: #CDEF00; }

.btn-cta {
  display: inline-block; background: #CDEF00; color: #0B3220;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 11px 22px; border-radius: 3px;
  border: none; cursor: pointer;
}
.btn-cta:hover { background: #F8F8F5; color: #0B3220; }

/* Botón de inscripción desactivado (inscripciones aún no abiertas) */
.btn-cta.is-disabled,
.btn-cta-lg.is-disabled,
.mobile-menu__cta.is-disabled {
  background: rgba(248,248,245,0.1);
  color: rgba(248,248,245,0.55);
  border: 1px solid rgba(248,248,245,0.25);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-cta.is-disabled:hover,
.btn-cta-lg.is-disabled:hover,
.mobile-menu__cta.is-disabled:hover { background: rgba(248,248,245,0.1); color: rgba(248,248,245,0.55); }

.header-mobile-only, .mobile-menu-toggle { display: none; }

.mobile-menu-toggle {
  background: none; border: 1px solid rgba(248,248,245,0.35); border-radius: 3px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; background: #F8F8F5; }

@media (max-width: 899px) {
  .site-header__nav.is-desktop { display: none !important; }
  .header-mobile-only { display: flex; align-items: center; gap: 12px; }
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: #072418;
  display: none; flex-direction: column; padding: 20px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.mobile-menu__top img { width: 46px; height: auto; }
.mobile-menu__close {
  background: none; border: 1px solid rgba(248,248,245,0.35); border-radius: 3px;
  width: 42px; height: 42px; color: #F8F8F5; font-size: 20px; cursor: pointer;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.mobile-nav-link {
  color: #F8F8F5; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 34px; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 0;
  border-bottom: 1px solid rgba(248,248,245,0.1);
}
.mobile-nav-link:hover { color: #CDEF00; }
.mobile-menu__cta {
  margin-top: auto; background: #CDEF00; color: #0B3220; text-align: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 16px; border-radius: 3px;
}

/* ===== Botones y enlaces reutilizables ===== */
.btn-cta-lg {
  display: inline-block; background: #CDEF00; color: #0B3220;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px;
}
.btn-cta-lg:hover { background: #F8F8F5; color: #0B3220; }

.btn-outline-light {
  border: 1px solid rgba(248,248,245,0.5); color: #F8F8F5;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px;
}
.btn-outline-light:hover { border-color: #CDEF00; color: #CDEF00; }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #0B3220; color: #0B3220;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px;
}
.btn-outline-dark:hover { background: #0B3220; color: #F8F8F5; }

.btn-invert { background: #CDEF00; color: #0B3220; }
.btn-invert:hover { background: #0B3220; color: #CDEF00; }

.link-underline-green { color: #0B3220; }
.link-underline-green:hover { color: #557a12; }

.link-yellow { color: #F8F8F5; }
.link-yellow:hover { color: #CDEF00; }

.chip-link { border: 1px solid #E2E2DA; color: #0B3220; }
.chip-link:hover { border-color: #0B3220; }

.acceso-card { border: 1px solid rgba(248,248,245,0.18); color: #F8F8F5; }
.acceso-card:hover { border-color: #CDEF00; background: rgba(205,239,0,0.06); }

.footer-legal-link { color: rgba(248,248,245,0.6); }
.footer-legal-link:hover { color: #CDEF00; }

.social-icon {
  width: 42px; height: 42px; border: 1px solid rgba(248,248,245,0.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #F8F8F5;
}
.social-icon:hover { border-color: #CDEF00; color: #CDEF00; }

.gallery-item { display: block; border-radius: 5px; overflow: hidden; }
.gallery-item img { transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.subnav-link {
  display: inline-block; padding: 13px 14px; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(248,248,245,0.75); border-bottom: 3px solid transparent;
}
.subnav-link:hover { color: #CDEF00; border-bottom-color: #CDEF00; }

.maps-link { color: #0B3220; }
.maps-link:hover { color: #557a12; }

.parking-link { color: #CDEF00; }
.parking-link:hover { color: #F8F8F5; }

.route-btn {
  border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 28px;
  border-radius: 2px; transition: background 0.2s ease, color 0.2s ease;
  background: transparent; color: rgba(248,248,245,0.75);
}
.route-btn.is-active { background: #CDEF00; color: #0B3220; }

/* Desplegable de horarios de ejemplo (edición anterior) */
.horarios-summary {
  cursor: pointer; list-style: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase; color: #CDEF00;
  display: inline-flex; align-items: center; gap: 6px;
}
.horarios-summary::-webkit-details-marker { display: none; }
.horarios-summary::after { content: '▾'; }
details[open] .horarios-summary::after { content: '▴'; }

.archive-card { border: 2px dashed #D5D5CC; transition: border-color 0.2s ease; }
.archive-card:hover { border-color: #0B3220; }

/* ===== Footer ===== */
.site-footer { background: #051B12; color: rgba(248,248,245,0.75); padding: 70px 20px 30px; }
.site-footer__inner { max-width: 1240px; margin: 0 auto; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.site-footer__brand { max-width: 300px; }
.site-footer__brand img { width: 72px; height: auto; filter: drop-shadow(0 0 1px rgba(248,248,245,0.8)); }
.site-footer__brand p { margin: 16px 0 0; font-size: 14px; line-height: 1.6; }
.site-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.site-footer__col { flex: 1; min-width: 280px; }
.site-footer__label {
  margin: 0 0 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(248,248,245,0.5);
}
.tag-solid {
  border: 1px solid rgba(248,248,245,0.2); border-radius: 4px; padding: 14px 20px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #F8F8F5;
}
.tag-dashed {
  border: 1px dashed rgba(248,248,245,0.18); border-radius: 4px; padding: 9px 16px;
  font-size: 13px; color: rgba(248,248,245,0.55);
}
.site-footer__bottom {
  border-top: 1px solid rgba(248,248,245,0.12); margin-top: 50px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13px;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
