/* ================================================= */
/*  css/eventos.css – Diseño basado en admisiones.css*/
/*  Sin cambios en estilos existentes; removido solo lo no usado en eventos.php */
/*  Mejoras: Animaciones fade-in, hover fluidos y paginación dinámica */
/* ================================================= */

body {
  background: linear-gradient(135deg, #fdfdfd 0%, #f5f5f5 100%);
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
} 

/* Tarjeta principal gigante */
.admision-container {
  max-width: 1000px;
  margin: -100px auto;
  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 */
.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 18s linear infinite;
}
@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 */
.admision-content {
  padding: 55px 45px;
}

/* Bloques de información – Mejora: fade-in animation */
.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.6s ease forwards;
}
@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.2s; }
.info-block:nth-child(3) { animation-delay: 0.3s; }
.info-block:nth-child(4) { animation-delay: 0.4s; }
.info-block:nth-child(5) { animation-delay: 0.5s; }

.info-block:hover {
  transform: translateY(-8px) scale(1.02); /* Mejora: escalado sutil en hover */
  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; /* Mejora: rotación ligera en hover */
}
.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 mínimos agregados para elementos específicos de eventos, integrados sin alterar lo existente */
.info-block img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease; /* Mejora: animación en imagen */
}
.info-block img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.info-block .evento-fecha {
  font-weight: 700;
  color: #600d18;
  margin-bottom: 15px;
  transition: color 0.3s ease; /* Mejora: cambio de color sutil en hover del bloque */
}
.info-block:hover .evento-fecha {
  color: #8b1125;
}
.no-eventos {
  text-align: center;
}
.no-eventos i {
  color: #600d18;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite; /* Mejora: animación pulsante para icono de no eventos */
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Paginación – Nueva: con animaciones y estilo institucional */
.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 {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(184,145,31,0.6);
  color: #fff;
}

/* Responsive */
@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 h3 { font-size: 1.55rem; }
  .paginacion { gap: 15px; }
  .btn-paginacion { padding: 12px 24px; font-size: 1rem; }
}

@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 para imagen en pantalla completa */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Previene scroll en modal */
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Previene scroll innecesario */
}

.modal img {
  max-width: none; /* Permite zoom ilimitado y full screen */
  max-height: none;
  cursor: zoom-in;
  transition: transform 0.1s ease; /* Animación más rápida para drag fluido */
  touch-action: manipulation; /* Mejora táctil */
  object-fit: contain; /* Ajuste inicial para centrar */
}

.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;
}

.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 {
  background: #e6c852;
  transform: scale(1.1);
}