/* NUEVO: Esto arregla el salto y el scroll */
html {
    scroll-behavior: smooth;
   scroll-padding-top: 100px;
}
/* NORMALIZACIÓN:  */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Esto mantiene el ancho y alto a pesar de padding y border*/
    font-family: 'Inconsolata', monospace;
    list-style: none; /* Quitar los puntos e decoración de las listas */
    text-decoration: none; /* Esto quita el subrayado de los enlaces */
    color: white;
}

body {
    background: linear-gradient(245.59deg, #31494e 0%, #385e70 25%, #131313 75%);
    min-height: 100vh;
}
header {
    position: fixed; /* Esto hace que el haader se quede fijo en la parte superior */
    right: 0;
    top: 0;
    z-index: 100; /* Esto hace que el header se muestre por encima*/
    width: 100%;
    display: flex; /* Esto hará que los elementos se pongan en linea */
    align-items: center; /* Centra verticalmente */
    justify-content: space-between; /* Que los elementos se separen */
    padding: 15px 3%;
    background-color: transparent;
}

.logo {
    font-size: 30px;
    font-weight: 800; /* este es el grueso de las letras */
}

.navlist {
    display: flex; /* Esto sirve para que los elementos de la lista UL se pongan en linea*/
}

.navlist a {
    margin-left: 60px; /* es para separar las palabras */
    font-size: 15px;
    font-weight: 600;
    border-bottom: 2px solid transparent; /* este es un subrayado transparente */
    transition: all .5s ease; /* esto es para animar todas las caracteristicas del .navlist a */
}

.navlist a:hover {
    border-bottom: 2px solid white; /* este es un subrayado blanco que aparecerá cuando hacemos estamos encima con el mouse */
}

 #menu-icon{
    display: none;  /* lo pongo en none para que solo se vea cuando la página esté colapsada de forma horizontal */
} 

#menu-icon{
    font-size: 35px;
    z-index: 101; /* para que este sobre el header */
    cursor: pointer; /* para que aparezca la manito cuando ponemos el mouse encima */
    display: none;
}

#menu-toggle{
    display: none; /* nunca quiero que se vea el checkbox*/
}

.menu-icon-action{
    display: none; /* para que no se le pueda hacer click*/
}

.hero {
    height: 100%;
    width: 100%;
    min-height: 100vh;
    background: transparent; /* Hereda del body */
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

section{
    padding: 0 8%;
}

.hero-text h5 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 50px;
    line-height: 1;
    margin: 0 0 30px;
}

.hero-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.hero-text p {
    font-size: 80%;
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-img img {
    width: 300px;
    height: 300px;
    margin: 10% 0 0 10%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    animation: flotar 4s ease-in-out infinite;
}

@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-img img:hover {
    width: 320px;
    height: 320px;
    opacity: 0.8;
}

.hero-text a {
    display: inline-block;
    background-color: #4d4d4d;
    border: 1px solid transparent;
    padding: 15px 30px;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    text-transform: uppercase;
    transition: all .5s ease;
}

.hero-text a:hover {
    background-color: transparent;
    border: 1px solid white;
    transform: translateX(8px);
}

.hero-text a.videos{
    background-color: transparent;
    border: 1px solid white;
    margin-left:  20px;
}

.hero-text a.videos i{
    vertical-align: middle;
    margin-right: 5px;
}

.icons {
    position: absolute;
    top: 50vh;
    padding: 0 3%;
    transform: translateY(-50%);
}

.icons i {
    display: block;
    margin: 26px 0;
    font-size: 24px;
    transition: all 0.5s ease;
}

.icons i:hover{
    color: #4d4d4d;
    transform: translateY(-5px);
}

.scroll-down {
    position: absolute;
    bottom: 6%;
    right: 3%;
}

.scroll-down i {
    display: block;
    padding: 12px;
    font-size: 25px;
    background-color: #21383d;
    border-radius: 30px;
    transition: all .5s ease;
}

.scroll-down i:hover{
    transform: translateY(-5px);
}


/* Aca vamos a hacer mediaqueries para que la web sea responsive */

@media (max-width:992px){
    section {
        padding: 0 3%;
        transition: .2s;
    }

    .hero-text{
        padding-top: 0;
    }

    .hero-img{
        text-align: center;
    }

    .hero-img img{
        width: 80%;
        margin: 10% 0 0 10%;
    }

    .hero-text p {
        font-size: 70%;
    }

    @media (max-width: 768px) {
    .icons {
        position: static; /* Cambia de 'absolute' a 'static' */
        display: flex;
        justify-content: center;
        gap: 20px; /* Separa los iconos */
        margin-top: 20px;
    }
    .icons i {
        margin: 0; /* Quita el margen vertical anterior */
    }
}

    .scroll-down{
        display: none;
    }
}

@media (max-width: 768px){

    .menu-icon-action{
        display: block;
    }

    #menu-icon{
        display: block;
    }

    .hero-text{
        text-align: center;
        padding-top: 100px;
    }

    .hero-img img {
        margin: 0;
    }

    .hero {
        height: 100%;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .navlist{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 200px;
        height: 180px;
        background-color: #021719ef;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        transition: all .5s ease-out;
    }

    .navlist a {
        display: block;
        margin: 7px 0;
    }

    .navlist.open{
        right: 0;
    }
}

#sobre-mi {
    padding: 150px 10% 100px 10%; /* El 150px superior separa el texto del header */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent; /* Hereda el degradado del body */
}

#sobre-mi h2 {
    font-size: 35px;
    margin-bottom: 30px;
    color: white;
}

#sobre-mi p {
    max-width: 800px;
    line-height: 1.8;
    font-size: 16px;
    color: #cccccc;
    text-align: center;
}