html {
    /* Bloqueamos solo el rebote vertical (blanco arriba/abajo) */
    overscroll-behavior-y: none; 
    /* Dejamos el horizontal en automático para que funcionen los gestos del trackpad */
    overscroll-behavior-x: auto; 
    background-color: var(--hueso); 
}

html.root-landing {
    background-color: #2b1b12; 
}

body {
    /* Aseguramos que el cuerpo siempre ocupe el alto de la pantalla */
    min-height: 100vh;
}


/* =========================================
   PALETA DE COLORES "COCINA DE MARÍA"
========================================= */
:root {
    --terracota: #bd3a2e;
    --maiz: #e5b324;
    --hoja: #6d9036;
    --cafe: #4a3627;
    --hueso: #fbf9f4;
}

/* =========================================
   PALETA DE COLORES "COCINA DE MARÍA"
========================================= */
:root {
    --terracota: #bd3a2e;
    --maiz: #e5b324;
    --hoja: #6d9036;
    --cafe: #4a3627;
    --hueso: #fbf9f4;
}

body {
    background-color: var(--hueso);
    color: var(--cafe);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================================
   NAVBAR (Barra Superior)
========================================= */
.navbar-custom {
    background-color: var(--cafe) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.navbar-custom .navbar-brand,
.navbar-custom .navbar-brand i,
.navbar-custom .nav-link,
.navbar-custom .nav-link i {
    color: var(--hueso) !important; /* Letras claras para que contrasten */
}

/* =========================================
   BOTONES
========================================= */
.btn-terracota {
    background-color: var(--terracota);
    color: white;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-terracota:hover { 
    background-color: #9c2e24; 
    color: white; 
    transform: scale(1.05); 
}

.btn-categoria {
    background-color: white;
    color: var(--cafe);
    border: 1px solid #eee;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.2s;
}
.btn-categoria:hover, .btn-categoria.active {
    background-color: var(--maiz);
    color: white;
    border-color: var(--maiz);
}

/* =========================================
   TARJETAS DEL MENÚ
========================================= */
.card-menu {
    border: none;
    border-radius: 18px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.card-menu:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
}

.img-platillo {
    height: 180px; 
    object-fit: cover; 
    border-top-left-radius: 18px; 
    border-top-right-radius: 18px;
}
.text-precio { 
    color: var(--hoja); 
    font-weight: 800; 
    font-size: 1.25rem; 
}

/* =========================================
   CARRITO LATERAL (Sidebar)
========================================= */
.sidebar-carrito {
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}

/* =========================================
   LANDING PAGE (index.php) - UNIFICADA
========================================= */
/* Fondo hueso/crema para todo el inicio */
.bg-landing {
    background-color: var(--hueso) !important;
    background-image: none !important;
    color: var(--cafe) !important;
}

/* Navbar unificada (Café oscuro con letras hueso, igual que propusimos para el menú) */
.navbar-landing {
    background-color: var(--cafe) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.navbar-landing .nav-link {
    color: rgba(251, 249, 244, 0.8) !important; /* var(--hueso) con opacidad */
}
.navbar-landing .nav-link:hover {
    color: white !important;
}
.navbar-landing .navbar-brand, .navbar-landing .navbar-brand i {
    color: white !important;
}

.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-bottom: 50px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--cafe); /* Título en café oscuro */
}

.hero-text {
    color: var(--cafe); /* Texto en café oscuro */
    opacity: 0.8;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.stats-container {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--cafe); /* Números en café oscuro */
    margin-bottom: 0;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--terracota); /* 👇 CAMBIADO DE AMARILLO A ROJO TERRACOTA 👇 */
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
}

.hero-img-container {
    position: relative;
    text-align: center;
}
.hero-img {
    max-width: 95%;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(74, 54, 39, 0.2); /* Sombra suave café */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .hero-section { text-align: center; padding-top: 2rem; }
    .hero-text { margin: 0 auto 2rem auto; }
    .stats-container { justify-content: center; gap: 1.5rem; }
    .hero-img { margin-top: 3rem; width: 80%; }
}

/* =========================================
   PAGINACIÓN BOOTSTRAP PERSONALIZADA
========================================= */
.pagination .page-link {
    color: var(--cafe); /* Letras en café */
    box-shadow: none !important;
}
.pagination .page-item.active .page-link {
    background-color: var(--terracota); /* Botón activo en terracota */
    border-color: var(--terracota);
    color: white;
}
.pagination .page-link:hover {
    background-color: var(--hueso);
    color: var(--terracota);
}

/* =========================================
   BOTONES DE CATEGORÍA EN EL MENÚ PÚBLICO
========================================= */
.btn-categoria {
    background-color: var(--hueso) !important; /* Fondo claro por defecto */
    color: var(--cafe) !important;             /* Letras color café */
    border: 1px solid rgba(189, 58, 46, 0.3) !important; /* Borde terracota sutil */
    border-radius: 20px !important;            /* Bordes bien redondeados */
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Cuando pasas el mouse por encima o cuando está ACTIVO */
.btn-categoria:hover,
.btn-categoria.active {
    background-color: var(--terracota) !important; /* Fondo Terracota */
    color: white !important;                       /* Letras blancas */
    border-color: var(--terracota) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);         /* Sombrita elegante */
}

/* =========================================
   SCROLLBAR PERSONALIZADA (ESTILO PREMIUM)
========================================= */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--hueso); 
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(74, 54, 39, 0.3); /* Color Café con transparencia */
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 54, 39, 0.6); /* Café más oscuro al pasar el mouse */
}


/* =========================================
   CALENDARIO FULLCALENDAR (COTIZACIONES)
========================================= */

/* Forzar tu color --cafe en los enlaces del calendario */
.fc a.fc-col-header-cell-cushion,
.fc a.fc-daygrid-day-number {
    color: var(--cafe) !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* Efecto hover (al pasar el ratón) con tu color --terracota */
.fc a.fc-col-header-cell-cushion:hover, 
.fc a.fc-daygrid-day-number:hover {
    color: var(--terracota) !important;
}

/* De paso, cambiemos el botón "Hoy" y las flechas para usar tus variables exactas */
.fc .fc-button-primary { 
    background-color: var(--cafe) !important; 
    border-color: var(--cafe) !important; 
}
.fc .fc-button-primary:hover {
    background-color: var(--terracota) !important;
    border-color: var(--terracota) !important;
}
.fc .fc-day-today { 
    background-color: var(--hueso) !important; 
}