body {
    background-color: #272727;
    margin: 0;
}

h1 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-size: 42pt;
}

p {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 350;
    font-style: normal;
    font-size: 14pt;
}

h6 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-size: 11pt;
}

h5 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 12pt;
}

h4 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14pt;
    color: #ffffff;
}

h3 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14pt;
    color: #323232;
}
/* Header config*/

.navbar {
    height: 120px; 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px 50px;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #E4FD02, #3AE258) 1;
    
}

.logo {
    width: 150px;
}

.links {
    display: flex;
    flex-direction: row;
    gap: 10vw;
    padding-right: 3vw;
}

.links a {
    text-decoration: none;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16pt;
}

/* content 1 config */

.cont1 {
    padding: 380px 450px 200px 450px;
}

/* branding */

.brandingcont {
    color: #ffffff;
    padding-left: 5vw;
    padding-right: 5vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.brandingcont .texto {
    width: 35%;
}

.brandingcont img {
    width: 45%;
}

.brandingcont h1 {
  background: linear-gradient(to right, #dd528d, #fbd652);
  background-size: 50%;

  -webkit-background-clip: text;
  background-clip: text;
  
  -webkit-text-fill-color: transparent;

}

.brandingcont h6 {
    padding-bottom: 1vh;
}

.brandingcont button {
    padding: 15px;
    border-radius: 15px;
    background: linear-gradient(to right, #dd528d, #fbd652);
    border: none;
}

.brandingcont button a {
    text-decoration: none;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 14pt;
}

/* packaging */

.packgcont {
    color: #ffffff;
    padding-left: 5vw;
    padding-right: 5vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.packgcont .texto {
    width: 35%;
}

.packgcont img {
    width: 45%;
}

.packgcont h1 {
  background: linear-gradient(to right, #2b35c9, #11ffc9);
  background-size: 50%;
  
  -webkit-background-clip: text;
  background-clip: text;
  
  -webkit-text-fill-color: transparent;

}

.packgcont h6 {
    padding-bottom: 1vh;
}

.packgcont button {
    padding: 15px;
    border-radius: 15px;
    background: linear-gradient(to right, #2b35c9, #11ffc9);
    border: none;
}

.packgcont button a {
    text-decoration: none;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 14pt;
}

/* marcas que... */

.fin {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1vh 1vw;
}

.fin .logos {
    display: flex;
    flex-direction: row;
    gap: 5vw;
}

.logos img {
    height: 4vh;
    opacity: 70%;
}

.fin {
    color: #ffffff;
    opacity: 70%;
}

footer {
    margin-top: 12vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: 4vw;
    margin-right: 4vw;
    align-items: center;
    opacity: 50%;
    margin-bottom: 5vh;

}

footer img {
    height: 4vh;
}

footer .texto {
    display: flex;
    flex-direction: row;
    gap: 5vw;
}

footer .texto div {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 5vw;
    gap: 1vw;
}

/* Portafolio */

.portafolio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2%;
    justify-content: flex-start;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.portafolio iframe {
    height: 35vh;
    width: 23.5%;
    margin-top: 5vh;
}

/* Contacto */

#contacto {
    background-color: #fff;
}

#contacto nav {
    background-color: #272727;
}

.contacto {
    width: 35%;
    height: 87vh;
    margin-left: 10%;
}

.contacto_container {
    display: flex;
    flex-direction: row;
    margin-left: 5%;
    margin-right: 5%;
    justify-content: space-between;
}

.contacto_container h3 {
    width: 20%;
    padding: 40px;
}

@media (max-width: 768px) {

    h1 { font-size: 28pt; }
    p { font-size: 12pt; }
    
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .links {
        gap: 5vw;
        padding-right: 0;
    }

    .links a {
        font-size: 12pt;
    }

    .cont1 {
        padding: 100px 20px 50px 20px;
    }

    .brandingcont, .packgcont {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .brandingcont .texto, .packgcont .texto,
    .brandingcont img, .packgcont img {
        width: 100%;
    }

    .brandingcont img {
        display: none;
    }

        .packgcont img {
        display: none;
    }

    .brandingcont h1, .packgcont h1 {
        background-size: 100%;
    }

    .fin .logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10vw;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    footer .texto {
        flex-direction: column;
        gap: 10px;
    }

    .portafolio {
        width: 95%;
    }

    .portafolio iframe {
        width: 100%;
        height: 250px;
    }

    .contacto_container {
        display: flex;
        flex-direction: column;
        margin: 0 5%;
        height: 90vh;
    }

    .contacto {
        flex: 2; 
        width: 100%;
        padding: 10px 0;
        border: none;
    }

    .contacto_container h3 {
        flex: 1;
        width: 100%;
        margin: 0;
        padding: 20px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .contacto_container {
        margin: 0;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box; 
    }

    .contacto {
        margin-left: 0 !important;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Ajuste de tipografía más equilibrado */
    h1 { font-size: 32pt; }
    p { font-size: 14pt; }
    
    .navbar {
        height: auto;
        padding: 20px 40px;
        /* En tablet aún podemos mantener el menú horizontal si no es muy largo */
        flex-direction: row; 
        justify-content: space-between;
    }

    .links {
        gap: 3vw;
    }

    .cont1 {
        padding: 80px 40px 40px 40px;
    }

    /* En lugar de columna, usamos un ancho intermedio */
    .brandingcont, .packgcont {
        flex-direction: row; /* Mantenemos el lado a lado */
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    /* IMPORTANTE: En tablet NO ocultamos las imágenes, 
       solo las hacemos un poco más pequeñas */
    .brandingcont img, .packgcont img {
        display: block; 
        width: 45%; 
        max-width: 400px;
        height: auto;
    }

    .brandingcont .texto, .packgcont .texto {
        width: 45%;
        text-align: left;
    }

    .portafolio {
        width: 90%;
    }

    .portafolio iframe {
        height: 400px; /* Más espacio que en móvil */
    }

    .contacto_container {
        flex-direction: row; /* En tablet todavía hay espacio horizontal */
        height: auto;
        padding: 50px 5%;
        gap: 30px;
    }

    .contacto {
        flex: 1;
        width: auto;
    }

    .contacto_container h3 {
        flex: 1;
        text-align: left;
    }
}