body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}


h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

.description {
    font-family: 'Open Sans', sans-serif;
}



/* DATA PERSONAL */
.carousel-item {
    padding: 20px;
    background-color: #f8f9fa; /* Fondo claro para ver el contenido */
    border: 1px solid #dee2e6; /* Borde alrededor del slide */
    
}



/* CARRUSEL DE PROYECTOS */
/* .dark {
    background-image: url('../img/s.webp');
} */

.carro {
    width: 100%;
    display: flex;
    justify-content: center;
   /*  flex-wrap: wrap; Permite que los elementos se envuelvan en varias líneas */
    gap: 10px;
    position: relative;
    margin: 0 auto; /* Centra el contenedor horizontalmente */
}

.carro > div {
    flex: 1 1 calc(25% - 10px); /* Ajusta el tamaño de los elementos en una fila de 4 columnas */
    border-radius: 0.5rem;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    box-shadow: 1px 5px 15px #1e0e3e;
    position: relative;
    overflow: hidden;
    min-width: 120px; /* Tamaño mínimo para evitar que se colapsen demasiado */
}

.carro > div:nth-of-type(1) {
    background: url('../img/php.2.jpg') no-repeat 50%/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(2) {
    background: url('../img/postgreSQL.jpg') no-repeat 50%/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(3) {
    background: url('../img/apirest.jpg') no-repeat 50%/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(4) {
    background: url('../img/image.png') no-repeat center/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(5) {
    background: url('../img/react.png') no-repeat 50%/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(6) {
    background: url('../img/noode.jfif') no-repeat center/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(7) {
    background: url('../img/angular.jpg') no-repeat 50%/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(8) {
    background: url('../img/java.png') no-repeat center/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div:nth-of-type(9) {
    background: url('../img/js.jfif') no-repeat 50%/cover;
    background-color: rgba(0, 0, 0, 0.7);
}

.carro > div .content {
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 15px;
    opacity: 0;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(2, 2, 46, 0.6755) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateY(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
    visibility: hidden;
    overflow: hidden;
}

.carro > div .content span {
    display: block;
    margin-top: 5px;
    font-size: 1.1rem;
}

.carro > div:hover {
    flex: 1 1 calc(50% - 10px); /* Ajusta el tamaño al hacer hover */
    box-shadow: 1px 3px 15px #7645d8;
    transform: translateY(-30px);
}

.carro > div:hover .content {
    opacity: 1;
    background-size: 120%; /* Efecto de zoom */
    transform: translateY(0%);
    visibility: visible;
}

@media (max-width: 1024px) {
    .carro > div {
        flex: 1 1 calc(33.33% - 10px); /* Ajusta el tamaño en pantallas medianas */
    }

    .carro > div:hover {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .carro > div {
        flex: 1 1 calc(50% - 10px); /* Ajusta el tamaño en pantallas pequeñas */
    }

    .carro > div:hover {
        flex: 1 1 calc(100% - 10px);
    }
}

@media (max-width: 480px) {
    .carro > div {
        flex: 1 1 calc(100% - 10px); /* Ajusta el tamaño en pantallas muy pequeñas */
    }

    .carro > div:hover {
        transform: translateY(-10px);
    }
}


#span2 {
    font-size: 16px;
}

#tamanio {
    width: 500px;
    height: 300px;
}

/* Contenedor del carrusel centrado */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Ajusta esta altura según tu diseño */
    background-color: #e60e0e; /* Fondo del contenedor, opcional */
}

/* Centrar y tamaño del carrusel */
#carouselExampleInterval {
    width: 80%; /* Ajusta el ancho según sea necesario */
    max-width: 800px; /* Máximo ancho del carrusel */
    margin: 0 auto; /* Centramos el carrusel horizontalmente */
}

/* Estilos de los elementos del carrusel */
.carousel-item img {
    transition: transform 0.3s ease-in-out;
}

.carousel-item img:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
}

/* Control de navegación del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    border-radius: 50%; /* Hacer los controles redondos */
    padding: 10px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Fondo más oscuro al pasar el cursor */
}

#carousel {
    width: 100%; /* Hacer que el contenedor ocupe el 100% del ancho */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.imag-ca {
    width: 300px;
}

#phpCarousel {
    background-image: url('../img/lala.jpg');
    background-position: center;
    background-size: cover; /* O puedes usar cover, dependiendo de cómo quieras que se ajuste la imagen */
    background-color: rgba(0, 0, 0, 0.7);
}

/* MEDIAS QUERYS */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .main-content h2 {
        font-size: 20px;
    }

    .main-content p {
        font-size: 14px;
    }

    .profile-container {
        flex-direction: column;
        align-items: center;
    }

    .description {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .image-container img {
        width: 200px;
        height: 200px;
    }

    footer .container {
        flex-direction: column;
        align-items: center;
    }

    footer .container > div {
        margin: 20px 0;
    }
}


/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Medias querys de certificados */


.spotify-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.spotify-container iframe {
    flex: 1 1 30%; /* Ajusta el tamaño de los iframes para que se ajusten dentro del contenedor */
    min-width: 300px; /* Tamaño mínimo para iframes */
    max-width: 400px; /* Tamaño máximo para iframes */
}


#logoheader {
    width: 100%;
    height: 300px; /* Ajusta la altura del banner según necesites */
    display: flex;
    justify-content: center;
    object-fit: cover;
    overflow: hidden; /* Para asegurarte de que la imagen se recorte si es necesario */
}

#logoheader img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto asegura que la imagen se cubra sin distorsionarse */
    object-position: 0 75%; /* Mueve la imagen hacia arriba */

}

.img-card{
    width: 80%;
    height: 400px; /* Ajusta la altura de la imagen según necesites */
    object-fit: cover; /* Esto asegura que la imagen se cubra sin distorsionarse */
    object-position: center; /* Centra la imagen dentro del contenedor */
}