/* =========================================
   CONFIGURACIÓN BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    overflow-x: hidden;
}

/* NAVEGACIÓN */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065535;
}

.logo span { color: #ce1126; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: #ce1126; }

/* =========================================
   CARRUSEL RESPONSIVO (10 IMÁGENES)
   ========================================= */
.carousel-container {
    width: 100%;
    height: clamp(300px, 60vh, 500px); /* Altura flexible */
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.item {
    min-width: 100%; /* Cada platillo ocupa el 100% del ancho */
    height: 100%;
    position: relative;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene proporción sin estirar */
    object-position: center;
    display: block;
}

/* Sombra para que el texto sea legible */
.item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    pointer-events: none;
}

.caption {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    background: rgba(6, 85, 53, 0.9); /* Verde institucional */
    padding: 12px 20px;
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-family: 'Playfair Display', serif;
    border-radius: 4px;
    border-left: 6px solid #ce1126; /* Detalle en rojo */
    z-index: 10;
}

/* BOTONES DE NAVEGACIÓN */
#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: 0.3s;
}

#prevBtn:hover, #nextBtn:hover { background: #ce1126; }
#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* =========================================
   HERO Y CONTENIDO
   ========================================= */
.hero {
    padding: 4rem 5%;
    text-align: center;
    background: #f4f4f4;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #ce1126;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover { transform: scale(1.05); }

/* GRID DE CATEGORÍAS */
.categories {
    padding: 4rem 5%;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* FOOTER */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 3rem 5%;
}

/* RESPONSIVO MÓVIL */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .carousel-container { height: 280px; }
    #prevBtn, #nextBtn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}