/* =========================================================================
   Orion Pilates - Design System
   Paleta: Chocolates claros/oscuros, marrones, dorados.
   ========================================================================= */

:root {
    /* Color Palette (Base Dark Mode) */
    --color-dark-choco: #2B1E16;
    /* Deepest brown/black */
    --color-brown: #4A3320;
    /* Rich chocolate brown */
    --color-latte: #CBA585;
    /* Light brown / gold tone */
    --color-gold: #D4AF37;
    /* Premium gold */
    --color-cream: #F5EFEB;
    /* Off-white for backgrounds/text */
    --color-white: #FFFFFF;

    /* Semantic Variables (Dark Mode Default) */
    --bg-body: var(--color-dark-choco);
    --bg-card: rgba(43, 30, 22, 0.6);
    --bg-input: rgba(0, 0, 0, 0.3);
    --text-primary: var(--color-white);
    --text-label: var(--color-latte);
    --border-color: rgba(203, 165, 133, 0.2);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--color-latte) 0%, var(--color-gold) 100%);
    --gradient-glass: rgba(43, 30, 22, 0.7);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* Spacing & Sizes */
    --max-width: 1200px;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Base Reset & Typography
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    /* Offset para el header dinámico glassmorphism */
}

/* =========================================================================
   Custom Scrollbar (Premium Theme)
   ========================================================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-choco);
}

::-webkit-scrollbar-thumb {
    background: var(--color-brown);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-latte);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* =========================================================================
   Buttons & UI Elements
   ========================================================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    background: var(--color-gold);
    color: var(--color-dark-choco);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--color-dark-choco);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-outline-gold:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold:disabled {
    border-color: rgba(203, 165, 133, 0.3);
    color: var(--color-latte);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Glassmorphism Classes */
.glass-panel,
.glass-card,
.glass-header {
    background: rgba(74, 51, 32, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(203, 165, 133, 0.2);
}

.glass-card {
    padding: var(--space-md);
    border-radius: 16px;
    transition: var(--transition-fast);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    background: rgba(74, 51, 32, 0.5);
}

/* =========================================================================
   Header Navbar
   ========================================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--color-white);
    letter-spacing: 2px;
}

.logo span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-cream);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-latte);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Decor Background Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-brown);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #3A2616;
    bottom: -150px;
    right: -100px;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(203, 165, 133, 0.15);
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================================================
   Sections & Layout
   ========================================================================= */
.section {
    padding: var(--space-lg) 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.section-title span {
    font-style: italic;
    color: var(--color-gold);
}

.section-desc {
    color: var(--color-latte);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    display: inline-block;
}

/* About Section */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.glass-card p {
    font-weight: 300;
}

/* Instagram Gallery Section */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ig-post {
    height: 250px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: var(--color-brown);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-bg-1 {
    background: linear-gradient(45deg, var(--color-dark-choco), var(--color-brown));
}

.ig-bg-2 {
    background: linear-gradient(135deg, var(--color-brown), var(--color-dark-choco));
}

.ig-bg-3 {
    background: linear-gradient(45deg, var(--color-brown), #3A2616);
}

.ig-bg-4 {
    background: linear-gradient(135deg, #3A2616, var(--color-brown));
}

.ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 30, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.ig-post:hover .ig-overlay {
    opacity: 1;
}

.ig-overlay span {
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Location Section */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    padding: 0.5rem;
}

.map-container iframe {
    border-radius: 12px;
    filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%);
}

/* =========================================================================
   Footer
   ========================================================================= */
.main-footer {
    background-color: #1A120D;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(203, 165, 133, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
    color: var(--color-white);
}

.footer-brand span {
    color: var(--color-gold);
}

.footer-brand p {
    color: var(--color-latte);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-social a {
    color: var(--color-cream);
    transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-gold);
}

.footer-social p,
.footer-links p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-latte);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    color: rgba(245, 239, 235, 0.5);
    font-size: 0.8rem;
}

/* =========================================================================
   Animations & Transitions
   ========================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up,
.slide-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* =========================================================================
   Mobile Menu & Responsive Adjustments
   ========================================================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above the mobile menu */
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 5px;
    transition: var(--transition-fast);
}

.mobile-only-btn {
    display: none;
}

@media (max-width: 900px) {

    /* grids adjustments */
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Transform burger into X when open */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .desktop-only-btn {
        display: none;
    }

    .mobile-only-btn {
        display: inline-block;
        margin-top: 2rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(26, 18, 13, 0.98);
        width: 70%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-smooth);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding-top: 100px;
    }

    .section-title {
        font-size: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    /* Instagram Grid */
    .ig-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        width: 100%;
    }
}

/* =========================================================================
   Authentication Pages (Login/Register)
   ========================================================================= */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-md);
    background: radial-gradient(circle at center, #3A2616 0%, var(--color-dark-choco) 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-block;
    color: var(--color-latte);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--color-gold);
}

.auth-card {
    background: rgba(43, 30, 22, 0.6);
    padding: 3rem 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--color-white);
    letter-spacing: 2px;
}

.auth-header span {
    color: var(--color-gold);
}

.auth-header p {
    color: var(--color-latte);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-cream);
    font-weight: 300;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 18, 13, 0.5);
    border: 1px solid rgba(203, 165, 133, 0.2);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-options {
    text-align: right;
}

.forgot-password {
    font-size: 0.85rem;
    color: var(--color-latte);
    transition: var(--transition-fast);
}

.forgot-password:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-cream);
}

.auth-footer a {
    color: var(--color-gold);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

.success-msg {
    color: #51cf66;
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

/* =========================================================================
   Password Visibility Toggle
   ========================================================================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
    /* Make room for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--color-latte);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    padding: 0;
}

.password-toggle:focus {
    outline: none;
}

.password-toggle:hover {
    color: var(--color-gold);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a358;
}

/* =========================================================================
   Modals (Registration, Onboarding, Confirmations)
   ========================================================================= */
.global-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Un poco más oscuro para Onboarding restrictivo */
    backdrop-filter: blur(8px);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.global-modal.active {
    display: flex;
}

.modal-container {
    background: var(--color-dark-choco);
    border: 1px solid var(--color-latte);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    color: var(--color-cream);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    color: var(--color-latte);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-gold);
}

.global-modal h3 {
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.global-modal p.modal-desc {
    color: var(--color-latte);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Modal Input Files */
input[type="file"] {
    background: rgba(26, 18, 13, 0.5);
    padding: 0.8rem;
    border: 1px dashed var(--color-latte);
    border-radius: 8px;
    width: 100%;
    color: var(--color-white);
    font-size: 0.9rem;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--color-brown);
    border: none;
    color: var(--color-cream);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
}

/* =========================================================================
   Light Theme Override (Modo Claro)
   ========================================================================= */
html.light-theme {
    /* Semantic Variables for Light Mode */
    --bg-body: #d0ab7a;
    /* Color arena/dorado suave solicitado por el usuario */
    --bg-card: #e6c89b;
    /* Tono ligeramente más claro para resaltar tarjetas */
    --bg-input: #e6c89b;
    --text-primary: #2b1e16;
    /* Marrón oscuro intenso original para máximo contraste */
    --text-label: #4a3320;
    --border-color: #b58d56;

    /* Overrides para consistencia legada */
    --color-dark-choco: #d0ab7a;
    /* Fondo general */
    --color-cream: #2b1e16;
    /* Texto principal oscuro */
    --color-latte: #4a3320;
    /* Textos secundarios */
    --color-white: #2b1e16;
    /* Inversión extrema */
    --color-gold: #4a2c14;
    /* Marrón súper intenso para elementos dorados */
    --gradient-glass: rgba(230, 200, 155, 0.85);
    /* Cristal arena */
}

/* Modificaciones específicas para modo claro (Glassmorphism Invertido) */
html.light-theme .glass-panel,
html.light-theme .glass-card,
html.light-theme .glass-header {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 94, 52, 0.2);
    box-shadow: 0 8px 32px 0 rgba(139, 94, 52, 0.1);
}

html.light-theme .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px 0 rgba(139, 94, 52, 0.2);
}

/* Ajustes de Body de Login/Registro */
html.light-theme .auth-body {
    background: radial-gradient(circle at center, #F0E6DD 0%, #E6D5C7 100%);
}

/* Ajustes de Inputs en modo claro */
html.light-theme .form-group input,
html.light-theme input[type="text"],
html.light-theme input[type="password"],
html.light-theme input[type="email"],
html.light-theme input[type="number"],
html.light-theme select {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-white);
    border: 1px solid rgba(139, 94, 52, 0.4);
}

html.light-theme .form-group input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
}

/* Ajustes en el Header / Nav */
html.light-theme .nav-links {
    background: rgba(253, 251, 249, 0.95);
}

/* Ajustes de Modales */
html.light-theme .modal-container,
html.light-theme .global-modal .modal-container {
    background: #FDFBF9;
    border: 1px solid var(--color-gold);
    box-shadow: 0 15px 50px rgba(43, 30, 22, 0.15);
}

/* Ajustes de Footer */
html.light-theme .main-footer {
    background-color: #EBE0D6;
    border-top: 1px solid rgba(139, 94, 52, 0.2);
}

/* Ajustes de Tablas de Administrador */
html.light-theme table th {
    background-color: #E6D5C7;
    color: var(--color-white);
}

html.light-theme table tr:hover {
    background-color: rgba(240, 230, 221, 0.8);
}

/* =========================================================================
   Sistema de Notificaciones Custom (Toasts Glassmorphism)
   ========================================================================= */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    background: rgba(43, 30, 22, 0.85);
    /* var(--color-dark-choco) con opacidad */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #F5EFEB;
    /* var(--color-cream) */
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;

    /* Borde principal dinámico, bordes sutiles glassmorphism */
    border-left: 4px solid var(--color-gold);
    border-top: 1px solid rgba(203, 165, 133, 0.2);
    border-right: 1px solid rgba(203, 165, 133, 0.2);
    border-bottom: 1px solid rgba(203, 165, 133, 0.2);

    /* Animación inicial oculta (Slide in desde la derecha) */
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Modificadores por tipo de alerta */
.custom-toast.exito {
    border-left-color: #51cf66;
}

.custom-toast.error,
.custom-toast.advertencia {
    border-left-color: #ff6b6b;
}

.custom-toast.info {
    border-left-color: var(--color-gold);
}

/* Iconos dinámicos */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-toast.exito .toast-icon {
    color: #51cf66;
}

.custom-toast.error .toast-icon,
.custom-toast.advertencia .toast-icon {
    color: #ff6b6b;
}

.custom-toast.info .toast-icon {
    color: var(--color-gold);
}

/* Texto */
.toast-content {
    flex-grow: 1;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Botón de cerrar */
.toast-close {
    background: transparent;
    border: none;
    color: rgba(245, 239, 235, 0.6);
    /* var(--color-cream) con opacidad */
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--color-gold);
}

/* =========================================================================
   Sistema de Confirmaciones Custom (Modales Glassmorphism)
   ========================================================================= */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-confirm-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-confirm-modal {
    background: var(--color-dark-choco);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-confirm-overlay.show .custom-confirm-modal {
    transform: translateY(0);
}

.confirm-content {
    color: var(--color-cream);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.5;
    font-family: var(--font-primary);
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.confirm-actions .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* =========================================================
   WIDGET FLOTANTE DE WHATSAPP (Glassmorphism & Pulse)
   ========================================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    /* Verde icónico de WhatsApp */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 34px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.4);
    /* Resplandor verde + Borde sutil Dark/Gold */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Animación de latido sutil para atraer la mirada */
    animation: pulse-whatsapp 2s infinite;
}

/* Efecto magnético al pasar el cursor */
.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 0 0 2px rgba(212, 175, 55, 0.8);
    animation: none;
    /* Detenemos el latido para interacción manual */
}

/* Animación Keyframes para el Latido (Pulse Effect) */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 0 0 1px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 0 0 1px rgba(212, 175, 55, 0.4);
    }
}

/* =========================================================
   NOTIFICATION BADGE (Para Novedades No Leídas)
   ========================================================= */
.notification-badge {
    background: #ff5252;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    position: absolute;
    top: 5px;
    right: 5px;
    box-shadow: 0 2px 5px rgba(255, 82, 82, 0.4);
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================================
   MOBILE RESPONSIVE UI/UX REFACTORING
   ========================================================= */
@media (max-width: 768px) {

    /* 1. KPIs Flexibilidad: Forzamos el apilamiento y evitamos que colapsen */
    .kpi-grid,
    .stats-grid,
    .details-grid,
    .ig-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* 2. Calendario: Swipe Horizontal en Celulares */
    /* Sobrescribimos el apilamiento vertical predeterminado para permitir Scroll Táctil */
    .week-content {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        margin: 0 -1rem;
        /* Sangría extendida para scroll natural */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .week-content-inner.week-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(260px, 1fr)) !important;
        gap: 1rem !important;
        scroll-snap-type: x mandatory;
    }

    .day-column {
        scroll-snap-align: start;
        border-right: 1px solid rgba(212, 175, 55, 0.2);
        padding-right: 0.5rem;
    }

    .day-column:last-child {
        border-right: none;
        padding-right: 0;
    }

    /* 3. Pestañas y Botones (Touch Targets 48px min) */
    .nav-item,
    .tab-reservas,
    .btn {
        min-height: 48px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .nav-item {
        justify-content: flex-start;
        /* Preservar icon alineación en sidebar */
    }

    /* 4. Widgets Flotantes Verticales (Mobile) */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 28px !important;
        z-index: 1000;
    }

    .widget-ai-btn {
        width: 50px !important;
        height: 50px !important;
        bottom: 75px !important;
        right: 15px !important;
        z-index: 1000;
    }

    #btn-carrito-flotante {
        width: 50px !important;
        height: 50px !important;
        bottom: 75px !important;
        right: 75px !important;
        font-size: 1.2rem !important;
        z-index: 1000;
    }

    .widget-ai-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    .chat-window {
        bottom: 135px !important;
    }

    /* 5. Mobile Header & Hamburger Menu */
    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(203, 165, 133, 0.2);
    }

    .menu-toggle-btn {
        background: none;
        border: none;
        color: var(--color-gold);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0 10px 0 0;
    }

    .sidebar {
        z-index: 2000 !important;
        /* Por encima de todo en mobile */
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.9);
    }
}

.mobile-header {
    display: none;
    /* Oculto en PC por defecto */
}

/* --- ESTILOS MOVIDOS DESDE CLIENTE.HTML --- */
/* Estilos específicos del Dashboard Cliente */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-body);
}

.sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem 3rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem 3rem;
    position: relative;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    color: var(--color-white);
    letter-spacing: 2px;
    font-family: var(--font-secondary);
}

.sidebar-logo span {
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    width: 100%;
    text-align: left;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(203, 165, 133, 0.1);
    color: var(--color-gold);
}

.panel-section {
    display: none;
}

.panel-section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-title {
    font-size: 0.85rem;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.5rem;
    color: var(--color-gold);
    font-weight: 800;
}

/* Grilla de Reservas (Estilo minimalista para el cliente) */
.dashboard-layout .reserva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.dashboard-layout .reserva-card {
    background: rgba(26, 18, 13, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 250px;
    /* Altura de seguridad para contener todo el diseño */
    box-sizing: border-box;
}

.dashboard-layout .reserva-card button,
.dashboard-layout .reserva-card .btn {
    margin-top: auto !important;
}

.dashboard-layout .reserva-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-3px);
}

.dashboard-layout .empty-slot {
    height: 155px;
    visibility: hidden;
    margin-bottom: 0;
    flex-shrink: 0;
    pointer-events: none;
}

.dashboard-layout .reserva-dia {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 5px;
}

.dashboard-layout .reserva-hora {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dashboard-layout .reserva-profe {
    font-size: 0.85rem;
    color: var(--text-label);
    margin-bottom: 15px;
}

.dashboard-layout .reserva-lugares {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
}

.dashboard-layout .lugares-ok {
    background: rgba(129, 199, 132, 0.1);
    color: #81c784;
}

.dashboard-layout .lugares-full {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* Novedades Muro */
.muro-card {
    background: var(--bg-card);
    border-left: 4px solid var(--color-gold);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.muro-fecha {
    font-size: 0.8rem;
    color: var(--text-label);
    margin-bottom: 0.5rem;
}

.muro-texto {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Estado de Cuenta */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.status-ok {
    background: rgba(129, 199, 132, 0.15);
    color: #81c784;
    border: 1px solid #81c784;
}

.status-deuda {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

/* Tables */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.premium-table th,
.premium-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.premium-table th {
    color: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Floating Widgets */
.widget-wsp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.widget-wsp:hover {
    transform: scale(1.1);
}

.widget-ai-btn {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s;
    border: none;
}

.widget-ai-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 90px;
    width: 300px;
    height: 400px;
    background: #140e0a;
    /* Opaque solid very dark brown matching the Dark/Gold theme */
    border: 1px solid var(--color-gold);
    /* Golden border for contrast */
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-window.active {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.chat-header {
    background: #1a120d;
    /* Opaque solid dark brown to differentiate header */
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-gold);
}

.chat-header h4 {
    color: var(--color-gold);
    font-family: var(--font-primary);
    font-size: 1rem;
    margin: 0;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    background: rgba(203, 165, 133, 0.1);
    padding: 0.8rem;
    border-radius: 8px 8px 8px 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    max-width: 85%;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background: var(--color-gold);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--color-dark-choco);
    cursor: pointer;
    font-weight: bold;
}

/* Modal Restrictivo (Onboarding) */
.onboarding-modal-container {
    background: var(--color-dark-choco);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    color: var(--color-cream);
}

/* Estilos Acordeón Calendario */
.mes-header {
    text-align: center;
    color: var(--color-gold);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.accordion-container {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.week-band {
    background: rgba(26, 18, 13, 0.9);
    border: 1px solid var(--color-gold);
    color: var(--color-cream);
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.week-band:hover {
    background: rgba(212, 175, 55, 0.1);
}

.week-band::after {
    content: '▼';
    font-size: 0.9rem;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.week-band.active::after {
    transform: rotate(180deg);
}

.week-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
    margin-bottom: 1.5rem;
}

.week-content-inner {
    padding: 1.5rem;
}

.dia-fecha {
    font-size: 0.8rem;
    color: var(--color-latte);
    display: block;
    margin-top: 5px;
}

/* Estilos Grilla Semanal Expandida (6 Columnas) */
.week-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    align-items: start;
}

.day-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .week-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-bottom: 100px;
        width: 100%;
        box-sizing: border-box;
    }

    .mes-header {
        font-size: 1.5rem !important;
        display: block !important;
        visibility: visible !important;
        margin-top: 1rem;
    }

    .sidebar-logo h2 {
        font-size: 1.2rem;
    }

    .mobile-header h2 {
        font-size: 1.1rem !important;
    }

    .chat-window {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        bottom: 90px;
    }
}

/* =========================================================
   CLICK & COLLECT: BOTÓN FLOTANTE Y MODAL DE CARRITO
   ========================================================= */

/* Botón Carrito Flotante */
#btn-carrito-flotante {
    position: fixed;
    bottom: 30px;
    right: 190px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #aa7c11);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #1a120d;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

#btn-carrito-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.4);
}

#btn-carrito-flotante:active {
    transform: scale(0.95);
}

.carrito-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #1a120d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: popBadge 0.3s ease-out;
}

@keyframes popBadge {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Contenedor Lateral (Modal Carrito) */
.modal-carrito-container {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.modal-carrito-container.active {
    right: 0;
}

/* Glassmorphism Panel */
.modal-carrito-content {
    height: 100%;
    background: rgba(26, 18, 13, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}

.modal-carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-carrito-header h3 {
    margin: 0;
    color: #d4af37;
    font-size: 1.4rem;
    font-weight: 600;
}

.gold-icon {
    color: #d4af37;
    margin-right: 8px;
}

.btn-close-carrito {
    background: none;
    border: none;
    color: #cba585;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-close-carrito:hover {
    color: #d4af37;
    transform: rotate(90deg);
}

.modal-carrito-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 20px;
}

.carrito-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carrito-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.carrito-item-info {
    flex: 1;
}

.carrito-item-titulo {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #f7ebd9;
    font-weight: 500;
}

.carrito-item-precio {
    font-size: 0.85rem;
    color: #d4af37;
}

.carrito-item-controles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #f7ebd9;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-qty:hover {
    background: #d4af37;
    color: #1a120d;
}

.carrito-item-qty {
    font-size: 0.9rem;
    color: #f7ebd9;
    min-width: 15px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    margin-left: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-remove:hover {
    color: #ff4d4d;
    transform: scale(1.15);
}

.carrito-total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid rgba(212, 175, 55, 0.15);
    font-size: 1.2rem;
    font-weight: bold;
    color: #f7ebd9;
}

#carrito-total-valor {
    color: #d4af37;
    font-size: 1.3rem;
}

.modal-carrito-footer {
    padding-top: 10px;
}

.btn-enviar-pedido {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4af37, #aa7c11);
    color: #1a120d;
    font-weight: bold;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-enviar-pedido:hover {
    background: linear-gradient(135deg, #e5be49, #c18f1a);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn-enviar-pedido:active {
    transform: translateY(0);
}

.btn-agregar-producto {
    width: 100%;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-agregar-producto:hover {
    background: #d4af37;
    color: #1a120d;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Carrusel de Productos en Mini-market */
.producto-carrusel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.05);
}

.producto-carrusel::-webkit-scrollbar {
    height: 4px;
}

.producto-carrusel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.producto-carrusel::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.producto-carrusel-img {
    flex: 0 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Botones de Lista de Espera Inteligente - Pendiente Confirmación */

/* BOTÓN PRIMARIO: ACEPTAR TURNO (Verde Sólido/Llamativo) */
.btn-aceptar-turno {
    font-family: var(--font-primary), sans-serif;
    background: #51cf66;
    /* Verde esmeralda como protagonista */
    border: 2px solid #51cf66;
    color: #1e120b;
    /* Texto oscuro para contrastar con el fondo verde */
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.3);
}

.btn-aceptar-turno:hover {
    background: #40c057;
    /* Verde un poco más oscuro al pasar el mouse */
    border-color: #40c057;
    box-shadow: 0 6px 20px rgba(64, 192, 87, 0.45);
    transform: translateY(-1px);
}

.btn-aceptar-turno:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(64, 192, 87, 0.3);
}

/* BOTÓN SECUNDARIO: RECHAZAR TURNO (Esmerilado / Sutil) */
.btn-rechazar-turno {
    font-family: var(--font-primary), sans-serif;
    background: rgba(43, 30, 22, 0.4);
    border: 1px solid #c97d7d;
    /* Rojo/café apagado */
    color: #c97d7d;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-rechazar-turno:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    /* Rojo más vivo en hover */
    color: #ff6b6b;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.2);
    transform: translateY(-1px);
}

.btn-rechazar-turno:active {
    transform: translateY(1px);
}

/* Accesibilidad para ambos botones */
.btn-aceptar-turno:focus-visible,
.btn-rechazar-turno:focus-visible {
    outline: 2px solid var(--color-gold, #d6af37);
    outline-offset: 2px;
}

/* ============================================================
   ESTILOS DE BADGES PARA ESTADOS DE RESERVA (DARK/GOLD)
   ============================================================ */

/* Estado Confirmado (Reservado) */
.badge-reservado {
    font-size: 0.8rem;
    background: rgba(81, 207, 102, 0.15);
    color: #51cf66;
    border: 1px solid rgba(81, 207, 102, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Estado Pre-reserva / Pendiente de Pago */
.badge-pendiente {
    font-size: 0.8rem;
    background: rgba(253, 126, 20, 0.15);
    color: #ff922b;
    border: 1px solid rgba(253, 126, 20, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    opacity: 0.85;
}