@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Jacquarda+Bastarda+9&family=Playwrite+DE+Grund:wght@100..400&display=swap');

:root {
    --color-primario: #4e82aa;
    --color-secundario: #2c3e50;
    --color-fondo: #ecf0f1;
    --color-texto: #333; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-texto);
    min-height: 100vh; 
    padding: 20px 0px;
    background: linear-gradient(to bottom right, #300808, #aa764e);
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0; 
}

.tarjeta-perfil {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto; 
    transition: transform 0.3s ease;
}

.tarjeta-perfil:hover {
    transform: translateY(-5px);
}

.encabezado-perfil {
    background-color: var(--color-primario);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.imagen-perfil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.imagen-perfil:hover {
    transform: scale(1.05);
}

.nombre-perfil {
    font-size: 24px;
    margin-bottom: 5px;
}

.titulo-perfil {
    font-size: 18px;
    opacity: 0.8;
}

.cuerpo-perfil {
    padding: 20px;
}

.bio-perfil {
    margin-bottom: 20px;
    text-align: justify;
}

.lista-habilidades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.etiqueta-habilidad {
    background-color: var(--color-secundario);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.etiqueta-habilidad:hover {
    background-color: var(--color-primario);
}

.enlaces-sociales {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.enlace-social {
    color: var(--color-secundario);
    font-size: 24px;
    transition: color 0.3s ease;
}

.enlace-social:hover {
    color: var(--color-primario);
}

/*Contacto*/
#contacto {
    background-color: #083008;
    display: grid;
    gap: 1em;
    border-radius: 1em;
    padding: 1em;
    font-family: "Jacquarda Bastarda 9", serif;
    width: 100%; 
    max-width: 700px; 
    margin: 1em auto; 
}

#contacto h2 {
    color: #fff;
    text-align: center;
    font-size: 48px;
}

.form_cta {
    width: 50%; 
    padding: 10px; 
    background-color: var(--color-primario); 
    color: white; 
    border: none; 
    border-radius: 5px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
    margin: 0 auto; 
    display: block; 
}

.form_cta:hover {
    background-color: #3e6f8a; 
}

.form_input {
    align-items: center;
    font-family: "Playwrite DE Grund";
    width: 100%;
    height: 100%;
    gap: 1em;
}

/*Proyectos*/
#proyectos {
    margin: 2em 0;
    text-align: center;
    background-color: #b0cfb0;
    margin-left: 2em;
    margin-right: 2em;
    border-radius: 1.5em;
}

#proyectos h2 {
    font-family: "Anton", sans-serif;;
    color: black;
    font-size: 48px;
}

.proyecto {
    position: relative; 
    display: inline-block; 
    margin: 1em;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.proyecto h3 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
}

.imagen-proyecto {
    width: 50vh; 
    height: auto; 
    border-radius: 8px;
    transition: transform 0.3s ease; 
}

.proyecto:hover .imagen-proyecto {
    transform: scale(1.05); 
}

.descripcion-proyecto {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background-color: rgba(0, 0, 0, 0.7); 
    color: white; 
    padding: 10px; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.proyecto:hover .descripcion-proyecto {
    opacity: 1; 
}

footer {
    background-color: #b0cfb0;
    color: white;
    text-align: center;
    padding: 10px 0; 
    left: 0;
    right: 0;
    bottom: 0; 
}

/*Área responsive*/
@media (max-width: 480px) {
    #contacto {
        margin: 0px;
        margin-top: 1em;
    }

    #proyectos {
        display: grid;
        margin-left: 0.5em;
        margin-right: 0.5em;
    }

    .imagen-proyecto {
        width: 100%;
        height: auto;
    }

    footer {
        margin-top: 0.5em;
    }
}