@import url('https://fonts.googleapis.com/css2?family=Modern+Antiqua&family=Tourney:ital,wght@0,100..900;1,100..900&display=swap');

h1, h2, label {
    font-family: "Tourney", sans-serif;
}

p, a, span {
    font-family: "Modern Antiqua", serif;
}

:root {
    --primary-color: #cbd1d6;
    --secundary-color: #262626;
    --colorrr: #007bff;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: black;
}

h1 {
    color: var(--primary-color);
    text-align: center;
}

#head {
    background-color: var(--secundary-color);
    display: flex;
    position: fixed;
    z-index: 1000;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#head h1{
    padding: 0 2rem;
}

nav {
    padding: 0 2rem;
}

a {
    color: var(--primary-color);
    position: relative;
    text-decoration: none;
    padding: 0 2rem;
    font-size: large;
}
  
a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: var(--colorrr);
    bottom: -0.1rem;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}
  
a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

#contacto form {
    margin: 10rem 0 4rem;
    display: grid;
    gap: 20px;
    padding: 40px;
    background: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 2rem;
    box-shadow: 0 0 20px var(--primary-color);
}

#contacto h2 {
    color: var(--primary-color);
    text-align: center;
}

#contacto hr {
    width: 50vw;
}

#contacto form label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

#contacto form input[type="text"],
#contacto form input[type="email"],
#contacto form textarea {
    width: 50vw;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    font-size: 1rem;
    box-sizing: border-box; /* Incluir padding y borde en el ancho total */
}

#contacto form input[type="text"]:focus,
#contacto form input[type="email"]:focus,
#contacto form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    outline: none; /* Eliminar el contorno de enfoque predeterminado */
}

#contacto form textarea {
    resize: vertical; /* Permitir redimensionar solo verticalmente */
    min-height: 120px;
}

#contacto form input[type="submit"] {
    
    background-color: var(--primary-color);
    color: var(--secundary-color);
    padding: 15px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 0 20px var(--primary-color);
    justify-self: center; /* Alinear al centro el botón */
}

#contacto form input[type="submit"]:hover {
    background-color: var(--colorrr);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--colorrr);
}

footer #icons {
    text-align: center;
}

footer #icons a {
    display: inline-block;
    margin: 0 15px;
    padding: 1rem 25px;
    background-color: var(--secundary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
}

a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer #icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    text-align: center;
    justify-content: start;
    color: var(--primary-color);
    background-color: var(--secundary-color);
    width: 100%;
}

/* Responsive Tablet */
@media (min-width:768px) and (max-width: 1024px) {
   
    p {
        font-size: 2rem;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }
    
    footer {
        margin-top: 2rem;
    }

    nav a {
        margin: 5px 0;
    }

    #main {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80vw;
    }

    main h1 {
        padding-top: 3rem;
    }

    #proyecto {
        padding: 0.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    

}

/* Responsive Mobile */
@media (min-width: 480px) and (max-width: 768px), (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    nav a {
        margin: 5px 0;
    }
    
    main {
        margin-top: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    main h1 {
        padding-top: 3rem;
    }

    hr {
        width: 80vw;
    }

    #proyecto {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    img {
        width: 150px;
        height: auto;
    }

    footer {
        margin-top: 2rem;
    }

}