* {
    margin: 0;
}

:root {
    --primary-color: rgb(15, 15, 15);
    --dark-blue: rgb(19, 43, 50);
    --orange-code: rgb(200, 90, 15);

    --primary-light: rgb(243, 236, 214);
    --secondary-light: rgb(207, 197, 160);
    --hover-light: rgb(227, 227, 227);
}

body {
    background-color: rgb(0, 0, 0);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}

/* ---- CLARO-OSCURO ---- */
.claro1,
#herramientas.claro1,
footer.claro1 {
    background-color: var(--primary-light);
    color: black;
}

.claro2,
#proyectos.claro2,
.herramientas .container.claro2 {
    background-color: var(--secondary-light);
    color: black;
}

nav.claro2 li:hover {
    background-color: var(--hover-light);
}

nav.claro2 #contrast {
    fill: black;
}

.dark-logo {
    fill: white;
}

.dark-logo.claro {
    fill: black;
}

/*---- NAV ----*/
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2rem;
    padding-right: 3rem;
    /*
    background: linear-gradient(
            black,
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.5));
    */
    background-color: black;
}

#nav-nombre a {
    text-decoration: none;
    color: currentColor;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange-code);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav li {
    padding: 20px;
    margin-right: 3rem;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 500;
}

nav li:hover {
    border-radius: 5px;
    transform: scale(1.05);
    background-color: var(--primary-color);
}

nav li a {
    text-decoration: none;
    color: currentColor;
}

nav img {
    height: 35px;
    width: auto;
}

nav img:hover,
#contrast:hover {
    cursor: pointer;
}

#selectores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#contrast {
    height: 30px;
    width: auto;
    fill: rgb(255, 255, 255);
}

@media (max-width:1024px) {
    #nav-nombre a {
        font-size: 1.5rem;
    }

    nav li {
        padding: 10px 5px;
    }
}

@media (max-width:768px) {}

/*---- HEADER ----*/
header {
    height: 95vh;
    background-color: var(--dark-blue);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10%;
    padding-left: 7%;
}

#presentacion h1 {
    font-size: 3rem;
    font-family: monospace;
}

#presentacion h2 {
    font-size: 2rem;
    font-family: monospace;
    color: var(--orange-code);
}

#presentacion .html-style {
    color: var(--orange-code);
}

#presentacion h1,
#presentacion p {
    max-width: 60ch;
    text-align: justify;
    margin-top: 1rem;
}

#presentacion p{
    font-size: 1.2rem;
}
#contacto {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

#contacto img,
#contacto svg {
    width: 45px;
    height: auto;
}

#foto-perfil{
    position: relative;
    width: 50vw;
    height: 100%;
    background-image: url(archivos/imagenes/foto-perfil1.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#foto-perfil img {
    position: absolute;
    top:0;
    left: 0;
    height: 100%;
}

@media (max-width:1024px) {
    #presentacion h1 {
        font-size: 2rem;
    }

    #presentacion h2 {
        font-size: 1.5rem;
    }

    #presentacion p {
        font-size: 1rem;
    }

    #contacto img,
    #contacto svg {
        width: 35px;
        height: auto;
    }
}

/*---- MAIN ----*/
.sec-title {
    text-align: center;
    padding: 4rem;
    font-size: 2rem;
    text-transform: uppercase;
}

/*---- PROYECTOS ----*/
#proyectos {
    background-color: var(--primary-color);
    padding-bottom: 10%;
}

#proyectos .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
    margin: 1rem;
}

#proyectos .container div {
    width: 35vw;
    min-width: 450px;
    aspect-ratio: 16/9;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

#proyectos h3 {
    font-size: 1.4rem;
    text-align: center;
    margin: 0.5rem;
}

#proyectos a {
    width: fit-content;
}

#pro1 {
    background-image: url("archivos/imagenes/landing-page.webp");
}

#pro2 {
    background-image: url("archivos/imagenes/responsive_pic.webp");
}

@media (max-width:1024px) {}

/*---- HERRAMIENTAS ----*/
#herramientas {
    background-color: var(--dark-blue);
    padding-bottom: 10%;
}

.herramientas {
    width: 80vw;
}

#herramientas h3{
    font-size: 1.5rem;
}
#herramientas .cont {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

#herramientas .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
}

.iconos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.herramientas .container {
    margin: 1rem;
    padding: 1rem;
    background-color: var(--primary-color);
    border-radius: 10px;
}

#herramientas img,
#herramientas svg {
    width: 60px;
    margin: 0.8rem;
}

@media (max-width:1024px) {
    #herramientas .container {
        flex-direction: column;
    }

    #herramientas h3 {
        padding: 0.6rem;
        border-radius: 15px;
        font-size: 1.1rem;
        background-color: rgba(131, 131, 131, 0.5);
    }

    .iconos {
        flex-wrap: wrap;
        gap: 1rem;
    }

    #herramientas img,
    #herramientas svg {
        width: 40px;
        margin: 0.7rem;
    }
}

/*----  ----*/
/*----  ----*/
/*----  ----*/
/*----  ----*/

/*---- FOOTER ----*/
footer {
    height: 20vh;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width:1024px) {}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width:768px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 15vw;
    }

    nav {
        min-height: 40px;
    }

    nav ul {
        position: fixed;
        top: 35px;
        left: 0px;
        flex-direction: column;
        background-color: black;
        width: 100vw;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        display: none;
    }

    nav li {
        padding: 1rem;
    }

    nav ul.active {
        left: 0;
        display: block;
    }

    #selectores {
        display: block;
        position: absolute;
        right: 5vw;
        margin-left: 5vw;
    }

    header {
        flex-direction: column-reverse;
        justify-content: center;
        padding: 1rem;
        padding-bottom: 5vh;
    }

    #foto-perfil {
        width: 100vw;
        height: 100vh;
    }

    #proyectos .container div {
        min-width: 300px;
        width: 80vw;
    }

    .sec-title {
        font-size: 1.5rem;
        padding: 1rem;
    }
    main{
        padding: 0;
    }
    .herramientas{
        width: 95vw;
    }
}

/* Estilos para modo claro en hamburguesa */
nav.claro2 .hamburger span {
    background-color: black;
}

nav.claro2 ul {
    background-color: var(--secondary-light);
}