/*
Theme Name: Trabajo Modulo  2  - Unidad 3
Author:     Pedro Morales Jara
Description: 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;
}

* {
    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: 100 px 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: 14pt;
}
.hero_descripcion p {
    font-size: 12pt;
    margin: 50px;
}

@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;
    }
}



.nosotros_img {
    overflow: hidden;
    border-radius: 0;
    width: 100%;
    margin: 0;
}

.nosotros_img img {
    transition: transform 0.3s ease;
}

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

.nosotros_contenido {
    padding: 30px 20px;
}

.nosotros_titulo {
    color: var(--colorboton1);

}
.nosotros_descripcion {
    color: var(--colorboton1);
}

tarjeta {
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.tarjeta {
    background-color: var(--color_principal);
    padding: 20px;
    margin: 20px 0;
    flex: 1 1 calc(40%);
    border-radius: 8px;
    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;
}

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

.nuestros-pilares h2 {
    color: #ffffff;
}
.nuestros-pilares_tarjetas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tarjeta_descipcion p {
    font-size: 12pt;
    margin-bottom: 30px;
}


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

}
.productos-grid {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.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: 24px;
}

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

}

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

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

