/*
Theme Name: Trabajo Modulo  2  - Unidad 3
Author:     Pedro Morales Jara
Descriion: Thema para mi página de Ecomarket
Version: 1.0.0    
*/

/*
Variables
*/

:root {
    --verde-oscuro: #26463f;
    --verde-medio:  #0f380f;
    --verde-claro: #1a2e1a;
    --verde-fondo: #336d33;
    --verde-borde: #1a2e1a;
    --verde-muted:   #1a2e1a;
    --blanco:        #ffffff;
    --color_principal: #ffffff;
    --colorboton1: #ffffff;


}

*{
    margin: 0;
    padding:0;
    box-sizing: border-box;

}

body {
    font-family: Arial, sans-serif;
    color: var(--verde-claro);
    line-height: 1.6;
    font-size: 16px;

    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--verde-medio);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/*
Header
*/

header {
    background-color: var(--verde-oscuro);
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top:0;
    z-index: 100;
    box-shadow: 0 2px 12px  rgba(0, 0,0, 0.3);

}

.site-logo span {

    color: var(--blanco);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.90rem;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}
    nav ul li a:hover,
    nav ul li.current-menu-item a{
    color: var(--verde-claro);
    text-decoration: none;    
    }   

/*
Boton call to action
*/

.btn-cta {
    display: inline-block;
    background-color: var(--verde-oscuro);
    color: var(--blanco);
    padding: 14px 35px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    
}   

.btn-cta:hover {
    background-color: #1f5c1f;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--blanco);
}

/*
Hero
*/

.hero {
    background-image: url(asset/img/banner.png);
    background-size: cover;
    padding: 100px 60px;
    min-height: 47vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-baner {
    background-image: url(asset/img/Baner_ancho.png);
    background-size: cover;
    padding: 100px 40px;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero_contenido {
  position: relative;
  text-align: center;
  color: var(--blanco );
  background-color: #26463f;
  padding: 20px;
  padding: 100px 60px;
}

.botonCTA {   /*botón Call to Action */
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    padding: 12px 50px;
    transition: 180ms;
    color: #fff;
    display: inline-block;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.15);
    letter-spacing: 1px;
    margin-top: 18px;
    margin-bottom: 10px;
}


.hero_subtitulo {
    font-size: 21px;
}
.hero_descripcion p {
    font-size: 18px;
    margin: 60px;
}

@media (max-width: 600px) {
    .tituloh1 {
        font-size: 1.3em;
        line-height: 1.2;
        padding: 10px 0 5px 0;
        text-align: center;
    }
    .hero_subtitulo {
        font-size: 1em;
        line-height: 1.2;
        margin-bottom: 8px;
        text-align: center;
    }
    .hero_descripcion p {
        font-size: 0.95em;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Nosotros */
.nosotros {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.nosotros-banner {
    background-image: url(asset/img/logo_nosotros.png);
    /*width: 100%; */
    overflow: hidden;
    margin-bottom: 10px;
    /* background-size: cover;*/
    padding: 10px 10px;
    min-height: 27vh;
    display: flex;
    align-items: center;
    justify-content: center;


}

.banner-nosotros-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
@media (min-width: 768px) {
    .banner-nosotros-img {
        height: 350px;
    }
}
.ico-nos {
    background-image: url(asset/img/logo_nosotros.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    justify-content: center;
    margin: 0 auto;

}
.ico {
    background-image: url(asset/img/icono1.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    justify-content: center;
    margin: 0 auto;

}

.ico2 {
    background-image: url(asset/img/icono2.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    justify-content: center;
    margin: 0 auto;

}

.ico3 {
    background-image: url(asset/img/icono3.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    justify-content: center;
    margin: 0 auto;

}

.ico4 {
    background-image: url(asset/img/icono4.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    justify-content: center;
    margin: 0 auto;

}

.nosotros_img {
    overflow: hidden;
    border-radius: 0;
    width: 100%;
    margin: 0;
}
.direccion{
        text-decoration-color: #082201;
}
.nosotros_img img {
    transition: transform 0.3s ease;
}

.nosotros_img:hover img {
    transform: scale(1.05);
}

.nosotros_contenido {
    padding: 40px 150px 40px 150px;
    color: var(--verde-oscuro);
}

.nosotros_titulo {
    color: var(--verde-medio);

}
.nosotros_descripcion {
    color: var(--verde-medio);
}


/* Nuestros Pilares */
.nuestros-pilares {
    background-color: var(--colorboton1);
    padding: 50px;
    text-align: center;
    color: VAR(--verde-oscuro );
}

.nuestros-pilares h2 {
    color:  VAR(--verde-oscuro);
}
.nuestros-pilares_tarjetas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tarjeta_descipcion p {
    font-size: 12px;
    margin-bottom: 30px;
}


/* Productos destacados */
.productos {
    padding: 90px 60px;
    background-color: var(--verde-oscuro);
    text-align: center;


}
.productos-grid {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.productos h2 {
    color: #ffffff;
}
.producto-card {
    background-color: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--verde-borde);
    transition: box-shadow 0.25s, transform 0.25s;
    text-align: left;
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto-card-body {
    padding: 28px;
    color: #031b37;   
}

.destaca {
    color: #fff ;

}

.producto_color {
    color: #031b37;    
}

.producto_color p {
    color: #295605;
    margin-bottom: 15px;

}

.producto-card-body p{
    padding: 15px;
    color: #031b37;   
}


.producto-card h3 {
    font-size: 1.5rem;
    color:var(--verde-oscuro);
    margin-bottom: 8px;

}

.producto-card p {
    font-size: 0.88rem;
    color:var(--verde-medio);
    line-height: 1.65;
}

.sin-productos {
    font-size: 0.92rem;
    color: var(--blanco);
    font-style: italic;
    text-align: center;

}

.tarjeta {
    background-color: var(--color_principal);
    padding: 20px;
    margin: 20px 0;
    flex: 1 1 calc(40%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: #000000;
}


.tarjeta p {
    color: #000000;
}

.tarjeta:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.tarjeta_descipcion p {
    font-size: 12px;
    margin-bottom: 30px;
}


.section-label {
    color: #ffffff;
}

.section-label h3 {
    color: #ffffff;
}

.icono {
  font-size: 50px;
  color: #26463f; /* tono verde ecológico */
  margin-bottom: 100px;
  display: block;
  text-align: center;
  align-content: center;
  width: 10px;
  margin: 10px  auto; /* centra horizontalmente */
}

.section-icon {
    font-size: 2.5em;
    color: var(--colorboton1);
    display: block;
    margin-bottom: 15px;
}


/**
.footer {
    background-color: var(--colorsecundario);
    text-align: center;
    padding: 50px 20px;
    color: #ffffff;
}
.footer-logo {
    margin-bottom: 30px;
}
.footer-logo-img {
    width: 120px;
    height: auto;
    opacity: 0.9;
}
.logo-footer {
    margin-bottom: 50px;
}
.footer_titulo {
    font-weight: 800;
    color: var(--colorblanco);
}
.footer_texto {
    font-size: 10xt;
     color: var(--colorblanco);
}
.footer-copy {
    background-color: var(--colorsecundario);
    padding: 10px 0;
    color: var(--colorblanco);
}

footer_complementario {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

*/

/* --- Estilos Generales del Footer --- */

.footer_complementario {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}
.footer {
    background-color: var(--verde-oscuro); /* Color de fondo claro (cámbialo a tu gusto) */
    padding: 40px 20px;
}

.footer h3 {
    color: #fff;
}

/* --- Contenedor en Grid (Magia de las 3 columnas) --- */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Crea 3 columnas iguales en pantallas grandes */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; /* Espacio entre las columnas */
    align-items: center; /* Alinea los elementos verticalmente al centro */
}

/* --- Columna 1: Logo --- */
.footer-logo {
    text-align: left;
}

.footer-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Columna 2: Datos de Contacto --- */
.footer-contacto {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre dirección, teléfono y correo */
    font-style: normal; /* Quita la cursiva por defecto de la etiqueta <address> */
    color: #ffffff;
}

.footer-titulo {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.direccion1 h3 {
    color: var(--blanco);
}

.direccion p {
    color: var(--blanco);
}


.ico-footer {
    background-image: url(asset/img/Logo_ecomarket_footer.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 54px;
    width: 200px;
    height: 120px;
    margin: 0 auto;
}

.footer-texto {
    margin: 0;
    font-size: 0.95rem;
}

.footer-enlace {
    color: #99d35f; /* Color del enlace */
    text-decoration: none;
}

.footer-enlace:hover {
    text-decoration: underline;
}

.footer_titulo {
    color: #ddd;
}

/* --- Columna 3: Copyright --- */
.footer-copy {
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
}

/* --- RESPONSIVO (Para Celulares y Tablets) --- */
@media (max-width: 768px) {
    .footer-container {
        /* En pantallas pantallas medianas/chicas, pasa de 3 columnas a 1 sola */
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo, 
    .footer-copy {
        text-align: center; /* Centra el logo y el copy en el celular */
    }
}

.contacto {
        padding: 90px 60px;
        max-width: 620px;   
        text-align: center;
        margin: 0 auto;
}

.contacto h2 {
        font-size: 2rem;
        color:#1f5c1f;
        margin-bottom: 12px;
}

.contacto p {
    color: var(--verde-fondo);
    margin-bottom: 36px;

}
@media (max-width: 1024px) {
    .cards {grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 1024px) {
    .hero {padding: 70px 32px;}
    .hero h1 {font-size: 2.2rem;}
    .stats {grid-template-columns: 1fr; gap:32px;}
    .cards {grid-template-columns: 1fr;}
    .caracteristicas,
    .impacto,
    .cta-final,
    .contacto {padding: 70px  32px;} 
}



* ==========================================================================
   ESTILOS FORMULARIO CONTACT FORM 7 (ECOMARKET)
   ========================================================================== */

/* Contenedor principal del formulario */
.formulario-ecomarket {
    background-color: #f9fbf9; /* Un fondo sutilmente verdoso muy claro */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(38, 70, 63, 0.08); /* Sombra suave con base verde oscuro */
    max-width: 100%;
    text-align: left;
    border: 1px solid rgba(51, 109, 51, 0.1);
}

/* Espaciado entre cada campo */
.grupo-campo {
    margin-bottom: 24px;
}

/* Estilo de las etiquetas (Títulos de los campos) */
.formulario-ecomarket label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin-bottom: 8px;
}

/* Estilo para todas las cajas de texto y textareas generados por el plugin */
.formulario-ecomarket input[type="text"],
.formulario-ecomarket input[type="email"],
.formulario-ecomarket textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--verde-claro);
    background-color: var(--blanco);
    border: 1.5px solid #d1dcd1; /* Borde gris verdoso suave */
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Estilo del área de mensaje (Textarea) */
.formulario-ecomarket textarea {
    height: 140px;
    resize: vertical; /* Permite estirar hacia abajo, no hacia los lados */
}

/* Efecto Focus: Cuando el usuario hace clic para escribir */
.formulario-ecomarket input[type="text"]:focus,
.formulario-ecomarket input[type="email"]:focus,
.formulario-ecomarket textarea:focus {
    outline: none;
    border-color: var(--verde-fondo); /* El borde se ilumina con tu verde */
    box-shadow: 0 0 0 4px rgba(51, 109, 51, 0.15); /* Efecto de brillo sutil */
    background-color: var(--blanco);
}

/* Cambiar el color del texto de sugerencia (Placeholder) */
.formulario-ecomarket ::placeholder {
    color: #a0b2a0;
    opacity: 1;
}

/* Contenedor del botón */
.grupo-boton {
    text-align: center;
    margin-top: 10px;
}

/* Estilo del botón Enviar de Contact Form 7 */
.formulario-ecomarket input[type="submit"] {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%); /* Mismo degradado de tu botonCTA */
    color: var(--verde-oscuro); /* Cambiado a verde oscuro para que contraste y se lea perfecto */
    padding: 14px 50px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 30px; /* Redondeado tipo píldora */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.25);
    letter-spacing: 0.5px;
    width: auto;
    display: inline-block;
}

/* Efecto Hover del botón */
.formulario-ecomarket input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
    filter: brightness(1.05); /* Le da un ligero brillo al pasar el mouse */
}

/* Ajustes dinámicos para respuestas de éxito/error nativas del plugin */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}
