* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}

body {
    background-color: #eee0ca;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    color: white;
}

.logo-navbar {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo img {
    width: 80px;
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #f3e9dc;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    font-weight: bold;
    border-bottom: 2px solid #f3e9dc;
    color: #ffffff;
    background-color: #444;
    padding: 6px 10px;
    border-radius: 6px;
}

.menu-icon {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

/* Menú responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #333;
        text-align: center;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-icon {
        display: block;
    }

    #menu-toggle:checked+.nav-links {
        display: flex;
    }
}

.nav-links a.active {
    font-weight: bold;
    border-bottom: 2px solid white;
}

/* Secciones generales */
section {
    padding: 40px 20px;
    text-align: center;
}

.bienvenida {
    background-color: #fff8ef;
}

.destacados {
    background-color: #f5e6d3;
}

.testimonios {
    background-color: #fff8ef;
    font-style: italic;
}

/* Galería de productos */
.galeria {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
}

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

@media (max-width: 576px) {
    .grid-productos {
        grid-template-columns: 1fr;
    }
}

.producto {
    text-align: center;
    background-color: #f9f1e7;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.producto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.producto p {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* Formulario */
.formulario {
    background-color: #fff8ef;
    padding: 40px 20px;
    max-width: 600px;
    margin: 40px auto 20px;
    text-align: left;
}

.formulario form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario input,
.formulario textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.formulario button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.formulario button:hover {
    background-color: #555;
}

/* Página de contacto */
.contacto {
    background-color: #fdf4e3;
    padding: 40px 20px;
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: center;
}


.contacto .mapa {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    border-radius: 10px;
}

/* Pie de página */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer .redes {
    margin: 15px 0;
}

.footer .redes img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    vertical-align: middle;
}

.footer a {
    color: #eee0ca;
    text-decoration: none;
}

/* Logo portada */
.logo-portada {
    height: 50px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.logo .marca {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: bold;
    color: #f3e9dc;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Banner */
.banner-productos {
    text-align: center;
    padding: 30px 0;
    background-color: #fdfcfb;
}

.banner-productos img {
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Productos destacados en inicio */
.fila-productos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.producto-destacado {
    flex: 1 1 200px;
    max-width: 200px;
    text-align: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-destacado img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.descripcion-producto {
    font-size: 0.95em;
    color: #333;
    margin-top: 0.5rem;
    font-style: italic;
}

/*Portada elegante*/
.portada-elegante {
    background-image: url('../images/productos_destacados.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    border-bottom: 4px solid #eee0ca;
}

.portada-elegante h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 10px;
}

/*Botón ver más*/
.boton-vermas {
    margin-top: 40px;
    text-align: center;
}

.boton-vermas a {
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.boton-vermas a:hover {
    background-color: #555;
}