@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 150rem;
    gap: 6rem;
    background-color: #FFFFFF;
    padding-top: 7rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 7rem;
    padding: 0 2rem;
    position: relative;
    background-color: #181C1F;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    margin-top: 2rem;
    gap: 1.5rem;
    background-color: #181C1F;
    color: #FFFFFF;
    font-size: 1.4rem;
}

h1 {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
    font-family: "Playfair", serif;
    font-weight: bold;
}

#logo_header {
   height: 4rem;
    width: auto;
}

#icono_menu_header {
    width: 4rem;
}

#icono_cerrarMenu_header {
    width: 3rem;
    display: none;
}

nav {
    width: 100%;
    position: absolute;
    right: 0;
    top: 100%;
    justify-content: center;
    padding: 1rem 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color:#FFFFFF;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu {
    display: flex;
    flex-direction: column;
}

#menu li {
    list-style: none;
    text-align: center;
}

#menu li a {
    display: inline-flex;
    padding: 1rem;
    color: #181C1F;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

nav.mostrar {
  opacity: 1;
  visibility: visible;
}

#icono_cerrarMenu_header.mostrar {
  display: block;
}

#icono_menu_header.ocultar {
  display: none;
}

#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 120rem;
    height: auto;
    max-height: 50rem;
    overflow: visible;
    padding: 0;
    margin-bottom: 13rem;
}

#img_principal_hero {
    width: 100%;
}

#texto_hero {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 1.5rem 2rem;
    background-color: rgba(24, 28, 31, 0.7);
    color: #FFFFFF;
    font-weight: bolder;
}

#texto_hero_principal {
    font-family: "lato", sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 2rem;
    /* color: #0000008C; */

    
}

#texto_hero_secundario {
    font-family: "lato", sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 2rem;
    /* color: #0000008C; */
}

.seccion {
    padding: 0 1rem;
    width: 100%;
    height: auto;
    
}

h2 {
    width: 100%;
    text-align: center;
    font-size: 2.4rem;
}

h3 {
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.servicios_contenedor_parrafo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    
}

.seccion p {
    font-size: 1.6rem;
}

.vineta_cuadrada_verde, .vineta_cuadrada_naranja, .vineta_cuadrada_azul {
    width: 1rem;
    height: 7rem;
    
    /* border-radius: 5px;  */
    flex-shrink: 0;
    flex-grow: 0;
}

.vineta_cuadrada_verde {
    background-color: #7E9E24;
}

.vineta_cuadrada_naranja {
    background-color: #EB6016;
}

.vineta_cuadrada_azul {
    background-color: #3D16EB;
}

#portafolio button {
    background-color: #0DC252;
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.6rem;
    color: #FFFFFF;
    font-size: 1.6rem;
    font-weight: bold;
    /* margin-top: 3rem; */
    cursor: pointer;
}

#portafolio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#portafolio h2 {
    margin-bottom: 1rem;
}

#contenedor_portafolio {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    /* text-align: center; */
}

#portafolio_parrafo {
    margin-bottom: 3rem;
    text-align: center;
}

.portafolio_proyecto {
    width: 35rem;
    height: 40rem;
    margin-bottom: 3rem;
    overflow: hidden;
    overflow-y: auto;    /* genera scroll vertical cuando sea necesario */
    overflow-x: hidden;  /* oculta scroll horizontal (opcional) */
    border: none;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.portafolio_proyecto img {
    width: 100%;
}

#contenedor_formulario {
    position: relative;
    width: 100%;
    padding: 3rem;
    display: flex;
    justify-content: center;
    background-image: url(./assets/fondo\ formulario.webp);
}

#formulario {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 100rem;
}

#modal-respuesta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-width: 20rem;
    min-height: 10rem;
    padding: 3rem;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#modal-respuesta button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #333333;
    color: #FFFFFF;
}

#respuesta {
    font-size: 1.4rem;
}

#formulario input[type="text"], 
#formulario input[type="tel"],
#formulario input[type="email"],
#formulario textarea
{
    width: 100%;
    height: 4rem;
    padding-left: 1rem;
    background-color: #333333;
    color: #99A9B5;
    border: none;
    border-radius: 5px;
}

#formulario textarea {
    padding-top: 1rem;
    height: 10rem;
    resize: none;
}

input[type="submit"] {
    width: 100%;
    background-color: #00BCD4;
    color: #FFFFFF;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    font-size: 1.6rem;
    padding: 1rem 0;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="submit"]:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#formulario_inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

footer img {
    width: 3.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

footer img:hover {
    transform: scale(1.1);
}

#footer_iconos {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

#contacto h2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 576px) { /* Teléfonos grandes */ }
@media (min-width: 768px) { /* Tablets */ 

    header {
        padding: 0 4rem;
    }

    .icono_menu {
        display: none;
        opacity: 0;
        visibility: hidden;
    }

    #menu {
        flex-direction: row;
        gap: 2rem;
    }

    nav {
        opacity: 1;
        visibility: visible;
        background-color: #181C1F;
        width: auto;
        position: static;
        box-shadow: none;
    }

    #menu li a {
        padding: 0.5rem;
        transition: color 0.3s;
        color: #FFFFFF;
    }

    #menu li a:hover {
        color: #00BCD4;
    }

    .seccion {
        padding-left: 2rem;
        padding-right: 2rem;    
    }

    .vineta_cuadrada_verde, .vineta_cuadrada_naranja, .vineta_cuadrada_azul {
        width: 3rem;
        height: 3rem;
        border-radius: 5px;
        /* flex-shrink: 0;
        flex-grow: 0; */
    }

    .portafolio_proyecto {
        margin-bottom: 5rem;
    }

    #formulario_inputs {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
    }

    #formulario input[type="text"], 
    #formulario input[type="tel"],
    #formulario input[type="email"]
    {
        width: 30%;
   
    }

}

@media (min-width: 992px) { /* Laptops */ 
   #hero {
        flex-direction: row;
        gap: 5rem;
        overflow: hidden;
        margin-bottom: 5rem;
    }

    #texto_hero {
        transform: none;
    }

    .seccion {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    
   
    
}

@media (min-width: 1200px) { /* Escritorios */ 
    

   
}
@media (min-width: 1400px) { /* Escritorios grandes */ }
