@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

body, html {
    overflow-x: hidden; /* Evitar el scroll horizontal */
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 16px;
    background-color: #fbe0fc; 
    color: #333; 
    font-family: 'Poppins', sans-serif;
}


.header {
    background-color: #fbe0fc; 
    padding: 10px 0px; 
    display: flex; 
    align-items: center; 
    background-image: url('.../img/banner_portfolio.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

.navbar {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    background-color: #203D3F
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    max-width: 100%; 

}

.navbar-brand {
    font-size: 24px;
    font-weight: 200;
    text-decoration: none;
    color: #2D2D2D;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 20px; 
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    display: inline-block;
}

.navbar-menu a {
    display: block; 
    padding: 3px 10px; 
    background-color: #203d3f; 
    color: #fbe0fc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center; 
}

.navbar-menu a:hover {
    background-color: #aad1be;
    color: #203d3f; 
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
}

.menu-icon {
    width: 30px;
    height: 2px;
    background-color: #2D2D2D;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: #2D2D2D;
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* Media query para más pequeñas */
@media (max-width: 768px) {
    .navbar-menu {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: #fbe0fc;
        position: absolute;
        top: 60px; 
        left: 0;
        padding: 3px 0;
    }

    .navbar-menu.active {
        display: flex; 
    }

    .menu-toggle {
        display: block; 
    }

    .navbar-menu li {
        margin: 10px 0;
    }

    .navbar-menu a {
        color: #ffffff;
        font-size: 16px;
    }
}

.presentación {
    justify-content: center; 
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    

}

h1 {
    color: #203d3f;
    font-weight: 200;
    text-align: center;
    font-size: 68px;
    margin-bottom: 5px;
    margin-top: 20px;
    width: 100%;  
    max-width: 100%;  
    letter-spacing: -2px;
}

h2 {
    color: #203d3f;
    font-weight: 600;
    text-align: center;
    font-size: 23px;
    margin-bottom: 0px;
}

h3 {
    color: #2a5051;
    font-weight: 400;
    text-align: center;
    margin-top: 2px;
}

h4{
    color: #203d3f;
    font-weight: 800;
    text-align: left;
    font-size: 30px;
    margin-top: 10%;
    margin-left: 15%;
}



h5{
    color: #2a5051;
    font-weight: 700;
    text-align: left;
    font-size: 19px;
    margin-bottom: 0px;
}

h6{
    color: #2e5859;
    font-weight: 400;
    text-align: center;
    font-size: 22px;
}

b{
    color: #2e5859;
    font-weight: 600;
}



.sobre-mi {
    display: flex;
    align-items: center; 
    padding: 10px;
    margin-left: 20%;

}

.text-content {
    max-width: 500px; 
    margin-left: 10%;
    text-align: left;
}

.img-mine {
    width: 20%; 
    height: auto;
    margin-right: 20px; 
    margin-left: 2%;
    border: 4px solid #203d3f;
}

@media (max-width: 768px) {
    .sobre-mi {
        flex-direction: column;
        align-items: center; 
        margin-left: 0%;
        margin-right: 0%;
        text-align: center;
    }

    .img-mine {
        width: 60%;
        max-width: none;
        align-items: center;
    }

    .text-content {
        max-width: 500px; 
        margin-left: 0%;
        text-align: center;
    }

    h4 {
        align-items: center;
        text-align: center; 
        width: fit-content; 
    }

    h5 {
        text-align: center; 
        margin: 18px auto; 
        width: fit-content; 
        
    }


}

.experiencia {
    display: flex;
    align-items: center; 
    padding: 0px;
    margin-left: 20%;

}

.detalle-experiencia {
    max-width: 500px; 
    margin-left: 10%;
    text-align: left;
    margin-top: 5%;
    align-items: center;
}
.linea-experiencia {
    max-width: 50%; 
    margin-right: 40px; 
    margin-left: 100px;
    margin-top: 3%;
}


@media (max-width: 768px) {
    .experiencia {
        flex-direction: column; 
        align-items: left; 
        margin-left: 0%;
        margin-right: 0%;
        text-align: left;
    }

    .linea-experiencia {
            display: none; 
    }


    .detalle-experiencia {
        max-width: 300px;
        margin-left: 0px;
        text-align: left;
        margin-top: 5%;
        align-items: left;
    }

    h4, h5, p {
        text-align: center; 
        align-items: center;
    }


}





/* Contenedor de la galería */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; 
    margin: 0 auto; 
    padding: 10px; 
    max-width: 71%;
}

/* Elementos de la galería */
.gallery-item {
    flex: 1 1 calc(25% - 5px); 
    margin: 5px; 
    cursor: pointer; 
    overflow: hidden; 
}

/* Imagen dentro del elemento de la galería */
.gallery-item img {
    width: 100%; 
    height: auto; 
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

/* Efecto de zoom */
.gallery-item img:hover {
    transform: scale(1.05); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

/* Estilos para la vista modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 10px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* Contenedor de la galería */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; 
    margin: 0 auto; 
    padding: 10px; 
    max-width: 71%;
}

/* Elementos de la galería */
.video-item {
    flex: 1 1 calc(25% - 10px); 
    margin: 5px;
    cursor: pointer; 
    overflow: hidden; 
}

/* Miniatura dentro del elemento de la galería */
.video-item img {
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

/* Efecto de zoom al pasar el ratón sobre la miniatura */
.video-item img:hover {
    transform: scale(1.05); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

/* Estilos para la vista modal (opcional, si decides usar modal para los videos) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 10px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #aad1be;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #2e5859;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-item, .video-item {
        flex: 1 1 calc(50% - 10px); 
    }

}


.habilidades {
    display: flex;
    align-items: center; 
    padding: 0px;
    margin-left: 20%;

}

.text-content-3 {
    max-width: 100%; 
    margin-left: 0%;
    text-align: left;
}


@media (max-width: 768px) {
    .habilidades {
        flex-direction: column; 
        align-items: center; 
        margin-left: 0%;
        margin-right: 0%;
        text-align: center;
    }


    .text-content-3 {
        max-width: 300px; 
        margin-left: 0%;
        text-align: center;
    }

    h4 {
        align-items: center;
        text-align: center; 
        width: fit-content; 
    }

    h5 {
        text-align: center; 
        margin: 18px auto; 
        width: fit-content; 
        
    }


}

.gracias {
    align-items: center; 
    padding: 0px;

}

@media (max-width: 768px) {
    .gracias {
        flex-direction: column; 
        align-items: center; 
        margin-left: 0%;
        margin-right: 0%;
        text-align: center;
    }


   h6 {
        max-width: 460px; 
        margin-left: 0%;
        text-align: center;
        align-items: center;
        width: fit-content;
        text-align: center; 
        margin: 18px auto; 
        width: fit-content;
        font-size: 18px;
    }




}


.icons-contactame {
    list-style: none; 
    padding: 0;
    margin: 0;
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-right: 20px;
}

.icons-contactame li {
    display: inline-block;
}

.icons-contactame img {
    width: 65px; 
    transition: transform 0.3s ease; 
}

.icons-contactame img:hover {
    transform: scale(1.2); 
}




footer{
    background-color: #203d3f;
    width: 100%;
    height: 40vh;
    margin: 0;
    padding: 0;
    color: #fbe0fc;
    margin-top: 5%;
}

.piecito {
    display: flex;
    justify-content: left;
    padding: 10px;
    margin-left: 0%;
    margin-right: 0%;
    gap: 60%;
    align-items: baseline;

}

.img-nombre {
    width: 190px; 
    height: auto; 
    margin-right: 10px; 
    margin-left: 60px;
    align-items: left;
    margin-top: 30px;
}

.img-icons {
    list-style: none; 
    padding: 0;
    margin: 0;
    display: flex; 
    justify-content: right;
    gap: 10px; 
    margin-right: 0%;
}

.img-icons li {
    display: inline-block;
}

.img-icons img {
    width: 45px; 
    transition: transform 0.3s ease;
}

.img-icons img:hover {
    transform: scale(1.2); 
}

.copyright {
    margin-top: 60px;
text-align: center;
}

@media (max-width: 768px) {
    .piecito {
        flex-direction: column; 
        align-items: center; 
        margin-left: 0%;
        margin-right: 0%;
        text-align: center;
    }

    .img-nombre {
        max-width: 500px; 
        margin-bottom: 20px;
        margin-top: 0%;
        align-items: center;
        margin-left: 0%;
    }

    .imag-icons {
        margin-top: 10%;
        max-width: 500px; 
        margin-left: 0%;
        text-align: center;
    }

    .copyright {
        margin-top: 10px;
    text-align: center;
    font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}

#scroll-to-top {
    position: fixed;
    bottom: 20px; 
    right: 20px;  
    background-color: #ffffff; 
    color: #000000; 
    border: 2px solid #000000;
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

#scroll-to-top:hover {
    background-color: #adadad;
}

/* Mostrar el botón solo cuando se hace scroll */
#scroll-to-top.show {
    opacity: 1;
}



body {
  --sb-track-color: #fbf0fc;
  --sb-thumb-color: #2a5051;
  --sb-size: 10px;
}

body::-webkit-scrollbar {
  width: var(--sb-size)
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 1px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 1px;
  
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}
