 body {
     background-image: url('imax/difbody.jpg');
     background-size: cover;
     background-position: center;
     background-attachment: fixed;
     background-repeat: no-repeat;
 }


 .carousel-content {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     text-align: center;
     color: white;
 }


 .carousel-container {
     max-width: 500px;
     /* ancho controlado */
     height: 250px;
     overflow: hidden;
     border-radius: 12px;
 }

 .carousel-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     /* recorta sin deformar */
     opacity: 0.7;
 }

 .carousel-img:hover {
     opacity: 0.9;
 }

 .footer-dif {
     background-color: #e11d48;
     /* azul institucional oscuro */
 }

 .ejes-card {
     background: #ffffff;
     padding: 30px;
     border-radius: 15px;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     transition: 0.3s;
     border-bottom: 5px solid #e11d48;
     /* rosa DIF */
 }

 .ejes-card:hover {
     transform: translateY(-8px);
 }

 .lightbox {
     display: none;
     position: fixed;
     z-index: 9999;
     padding-top: 50px;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.9);
 }

 .lightbox-content {
     margin: auto;
     display: block;
     max-width: 90%;
     max-height: 80vh;
     border-radius: 10px;
 }

 .close {
     position: absolute;
     top: 20px;
     right: 40px;
     color: white;
     font-size: 40px;
     cursor: pointer;
 }

 @media (max-width: 768px) {
     .carousel-item {
         height: 250px;
     }
 }

 .gallery-img,
 .carousel-item img {
     transition: transform 0.5s ease, opacity 0.5s ease;
     cursor: pointer;
 }

 .gallery-img:hover,
 .carousel-item img:hover {
     transform: scale(1.08);
     opacity: 0.9;
 }

 .lightbox-content {
     animation: zoom 0.3s ease;
 }

 @keyframes zoom {
     from {
         transform: scale(0.7);
         opacity: 0;
     }

     to {
         transform: scale(1);
         opacity: 1;
     }
 }
 #lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000; /* Para que siempre esté arriba */
}
h2 {
    color: #e11d48;
    font-weight: 700;
}
#galeria h2::after {
    content: "";
    width: 500px;
    height: 3px;
    background: #e11d48;
    display: block;
    margin: 8px auto;
}
p {
    transition: color 0.3s ease;
}

 .p {
   color: black;
    font-family: Arial, Helvetica, sans-serif;
    
    font-style: italic;
}
.destacado {
    color: #e11d48; /* rosa DIF */
    font-weight: 600;
}
.logo {
width: 150px;
height:150px ;
}