/* Estilos específicos para página de maestría individual */
.hero-maestria {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-maestria h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-maestria p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content {
  
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  background-color: transparent !important; /* Fuerza transparencia */
  box-shadow: none !important; /* Elimina sombras */
  padding: 0; /* Opcional: ajusta si necesitas espacio */
}

.introduccion-maestria {
  padding: 22rem 0;
  background-color: #f8f9fa;
}

.intro-content {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.intro-text {
  flex: 1;
}

.intro-text h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.intro-image {
  flex: 1;
}

.intro-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.botones-descarga {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-descarga {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-descarga {
  background-color: var(--primary-color);
  color: white;
}

.btn-formulario {
  background-color: #28a745;
}

.btn-descarga:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

/* Plan de Estudios */
.plan-estudios {
  padding: 4rem 0;
  background-color: white;
}

.plan-estudios h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 3rem;
}

.materias-seccion {
  margin-bottom: 4rem;
}

.materias-seccion h3 {
  color: #333;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
/* Estilos para las imágenes del plan de estudios */
.plan-imagen-grande {
    text-align: center;
    margin: 20px auto;
    max-width: 900px;
}

.imagen-plan {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.imagen-plan:hover {
    transform: scale(1.02);
}

.leyenda-imagen {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Estilos del Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-contenido {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin: 50px auto;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

.cerrar-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.cerrar-modal:hover {
    color: #ff0000;
    transform: rotate(90deg);
}

.botones-modal {
    text-align: center;
    margin-top: 20px;
}

.btn-cerrar-modal {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-cerrar-modal:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-contenido {
        max-width: 95%;
        max-height: 70vh;
        margin: 60px auto;
    }
    
    .cerrar-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .btn-cerrar-modal {
        padding: 8px 20px;
    }
}
.leyenda-imagen {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Estilos del Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-contenido {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin: 50px auto;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

.cerrar-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.cerrar-modal:hover {
    color: #ff0000;
    transform: rotate(90deg);
}

.botones-modal {
    text-align: center;
    margin-top: 20px;
}

.btn-cerrar-modal {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-cerrar-modal:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-contenido {
        max-width: 95%;
        max-height: 70vh;
        margin: 60px auto;
    }
    
    .cerrar-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .btn-cerrar-modal {
        padding: 8px 20px;
    }
}
.leyenda-imagen {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Lightbox Override */
.lightbox-overlay {
  background: rgba(0, 0, 0, 0.9) !important;
}

.lightbox-image {
  max-height: 90vh !important;
}

.lightbox-container {
  padding: 20px;
}

.leyenda-imagen {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .materias-seccion {
    margin-bottom: 3rem;
  }
  
  .plan-imagen-grande {
    padding: 0 1rem;
  }
}

.plan-estudios h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 3rem;
}

.plan-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.materias-obligatorias,
.materias-optativas {
  flex: 1;
  min-width: 300px;
}

.materias-obligatorias h3,
.materias-optativas h3 {
  color: #333;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.plan-image-text {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.plan-image-text img {
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.materias-lista {
  flex: 1;
}

.materias-lista ul {
  list-style-type: none;
  padding: 0;
}

.materias-lista li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: center;
}

.materias-lista li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Perfiles */
.perfiles-maestria {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.perfil-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.perfil-card h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perfil-content {
  display: flex;
  gap: 2rem;
}

.perfil-text {
  flex: 2;
}

.perfil-text p,
.perfil-text ul,
.perfil-text ol {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.perfil-text li {
  margin-bottom: 0.5rem;
}

.perfil-text h4 {
  color: #555;
  margin: 1.5rem 0 1rem;
}

.perfil-image {
  flex: 1;
  min-width: 250px;
}

.perfil-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .intro-content,
  .perfil-content {
    flex-direction: column;
  }
  
  .plan-image-text {
    flex-direction: column;
  }
  
  .plan-image-text img {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
  
  .perfil-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-maestria {
    min-height: 40vh;
    padding: 3rem 1rem;
  }
  
  .botones-descarga {
    flex-direction: column;
  }
  
  .btn-descarga {
    justify-content: center;
  }
}