/* ESTILOS ESPECÍFICOS DE MANEJO, RESPUESTA Y CONTROL DE EMERGENCIAS */

body { 
  font-family: Arial, sans-serif; 
  background-color: #f4f6f9; 
  margin: 0; 
  padding: 0; 
  opacity: 0; 
  animation: fadeInPagina 0.8s ease-out forwards; 
}

.encabezado { 
  background-color: #0d1b3e; 
  color: #ffffff; 
  padding-bottom: 25px; 
}

.titulo-categoria-header { 
  text-align: center; 
  padding-top: 15px; 
  margin: 0; 
}

.titulo-categoria-header h1 { 
  font-size: 2rem; 
  color: #ffffff; 
  margin: 0; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

.container-pagina { 
  max-width: 1000px; 
  margin: 40px auto; 
  padding: 30px; 
  background: #fff; 
  border-radius: 8px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

h2 { 
  color: #001e5e; 
  border-bottom: 3px solid #001e5e; 
  padding-bottom: 10px; 
  margin-top: 0; 
}

.lista-cursos { 
  list-style: none; 
  padding: 0; 
  margin-top: 20px; 
}

.lista-cursos li { 
  background: #f8f9fa; 
  margin-bottom: 10px; 
  padding: 12px 15px; 
  border-left: 4px solid #001e5e; 
  font-weight: 600; 
  border-radius: 0 4px 4px 0; 
}

.lista-cursos li i {
  color: #001e5e;
  margin-right: 8px;
}

/* LAYOUT LADO A LADO E IMAGEN CON EFECTO HOVER */
.seccion-flex { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  margin-bottom: 20px; 
}

.seccion-flex .texto-seccion { 
  flex: 1; 
}

.seccion-flex .img-seccion { 
  width: 320px; 
  max-width: 100%; 
  height: auto; 
  border-radius: 8px; 
  box-shadow: 0 3px 6px rgba(0,0,0,0.15); 
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.seccion-flex .img-seccion:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* BOTÓN DE WHATSAPP */
.boton {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 55px;
}

.boton a {
  display: inline-block;
  background-color: #001e5e;
  color: #ffffff;
  padding: 14px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0, 30, 94, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.boton a:hover {
  background-color: #25d366;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* PIE DE PÁGINA */
.pie {
  background-color: #0d1b3e;
  color: #ffffff;
  text-align: center;
  padding: 25px 20px;
  margin-top: 0;
}

.pie a {
  color: #64ffda;
  text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .seccion-flex { 
    flex-direction: column; 
    text-align: center; 
  }
  .seccion-flex .img-seccion { 
    width: 100%; 
  }
}

/* ANIMACIONES */
@keyframes fadeInPagina { 
  from { opacity: 0; transform: translateY(10px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.revelar { 
  opacity: 0; 
  transform: translateY(25px); 
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
  will-change: opacity, transform; 
}

.revelar.activo { 
  opacity: 1; 
  transform: translateY(0); 
}