
/* ----------------- RESET ----------------- */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}
.logo {
    width: 300px;
    height: auto;
}

.hero-text h1 {
    font-family: 'Gravitas One', sans-serif;
}

.categorias h2,
.hero-text p {
    font-family: 'Abril Fatface', cursive;
}

.tarjetas {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 25px;
  
}

/* Tarjeta */
.tarjeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    border-radius: 16px;
    padding: 20px;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Invierte imagen y texto */
.tarjeta.invertida {
    flex-direction: row-reverse;
}

/* Texto */
.tarjeta-texto {
    flex: 1;
}

/* Imagen circular */
.tarjeta-img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
}


body{
    margin: 0;
    background-image: url("img/17.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* opcional: efecto elegante */
}

/* ----------------- HERO ----------------- */
.hero{
    min-height:100vh;
    position: relative;
    color: white;
    background: transparent;
}

/* capa oscura encima de la imagen */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.4);
}

/* ----------------- HEADER ----------------- */
.header{
    position: relative;
    z-index: 2;
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding: 15px 60px;
}


.menu a{
    color:white;
    text-decoration:none;
    margin:0 15px;
    font-weight:600;
}

.menu a:hover{
    text-decoration:underline;
}

/* ----------------- HERO CONTENT ----------------- */
.hero-content{
    position: relative;
    z-index: 2;
    display:grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap:40px;
    padding: 0px 60px;
    align-items: stretch; /* 🔥 ESTO arregla el fondo negro */
}

/* izquierda */
.hero-text small{
    letter-spacing:3px;
    opacity:0.9;
}

.hero-text h1{
    font-size:64px;
    line-height:1.1;
    margin:15px 0;
}

.hero-text p{
    max-width:520px;
    margin-bottom:25px;
}

.hero-buttons a{
    display:inline-block;
    padding:12px 22px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
    margin-right:10px;
}

.whatsapp-float{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover{
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}


.btn-verde{ background:#4CAF50; color:white; }
.btn-naranja{ background:#FF9800; color:white; }

/* ----------------- CATEGORIAS ----------------- */
/* limitar el ancho de la caja de categorías para que no quede tan grande */
.categorias{
    background: rgba(0,0,0,0.55);
    padding:20px;
    border-radius:12px;
    max-width:420px;
    width:100%;
    box-sizing:border-box;

    display: flex;
    flex-direction: column;
}

.categorias h2{
    color:#FFD54F;
    margin-bottom:8px;
}

.grid-cat{
    display:block; /* evita que aparezca como cuadrícula grande dentro de la caja pequeña */
    margin-top:12px;
}

/* Ajustes para que las tarjetas dentro de la caja de categorías ocupen el ancho disponible y no se posicionen como contenedor centrado */
.categorias .tarjetas{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: stretch;
}

/* Tarjeta individual: tamaño y espaciado reducido para encajar mejor */
.tarjeta{
   height: 100%;
}

.tarjeta.invertida{
    flex-direction: row-reverse;
}

.tarjeta-texto{
    flex: 1;
    min-width: 0; /* evita overflow del texto */
}

.tarjeta-texto h3{
    color: #2E7D32;
    font-size: 18px;
    margin-bottom: 6px;
}

.tarjeta-texto p{
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.tarjeta-img{
    width: 80px;
    height: 80px;
}

.tarjeta-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===== SOLO PARA MISIÓN Y VISIÓN ===== */
/* Esto asegura que la imagen se adapte al contenedor sin desbordar */
.seccion-esencia .tarjeta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Mantiene la proporción y llena el cuadro */
    object-position: center; /* Centra la cara del campesino */
    border-radius: 12px;    /* Opcional: para que las esquinas de la imagen coincidan con la tarjeta */
    display: block;
}

/* Asegura que el contenedor de la imagen no empuje hacia afuera */
.seccion-esencia .tarjeta-img {
    flex: 1;
    max-width: 45%;         /* Limita el ancho para que no le quite espacio al texto */
    display: flex;
    align-items: center;    /* Centra verticalmente */
    overflow: hidden;       /* Recorta cualquier exceso */
}
/* Texto justificado */
.seccion-esencia .tarjeta-texto p{
    text-align: justify;
}


/* Mantener tamaño de tarjetas grandes (fuera de la sección de categorías) si existen en otra parte */
.tarjetas:not(.categorias .tarjetas){
    max-width: 1100px;
    margin: 80px auto;
    padding: 20px;
    gap: 40px;
}

/* RESPONSIVE */
@media(max-width: 700px){
    .tarjeta,
    .tarjeta.invertida{
        flex-direction: column;
        text-align: center;
    }

    .tarjeta-img{
        width: 160px;
        height: 160px;
        margin: 0 auto;
        border-radius: 50%;
    }

    .categorias{
        max-width: none;
        padding:18px;
    }

    .hero-content{
        padding: 0 24px;
    }

    .categorias .tarjetas{
        grid-template-columns: 1fr;
    }

}


/* ----------------- RESPONSIVE ----------------- */
@media(max-width:900px){
    .hero-content{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-text h1{ font-size:42px; }

    .header{
        flex-direction:column;
        gap:10px;
    }
}

