*{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
    h1{font-size: 3.5em;}
    h2{font-size: 2.5em;}
    h3{font-size: 1.5em;}

    p{font-size: 1.25em;}

    /*formato de los botones */

    button{
        font-size: 2.5em; /*tamaño de letra*/
        font-weight: 2.7em;
        border-radius: 5px;
        border: 2px solid rgb(54, 49, 49);
        box-shadow: 2px 2px 10px rgba(54, 49, 49, 1.5);
        color: rgb(255, 0, 0);
        background-color: rgb(36, 32, 32);
    }
    /*enfoque del boton */
    button:hover{
        background-color: rgb(73, 66, 66);
    }
    /*pone un fongo al header*/
    header{
        background: rgb(0, 0, 0);
    }
    /* modificando la clase logo*/
    header .logo{
        margin: 0;
        padding: 25px 30px;
        font-weight: bold;
        color: rgb(255, 0, 0);
        font-size: 2.5em;
    }
    header .container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /*poner al centro el nav*/
    header nav{
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-bottom: 25px;
    }
    header a{
        padding: 5px 12px;
        text-decoration: none;
        font-weight: bold;
        color:red;
        font-size: 1.5em;
    }
    header a:hover{
        color:rgb(73, 66, 66);
    }
        /*para pantallas mayores a 720px*/
        @media(min-width: 720px){
            header{
                position: fixed;
                width: 100%;
            }
            header .container{
                flex-direction: row;
                justify-content: space-between;
            }
            header nav{
                flex-direction: row;
                padding-bottom: 0;
                padding-right: 15px;
            }
        }
    /*trabajamos los cambio en la seccion MIO*/
    #Mio{
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        height: 100vh; /* el rango 80% hasta 90% */
        color: white;
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.6),
            rgba(0,0,0,0.6)
        ) 
        
        ,url("img/fondo1.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
    }
    #Mio h1{
        color: white;
    }
    /*trabajar en la seccion quien soy*/
    #quien-soy .container{
        text-align: center;
        padding: 200px 12px;
        height: 80vh;
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.4),
            rgba(0,0,0,0.4)
        ) 
        ,url("img/quiensoy.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Esto alineará el contenido al final */
        align-items: center;
        padding-bottom: 50px; /* Ajusta este valor según necesites */
    }

    /*trabajar en la seccion mis hobbies*/
    #mis-hobbies{
        background-color: black;
        color: white;
    }
    #mis-hobbies .container{
        text-align: center;
        padding: 200px 12px;
        height: 80vh;
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.4),
            rgba(0,0,0,0.4)
        ) 
        ,url("img/hobbies.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Esto alineará el contenido al final */
        align-items: center;
        padding-bottom: 50px; /* Ajusta este valor según necesites */
    }
    /*trabajar en la seccion mis habilidades*/
    #mis-habilidades{
        background-color: white;
        color: black;
    }
    #mis-habilidades .container{
        text-align: center;
        padding: 200px 12px;
    }
    #mis-habilidades p{
        display: none;
    }
    /*trabajar conlas CARTAS*/
    #mis-habilidades .carta{
        background: cover;
        background-position: center center;
        padding: 50px;
        margin: 20px;
        border-radius: 15px;
    }
    /*tomamos la primera carta*/
    .carta:first-child{
        color: white;
            background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.4),
                rgba(0,0,0,0.4)
            )
            ,url("img/ccna.jpg");
            background-repeat: no-repeat;
    }
    /*tomamos la segunda carta*/
    .carta:nth-child(2){
        color: white;
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.4),
            rgba(0,0,0,0.4)
        )
        ,url("img/itess.jpg");
        background-repeat: no-repeat;
    }
    /*tomamos la tercera carta*/
    .carta:nth-child(3){
        color: white;
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.4),
            rgba(0,0,0,0.4)
        )
        ,url("img/python.png");
        background-repeat: no-repeat;
    }
    /*trabajos en el FOOTER*/
    footer{
        background: rgb(36, 32, 32);
    }
    footer .container{
        margin: 0;
        padding: 1px 5px;
        font-weight: bold;
        color: rgb(255, 0, 0);
        font-size: 0.8em;
        text-align: center;
    }

    #modal-hobbies {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        color: white;
        z-index: 999;
        text-align: center;
        overflow-y: auto;
        padding: 20px;
        scroll-behavior: smooth;

    }

    #modal-hobbies .modal-contenido {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .hobby-lista {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-top: 20px;
        display: flex;
    }
    
    .hobby-item {
        flex: 1 1 calc(33.33% - 40px); /* 3 columnas con margen */
        max-width: 250px;
    }
    
    .hobby-item img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.2);
    }
    
    #modal-hobbies button {
        margin-top: 30px;
    }
    
    #modal-descripcion {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        color: white;
        z-index: 999;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    #modal-descripcion .modal-contenido {
        max-width: 600px;
        padding: 40px;
    }
    
    #modal-descripcion button {
        margin-top: 20px;
    }
    /*quitar los margenes del boddy*/
    body{
        margin: 0;
    }

    /* Estilos para el nuevo modal "Quien Soy" */
    #modal-quien-soy {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        color: white;
        z-index: 999;
        text-align: center;
        overflow-y: auto;
        padding: 20px;
    }
    
    #modal-quien-soy .modal-contenido {
        max-width: 900px;
        margin: 0 auto;
    }
    
    #modal-quien-soy button {
        margin-top: 30px;
    }