/*
 * Theme Name:  EcoMarket Theme
 * Author:      Sana Perveen Khatri
 * Description: Theme personalizado para EcoMarket — Landing Page
 * Version:     1.0
 */


/*----- CUSTOM CSS -----*/

@import url('https://fonts.googleapis.com/css2?family=Marhey:wght@300..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

:root{
    --dark-blue: #658e94;
    --light-blue: #a2c4c9;
    --white: #ededed;
    --x-light-blue: #e2f0f3;
    --x-dark-blue: #334e52;
}

body{
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    margin: 0;
    padding: 0;
}

.main{
    width: 100%;
    height: 100vh;
}

.button{
    padding: 18px 28px;
    border: 2px solid transparent;
    color: white;
    border-radius: 15px;
    background: var(--dark-blue);
    font-weight: 300;
    transition: .3s ease;
    font-size: 20px;
    margin-top: 50px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}
    .button:hover{
        background: var(--light-blue);
        color: white;
    }

.titulo-sobre{
    padding: 0;
    display: flex;
    justify-content: center;
    font-size: 4rem;
    font-family: "Oswald", sans-serif;
    color: var(--x-dark-blue);
    text-align: center;
}



/*-- HEADER -------------------------------------------------------------------------------------*/

nav{
    width: 100%;
    height: 120px;
    padding: 0 50px;
    align-items: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: fixed;
    z-index: 5;
}

nav #menu-open-button{
    display: none;
}

#menu-toggle {
  display: none;
}

.icon{
    width: 200px;
    height: auto;
    float: left;
    align-items: center;
}

.icon img{
    padding-left: 40px;
    float: left;
    width: 270px;
    height: auto;
}

.menu{
    width: 800px;
    padding-right: 50px;
}

.menu ul{
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    padding: 0;
}

.menu ul li{
    list-style: none;
    margin: 0 25px;
    font-size: 20px;
}

.menu ul li a{
    text-decoration: none;
    color: var(--x-dark-blue);
    font-weight: 400;
    transition: 0.4s ease-in-out;
}
    .menu ul li a:hover{
        color: var(--dark-blue);
    }




/*-- RESPONSIVE --*/

@media screen and (max-width: 1280px) {
    .icon img{
        width: 170px;
    }

    nav .menu{
        padding-right: 0;
    }

    nav .menu ul li{
        font-size: 15px;
    }
}

@media screen and (max-width: 1120px) {
    nav .menu ul{
        float: right;
        padding-right: 70px;
    }
}

@media screen and (max-width: 930px) {
    nav{
        padding-left: 30px;
    }

    .icon img{
        width: 160px;
        padding: 0;
    }
}




/*--  MENÚ HAMBURGUESA --*/

@media screen and (max-width: 776px) {
    nav .menu {
        position: relative;
    }

    nav .menu ul{
        background-color: var(--white);
        position: fixed;
        right: 50px;
        top: 110px;
        width: 150px;
        height: auto;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        padding-top: 20px;
        padding-right: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: 0.3s ease;
    }

    #menu-toggle:checked ~ .menu ul {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav .menu ul li{
        padding-bottom: 20px;
    }

    nav #menu-open-button{
        display: block;
        color: var(--dark-blue);
        border: none;
        background: none;
        border: none;
        font-size: 22px;  
        padding-right: 40px;
        cursor: pointer;
        margin-left: auto;
        position: absolute;
        right: 90px;
    }

    .suscribe{
        margin: 0 25px;
    }
}


/*-- HERO -------------------------------------------------------------------------------------*/

.hero{
    min-height: 100vh;
    background-image: linear-gradient(to top, rgba(226, 240, 243, 0.8), rgba(226, 240, 243, 0.8)), url("assets/img/img-fondo.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero .content{
    display: flex;
    align-items: center;
    min-width: 100vh;
    justify-content: space-between;
    gap: 0;
    padding: 160px;
}

.hero .detalles{
    width: 50%;
}

.hero .detalles .eyebrow{
    font-weight: 400;
    color: var(--dark-blue);
    font-size: 40px;
}

.hero .detalles .titulo{
    margin-top: 10px;
    font-size: 10rem;
    color: var(--x-dark-blue);
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    margin-bottom: 80px;
}

.hero .detalles .subtitulo{
    font-size: 40px;
    font-weight: 300;
}

.hero .detalles .buttons{
    display: flex;
    gap: 23px;
    text-decoration: none;
    margin-top: 80px;
}

.hero .detalles .button{
    font-size: 30px;
    padding: 20px 28px;
}

.hero .detalles .button:hover,
.hero .detalles .descubre{ 
    color: var(--x-dark-blue);
    background: transparent;
    border-color: var(--x-dark-blue);
}

.hero .detalles .descubre:hover{
    color: white;
    background-color: var(--x-dark-blue);
}

.hero .detalles a{
    text-decoration: none;
}

.hero .imagen-principal{
    max-width: 500px;
    margin-right: 260px;
    margin-top: 60px;
}

.hero .imagen-principal img{
    width: 50rem;
}


/*-- RESPONSIVE --*/

@media screen and (max-width: 1640px) {
    .hero{
        overflow: hidden;
        min-height: 70vh;
    }

    .hero .content{
        padding: 160px 100px;
    }

    .hero .detalles{
        width: 500px;
    }

    .hero .detalles .eyebrow{
        font-size: 25px;
    }

    .hero .detalles .titulo{
        font-size: 5rem;
        margin-bottom: 40px;
    }

    .hero .detalles .subtitulo{
        font-size: 20px;
    }

    .hero .imagen-principal{
        margin-right: 120px;
    }

    .hero .imagen-principal img{
        width: 30rem;
    }

    .hero .detalles .buttons{
        font-size: 18px;
    }

    .hero .detalles .button{
        font-size: 20px;
        padding: 18px 25px;
    }
}

@media screen and (max-width: 1150px) {
    .hero .content{
        display: block;
    }

    .hero .detalles{
        width: 500px;
        margin-top: 80px;
    }

    .hero .detalles .titulo{
        font-size: 6rem;
        margin-bottom: 40px;
    }

    .hero .detalles .subtitulo{
        font-size: 25px;
    }

    .hero .imagen-principal img{
        width: 35rem;
    }

    .hero .detalles .button{
        margin-top: 0;
    }
}

@media screen and (max-width: 640px) {
    .hero .detalles{
        width: 400px;
    }

    .hero .detalles .titulo{
        font-size: 4rem;
        margin-bottom: 40px;
    }

    .hero .detalles .subtitulo{
        font-size: 20px;
    }

    .hero .imagen-principal img{
        width: 28rem;
    }
}

@media screen and (max-width: 540px) {
    .hero .content{
        padding: 160px 50px;
    }

    .hero .detalles{
        width: 300px;
        padding-left: 0;
    }

    .hero .detalles .subtitulo{
        font-size: 18px;
    }

    .hero .imagen-principal img{
        width: 20rem;
    }

    .hero .detalles .button{
        font-size: 14px;
        padding: 13px 20px;
    }
}




/*--CARACTERÍTICAS--*/

.sobre{
    padding: 120px 150px;
    background: white;
}

.sobre .content-sobre{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sobre .img-wrapper-sobre{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sobre .img-wrapper-sobre .sobre-img{
    width: 500px;
    height: auto;
    object-fit: cover;
    margin-right: 10px;
}

.sobre .detalles-sobre{
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sobre .detalles-sobre .text-sobre{
    line-height: 30px;
    margin: 0 0 30px;
    text-align: center;
    font-size: 20px;
}

.sobre .caracteristicas-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 60px 40px;
    margin-top: 60px;
}

.caracteristicas-grid .box{
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}
    .box:hover{
        transform: translateY(-5px);
    }

.box img{
    width: 80px;
    height: 80px;
}

.box h3{
    margin: 0;
    font-size: 20px;
    color: white;
}

.box p{
    margin: 2px 0 0;
    font-size: 18px;
    color: white;
}


/*-- RESPONSIVE --*/

@media screen and (max-width: 1230px){
    .sobre .caracteristicas-grid .box {
        gap: 50px;
        padding: 20px;
        border-radius: 8px;
    }

    .box h3 {
        font-size: 18px;
    }

    .box p{
        font-size: 14px;
    }

    .sobre{
        padding: 100px 40px;
    }

    .sobre .img-wrapper-sobre .sobre-img{
        width: 300px;
    }

    .sobre .detalles-sobre .titulo-sobre{
        font-size: 3rem;
    }

    .sobre .detalles-sobre .text-sobre{
        font-size: 15px;
    }

    .sobre .caracteristicas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 40px 20px;
    }

    .sobre .content-sobre{
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .sobre .detalles-sobre {
        padding: 0 20px;
    }
    .sobre .detalles-sobre .text-sobre{
        line-height: 25px;
    }

    .sobre .caracteristicas-grid .box {
        gap: 20px;
        padding: 15px;
    }

    .box img{
        width: 50px;
        height: 50px;
    }

    .box h3 {
        font-size: 16px;
    }

    .box p{
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .sobre .detalles-sobre {
        padding: 0;
    }
    .sobre .caracteristicas-grid {
      grid-template-columns: 1fr 1fr;
    }

    .sobre .caracteristicas-grid .box {
        display: flex;
        flex-direction: column;
    }
}





/*-- PRODUCTOS DESTACADOS ------------------------------------------------------------------------*/

.productos{
    background-color: var(--x-light-blue);
    margin-bottom: 3rem;
    text-align: center;
}

.productos .prod-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 60px 40px;
    margin: 0 auto;
    max-width: 1500px;
}

.no-prod{
    font-size: 20px;
    color: #555;
}

.prod-cards .prod-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    overflow: hidden;
    flex-direction: column;
}
    .prod-card:hover{
        transform: translateY(-5px);
    }

.prod-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.prod-card h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.prod-card p {
    font-size: 16px;
    color: #555;
}

.prod-card .prod-card-content{
    padding: 5px;
}



/*-- RESPONSIVE --*/

@media screen and (max-width: 1024px) {
    .titulo-sobre{
        font-size: 3rem;
    }

    .productos .prod-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-card p {
        font-size: 13px;
    }
}

@media screen and (max-width: 600px) {
    .productos .prod-cards {
        grid-template-columns: 1fr;
    }
}




/*-- IMPACTO -------------------------------------------------------------------------------------*/

.impacto{
    background-color: var(--x-light-blue);
}

.img-wrapper-sobre .impacto-img{
    width: 600px;
    border-radius: 20px;
    margin: 30px;
}

.impacto .content-impacto{
    display: flex;
    flex-direction: row-reverse;
}

.content-impacto .detalles-sobre .text-impacto{
    font-size: 25px;
    line-height: 35px;
}



/*-- RESPONSIVE --*/

@media screen and (max-width: 1800px) {
    .impacto .content-impacto .detalles-sobre .text-impacto{
        font-size: 22px;
    }
    
    .img-wrapper-sobre .impacto-img{
        width: 400px;
    }
}

@media screen and (max-width: 1160px) {
    .impacto .content-impacto .detalles-sobre .text-impacto{
        font-size: 18px;
    }

    .detalles-sobre .titulo-impacto{
        font-size: 2rem;
    }

    .img-wrapper-sobre .impacto-img{
        width: 300px;
    }
}

@media screen and (max-width: 780px) {
    .impacto .content-impacto{
        display: flex;
        flex-direction: column;
    }
    
    .detalles-sobre .text-impacto{
        font-size: 15px;
        line-height: 30px;
    }
}




/*-- TESTIMONIOS -------------------------------------------------------------------------------------*/

.test-cards {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin: 20px; 
}

.test-card {
    display: flex;
    flex-direction: row;
    gap: 40px;
    background-color: var(--x-light-blue); 
    border: 1px solid #ddd; 
    border-radius: 10px;
    max-width: 1500px; 
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-items: center;
    transition: 0.3s;
}
    .test-card:hover{
        transform: translateY(-5px);
    }

.test-card img {
    width: 100px; 
    height: 100px; 
    margin-bottom: 10px; 
}

.test-card-content h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 10px; 
}

.test-card-content p {
    font-size: 16px;
    color: #555;
}


/*-- RESPONSIVE --*/

@media screen and (max-width: 1024px) {
    .test-card p {
        font-size: 13px;
    }

    .titulo-sobre{
        font-size: 3rem;
    }
}

@media screen and (max-width: 600px) {
    .test-card {
        flex-direction: column;
        text-align: center;
    }
}



/*-- CONTACTO -------------------------------------------------------------------------------------*/

.contacto .content-contacto{
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.contacto .contacto-grid {
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contacto .contacto-grid .contacto-box{
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 30px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}
.contacto-grid .contacto-box h3{
    font-size: 25px;
}
.contacto-grid .contacto-box p{
    font-size: 18px;
}
.contacto-grid .contacto-box img{
    width: 100px;
}

.contacto-form {
    grid-column: 1 / -1;
    box-sizing: border-box;
    background: var(--light-blue);
    padding: 40px;
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contacto-form .wpcf7 {
    width: 100%;
    max-width: 600px;
}
.contacto-form h3 {
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--x-dark-blue);
}
.contacto-form p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
}

.inputs {
    margin-bottom: 15px;
}
.contacto-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: 0.3s;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}
.contacto-form input:focus {
    border-color: white;
    outline: none;
    box-shadow: 0 0 0 2px rgba(77,166,179,0.2);
}
.contacto-form .wpcf7-submit {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: var(--x-dark-blue);
    color: var(--white);
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif !important;
}
    button:hover {
        background: var(--x-light-blue);
        color: var(--x-dark-blue);
    }

.contacto-form .wpcf7-response-output{
    color: white;
}

.wpcf7 form.sent .wpcf7-response-output{
    border-color: var(--dark-blue);
    border-radius: 10px;
    padding: 10px 15px;
}

/*-- RESPONSIVE --*/

@media screen and (max-width: 1060px) {
    .contacto{
        padding: 100px 20px;
    }
    .contacto .contacto-grid{
        grid-template-columns: 1fr 1fr 1fr;
    }
    .contacto-grid .contacto-box h3{
        font-size: 20px;
    }

    .contacto-grid .contacto-box p{
        font-size: 15px;
    }

    .contacto-grid .contacto-box img{
        width: 60px;
    }

    .contacto-grid .contacto-box{
        padding: 15px;
        gap: 20px;
        width: 120px;
    }
}


@media screen and (max-width: 622px) {
    .contacto .contacto-grid{
        grid-template-columns: 1fr;
    }

    .contacto-grid .contacto-box{
        flex-direction: row;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .contacto-grid .contacto-box{
        width: 85%;
    }
}



/*-- 404 ----------------------------------------------------------------------------------------*/

.page-404{
    min-height: 50vh;
    background-image: linear-gradient(to top, rgba(226, 240, 243, 0.8), rgba(226, 240, 243, 0.8)), url("assets/img/img-fondo.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 400px 180px;
}

.error-404{
    color: var(--x-dark-blue);
    font-family: "Oswald", sans-serif;
    font-size: 8rem;
    font-weight: 600;
    margin-bottom: 80px;
}

.page-404 h1{
    color: var(--dark-blue);
    font-size: 40px;
    margin-top: 50px;
}

.page-404 p{
    color: #555;
    font-size: 20px;
    margin: 20px 0 120px 0;
}



/*-- FOOTER -------------------------------------------------------------------------------------*/

.footer {
  background: var(--x-dark-blue);
  padding: 50px 50px 20px 50px;
  padding-top: 80px;
}

.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 100px;
}

.footer-logo img {
  width: 200px;
  display: block;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}

.footer-column a,
#menu-menu-footer {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  list-style-type: none;
}

#menu-menu-footer{
    line-height: 30px;
    margin-top: 0;
}

.footer-column a:hover {
  color: white;
}

.footer-copy {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-top: 30px;
}


/*-- RESPONSIVE --*/

@media (max-width: 768px) {
    .footer-container {
      flex-direction: column; 
      align-items: center; 
      text-align: center;
      gap: 30px;
    }
  
    .footer-logo img {
      width: 130px;
    }
  
    .footer-column {
      align-items: center;
    }
}