/* ====== BASE ====== */
body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    background: #F5F3E7;
    color: #333;
}

/* ====== NAVBAR ====== */
.navbar {
    background: #5E7C5A;
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.navbar a:hover {
    background: #486948;
}

.navbar a.activo {
    background: #4CAF50;
}

/* ====== ENCABEZADO INTERNO ====== */
.encabezado-interno {
    background: url('../img/portada.jpg') center/cover no-repeat;
    padding: 110px 25px;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.encabezado-interno h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
}

.encabezado-interno p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ====== CONTENEDOR GENERAL ====== */
.contenedor {
    width: min(1000px, 90%);
    margin: 40px auto;
}

/* ====== TITULOS INTERNOS ====== */
.contenedor h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.intro {
    font-size: 1.12rem;
    margin-bottom: 30px;
    color: #555;
}

/* ====== GRILLA DE PRODUCTOS ====== */
.grilla-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.producto {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.producto img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.producto h3 {
    margin: 10px 0 5px;
    font-size: 1.3rem;
    color: #333;
}

.producto p {
    color: #555;
}

/* ====== BOTONES ====== */
.boton {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: #5E7C5A;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background .2s;
}

.boton:hover {
    background: #3d9140;
}

/* ====== FOOTER ====== */
footer {
    text-align: center;
    padding: 20px;
    background: #5E7C5A;
    color: white;
    margin-top: 40px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 850px) {

    .navbar ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .encabezado-interno {
        padding: 70px 20px;
    }

    .encabezado-interno h1 {
        font-size: 2.3rem;
    }

    .encabezado-interno p {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {

    .encabezado-interno {
        padding: 60px 15px;
        text-shadow: 1px 1px 4px black;
    }

    .contenedor {
        width: 92%;
    }
}
