* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f7f2;
    color: #2b2b2b;
}

header {
   
    background: linear-gradient(90deg, #000000, #444444);
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: linear-gradient(90deg, #000000, #444444);
}


.logo img {
    height: 70px;
}

nav a {
    margin-left: 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.btn {
    background: #4caf50;
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
}

.btn-outline {
    border: 2px solid #4caf50;
    padding: 8px 15px;
    border-radius: 5px;
    color: #4caf50;
}

.hero {
    background: url("img/banner.jpg") center/cover no-repeat;
    height: 95vh;
    display: flex;
    align-items: center;
    padding: 5%;
}

.hero-text {
    max-width: 500px;
    background: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: 10px;
}

.hero-text h1 {
    color: #2e7d32;
}

.hero-text p {
    margin-bottom: 25px;
}

.hero.fade {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero.show {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.productos, .nosotros, .testimonios {
    padding: 50px 5%;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.nosotros ul {
    list-style: none;
    margin-top: 20px;
}

.nosotros li {
    margin: 10px 0;
}

.testimonio {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
}

footer {
    background: linear-gradient(90deg, #000000, #444444);
    color: white;
    padding: 30px;
    text-align: center;
}


footer .btn {
    display: inline-block;
    margin-top: 10px;
}


.elegirnos {
    padding: 50px 5%;
    background: white;
}

.elegirnos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.elegirnos-left h2,
.elegirnos-right h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.elegirnos-left ul {
    list-style: none;
}

.elegirnos-left li {
    margin-bottom: 12px;
    font-size: 16px;
}

.elegirnos-right {
    background: #f0ebe4;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.elegirnos-right p {
    margin: 15px 0 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .elegirnos-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.testimonios {
    background: white;
    padding: 60px 5%;
    text-align: center;
}

.testimonios h2 {
    color: #2e7d32;
    margin-bottom: 40px;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonio-card {
    background: white;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.testimonio-card:last-child {
    border-right: none;
}

.testimonio-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonio-card h3 {
    margin: 10px 0 5px;
}

.stars {
    color: orange;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonio-card p {
    color: #555;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .testimonio-card {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 30px;
    }
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* OCULTAR CHECKBOX */
#menu-bar {
    display: none;
}

/* ICONO MENU */
.icon-menu {
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: none;
}

/* MENU DESKTOP */
.menu {
    display: flex;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

    .icon-menu {
        display: block;
    }

    .menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.95);

        display: flex;
        flex-direction: column;

        transform: translateX(-100%);
        transition: 0.3s;
        z-index: 1000;
    }

    .menu a {
        padding: 15px;
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    /* ACTIVAR MENU */
    #menu-bar:checked ~ .menu {
        transform: translateX(0);
    }
}

/* ===== FIX MENU RESPONSIVE ===== */

/* asegura que el header sea referencia */
header {
    position: relative;
    z-index: 1000;
}

/* contenedor correcto */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* ocultar checkbox */
#menu-bar {
    display: none;
}

/* icono */
.icon-menu {
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: none;
}

/* MENU DESKTOP */
.menu {
    display: flex;
    align-items: center;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .icon-menu {
        display: block;
    }

    .menu {
        position: fixed; /* 👈 CAMBIO CLAVE */
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px); /* 👈 ocupa toda pantalla */

        background: rgba(0,0,0,0.95);

        display: flex;
        flex-direction: column;

        transform: translateX(-100%);
        transition: 0.3s ease;

        z-index: 9999; /* 👈 por encima de todo */
    }

    .menu a {
        padding: 15px;
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        text-align: center;
    }

    /* activar menu */
    #menu-bar:checked ~ .menu {
        transform: translateX(0);
    }
}

/* ===== FIX MOBILE BANNER ===== */
@media (max-width: 768px) {

    /* BANNER */
    .hero {
        height: auto;
        min-height: 280px;
        padding: 25px 15px;
        align-items: flex-start;

        background-size: 120%; /* 👈 más visible */
        background-position: center 15%;
    }

    /* CAJA TEXTO */
    .hero-text {
        max-width: 220px;  /* 👈 más pequeña */
        padding: 10px;
        margin-top: 10px;

        background: rgba(255,255,255,0.55); /* 👈 más transparente */
    }

    /* TITULO */
    .hero-text h1 {
        font-size: 15px;
        line-height: 1.2;
    }

    /* TEXTO */
    .hero-text p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* BOTONES */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .hero-buttons a {
        width: 100%;
        padding: 6px;
        font-size: 12px;
        text-align: center;
    }
}