/* =====================================================
   III CRONOMETRADA VILLA DE POSADAS 2026
   Estilos específicos del evento
   Mobile First
   ===================================================== */

/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Menú hamburguesa */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

nav ul {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

nav ul.show {
  display: block;
}

nav li {
  border-bottom: 1px solid #eee;
}

nav li:last-child {
  border-bottom: none;
}

nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: background 0.2s;
}

nav a:hover {
  background: #f5f5f5;
}

/* =====================================================
   AVISO EVENTO ARCHIVADO
   ===================================================== */
body.evento-archivado {
  --header-offset: 60px;
}

.evento-archivo-aviso {
  position: sticky;
  top: var(--header-offset);
  z-index: 999;
  margin-top: var(--header-offset);
  background: #fff3cd;
  border-bottom: 2px solid #e6c200;
  color: #664d03;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.evento-archivo-aviso p {
  max-width: 920px;
  margin: 0 auto;
}

.evento-archivo-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #664d03;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.evento-archivo-aviso a {
  color: #006600;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.evento-archivo-aviso a:hover {
  color: #004d00;
}

/* =====================================================
   BANNER
   ===================================================== */
.evento-banner {
  margin-top: 0;
  width: 100%;
}

.evento-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   CONTENIDO PRINCIPAL
   ===================================================== */
.evento-main {
  padding: 1.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* =====================================================
   HEADER DEL EVENTO (Cartel + Info)
   ===================================================== */
.evento-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* CARTEL */
.evento-cartel {
  width: 100%;
}

.evento-cartel img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.evento-cartel img:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* INFO */
.evento-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.evento-fecha {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: #008000;
  font-weight: 700;
}

.evento-fecha .dia {
  font-size: 3rem;
  line-height: 1;
}

.evento-fecha .mes {
  font-size: 1.5rem;
  text-transform: uppercase;
}

.evento-fecha .año {
  font-size: 1.25rem;
  color: #666;
}

.evento-info h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
}

.subtitulo {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

.puntuable {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid #008000;
  border-radius: 0 8px 8px 0;
}

.puntuable li {
  font-size: 0.9rem;
  color: #444;
  padding-left: 1rem;
  position: relative;
}

.puntuable li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #008000;
  font-weight: bold;
}

.ubicacion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

.ubicacion svg {
  color: #008000;
  flex-shrink: 0;
}

/* =====================================================
   BOTONES DE INFORMACIÓN
   ===================================================== */
.botones-section {
  margin-top: 2rem;
}

.botones-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-evento {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-evento:hover {
  border-color: #008000;
  box-shadow: 0 2px 10px rgba(0,128,0,0.1);
}

.btn-evento svg {
  color: #008000;
  flex-shrink: 0;
}

.btn-texto {
  display: flex;
  flex-direction: column;
}

.btn-titulo {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
}

.btn-sub {
  font-size: 0.85rem;
  color: #888;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Control de visibilidad móvil/desktop */
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

/* =====================================================
   SECCIÓN TABLÓN DE ANUNCIOS
   ===================================================== */
.seccion-tablon {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.seccion-tablon h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.seccion-tablon h2 svg {
  color: #008000;
}

.tablon-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tablon-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.tablon-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.tablon-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #e8f5e8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablon-icon svg {
  color: #008000;
}

.tablon-info {
  flex: 1;
}

.tablon-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.tablon-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.tablon-tipo {
  font-size: 0.8rem;
  color: #008000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tablon-lista-destacada {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tablon-lista-imagen {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.tablon-lista-imagen h3 {
  padding: 1.25rem 1.25rem 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}

.tablon-lista-imagen > p {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.tablon-lista-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f7f9f7;
  cursor: pointer;
  position: relative;
}

.tablon-lista-preview:focus-visible {
  outline: 3px solid #008000;
  outline-offset: -3px;
}

.tablon-lista-preview img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.tablon-lista-preview:hover img,
.tablon-lista-preview:focus-visible img {
  opacity: 0.92;
}

.tablon-lista-ampliar {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #008000;
  text-align: center;
  background: #eef7ee;
  border-top: 1px solid #dceadc;
}

.tablon-card-compacto {
  margin-top: 0;
}

/* =====================================================
   SECCIÓN NOTICIAS
   ===================================================== */
.seccion-noticias {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.seccion-noticias h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.seccion-noticias h2 svg {
  color: #008000;
}

/* =====================================================
   SECCIÓN ACREDITACIONES
   ===================================================== */
.seccion-acreditaciones {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.seccion-acreditaciones h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.seccion-acreditaciones h2 svg {
  color: #008000;
}

/* =====================================================
   SECCIÓN MAPAS / PÚBLICO
   ===================================================== */
.seccion-mapas {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.seccion-mapas h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.seccion-mapas h2 svg {
  color: #008000;
}

.mapas-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mapa-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.mapa-card h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.mapa-card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

.mapa-card img {
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mapa-card img:hover {
  opacity: 0.9;
}

.seccion-noticias .mapa-card {
  cursor: pointer;
}

.btn-descargar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f5f5f5;
  color: #008000;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-descargar:hover {
  background: #e8f5e8;
}

/* =====================================================
   SECCIÓN TIEMPOS EN DIRECTO
   ===================================================== */
.seccion-tiempos {
  margin-top: 2rem;
}

.tiempos-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #008000 0%, #006600 100%);
  border-radius: 12px;
  color: white;
}

.tiempos-card svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.tiempos-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.tiempos-info p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.tiempos-info strong {
  color: white;
}

/* =====================================================
   MODAL PARA IMÁGENES
   ===================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-cerrar {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.modal-cerrar:hover {
  opacity: 0.7;
}

.modal-img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* =====================================================
   FOOTER (alineado con la página de inicio)
   ===================================================== */
footer {
  margin-top: 3rem;
  background: #2A2A2A;
  color: #B0B0B0;
  padding: 3rem 1rem 2rem;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer-content h4,
.footer-eventos h4,
.footer-contacto h4,
.footer-social h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 72px;
  width: auto;
  max-width: 360px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.footer-logo p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-eventos p {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.footer-eventos a {
  color: #B0B0B0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-eventos a:hover {
  color: #008000;
}

.footer-contacto p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-contacto svg {
  color: #008000;
  flex-shrink: 0;
}

.footer-contacto a {
  color: #B0B0B0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contacto a:hover {
  color: #008000;
}

.social {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.social a {
  width: 40px;
  height: 40px;
  border: 1px solid #505050;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0B0B0;
  transition: 0.3s;
}

.social a:hover {
  background: #008000;
  border-color: #008000;
  color: white;
}

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #404040;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #008000;
  font-weight: 500;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVE - TABLET (768px+)
   ===================================================== */
@media (min-width: 768px) {
  .navbar {
    padding: 1rem 2rem;
  }

  .logo img {
    height: 50px;
  }

  body.evento-archivado {
    --header-offset: 70px;
  }

  .evento-banner {
    margin-top: 0;
  }

  .evento-banner img {
    max-height: 250px;
  }

  .evento-main {
    padding: 2rem;
  }

  .evento-info h1 {
    font-size: 2rem;
  }

  .botones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tablon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .mapas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =====================================================
   RESPONSIVE - DESKTOP (1024px+)
   ===================================================== */
@media (min-width: 1024px) {
  /* Navbar horizontal */
  .menu-btn {
    display: none;
  }

  nav ul {
    display: flex !important;
    position: static;
    box-shadow: none;
    padding: 0;
    gap: 2rem;
  }

  nav li {
    border: none;
  }

  nav a {
    padding: 0.5rem 0;
    position: relative;
  }

  nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #008000;
    transition: width 0.3s;
  }

  nav a:hover {
    background: none;
  }

  nav a:hover::after {
    width: 100%;
  }

  body.evento-archivado {
    --header-offset: 100px;
  }

  /* Banner centrado en desktop */
  .evento-banner {
    margin-top: 0;
    display: flex;
    justify-content: center;
    background: #f5f5f5;
  }
  
  .evento-banner img {
    max-width: 550px;
  }

  /* Layout cartel + info lado a lado */
  .evento-header {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .evento-cartel {
    flex: 0 0 380px;
    max-width: 380px;
  }

  .evento-info {
    flex: 1;
    gap: 1.25rem;
  }

  .evento-info h1 {
    font-size: 2.25rem;
  }

  /* Mostrar botones en desktop dentro del info */
  .desktop-only {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .desktop-only .btn-inscritos {
    grid-column: 1 / -1;
  }

  .mobile-only {
    display: none;
  }

  /* Tablón de anuncios */
  .tablon-card {
    padding: 1.5rem;
  }

  /* Mapas más grandes */
  .mapas-grid {
    gap: 2rem;
  }

  .mapa-card h3 {
    font-size: 1.25rem;
  }

  /* Tiempos en directo */
  .tiempos-card {
    padding: 2rem;
  }

  .tiempos-info h3 {
    font-size: 1.25rem;
  }
}

/* =====================================================
   RESPONSIVE - DESKTOP GRANDE (1200px+)
   ===================================================== */
@media (min-width: 1200px) {
  .evento-cartel {
    flex: 0 0 420px;
    max-width: 420px;
  }

  .evento-info h1 {
    font-size: 2.5rem;
  }

  .desktop-only {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-only .btn-inscritos {
    grid-column: 1 / -1;
  }
}

/* =====================================================
   IV SLALOM — evento activo (hype y próximamente)
   ===================================================== */
body.evento-activo {
  --header-offset: 60px;
}

.evento-destacado-bar {
  margin-top: var(--header-offset);
  background: linear-gradient(90deg, #005500, #008000);
  color: #fff;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.evento-activo .evento-banner {
  margin-top: 0;
  position: relative;
  background: #f5f5f5;
}

.banner-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 3rem 1rem;
  color: #fff;
  text-align: center;
}

.banner-fallback.is-visible {
  display: flex;
}

.banner-fallback span {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.banner-fallback small {
  font-size: 1rem;
  opacity: 0.9;
}

.evento-tagline {
  font-size: 1.05rem;
  color: #444;
  font-weight: 500;
  margin: -0.25rem 0 0.75rem;
}

.evento-datos {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.evento-hora {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  font-size: 0.95rem;
}

.evento-hora svg {
  flex-shrink: 0;
  color: #008000;
}

.evento-organiza {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.evento-web {
  font-size: 0.9rem;
}

.evento-web a {
  color: #008000;
  font-weight: 600;
  text-decoration: none;
}

.evento-web a:hover {
  text-decoration: underline;
}

.evento-cartel {
  position: relative;
}

.cartel-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 280px;
  padding: 2rem;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 4px;
  text-align: center;
  color: #666;
}

.cartel-placeholder code {
  font-size: 0.85rem;
  background: #e8e8e8;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.evento-cartel.cartel-pendiente .cartel-placeholder {
  display: flex;
}

.seccion-hype {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.hype-intro {
  margin-bottom: 2rem;
}

.hype-intro p {
  color: #444;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hype-lead {
  font-size: 1.08rem;
}

.hype-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.hype-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  border-left: 4px solid #008000;
}

.hype-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.hype-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.65;
}

.btn-evento-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
}

.tablon-card-proximamente {
  cursor: default;
}

.tablon-card-proximamente:hover {
  transform: none;
  box-shadow: none;
  border-color: #e0e0e0;
}

.tablon-tipo-pending {
  background: #fff3cd;
  color: #664d03;
}

.aviso-proximamente {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 2rem;
  max-width: 640px;
}

.aviso-proximamente p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.aviso-proximamente-sub {
  font-size: 0.95rem;
  color: #666;
}

.redes-evento {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.redes-evento a {
  color: #008000;
  font-weight: 600;
  text-decoration: none;
}

.redes-evento a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  body.evento-activo {
    --header-offset: 70px;
  }

  .hype-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  body.evento-activo {
    --header-offset: 100px;
  }

  .desktop-only {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-only .btn-inscritos,
  .desktop-only .btn-piloto-dia {
    grid-column: span 1;
  }
}

/* =====================================================
   INSCRIPCIONES · PILOTO POR UN DÍA
   ===================================================== */
.seccion-inscripciones {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.inscripciones-aviso {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.inscripciones-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inscripciones-cartel {
  margin: 0 auto;
  max-width: 240px;
  width: 100%;
  line-height: normal;
}

.inscripciones-cartel img {
  width: 100%;
  height: auto;
  max-width: 240px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.inscripciones-cartel img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.inscripciones-cartel figcaption {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  padding: 0.5rem 0 0;
  line-height: 1.4;
}

.inscripciones-resumen h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.inscripciones-lead {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.inscripciones-lista {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inscripciones-lista li {
  padding: 0.65rem 0.85rem;
  background: #f9f9f9;
  border-left: 3px solid #008000;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.inscripciones-organiza {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

.btn-llamar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #008000;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-llamar:hover {
  background: #006600;
}

.btn-piloto-dia {
  border-color: #008000;
  background: #f8fff8;
}

.hype-card a {
  color: #008000;
  font-weight: 600;
}

.hype-card a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .inscripciones-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .inscripciones-cartel {
    flex: 0 0 220px;
    max-width: 220px;
    margin: 0;
  }

  .inscripciones-cartel img {
    max-width: 220px;
  }

  .inscripciones-resumen {
    flex: 1;
    min-width: 0;
  }
}