/* ============================================================
   MAJJO — Sistema de diseño compartido (Hub + Kiosco + Almacén + Comida)
   Bootstrap 5.3 CDN solo para grid/collapse/utilidades.
   ============================================================ */

:root {
    /* Glass compartido (cards, paneles) */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);

    /* Base oscura por defecto (el Hub, Kiosco y Almacén comparten este fondo) */
    --bg: #0a0b0f;
    --surface: #14151b;
    --text: #e5e2e1;
    --text-muted: #a8a6ab;
    --outline-subtle: rgba(255, 255, 255, 0.08);
}

/* Fix obligatorio: navbar fixed que se mueve al hacer scroll en mobile */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button, .btn, input, textarea, select { border-radius: var(--radius-md); }

a { text-decoration: none; }

img { max-width: 100%; }

/* Bootstrap trae su propio gris con !important en .text-muted; lo pisamos
   para que respete la paleta oscura de cada página (si no, queda casi invisible). */
.text-muted { color: var(--text-muted) !important; }

/* ---------- Glass card genérica ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, border-color 0.4s ease;
}

/* ---------- Navbar fijo compartido ---------- */
.mca-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(5, 6, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline-subtle);
    padding: 14px 0;
    transition: padding 0.3s ease, background 0.3s ease;
}
.mca-nav.scrolled { padding: 8px 0; background: rgba(5, 6, 10, 0.97); }
.mca-nav .navbar-toggler { border: none; }
.mca-nav .navbar-toggler:focus { box-shadow: none; }
.mca-nav .navbar-toggler-icon { filter: invert(1); }
.mca-nav-link {
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}
.mca-nav-link:hover, .mca-nav-link.activo { color: var(--text); }

@media (max-width: 991px) {
    .mca-nav .navbar-collapse {
        background-color: rgba(10, 11, 15, 0.98);
        border-radius: var(--radius-md);
        margin-top: 12px;
        padding: 1rem 1.25rem;
    }
    .mca-nav-link { border-bottom: 1px solid var(--outline-subtle); padding: 0.6rem 0; }
}

/* ---------- Footer compartido ---------- */
.mca-footer {
    background: #06070a;
    border-top: 1px solid var(--outline-subtle);
    padding: 64px 0 32px;
}
.mca-footer a { color: var(--text-muted); }
.mca-footer a:hover { color: var(--text); }
.mca-footer h6 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.mca-footer-bottom {
    border-top: 1px solid var(--outline-subtle);
    padding-top: 24px;
    margin-top: 40px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- Botón WhatsApp flotante (Kiosco / Almacén / Comida) ---------- */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    font-size: 1.6rem;
    z-index: 1040;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* ---------- Breakpoints comunes ---------- */
@media (max-width: 767px) {
    .section-gap { padding-top: 72px !important; padding-bottom: 72px !important; }
}
@media (min-width: 768px) {
    .section-gap { padding-top: 120px; padding-bottom: 120px; }
}
