body {
  background: linear-gradient(135deg, #fdfdfd 0%, #f5f5f5 100%);
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
} 

/* Tarjeta principal gigante (margen ajustado permanentemente para evitar superposición con header) */
.admision-container {
  max-width: 1000px;
  margin: 20px auto; /* Ajuste permanente para corrección */
  background: white;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(96,13,24,0.18);
  position: relative;
}

/* Cabecera con efecto brillo sutil (mejora: animación más lenta para elegancia) */
.admision-header {
  background: linear-gradient(135deg, #600d18 0%, #8b1125 100%);
  color: white;
  padding: 60px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.admision-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.06) 35px, rgba(255,255,255,0.06) 70px);
  animation: shine 24s linear infinite; /* Aumentado para sutileza */
}
@keyframes shine {
  0%   { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}
.admision-header h1 {
  font-size: 3.4rem;
  margin: 0;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}
.admision-header p {
  font-size: 1.5rem;
  margin-top: 15px;
  opacity: 0.96;
  position: relative;
  z-index: 2;
}

/* Contenido (mejora: padding uniforme para mejor flujo visual) */
.admision-content {
  padding: 55px 45px;
}

/* Bloques de información – Mejora: fade-in más rápido y escalado sutil */
.info-block {
  background: #f9f9f9;
  padding: 32px;
  border-radius: 20px;
  margin: 28px 0;
  border-left: 7px solid #b8911f;
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards; /* Reducido para fluidez */
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.info-block:nth-child(1) { animation-delay: 0.1s; }
.info-block:nth-child(2) { animation-delay: 0.15s; } /* Delays ajustados para rapidez */
.info-block:nth-child(3) { animation-delay: 0.2s; }
.info-block:nth-child(4) { animation-delay: 0.25s; }
.info-block:nth-child(5) { animation-delay: 0.3s; }

.info-block:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.info-block h3 {
  color: #600d18;
  font-size: 1.7rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.info-block h3 i {
  font-size: 2rem;
  color: #b8911f;
  transition: transform 0.3s ease;
}
.info-block:hover h3 i {
  transform: rotate(10deg);
}
.info-block ul {
  padding-left: 20px;
}
.info-block li {
  margin: 14px 0;
}
.info-block li::marker {
  color: #b8911f;
  font-weight: bold;
}

/* Estilos para elementos específicos de eventos (mejora: mejor accesibilidad en imágenes) */
.info-block img {
  display: block;
  margin: 25px auto 0;           /* centrado perfecto */
  max-width: 100%;               /* nunca desborda el contenedor */
  max-height: 500px;             /* límite razonable para que la página no se haga eterna */
  width: auto;           /* para que se ajuste al contenedor */
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.info-block img:hover,
.info-block img:focus { /* Mejora: focus state para accesibilidad */
  transform: scale(1.04);
  box-shadow: 0 15px 45px rgba(0,0,0,0.22);
  outline: 3px solid #b8911f;
}
.info-block .evento-fecha {
  font-weight: 700;
  color: #600d18;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}
.info-block:hover .evento-fecha {
  color: #8b1125;
}

/* Mejora para .no-eventos: Diferenciado con contorno dashed sutil, fondo atenuado y fade-in para integración profesional */
.no-eventos {
  text-align: center;
  padding: 50px; /* Espaciado aumentado para centrado visual */
  background: #f9f9f9; /* Fondo similar pero atenuado para diferencia */
  border: 2px dashed #b8911f; /* Contorno dashed para indicar "temporal/vacío" */
  border-radius: 20px; /* Consistencia con info-blocks */
  margin: 28px 0; /* Igual margen que info-blocks */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards; /* Fade-in sutil para fluidez */
}
.no-eventos i {
  color: #600d18;
  margin-bottom: 25px;
  font-size: 4rem; /* Tamaño ajustado para equilibrio */
  display: block; /* Centrado */
}
.no-eventos p {
  font-size: 1.3rem; /* Mayor legibilidad */
  color: #555;
  max-width: 80%; /* Centrado en móviles */
  margin: 0 auto;
}

/* Paginación – Mejora: botones más accesibles con focus states */
.paginacion {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn-paginacion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #b8911f, #e6c852);
  color: #600d18;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(184,145,31,0.4);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.btn-paginacion::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-paginacion:hover::before {
  width: 300px;
  height: 300px;
}
.btn-paginacion:hover,
.btn-paginacion:focus { /* Mejora: focus state */
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(184,145,31,0.6);
  color: #fff;
  outline: 2px solid #600d18;
}

/* Responsive (mejora: mayor flexibilidad en bloques para tablets) */
@media (max-width: 768px) {
  .admision-header h1 { font-size: 2.7rem; }
  .admision-header p { font-size: 1.3rem; }
  .admision-content { padding: 40px 25px; }
  .info-block { padding: 25px; } /* Reducido para móviles */
  .info-block h3 { font-size: 1.55rem; }
  .paginacion { gap: 15px; }
  .btn-paginacion { padding: 12px 24px; font-size: 1rem; }
  .no-eventos { padding: 40px; font-size: 1.2rem; } /* Ajuste para móviles */
  .no-eventos i { font-size: 3.5rem; }
}

@media (max-width: 992px) {
  /* Forzamos que se vea el menú aunque sea una sola opción */
  .nav-list {
    display: flex !important;
    justify-content: center;
    background: transparent;
  }

  /* El <li> y el <a> usan exactamente el estilo del menú principal */
  .nav-list > li > a {
    background: #b8911f;           /* mismo fondo dorado */
    color: white !important;       /* mismo texto blanco */
    padding: 18px 40px;            /* mismo padding que en PC */
    font-weight: 600;
    transition: all 0.3s ease;
  }

  /* Hover exactamente igual que en PC */
  .nav-list > li:hover > a,
  .nav-list > li > a:active {
    background: #600d18;
    color: #b8911f !important;
  }

  /* Ocultamos el botón hamburguesa porque no lo necesitamos */
  .menu-toggle { 
    display: none !important; 
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;

  display: none;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* =============================== */
/* CONTENEDOR MODAL – SIN ESCALA */
/* =============================== */
.modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-content img {
  all: unset;                /* ❗ elimina TODO CSS heredado */
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: none;
  transform: translate(0, 0) scale(1); /* 100% REAL */
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  transition: none;          /* ❗ elimina animaciones previas */
}

.close {
  position: fixed; /* Fija la X para que siempre esté visible, incluso con zoom */
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001; /* Por encima de la imagen */
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  outline: none;
}

.zoom-controls {
  position: fixed; /* Fijo en pantalla, no se mueve con scroll */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1001; /* Por encima de la imagen */
}

.zoom-controls button {
  background: #b8911f;
  color: #600d18;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.zoom-controls button:hover,
.zoom-controls button:focus { /* Mejora: focus state */
  background: #e6c852;
  transform: scale(1.1);
  outline: 2px solid #600d18;
}
