* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: auto;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.7em; }
h3 { font-size: 2em; }
p { font-size: 1.25em; }

header {
    background-color: rgb(245, 245, 245);
}

.sobremi p {
    font-size: 1.5em; 
    line-height: 1.6; 
}

header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0px 5px;
    font-weight: bold;
    color: black;
    font-size: 1.6em;
}

header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
}

header a {
    padding:  5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

header a:hover {
    color: black;
}

.foto-perfil {
    width: 250px;         
    height: 250px;
    border-radius: 50%;   
    object-fit: cover;    
    margin-bottom: 20px;  
    border: 3px solid white;
}

.inicio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    color: white;
    background-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.2)
    ), url("media/inicio.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.sobremi {
    text-align: center;
    align-items: center;
    padding: 200px 12px;
}

.aptitudes {
    color: white;
    background-color: rgb(65, 64, 64);
    text-align: center;
    align-items: center;
    list-style-position: inside;
    align-content: center;
    padding: 200px 12px;
}

.aptitudes ul {
    display: table;
    margin: 0 auto;
    text-align: left;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    padding-top: 20px;
    max-width: 900px;
    margin: auto;
}

.tech {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    background-color: white;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
}

.proyectos {
    color: white;
    background-color: rgb(26, 25, 25);
    text-align: center;
    align-items: center;
    padding: 200px 12px;
}

.proyectos h2 {
    font-size: 2.7em;
    margin-bottom: 40px; 
}

.proyectos .cuadro {
    text-decoration: none; 
    color: inherit;        
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    border-radius: 15px;
    margin-bottom: 40px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    border: 5px solid white;
}

.redes {
    color: black;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.card a, footer a {
    color: white;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: black;
    height: 250px;
}

.red-social {
    height: 60px;
    background-color: #F2F2F2;
    border-radius: 10px;
}

.red-social {
    margin: 0 10px 0 10px;
}

/*------------------------------------------------------*/
.contacto {
    align-content: center;
    height: 90vh;
    padding: 50px;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

.contacto h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contacto form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contacto label {
    font-size: 1.2em;
    margin-bottom: 5px;
    align-self: flex-start;
}

.contacto input, .contacto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1em;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.contacto input[type="text"], .contacto input[type="email"] {
    height: 40px;
}

.contacto textarea {
    resize: none;
}

.contacto button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contacto button:hover {
    background-color: #0056b3;
}

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

@media (min-width: 720px) {
    header .cabecera {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
    }

    .sobremi p {
        font-size: 1.7em;
        line-height: 1.6;
    }

    header nav {
        flex-direction: row;
        padding-bottom: 0;
        gap: 20px;
    }

    .inicio h1 {
        font-size: 4em;
    }

    .sobremi, .aptitudes, .proyectos {
        padding: 100px 100px;
        height: 100vh;
        text-align: center;
        align-items: center;
    }

    .sobremi {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 12px;
        height: 100vh;
        max-width: 800px;
        margin: 0 auto;
    }

    .tech-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .proyectos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
        padding: 100px 100px;
        background-color: rgb(26, 25, 25);
        color: white;
        text-align: center;
    }

    .proyectos h2 {
        text-align: center;
        width: 100%;
        margin-bottom: 40px;
        font-size: 2.5em;
    }

    .proyectos-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .proyectos .cuadro {
        position: relative;
        width: 300px;
        height: 400px;
        padding: 20px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: 5px solid white;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
        overflow: hidden;
        color: white;
    }

    .proyectos .cuadro::before {
        content: "";
        position: absolute;
        inset: 0;
        background: inherit;
        filter: brightness(0.6);
        z-index: 1;
    }

    .proyectos .cuadro > * {
        position: relative;
        z-index: 2;
    }

    .proyectos .cuadro h3 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .proyectos .cuadro p {
        font-size: 1.2em;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 0px 5px;
        height: auto;
    }

    .redes {
        gap: 40px;
    }

    .tech-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        justify-items: center;
        padding-top: 20px;
        max-width: 900px;
        margin: auto;
    }

    .tech {
        width: 100px;
        height: 100px;
        object-fit: contain;
        border-radius: 20px;
        background-color: white;
        padding: 5px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
    }
}

/*------------------------------------------------------*/
.cuadro-link {
    text-decoration: none;
    color: inherit;       
    cursor: pointer;      
    display: block;       
    transition: transform 0.2s ease-in-out;
}

.cuadro-link:hover .cuadro {
    transform: scale(1.02); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}

.aptitudes li{
    font-size: 1.2em;
}