@font-face {
    font-family: "League-Spartan";
    src: url("./Fonts/LeagueSpartan-VariableFont_wght.woff2") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Lexend";
    src: url("./Fonts/Lexend-VariableFont_wght.woff2") format("truetype");
    font-weight: normal;
    font-style: normal;

    font-family: "Lexend";
    src: url("./Fonts/Lexend-ExtraLight.woff2") format("truetype");
    font-weight: lighter;
    font-style: normal;
}



/* móvil -- BASE*/


body {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background-color: #000;
}

h1 {
    position: absolute;
    left: -9999px;
}

.navBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2em 2em;

    position: fixed;
    width: 100%;
    top: 0;

    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}


.toggle {
    font-size: 2em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu {
    position: fixed;
    top: -20px;
    right: 0;
    height: 100vh;
    width: 220px;
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);

    padding: 80px 20px;
    list-style-type: none;

    transform: translateX(100%);
    transition: transform 0.4s ease;

    z-index: 1500;
}


.menu.active {
    transform: translateX(0);
}

.menu li {
    font-size: 1.5em;
    font-family: "League-Spartan";
    margin: 1.5em 0;
    border: none;
}

.menu a {
    color: #aaa;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.menu a:hover {
    color: #fff;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #19ab2a;
    transition: 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

.logo img {
    max-width: 50px;
    margin-right: 50px;
}

#Home {
    margin-top: 10em;
}

.datos {
    display: flex;
    flex: 1;
    justify-content: right;
    align-items: center;
    margin: 0px;
    padding: 0px;
    height: 550px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(./Media/PP.webp);
    background-size: cover;
    background-position: 25% 50%;

}

.content-pp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0em 2em 0em 0em;
}

.info-contact {
    display: flex;
    flex-direction: column;
    color: #fff;
    margin-bottom: 8em;
}

.name {
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content: right;
    font-size: 6em;
    font-weight: 100;
    font-family: "League-Spartan", sans-serif;
}

.subName {
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content: right;
    font-size: 5em;
    font-family: "League-Spartan", sans-serif;
}

.profesion {
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content: right;
    font-size: 2.5em;
    font-family: "Lexend", sans-serif;
}

.contact-buton {
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: transparent;
    color: #fff;
    padding: 1em;
    border-radius: 50px;
    border: solid 2px #fff;
    font-size: 1.5em;
    left: 0%;
    text-decoration: none;
    font-family: "Lexend";
}

.contact-buton:hover {
    border: solid 2px #19ab2a;
}

footer {
    margin-bottom: 0.2em;
    display: flex;
    flex-direction: column;
}

.content-redes {
    display: flex;
    gap: 1.3em;
    margin-left: 1.2em;
}

footer img {
    width: 2.3em;

}

.copyright {
    display: flex;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-family: "lexend";
    font-size: 15px;
}

/*-----------------------ABOUT------------------------------*/

#About-me {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-me {
    display: flex;
    align-items: center;
    width: 45%;
    margin: 3em 0em 0em 1em;
    color: #fff;
    font-size: 2.5em;
    font-family: "League-spartan";
    border-bottom: solid 4px #19ab2a;
}

.text-aboutMe {

    color: #fff;
    font-family: "Lexend";
    padding: 1em 2em 0em 2em;
    text-align: justify;
}

.content-image {
    margin: 50px 0px 0px 0px;
}

.content-image img {
    width: 25em;
    object-fit: cover;
}

h3 {
    margin: 50px 0px 20px 0px;
    color: #fff;
    font-size: 1.8em;
    font-family: "League-spartan";
}

/*--------------------------------------Section portfolio-------------------------------------*/

#portfolio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0px 0px 100px 0px;
}

.web-sites {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 10px 0px 10px 0px;
}

.web-site {

    display: flex;
    flex-direction: column;
    padding: 1em;
    background-color: #161616;
    border-radius: 25px;
    margin: 0px;
}

.web-site img {
    width: 23em;
    border-radius: 20px;
}

.web-site p {
    display: flex;
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-size: 1.2em;
    font-weight: 100;
    justify-content: center;
    align-items: center;
}

.link-page {
    text-decoration: none;
}

.web-site:hover {
    background-color: #161616;
    opacity: 0.7;
    transform: translateY(-10px);
    transition: ease 0.4s;
}

.skills {
    display: flex;
    justify-content: left;
    text-align: center;
    gap: 8px;
}

.skills img {
    max-width: 20px;
    border-radius: 0px;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease;
}


.slide {
    min-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 0.95;
    transition: opacity 0.3s, transform 0.3s;
}

.slide.active {
    opacity: 1;
    transform: scale(1.02);
}


.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    /* tamaño táctil real */
    height: 44px;

    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 20px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    backdrop-filter: blur(8px);

    z-index: 10;
}


.prev {
    left: 12px;
}

.next {
    right: 12px;
}


.nav:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.8);
}


.dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.dots span.active {
    background: white;
    width: 22px;
    border-radius: 10px;
}

.carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
    pointer-events: none;
}

/* tablet */
@media (min-width: 768px) {}

/* laptop */
@media (min-width: 1024px) {


    .toggle {
        display: none;
    }

    .menu {
        position: static;
        transform: none;
        height: auto;
        width: auto;
        display: flex;
        gap: 20px;
        background: transparent;
        padding: 0;
    }

    .menu li {
        margin: 0;
        background: transparent;
        font-size: 1.3em;
    }

    .logo img {
        max-width: 50px;
    }

    .datos {
        display: flex;
        position: relative;
        background-position: 50% 50%;
    }

    .content-pp {
        position: absolute;
        right: 10%;
    }

    .name {
        font-size: 8em;
    }

    .subName {
        font-size: 7em;
    }

    .profesion {
        font-size: 4.5em;
    }

    .contact-buton {
        margin-bottom: 80px;
    }

    #About-me {
        flex-direction: row;
        gap: 30px;
    }

    .about-me {
        width: 20%;
        margin: 3em 0em 0em 3em;
    }

    .text-aboutMe {
        width: 50%;
        font-size: 1.2em;
    }

    .content-image {
        margin: 50px 0px 0px 0px;
    }

    .content-image img {
        width: 30em;
        object-fit: cover;
    }

    .web-sites {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .web-site img {
        width: 40em;
        border-radius: 20px;
    }

    .skills {

        gap: 8px;
    }

    .skills img {
        max-width: 30px;
        border-radius: 0px;
    }


    .carousel {
        overflow: visible;
        max-width: 1200px;

    }

    .carousel-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        transform: none !important;
    }

    .carousel-track img {
        border-radius: 20px;
    }


    .slide {
        min-width: auto;
        width: 100%;
        cursor: pointer;
        transition: transform 0.3s;
    }

    .slide:hover {
        transform: scale(1.05);
    }

    .nav,
    .dots {
        display: none;
    }

    footer{
        flex-direction: row;
        justify-content: space-between;
    }

    .copyright {
        margin-right: 1em;
        align-items: center;
        font-size: 15px;
    }

}



/* desktop */
@media (min-width: 1280px) {}