:root {

    /* Colores */

    --color-fondo: #2C3E50;       /* Azul medianoche */
    --color-texto: #566573;       /* Gris pizarra */
    --color-secundario: #D5D8DC;  /* Gris claro */
    --color-blanco: #F8F9F9;      /* Blanco humo */
    --color-acento: #F4D35E;      /* Dorado suave */
    --color-nav: #2C3E50;       /* Azul medianoche para nav */

    /* Fuentes */

    --font-principal: "Inter", sans-serif;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-padding-top: 7rem;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-size: 16px;
    font-family: var(--font-principal);
    background-image: linear-gradient(to top, #F4D35EB3, transparent);
}

.titulo {
    text-align: center;
    font-size: 3.8rem;
    color: var(--color-blanco);
    font-weight: 700;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

.titulo span {
    font-size: 2rem;
}

/* Hero */

.hero {
    width: 100%;
    max-width: 100vw;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 350px;
    position: relative;
    overflow: hidden;
    background-image: url(/img/hero.webp);
}

.contenido-hero p {
    font-size: 2rem;
    color: var(--color-blanco);
    text-align: center;
}

.contenido-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* Barra Navegacion */

.contenedor {
    width: 120rem;
    margin: 0 auto;
}

.nav-background {
    background-color: var(--color-nav);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.navegacion-principal {
    display: flex;
    justify-content: space-evenly;
}

@media (max-width: 767px) {
    .navegacion-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
    width: 100%;
    overflow: visible;
    }
}

@media (max-width: 1023px) {
    .navegacion-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
    width: 100%;
    overflow: visible;
    }
}

.navegacion-principal a {
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
}

.navegacion-principal a:hover {
    background-color: var(--color-acento);
    color: var(--color-nav);
    
}

.sombra {
    background: rgba(248, 249, 249, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 2rem;
    color: #2C3E50;
    margin-top: 2rem;
    border-radius: 2rem;
}

/* Tecnologias */

.caja-herramientas {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 3.6rem; 
    font-weight: 700;        
    letter-spacing: 0.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    text-transform: uppercase;
}

.tecnologias-alineacion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tecnologia {
    text-align: center;
    background-color: var(--color-fondo);
    color: var(--color-blanco);
    border-radius: 10%;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.tecnologia:hover {
    transform: scale(1.05);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.50);
}

.redes-sociales a:hover svg {
    fill: var(--color-fondo);
    transition: fill 0.3s ease;
    transform: scale(1.05);
}

.contenedor-sobre-mi {
    background-color: var(--color-fondo);
    color: var(--color-blanco);
    border-radius: 1.5rem; 
    text-align: center;
    padding: 2.5rem 3rem;
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    max-width: 600px;
    margin: 2rem auto;
}

.contenedor-sobre-mi:hover {
    box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    cursor: default;
}

.contenedor-proyectos {
    background-color: var(--color-fondo);
    color: var(--color-blanco);
    border-radius: 1.5rem; 
    text-align: center;
    padding: 2.5rem 3rem;
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    max-width: 600px;
    margin: 2rem auto;
}

.contenedor-proyectos:hover {
    box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    cursor: default;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--color-blanco);
    background-color: var(--color-nav);
    margin-top: 2rem;
}

/* Responsive */

@media (max-width: 1023px) {
    .contenedor {
        width: 95%;
    }

    .titulo {
        font-size: 3rem;
    }

    .titulo span {
        font-size: 1.8rem;
    }

    .hero {
        height: 280px;
    }

    .tecnologias-alineacion {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .contenedor {
        width: 90%;
    }

    .titulo {
        font-size: 2.6rem;
    }

    .titulo span {
        font-size: 1.6rem;
    }

    .hero {
        height: 240px;
    }

    .contenido-hero p {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    .tecnologias-alineacion {
        grid-template-columns: 1fr;
    }

    .tecnologia img {
        width: 50px !important;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 2.2rem;
    }

    .titulo span {
        font-size: 1.4rem;
    }

    .contenido-hero p {
        font-size: 1.4rem;
    }

    .navegacion-principal a {
        font-size: 1.8rem;
    }

    .contenedor-sobre-mi,
    .contenedor-proyectos {
        padding: 2rem 1.5rem;
    }

    .caja-herramientas {
        font-size: 2.6rem;
    }

    footer {
        font-size: 1.4rem;
    }
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 2.5rem;
    color: var(--color-blanco);
    cursor: pointer;
    position: fixed;
    top: 1rem;
    left: 1.5rem;
    z-index: 1100;
}

.navegacion-principal {
    display: flex;
    gap: 2rem;
    justify-content: space-evenly;
    align-items: center;
}

@media (max-width: 767px) {
    .hamburger {
        display: block;
    }

    .navegacion-principal {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: auto;
        max-height: 90vh;
        background-color: var(--color-nav);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        border-radius: 0 0 1rem 0;
        overflow-y: auto;
        z-index: 1050;
    }


    .menu-toggle:checked + .hamburger + .navegacion-principal {
        transform: translateX(0);
    }


    .navegacion-principal a {
        font-size: 1.8rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: 0.5rem;
    }

    .navegacion-principal a:hover {
        background-color: var(--color-acento);
        color: var(--color-nav);
    }
}

@media (max-width: 1023px) {

    .hamburger {
        display: block;
    }

    .navegacion-principal {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: auto;
        max-height: 90vh;
        background-color: var(--color-nav);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        border-radius: 0 0 1rem 0;
        overflow-y: auto;
        z-index: 1050;
    }

    .menu-toggle:checked + .hamburger + .navegacion-principal {
        transform: translateX(0);
    }

    .navegacion-principal a {
        font-size: 1.8rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: 0.5rem;
    }

    .navegacion-principal a:hover {
        background-color: var(--color-acento);
        color: var(--color-nav);
    }
}