/* Estilos para el carrusel modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-contenido {
    background-color: #fefefe;
    padding: 10px;
    border: 1px solid #888;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Estilos para las imágenes del carrusel */
  .modal-contenido img {
    width: 100%;
    height: auto;
    display: none;
  }
  
  .modal-contenido img.activo {
    display: block;
  }
  
  /* Estilos para los botones de navegación */
  #btnAnterior,
  #btnSiguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: black;
    padding: 10px 15px;
    cursor: pointer;
  }
  
  #btnAnterior {
    left: 10px;
  }
  
  #btnSiguiente {
    right: 10px;
  }

  .cerrar {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover,
.cerrar:focus {
    color: black;
    text-decoration: none;
}

.imagen-modal {
    max-width: 100%; /* La imagen no excederá el ancho del contenedor */
    max-height: 100%; /* La imagen no excederá la altura del contenedor */
    cursor: pointer; /* Cambia el cursor al pasar sobre la imagen */
    transition: transform 0.3s ease; /* Agrega una transición suave al hacer zoom */
}

.imagen-modal:hover {
    transform: scale(1.1); /* Aplica un zoom del 110% al pasar sobre la imagen */
}

