* {
    margin: 0;
    padding: 0;
    font-family: montserrat;
}

html,
body {
    height: 100%;
}

body {
    overflow: hidden;
    display: flex;
    perspective: 1000px;
    transform-style: preserve-3d;

    background-image: url('../images/fondo1.jpg');
    background-size: cover;
    background-position: center;
}

#drag, #spin {
    position: absolute;
    top: 50%;
    left: 47%;
    transform: translate(-50%, -50%);
    display: flex;
    transform-style: preserve-3d;
    transform: rotateX(-10deg);
    margin-top: -5%;

    
}

#drag img {
    transform-style: preserve-3d;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    line-height: 200px;
    text-align: center;
    box-shadow: 0 0 8px #fff;
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0005);
    cursor: pointer;

}

#ground {
    width: 900px;
    height: 900px;
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translate(-50%, -50%) rotateX(90deg);
}

@keyframes spin {

    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }

}

@keyframes spinRevert {

    from {
        transform: rotateY(360deg);
    }

    to {
        transform: rotateY(0deg);
    }

}

@keyframes slowSpin {
    from {
        transform: rotateY(360deg);
    }
    to {
        transform: rotateY(0deg);
    }
}

/* Añade esta clase a tu CSS */
.spin-slowly {
    animation: slowSpin 90s linear infinite;
}

.encabezado {
    margin: auto;
    display: block;
}

.titulo-pagina {
    
    font-weight: 600;
    line-height: 67.05px;
    text-align: center;
    height: 67px;
    margin: auto; /* Centra horizontalmente */
    display: block; /* Asegura que el elemento sea de nivel bloque */
    margin-right: -10%;
}

.titulo-pagina h3 {
    font-family: Montserrat;
    font-size: 55px;
    margin-top: -250px;
}

.titulo-pagina .pagination {
    margin-left: 15%;
}

.flecha3D {
    width: auto;
    height: 100%;
 
}

.flecha3D img {
    margin-bottom: -50%;
    width: 1000px;
}

/* estilos para el modal */

/* Estilos para el modal */
.modal {
    display: none;
    /* Oculta el modal por defecto */
    position: fixed;
    /* Permite que el modal flote sobre el contenido de la página */
    z-index: 1;
    /* Ubica el modal por encima del resto del contenido */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Permite desplazar el contenido del modal si es demasiado largo */
    background-color: rgba(0, 0, 0, 0.9);
    /* Fondo oscuro semi-transparente */
}

/* Estilos para el contenido del modal */
.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    /* Coloca los elementos en fila */
    /* padding: 20px; */
}

/* Estilos para la imagen dentro del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-image: url(../images/fondo1.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 40px 40px 40px 40px;
    width: 1309px;
    height: 706px;
    flex-shrink: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
}


.imagen-modal {
    width: 10%;
}


#modalImg {
    /* margin: auto; */
    display: block;
    max-width: 100%;
    max-height: 100%;
    animation-name: zoom;
    animation-duration: 0.6s;
    width: 60%;
    height: 100%;
    margin-top: auto;
    margin-left: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-bottom: auto;
    border-radius: 40px 0 0 40px;
}


#imgDetails {
    flex: 1;
    padding-left: 20px;
    margin-left: 0;
    text-align: center;
}

#imgDetails2 {
    flex: 1;
    padding-left: 20px;
    text-align: center;
    margin-left: -60%;
    margin-top: 41%;
}

#imgTitle {
    font-size: 40px;
    color: #00708C;
    width: 594px;
    height: 49px;
    top: 370px;
    left: 729px;
    gap: 0px;
    opacity: 0px;
    margin-left: 19%;
}

#imgDescription {
    font-family: Montserrat;
    font-size: 25px;
    font-weight: 380;
    line-height: 28.04px;
    text-align: justified;
    width: 73%;
    height: auto;
    top: 445px;
    left: 727px;
    gap: 0px;
    opacity: 0px;
    margin-left: 0%;
    margin-top: -34%;
    margin-bottom: auto;
    line-height: 1.5;
}

#imgDate {
    font-family: Montserrat;
    font-size: 35px;
    font-weight: 700;
    line-height: 28.04px;
    text-align: justified;
    color: #00708C;
    margin-left: 20%;
    margin-top: -13%;
    width: 77%;
    line-height: 1.5;
}

.botones {
    display: flex;
    justify-content: flex-end;
    /* Alinea los elementos al extremo derecho */
    align-items: flex-end;
    /* Alinea los elementos en la parte inferior */
    position: absolute;
    /* Posición absoluta para estar en la esquina */
    bottom: 30px;
    /* Alinea la parte inferior del contenedor con el borde inferior del padre con un margen de 20px */
    right: 40px;
    /* Alinea la parte derecha del contenedor con el borde derecho del padre con un margen de 20px */
}

.botones button {
    width: 55px;
    /* Establece el ancho del botón */
    height: 55px;
    /* Establece la altura del botón */
    background-color: transparent;
    /* Establece el fondo transparente */
    border: none;
    /* Quita el borde */
    border-radius: 50%;
    /* Hace que el botón tenga forma circular */
    cursor: pointer;
    /* Cambia el cursor al pasar sobre el botón */
    outline: none;
    /* Quita el contorno al hacer clic */
    padding: 0;
    /* Quita el relleno */
    background-repeat: no-repeat;
    /* Evita que la imagen de fondo se repita */
    background-position: center;
    /* Centra la imagen de fondo dentro del botón */
    margin-left: 30px;
}

.botones button.left {
    background-image: url('../iconos/ui/vector-verde.svg');
    /* Establece la imagen como fondo del botón */
    background-size: 55px 55px;
}

.botones button.right {
    background-image: url('../iconos/ui/vector-verde.svg');
    background-size: 55px 55px;
    transform: rotate(180deg); /* Gira la imagen 90 grados en sentido horario */
}

.cerrar {
    display: flex;
    justify-content: flex-end;
    /* Alinea los elementos al extremo derecho */
    align-items: flex-end;
    /* Alinea los elementos en la parte inferior */
    position: absolute;
    /* Posición absoluta para estar en la esquina */
    top: 9px;
    /* Alinea la parte inferior del contenedor con el borde inferior del padre con un margen de 20px */
    right: 2px;
    /* Alinea la parte derecha del contenedor con el borde derecho del padre con un margen de 20px */

}

.close {
    /* background-color: #00708C; */
    float: right;
   
    /* font-weight: bold; */
    border-radius: 50%;
    margin-right: 17%;
    margin-top: 6%;

    background-image: url('../iconos/ui/close-circle-verde.svg');
    /* z-index: 100; */
    /* background-size: cover; */
background-repeat: no-repeat;
    width: 55px;
    height: 55px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



@media (max-width: 1550px){

    .titulo-pagina h3 {
        font-family: Montserrat;
        font-size: 35px;
        margin-top: -200px;
    }

    .flecha3D img {
        margin-bottom: -40%;
        width: 1000px;
    }

}