/* SEPARAMOS HTML Y BODY PARA QUE EL BODY NO TAPE AL VIDEO */
html {
    background: var(--body-base-bg); 
    background-attachment: fixed; 
    background-size: cover; 
    background-position: center;
}
body {
    margin: 0; padding: 0; min-height: 100vh;
    background: transparent; /* <-- Deja ver el video atrás */
    color: var(--uc3); font-family: "Raleway", sans-serif; font-weight: 300; line-height: 1.5;
    -webkit-font-smoothing: antialiased; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior-y: none;
}

.body-media-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.body-media-layer img, .body-media-layer video { width: 100%; height: 100%; object-fit: cover; display: block; }
.body-overlay-layer { position: fixed; inset: 0; z-index: -1; background: var(--body-overlay); }

h1, h2, h3, h4, h5 { font-family: "Raleway", sans-serif; font-weight: 700; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

.custom-scrollbar { overflow-x: auto; display: flex; gap: 16px; padding-bottom: 10px; scrollbar-width: none; }
.custom-scrollbar::-webkit-scrollbar { display: none; }
.material-symbols-outlined { vertical-align: middle; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* =========================================
   3. LAYOUT PRINCIPAL (Móvil centrado)
   ========================================= */
.app-container {
    width: 960px;
    max-width: 100vw;
    margin: 0 auto;
    background: var(--app-bg); padding-bottom: 80px; position: relative;
    overflow-x: hidden; box-shadow: 0 0 50px rgba(0,0,0, 0.4); min-height: 100vh;
}

/* =========================================
   4. HEADER & PERFIL HERO
   ========================================= */
.header { position: relative; margin-bottom: 60px; }
.cover-image { position: relative; height: 220px; width: 100%; overflow: hidden; background-color: transparent; }
.cover-image img, .cover-image video { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center; }
.cover-overlay { position: absolute; inset: 0; z-index: 5; background: var(--hero-overlay); }
.profile-container { position: absolute; bottom: -50px; left: 20px; z-index: 20; }
.profile-pic { width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--app-bg-raw); background-color: var(--uc3); object-fit: cover; background-size: cover; background-position: center; box-shadow: var(--shadow); }

/* =========================================
   5. ESTILOS DEL BADGE (Estado + Posición)
   ========================================= */
/* 1. Estructura Base (Posición y Forma) */
        .status-badge {
            position: absolute;
            /* Centrado horizontal respecto al círculo */
            left: 50%;
            /* Lo posiciona justo en el borde inferior */
            bottom: 0; 
            transform: translate(-50%, 50%); /* El truco para centrar y bajarlo a la mitad del borde */
    
            background: var(--uc5);
            border: 1px solid var(--uc4); 
            padding: 4px 12px; /* Un poco más de aire a los lados */
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 4px 10px rgba(var(--uc7-rgb), 0.5);
    
            /* Evita que el texto salte de línea */
            white-space: nowrap; 
            width: max-content;
            z-index: 30;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: var(--uc7); /* Color neutro por defecto */
            border-radius: 50%;
            transition: background-color 0.3s ease;
        }

         .status-text {
            font-size: 10px;
            font-weight: 800; /* Un poco más de peso para que resalte */
            text-transform: uppercase;
            letter-spacing: 0.5px; /* Mejora la legibilidad */
            line-height: 1; /* Asegura que no haya espacio extra arriba/abajo */
        }

         /* 2. Animación de Pulso */
         @keyframes softPulse {
             0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
             70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
             100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
         }

         .pulse-animation {
             animation: softPulse 2s infinite;
         }

         /* 3. Estados de Color (Se activan con JS) */

         /* Estado: ABIERTO (Verde) */
         .status-badge.open {
             border-color: #22c55e;
             background-color: rgba(6, 43, 21, 0.8); /* Fondo oscuro verdoso */
         }
         .status-badge.open .status-dot {
             background-color: #22c55e;
             box-shadow: 0 0 8px #22c55e;
         }
         .status-badge.open .status-text {
             color: #22c55e;
         }

         /* Estado: CERRADO (Rojo) */
         .status-badge.closed {
             border-color: #ef4444;
             background-color: rgba(45, 10, 10, 0.8);
         }
         .status-badge.closed .status-dot {
             background-color: #ef4444;
         }
         .status-badge.closed .status-text {
             color: #ef4444;
         }

        /* Estado: ALERTA - Abre/Cierra pronto (Amarillo) */
        .status-badge.warning {
            border-color: #ffc107;
            background-color: rgba(40, 35, 10, 0.8);
        }
        .status-badge.warning .status-dot {
            background-color: #ffc107;
        }
        .status-badge.warning .status-text {
            color: #ffc107;
        }

/* =========================================
   6. SECCIÓN INFO PERFIL
   ========================================= */

/* Centralizamos todo el respiro superior aquí */
.section-padding { 
    padding: 1rem 20px 0 20px; 
    margin-top: 40px; /* Aumentamos a 40px para alejarlo notablemente del badge */
    margin-bottom: 20px; 
}

/* Evitamos que el ID interfiera con la clase */
#ez-hero-texts {
    margin-top: 0; 
}

.section-margin { margin: 35px 0; }

/* Contenedor del nombre y verificado */
.title-row { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 4px; 
}

/* Reset de márgenes en H1 */
.title-row h1 { 
    font-size: 28px; 
    color: var(--text_main); 
    margin: 0; 
    padding: 0; 
    line-height: 1.1; 
}

.verified-icon { color: var(--accent_primary); font-size: 24px; }

/* Subtítulo (Sucursal) */
.subtitle-text { 
    font-family: "Raleway", sans-serif; 
    font-size: 16px; 
    font-weight: 500; 
    color: var(--accent_primary); 
    margin: 0 0 6px 0; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    line-height: 1.2;
}

/* Slogan */
.slogan-text { 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--accent_primary); 
    margin: 0 0 8px 0; 
    line-height: 1.3;
}

/* Bio / Descripción corta */
.bio-text { 
    margin-top: 10px; 
    color: var(--text_muted); 
    font-size: 14px; 
    line-height: 1.6; 
}

.highlight { color: var(--accent_secondary); font-weight: 600; }

/* =========================================
   7. SISTEMA UNIVERSAL DE MODALES
   ========================================= */
/* ... (Todo tu código de modales se queda tal cual, ya que las variables --modal-system y --modal-cta se inyectan perfecto desde el PHP) ... */

.ez-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s ease, visibility 0.35s ease; }
.ez-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.ez-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(10px); overflow: hidden; -webkit-backdrop-filter: blur(10px); }

.ez-modal-panel {
    position: relative; width: 100%; max-width: 600px; max-height: 85vh; margin: 0 auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --modal-bg: var(--modal-system-bg); --modal-text-main: var(--modal-system-text-main); --modal-text-muted: var(--modal-system-text-muted); --modal-border: var(--modal-system-border); --modal-shadow: var(--modal-system-shadow);
    background: var(--modal-bg); border-top: var(--modal-border); box-shadow: var(--modal-shadow);
}
.ez-modal.active .ez-modal-panel { transform: translateY(0); }
.ez-modal-panel .b-info-subtitle, .ez-modal-panel .text-muted { color: var(--modal-text-muted); }
.ez-modal-content { flex: 1; overflow-y: auto; padding: 1.5rem; }
.ez-modal-content::-webkit-scrollbar { width: 6px; }
.ez-modal-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 6px; }

.ez-modal-panel.role-cta { --modal-bg: var(--modal-cta-bg); --modal-text-main: var(--modal-cta-text-main); --modal-text-muted: var(--modal-cta-text-muted); --modal-border: var(--modal-cta-border); --modal-shadow: var(--modal-cta-shadow); }

.ez-modal-header { border-bottom: var(--modal-border); padding: 20px 20px 15px; text-align: center; position: relative; flex-shrink: 0; }
.ez-drag-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--modal-border); margin: 0 auto 15px auto; }
.ez-modal-title { color: var(--modal-text-main); font-size: 18px; font-weight: 800; margin: 0; line-height: 1.2; }
.ez-modal-close { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 50%; background: transparent; color: var(--modal-text-main); border: var(--modal-border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.ez-modal-close:hover { background: rgba(128,128,128, 0.1); transform: scale(1.05); }
.ez-modal-body { padding: 25px 20px 40px; overflow-y: auto; scrollbar-width: none; }
.ez-modal-body::-webkit-scrollbar { display: none; }
.ez-modal-desc { color: var(--modal-text-muted); font-size: 14px; margin-bottom: 24px; }
.text-center { text-align: center; }

/* =========================================
   7. MÓDULO: WI-FI GEOLOCALIZADO
   ========================================= */
.wifi-btn {
    width: 100%; margin-bottom: 12px; padding: 16px; border-radius: var(--radius-lg);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text_main); display: flex; align-items: center; justify-content: space-between;
    transition: var(--transition-smooth); cursor: pointer; backdrop-filter: blur(10px);
}
.wifi-btn:hover { 
    background: rgba(var(--text_main-rgb), 0.08); 
    border-color: var(--accent_primary); 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-soft); 
}
.wifi-btn:hover .wifi-content span { color: var(--accent_primary); transform: scale(1.1); }
.wifi-btn:active { transform: scale(0.96); }

.wifi-content { display: flex; align-items: center; gap: 10px; }
.wifi-content .material-symbols-outlined { font-size: 26px; transition: var(--transition-smooth); }
.wifi-text { font-family: "Raleway", sans-serif; font-weight: 700; letter-spacing: .3px; text-align: center; }
.wifi-arrow { font-size: 16px; color: var(--text_main); opacity: .9; }

.hidden { display: none !important; }

.wifi-hint {
    margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-md);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text_main); font-size: 13px; line-height: 1.45; text-align: left;
    display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(10px);
}
.wifi-hint strong { display: flex; align-items: center; gap: 6px; font-weight: 800; margin-bottom: 4px; color: var(--text_main); }
.wifi-hint .material-symbols-outlined { font-size: 20px; color: var(--accent_primary); }
.wifi-debug { margin-top: 6px; margin-bottom: 6px; font-size: 11px; opacity: .6; text-align: center; color: var(--text_main); }

/* --- CONTENIDO INTERNO DEL MODAL DE WIFI --- */
.wifi-qr { 
    width: 180px; height: 180px; 
    margin: 0 auto 24px; 
    border-radius: var(--radius-md); 
    border: 6px solid #FFFFFF; /* Borde blanco para garantizar lectura del QR */
    background: #FFFFFF;
    box-shadow: var(--shadow);
    display: block;
    object-fit: contain;
}

.wifi-credentials { 
    background: rgba(var(--text_main-rgb), 0.04); 
    border: 1px solid var(--modal-border); 
    border-radius: var(--radius-md); 
    padding: 16px; margin-bottom: 10px; 
}

.wifi-row { 
    display: flex; align-items: center; justify-content: space-between; 
    font-size: 14px; margin-bottom: 12px; 
}
.wifi-row:last-child { margin-bottom: 0; }
.wifi-row .label { color: var(--modal-text-muted); font-size: 13px; }
.wifi-row .value { 
    font-weight: 800; color: var(--modal-text-main); 
    flex: 1; text-align: left; margin-left: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 
}

/* Botones de Copiar Premium */
.wifi-copy-btn { 
    background: transparent; 
    border: 1px solid var(--modal-border); 
    color: var(--modal-text-main); 
    padding: 6px 12px; 
    border-radius: var(--radius-full); 
    font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; transition: var(--transition-smooth); 
}
.wifi-copy-btn .material-symbols-outlined { font-size: 16px; }
.wifi-copy-btn:hover { background: rgba(var(--text_main-rgb), 0.1); }
.wifi-copy-btn:active { transform: scale(0.92); }

/* Estado "Copiado" con el color Success del JSON */
.wifi-copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: #FFFFFF;
}

/* =========================================
   8. QUICK ACTIONS & MODALES UNIFICADOS
   ========================================= */

/* --- GRID DE BOTONES PRINCIPALES (QUICK ACTIONS) --- */
.action-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 35px 0;
}
.action-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 16px 4px; border-radius: var(--radius-lg); transition: var(--transition-smooth);
    cursor: pointer; backdrop-filter: blur(10px);
}
.action-btn span.material-symbols-outlined { color: var(--text_main); margin-bottom: 8px; font-size: 26px; transition: var(--transition-smooth); }
.action-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text_main); letter-spacing: 0.5px; transition: var(--transition-smooth); }
.action-btn:hover { background-color: rgba(var(--text_main-rgb), 0.08); border-color: rgba(var(--accent_secondary-rgb), 0.4); transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.action-btn:hover span.material-symbols-outlined { color: var(--accent_secondary); transform: scale(1.15); }
.action-btn:hover .action-label { color: var(--accent_secondary); }
.action-btn:active { background-color: rgba(var(--text_main-rgb), 0.05); transform: scale(0.94); }

/* --- BOTONES INTERNOS DE MODALES --- */
.modal-primary-btn {
    width: 100%; padding: 14px; background: var(--accent_secondary); color: var(--btn_secondary_text, #FFFFFF); 
    border: none; border-radius: 14px; font-weight: bold; cursor: pointer; 
    display: flex; justify-content: center; align-items: center; gap: 8px; transition: all 0.2s;
}
.modal-primary-btn:hover { background: rgba(var(--accent_secondary-rgb), 0.9); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(var(--accent_secondary-rgb), 0.3); }
.modal-primary-btn:active { transform: scale(0.98); }

.modal-secondary-btn {
    width: 100%; padding: 14px; border: 1px solid rgba(var(--accent_secondary-rgb), 0.4); color: var(--accent_secondary); 
    border-radius: 14px; font-weight: bold; background: rgba(var(--accent_secondary-rgb), 0.05); 
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; margin-bottom: 20px;
}
.modal-secondary-btn:hover { border-color: var(--accent_secondary); background: rgba(var(--accent_secondary-rgb), 0.1); }
.modal-secondary-btn:active { background: var(--accent_secondary); color: var(--btn_secondary_text, #FFFFFF); transform: scale(0.98); }

/* --- ESTILOS ESPECÍFICOS: UBICACIÓN --- */
.map-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.map-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 16px 8px; background: rgba(var(--text_main-rgb), 0.03); border: 1px solid var(--modal-border); 
    border-radius: 14px; color: var(--modal-text-main); font-size: 11px; font-weight: 600; text-transform: uppercase;
    cursor: pointer; transition: var(--transition-smooth);
}
.map-btn .material-symbols-outlined { font-size: 26px; color: inherit; transition: transform 0.3s; }
.map-btn:hover { background: rgba(var(--accent_secondary-rgb), 0.05); border-color: rgba(var(--accent_secondary-rgb), 0.4); color: var(--accent_secondary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.map-btn:hover .material-symbols-outlined { transform: scale(1.15); }
.map-btn:active { transform: scale(0.96); }

/* --- ESTILOS ESPECÍFICOS: DELIVERY --- */
.delivery-partner-btn {
    width: 100%; box-sizing: border-box; padding: 16px 20px; 
    border: 1px solid var(--modal-border); border-radius: 16px; margin-bottom: 12px; 
    background: rgba(var(--text_main-rgb), 0.03); color: var(--modal-text-main); 
    text-decoration: none; display: flex; align-items: center; gap: 15px; 
    font-weight: 600; font-size: 15px; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
}
.delivery-partner-btn:hover { 
    background: rgba(var(--accent_secondary-rgb), 0.08); border-color: var(--accent_secondary); 
    color: var(--accent_secondary); transform: translateY(-2px); box-shadow: 0 5px 12px rgba(var(--accent_secondary-rgb), 0.15);
}
.delivery-partner-btn .material-symbols-outlined:first-child { color: var(--accent_secondary); font-size: 28px; }
.delivery-partner-btn .material-symbols-outlined:last-child { color: var(--modal-text-muted); font-size: 20px; transition: color 0.2s; margin-left: auto; }
.delivery-partner-btn:hover .material-symbols-outlined:last-child { color: var(--accent_secondary); }

/* --- ESTILOS ESPECÍFICOS: RESERVAS --- */
#reserveForm { display: flex; flex-direction: column; gap: 12px; padding: 0 10px; }
.form-input {
    width: 100% !important; box-sizing: border-box; display: block; margin-bottom: 0; padding: 14px 18px !important; 
    border: 1px solid var(--modal-border) !important; background: var(--glass-bg) !important; 
    color: var(--modal-text-main) !important; border-radius: 14px !important; font-family: inherit; font-size: 15px !important; 
    appearance: none; -webkit-appearance: none; outline: none; transition: var(--transition-smooth) !important;
}
#reserveForm input.form-input { height: 50px; }
#reserveForm textarea.form-input { height: auto; resize: none; }
.form-input:focus { border-color: var(--accent_secondary) !important; background: rgba(var(--accent_secondary-rgb), 0.05) !important; box-shadow: 0 0 0 4px rgba(var(--accent_secondary-rgb), 0.1); }
#reserveForm input::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }
.res-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-success-msg { display:none; margin-top:15px; padding:12px; border:1px solid var(--success); background: rgba(var(--success-rgb), 0.1); color: var(--success); text-align: center; border-radius: 12px; font-size: 13px; font-weight: bold; }

/* --- ESTILOS ESPECÍFICOS: +INFO --- */
.b-info-logo { height: 45px; width: auto; margin-bottom: 12px; display: inline-block; }
.b-info-branch { color: var(--modal-text-muted); font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.b-info-slogan { color: var(--modal-text-muted); font-size: 13px; font-style: italic; opacity: 0.8; margin-top: 8px; }

.b-info-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.b-info-action-btn { flex: 1; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(var(--text_main-rgb), 0.03); border: 1px solid var(--modal-border); color: var(--modal-text-main); font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.b-info-action-btn:hover { background: rgba(var(--accent_secondary-rgb), 0.05); border-color: var(--accent_secondary); color: var(--accent_secondary); transform: translateY(-2px); }
.b-info-action-btn.primary { background: var(--accent_secondary); border-color: var(--accent_secondary); color: var(--btn_secondary_text, #FFFFFF); }
.b-info-action-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(var(--accent_secondary-rgb), 0.4); } 

.b-info-section { margin-bottom: 30px; text-align: left; }
.b-info-section h3 { color: var(--modal-text-main) !important; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; opacity: 0.9; }
.b-info-section h3 .material-symbols-outlined { color: var(--accent_secondary); }
.b-info-desc { color: var(--modal-text-muted) !important; font-size: 14px; line-height: 1.6; margin-bottom: 15px;}
.b-info-address-box { background: rgba(var(--text_main-rgb), 0.03); border: 1px solid var(--modal-border); padding: 15px; border-radius: 14px; cursor: pointer; transition: all 0.2s ease; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.b-info-address-box:hover { background: rgba(var(--accent_secondary-rgb), 0.05); border-color: var(--accent_secondary); transform: translateY(-2px); }
.b-info-address-action { color: var(--accent_secondary); font-size: 12px; font-weight: 700; display: flex; align-items: center; text-transform: uppercase; white-space: nowrap; }

.b-info-hours { background: rgba(var(--text_main-rgb), 0.02); border-radius: 16px; border: 1px solid var(--modal-border); overflow: hidden; }
.b-info-hour-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--modal-border); font-size: 14px; color: var(--modal-text-muted); transition: background 0.2s; }
.b-info-hour-row:hover { background: rgba(var(--text_main-rgb), 0.05); }
.b-info-hour-row:last-child { border-bottom: none; }
.b-info-hour-row strong { color: var(--modal-text-main) !important; font-weight: 700; }
.b-info-hour-row.today { background: rgba(var(--accent_secondary-rgb), 0.08); border-left: 4px solid var(--accent_secondary); }
.b-info-hour-row.today .day-label { color: var(--accent_secondary); font-weight: 800; text-transform: uppercase; }
.b-info-special-note { font-size: 11px; color: var(--warning); display: block; margin-top: 4px; font-weight: 600; }

.b-attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.b-attr-pill { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: rgba(var(--text_main-rgb), 0.02); border: 1px solid var(--modal-border); border-radius: 14px; color: var(--modal-text-muted); font-size: 12px; line-height: 1.3; font-weight: 500; transition: var(--transition-smooth); cursor: default; }
.b-attr-pill:hover { background: rgba(var(--accent_secondary-rgb), 0.05); border-color: rgba(var(--accent_secondary-rgb), 0.4); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.b-attr-pill .material-symbols-outlined { color: var(--accent_primary); font-size: 24px; transition: color 0.3s, transform 0.3s; }
.b-attr-pill:hover .material-symbols-outlined { color: var(--accent_secondary); transform: scale(1.1); }
.b-attr-category { margin-bottom: 20px; }
.b-attr-category-title { font-size: 11px; color: var(--modal-text-muted); text-transform: uppercase; margin-bottom: 10px; font-weight: 700; letter-spacing: 0.5px; }

.b-info-hashtags-section { margin-top: 30px; border-top: 1px solid var(--modal-border); padding-top: 20px; text-align: center; }
.b-info-hashtags-text { color: var(--accent_secondary); font-size: 13px; line-height: 1.6; font-weight: 600; word-wrap: break-word; }

/* =========================================
   9. CARROUSEL DE PROMOS & MODAL DE DETALLE
   ========================================= */
.special-promos-container { width: 100%; padding: 10px 0 20px; overflow: hidden; display: block; box-sizing: border-box; }
.special-promos-slider {
    display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; 
    padding: 10px 20px 25px; scrollbar-width: none; -ms-overflow-style: none; 
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.special-promos-slider::-webkit-scrollbar { display: none; }
.special-promo-item {
    flex: 0 0 80%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background-size: cover; 
    background-position: center; position: relative; scroll-snap-align: center; 
    box-shadow: var(--shadow); border: 1px solid var(--glass-border); cursor: pointer; overflow: hidden;
    box-sizing: border-box;
}
.special-promo-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0, 0.9) 10%, transparent 90%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 15px; box-sizing: border-box;
}
.special-promo-badge {
    background: var(--accent_secondary); color: var(--btn_secondary_text, #FFFFFF); 
    padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 10px; font-weight: 800; text-transform: uppercase; text-align: center; 
    align-self: flex-start; margin-bottom: 5px; box-shadow: 0 2px 8px rgba(0,0,0, 0.4);
}
.special-promo-title { 
    font-size: 1.2rem; color: #FFFFFF; text-transform: uppercase; margin: 0; line-height: 1.1; 
}
.special-promo-desc { 
    font-size: 0.8rem; color: rgba(255,255,255, 0.8); margin-top: 4px; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}

/* --- MODAL INTERNO DE DETALLE DE PROMO (PURE CSS) --- */
.promo-detail-img-wrap {
    width: 100%; height: 200px; border-radius: var(--radius-md); margin-bottom: 20px;
    box-shadow: var(--shadow); overflow: hidden; background: var(--glass-bg);
}
.promo-detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-detail-badge-wrap { margin-bottom: 15px; display: flex; }
.promo-detail-title { color: var(--modal-text-main); font-size: 22px; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.promo-detail-desc { color: var(--modal-text-muted); font-size: 15px; line-height: 1.5; margin-bottom: 25px; }

/* --- CONTENEDOR DE TÉRMINOS Y CONDICIONES --- */
.promo-terms-container {
    background: rgba(var(--text_main-rgb), 0.03); border: 1px solid var(--modal-border);
    padding: 20px; border-radius: var(--radius-lg); margin-top: 25px;
}
.promo-terms-title {
    display: block; font-size: 12px; font-weight: 800; text-transform: uppercase;
    color: var(--modal-text-main); margin-bottom: 15px; letter-spacing: 0.5px;
}
.promo-terms-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.promo-terms-item { position: relative; font-size: 13px; color: var(--modal-text-muted); padding-left: 15px; line-height: 1.4; }
.promo-terms-item::before { content: "•"; position: absolute; left: 0; color: var(--modal-text-muted); font-weight: 800; }

/* =========================================
   10. NOTIFICACIONES TOAST (NUEVO DISEÑO FLOTANTE)
   ========================================= */
.promo-toast {
    position: fixed; 
    top: -100px; /* Inicia oculto arriba */
    left: 50%; transform: translateX(-50%); 
    width: 90%; max-width: 400px; /* Un poco más ancho */
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    border-left: 5px solid var(--accent_primary); /* Token actualizado */
    padding: 20px 24px; /* Más espacio interno */
    border-radius: var(--radius-md); box-shadow: var(--shadow-soft); z-index: 6000;
    display: flex; align-items: center; gap: 15px; 
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(15px);
}
.promo-toast.show { 
    top: env(safe-area-inset-top, 20px); /* Cae desde arriba, respetando el notch */
    margin-top: 20px;
}
.promo-toast.end { border-left-color: var(--warning); } /* Token actualizado para avisos finales */
.promo-toast p { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--text_main); flex: 1; }
.promo-toast .material-symbols-outlined { color: var(--accent_primary); font-size: 28px; }
.promo-toast.end .material-symbols-outlined { color: var(--warning); }
.toast-close-btn { /* Clase específica para no chocar con modales */
    background: transparent; border: none; color: var(--text_muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 4px;
    transition: var(--transition-smooth);
}
.toast-close-btn:hover { color: var(--text_main); transform: scale(1.1); }

/* =========================================
   11. ESTRUCTURA DE PRODUCTOS Y MENÚS
   ========================================= */
.menu-modal-content { flex: 1; overflow-y: auto; padding: 20px; scroll-behavior: smooth; }

/* Headers de categoría apilados */
.menu-cat-header { display: flex; flex-direction: column; margin-bottom: 20px; border-bottom: 1px solid rgba(var(--text_main-rgb), 0.1); padding-bottom: 10px; }
.menu-cat-header h4 { color: var(--modal-text-main); font-size: 22px; font-weight: 800; margin: 0 0 4px 0; text-transform: uppercase; line-height: 1.1; }
.category-description { color: var(--modal-text-muted); font-size: 13px; line-height: 1.4; margin: 0; font-style: italic; opacity: 0.9; }

.subcategory-group h5 { color: var(--accent_secondary); font-size: 14px; font-weight: 800; margin: 25px 0 12px; text-transform: uppercase; letter-spacing: 1px; }

.menu-product { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--modal-border); cursor: pointer; transition: background 0.2s; }
.product-img-container { width: 70px; height: 70px; flex-shrink: 0; border-radius: var(--radius-md); position: relative; overflow: hidden; background: var(--glass-bg); }
.product-img-container img { width: 100%; height: 100%; object-fit: cover; }

.menu-product .name { font-weight: 700; font-size: 15px; color: var(--modal-text-main); }
.menu-product .brand { font-size: 11px; color: var(--modal-text-muted); text-transform: uppercase; opacity: 0.7; }
.menu-product .meta { font-size: 10px; color: var(--success); font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.menu-product .style { font-size: 10px; color: var(--warning); font-style: italic; margin-top: 2px; }

.desc-wrapper { position: relative; margin-top: 6px; }
.menu-product .desc { font-size: 12px; color: var(--modal-text-muted); line-height: 1.4; opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition-smooth); }
.expand-btn { background: none; border: none; color: var(--accent_secondary); font-size: 10px; padding: 2px 8px; cursor: pointer; display: block; margin-left: auto; transition: transform 0.3s ease; }
.menu-product.expanded .desc { -webkit-line-clamp: unset; display: block; overflow: visible; }
.menu-product.expanded .expand-btn { transform: rotate(180deg); }

/* =========================================
   12. SISTEMA DE LAYOUTS Y PRECIOS (GRID, LIST, FULL)
   ========================================= */
.products-grid { display: flex; flex-direction: column; gap: 8px; }
.price-area-bottom { display: none !important; }
.price-area-top { display: flex; }

/* Configuración de Precios (Reutilizable) */
.food-prices-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.price-item { display: flex; flex-direction: column; border-left: 2px solid var(--modal-border); padding-left: 8px; }
.price-label { font-size: 9px; text-transform: uppercase; color: var(--modal-text-muted); font-weight: 700; margin-bottom: 2px; }
.price-values { display: flex; align-items: baseline; gap: 4px; }
.old-price { font-size: 11px; color: var(--modal-text-muted); text-decoration: line-through; }
.current-price { font-size: 14px; font-weight: 800; color: var(--accent_secondary); }

/* Layout Grid / Grid-Photo */
[data-layout="grid"] .products-grid, [data-layout="grid-photo"] .products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: stretch; }
[data-layout="grid"] .product-img-container { display: none; }
[data-layout="grid"] .menu-product { border-bottom: 1px solid var(--modal-border); display: flex; flex-direction: column; height: 100%; }
[data-layout="grid"] .price-area-top, [data-layout="grid-photo"] .price-area-top { display: none !important; }
[data-layout="grid"] .price-area-bottom, [data-layout="grid-photo"] .price-area-bottom { display: flex !important; margin-top: auto; padding-top: 10px; }
[data-layout="grid"] .name-brand-group, [data-layout="grid-photo"] .menu-product-header { min-height: 65px; display: flex; flex-direction: column; justify-content: center; width: 100%; }
[data-layout="grid"] .menu-product-info, [data-layout="grid-photo"] .menu-product-info { display: flex; flex-direction: column; justify-content: space-between; height: 100%; flex: 1; }
[data-layout="grid"] .desc-wrapper, [data-layout="grid-photo"] .desc-wrapper { flex-grow: 1; display: flex; flex-direction: column; min-height: 40px; }
[data-layout="grid"] .product-footer, [data-layout="grid-photo"] .product-footer { margin-top: auto; padding-top: 10px; }

/* Layout Standard */
[data-layout="standard"] .menu-product { flex-direction: row; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--modal-border); padding: 15px 0; }
[data-layout="standard"] .product-img-container { width: 80px; height: 80px; aspect-ratio: 1:1; flex-shrink: 0; }

/* Badges de Productos */
.badges-container { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 10; pointer-events: none; }
.badge-promo { display: inline-block; background: var(--accent_secondary); color: var(--btn_secondary_text, #FFFFFF); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; text-transform: uppercase; width: fit-content; box-shadow: var(--shadow-sm); }
.name-wrapper-with-badge .badges-container { display: none; position: static; flex-direction: row; gap: 5px; margin-left: 8px; }
[data-layout="list"] .name-wrapper-with-badge .badges-container, [data-layout="grid"] .name-wrapper-with-badge .badges-container { display: inline-flex; }
[data-layout="standard"] .name-wrapper-with-badge .badges-container, [data-layout="grid-photo"] .name-wrapper-with-badge .badges-container, [data-layout="full"] .name-wrapper-with-badge .badges-container { display: none !important; }
.name-wrapper-with-badge .badges-container .badge-promo { font-size: 8px; padding: 2px 6px; position: static; display: inline-block; }

/* =========================================
   13. ESTILOS INTERNOS: DETALLE DE PRODUCTO
   (Reutiliza clases de Promo para ser DRY)
   ========================================= */
.detail-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.detail-title-group { flex: 1; }
.detail-brand { font-size: 11px; color: var(--modal-text-muted); text-transform: uppercase; margin-top: 4px; font-weight: 700; letter-spacing: 0.5px; }

/* Escala de precio para el modal */
.detail-price-main .current-price { font-size: 26px; line-height: 1; }
.detail-price-main .old-price { font-size: 13px; }
.detail-price-main .price-item { border-left: none; align-items: flex-end; padding-left: 0; }
.detail-price-main .price-label { text-align: right; }

.detail-meta-list { margin-bottom: 15px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.meta-origin, .meta-provenance { color: var(--success); margin-right: 4px; }
.detail-style { color: var(--warning); font-style: italic; margin-top: 4px; text-transform: none; }

.detail-specs-footer { border-top: 1px solid var(--modal-border); padding-top: 15px; display: flex; gap: 25px; }
.spec-item small { color: var(--modal-text-muted); font-size: 9px; font-weight: 800; display: block; margin-bottom: 4px; text-transform: uppercase; }
.spec-item p { color: var(--modal-text-main); font-size: 13px; font-weight: 700; margin: 0; }

/* --- SECCIÓN DE EXTRAS (Ingredientes, Adicionales) --- */
.detail-extras-section { 
    margin-top: 25px; 
    padding: 20px; 
    background: rgba(var(--text_main-rgb), 0.02); /* Fondo súper sutil */
    border: 1px solid var(--modal-border);
    border-left: 4px solid var(--accent_primary); /* Línea lateral de acento (Azul) */
    border-radius: var(--radius-md); 
}
.detail-extras-comment { 
    font-size: 13px; 
    color: var(--modal-text-muted); 
    margin: 0 0 15px 0; 
    font-style: italic; 
    line-height: 1.4;
}
.detail-extra-item { 
    padding: 14px 0; 
    border-bottom: 1px dashed rgba(var(--text_main-rgb), 0.15); /* Divisor tipo ticket */
}
.detail-extra-item:first-of-type {
    border-top: 1px dashed rgba(var(--text_main-rgb), 0.15); 
}
.detail-extra-item:last-child { 
    border-bottom: none; 
    padding-bottom: 0;
}
.extra-item-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 6px; 
    gap: 15px;
}
.extra-item-name { 
    font-weight: 800; 
    font-size: 14px; 
    color: var(--modal-text-main); 
}
.extra-item-price { 
    font-size: 12px; 
    color: var(--success); /* Verde para el costo extra, destaca perfecto */
    font-weight: 600;
    text-align: right;
}
.extra-item-price strong {
    font-size: 13px;
    font-weight: 800;
}
.extra-item-desc { 
    font-size: 12px; 
    color: var(--modal-text-muted); 
    margin: 0; 
    line-height: 1.5; 
}

/* Complementos T&C en Modales */
.terms-active-badge { font-size: 10px; font-weight: 800; color: var(--success); text-transform: uppercase; margin-bottom: 4px; }
.terms-promo-title { font-size: 14px; font-weight: 800; color: var(--modal-text-main); margin-bottom: 8px; }
.terms-schedule-row { font-size: 12px; color: var(--modal-text-muted); margin-top: 12px; display: flex; align-items: center; gap: 6px; font-style: italic; }
.terms-schedule-row .material-symbols-outlined { font-size: 16px; color: var(--warning); }

/* =========================================
   14. BEBIDAS DESTACADAS Y NAVEGACIÓN
   ========================================= */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-title { font-size: 20px; color: var(--text_main); font-weight: 800; }
.link-text { color: var(--accent_secondary); font-size: 13px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition-smooth); }
.link-text:hover { opacity: 0.8; transform: translateX(2px); }

/* Grid Home Destacados */
.menu-grid {
    display: grid; grid-template-rows: repeat(2, 1fr); grid-auto-flow: column; grid-auto-columns: 160px;
    gap: 16px; padding: 10px 20px 20px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
}
.menu-grid::-webkit-scrollbar { display: none; }
.menu-item {
    scroll-snap-align: start; cursor: pointer; background: rgba(var(--text_main-rgb), 0.03); 
    border-radius: var(--radius-md); border: 1px solid var(--glass-border); position: relative; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; height: 100%;
}
.menu-item:hover { transform: translateY(-4px); border-color: var(--accent_secondary); background: rgba(var(--text_main-rgb), 0.06); box-shadow: var(--shadow-sm); }
.menu-img { height: 110px; background-size: cover; background-position: center; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.menu-content { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.menu-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text_main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-price { margin-top: auto; }

/* Navegación Inferior del Menú Completo */
.menu-bottom-nav {
    display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px;
    padding: 12px; background: var(--modal-bg); border-top: 1px solid var(--modal-border); flex-shrink: 0;
}
.menu-bottom-nav button {
    all: unset; cursor: pointer; flex: 1 1 calc(33.33% - 10px); min-width: 80px; max-width: 150px; height: 38px;
    background: rgba(var(--text_main-rgb), 0.03); border: 1px solid var(--modal-border); border-radius: 8px;
    color: var(--modal-text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; text-align: center;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.menu-bottom-nav button.active { background: var(--accent_primary); color: var(--btn_primary_text, #FFFFFF); border-color: var(--accent_primary); position: relative; }
.menu-bottom-nav button.active::after { content: ""; position: absolute; bottom: 4px; width: 12px; height: 2px; background: var(--accent_secondary); border-radius: 4px; }

/* =========================================
   15. PRÓXIMOS EVENTOS (CAROUSEL & MODAL)
   ========================================= */
/* Slider y Tarjeta */
.events-slider { display: flex; gap: 16px; padding: 10px 20px 20px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.events-slider::-webkit-scrollbar { display: none; }
.event-card { flex: 0 0 260px; scroll-snap-align: start; background: rgba(var(--uc3-rgb), 0.05); border: 1px solid rgba(var(--uc3-rgb), 0.08); border-radius: var(--radius-lg); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.event-card:hover { transform: translateY(-3px); border-color: rgba(var(--uc2-rgb), 0.4); }

/* Imágenes (Sin inline CSS) */
.event-img-container { height: 140px; position: relative; }
.event-img-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-date-badge { position: absolute; top: 10px; left: 10px; padding: 6px 10px; border-radius: var(--radius-md); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; backdrop-filter: blur(5px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* Textos e Info */
.event-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.event-card-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; line-height: 1.2; color: var(--uc3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card-desc { font-size: 13px; color: var(--modal-text-muted); opacity: 0.8; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

/* Botones de Eventos */
.event-actions { display: flex; gap: 8px; margin-top: auto; }
.event-actions button { flex: 1; padding: 10px 0; border-radius: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.event-btn-primary { background: var(--uc2); color: var(--uc3); border-color: var(--uc2); }
.event-btn-primary:hover { opacity: 0.9; transform: scale(0.98); }
.event-btn-secondary { background: transparent; border-color: rgba(var(--uc3-rgb), 0.2); color: var(--uc3); }
.event-btn-secondary:hover { background: rgba(var(--uc3-rgb), 0.05); }

/* Modal del Calendario (Diseño Limpio) */
.calendar-modal-card { display: flex; flex-direction: column; }
.calendar-modal-header { padding: 20px 20px 15px; border-bottom: 1px solid var(--modal-border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--modal-bg); z-index: 10; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.calendar-modal-header h3 { color: var(--modal-text-main); font-size: 18px; font-weight: 800; text-transform: uppercase; margin: 0; }
.calendar-content { padding: 20px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; }

/* Lista de Eventos (Calendario) */
.calendar-event-item { display: flex; gap: 15px; padding: 15px; background: rgba(var(--uc3-rgb), 0.03); border: 1px solid rgba(var(--uc3-rgb), 0.08); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; }
.calendar-event-item:hover { background: rgba(var(--uc3-rgb), 0.08); border-color: rgba(var(--uc3-rgb), 0.15); transform: translateX(4px); }
.calendar-event-img-wrap { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.calendar-event-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.calendar-event-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.calendar-event-badge { font-size: 10px; color: var(--uc2); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.calendar-event-title { color: var(--modal-text-main); font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.calendar-event-schedule { color: var(--modal-text-muted); font-size: 12px; margin: 0; opacity: 0.9; }
.calendar-event-arrow { display: flex; align-items: center; color: var(--modal-text-muted); }

/* Utilidades adicionales */
.section-icon { font-size: 22px; vertical-align: bottom; margin-right: 4px; color: var(--uc2); }
.badge-primary { background: var(--uc2); color: var(--uc3); }
.btn-reserve-full { width: 100%; padding: 14px; background: var(--uc2); color: var(--uc3); border: none; border-radius: 12px; font-weight: bold; cursor: pointer; margin-top: 25px; display: flex; justify-content: center; align-items: center; gap: 8px; transition: transform 0.2s; }
.btn-reserve-full:active { transform: scale(0.98); }
.btn-reserve-full .material-symbols-outlined { font-size: 18px; }
.detail-desc-event { margin-top: 15px; }
/* Jerarquía estricta de Modales (Eventos) */
#calendarModal { 
    z-index: 4000 !important; 
}
#eventDetailModal { 
    z-index: 5000 !important; 
}

/* =========================================
   16. MERCH STORE (OFICIAL)
   ========================================= */

/* --- BANNER PRINCIPAL (CTA) --- */
.merch-cta-banner {
    position: relative; width: 100%; border-radius: var(--radius-xl); overflow: hidden;
    aspect-ratio: 21/9; min-height: 140px; cursor: pointer;
    box-shadow: var(--shadow); border: 1px solid var(--glass-border);
    transition: var(--transition-smooth); background-color: var(--bg_soft);
}
.merch-cta-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--accent_secondary); }
.merch-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.merch-cta-banner:hover .merch-cta-img { transform: scale(1.05); }

.merch-cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(var(--bg_main-rgb), 0.95) 0%, rgba(var(--bg_main-rgb), 0.1) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.merch-btn-cta {
    align-self: flex-start; background: var(--accent_secondary); color: var(--btn_secondary_text, #FFFFFF); border: none;
    padding: 10px 20px; border-radius: var(--radius-full); font-weight: 800;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; 
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(var(--accent_secondary-rgb), 0.4); transition: var(--transition-smooth);
}
.merch-btn-cta .material-symbols-outlined { font-size: 18px; transition: transform 0.3s; }
.merch-cta-banner:hover .merch-btn-cta .material-symbols-outlined { transform: translateX(5px); }

/* --- GRID DE PRODUCTOS (Dentro de la Carta) --- */
.merch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.merch-card {
    background: rgba(var(--text_main-rgb), 0.02); border: 1px solid var(--modal-border); 
    border-radius: var(--radius-lg); padding: 12px; display: flex; flex-direction: column; 
    align-items: center; text-align: center; cursor: pointer; transition: var(--transition-smooth); position: relative;
}
.merch-card:hover { transform: translateY(-3px); border-color: var(--accent_secondary); background: rgba(var(--text_main-rgb), 0.05); box-shadow: var(--shadow-sm); }
.merch-img-wrapper { width: 100%; aspect-ratio: 1/1; margin-bottom: 12px; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--glass-bg); }
.merch-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.merch-name { font-size: 13px; font-weight: 700; color: var(--modal-text-main); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }

/* --- PRECIOS DE MERCH --- */
.merch-price-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.merch-price { font-size: 15px; font-weight: 800; color: var(--modal-text-main); }
.merch-price.promo { color: var(--accent_secondary); }
.merch-price-old { font-size: 11px; text-decoration: line-through; opacity: 0.6; color: var(--modal-text-muted); }

/* --- VARIANTES (Tallas / Colores) --- */
.merch-variant-group { margin-top: 15px; }
.merch-variant-title { font-size: 11px; text-transform: uppercase; color: var(--modal-text-muted); font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px; }
.merch-variant-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.merch-pill { background: rgba(var(--text_main-rgb), 0.05); border: 1px solid var(--modal-border); padding: 6px 12px; border-radius: var(--radius-md); font-size: 12px; font-weight: 600; color: var(--modal-text-main); }

/* --- NOTA DE STAFF EN EL DETALLE --- */
.merch-staff-note { 
    margin-top: 25px; display: flex; align-items: center; gap: 12px; padding: 15px 20px; 
    background: rgba(var(--text_main-rgb), 0.02); border: 1px solid var(--modal-border); 
    border-left: 4px solid var(--accent_primary); border-radius: var(--radius-md); 
}
.merch-staff-note .material-symbols-outlined { color: var(--accent_primary); font-size: 24px; }
.merch-staff-text { font-size: 13px; color: var(--modal-text-main); font-weight: 600; line-height: 1.4; opacity: 0.9; }

/* =========================================
   17. PAY BILL (PAGAR CUENTA)
   ========================================= */

/* --- Banner Principal Minimalista --- */
.pay-bill-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(var(--text_main-rgb), 0.03); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 18px 20px; cursor: pointer;
    transition: var(--transition-smooth); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.pay-bill-banner::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--accent_secondary); border-radius: 4px 0 0 4px;
}
.pay-bill-banner:hover {
    transform: translateY(-2px); border-color: var(--accent_secondary); background: rgba(var(--text_main-rgb), 0.06);
    box-shadow: var(--shadow);
}

/* --- Contenido del Banner --- */
.pay-bill-content { display: flex; align-items: center; gap: 15px; flex: 1; }
.pay-icon { font-size: 28px !important; color: var(--accent_secondary); opacity: 0.9; background: rgba(var(--accent_secondary-rgb), 0.1); padding: 12px; border-radius: 50%; }
.pay-text h3 { font-size: 16px; font-weight: 800; color: var(--text_main); margin: 0 0 4px 0; line-height: 1.2; }
.pay-text p { font-size: 12px; color: var(--text_muted); margin: 0; line-height: 1.4; }
.pay-arrow { color: var(--text_muted); font-size: 18px; transition: transform 0.3s; }
.pay-bill-banner:hover .pay-arrow { transform: translateX(5px); color: var(--accent_secondary); }

/* --- Contenedores Internos del Modal (Pasos) --- */
.pay-step { display: none; animation: fadeIn 0.4s ease forwards; }
.pay-step.active { display: block; }

/* --- Inputs y Formularios de Pago --- */
.pay-input-group { margin-bottom: 20px; }
.pay-input-group label { display: block; font-size: 11px; color: var(--modal-text-muted); text-transform: uppercase; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.5px; }
.pay-input { width: 100%; padding: 14px 16px; border: 1px solid var(--modal-border); border-radius: var(--radius-md); background: rgba(var(--text_main-rgb), 0.02); color: var(--modal-text-main); font-size: 15px; font-weight: 600; outline: none; transition: border-color 0.2s; font-family: inherit; box-sizing: border-box; }
.pay-input:focus { border-color: var(--accent_secondary); background: transparent; }
.pay-input-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.pay-input-wrapper span { position: absolute; left: 16px; color: var(--modal-text-muted); font-size: 16px; font-weight: bold; pointer-events: none; }
.pay-input.has-prefix { padding-left: 35px; }

/* --- Grid de Propinas --- */
.tip-grid { display: flex; gap: 10px; margin-bottom: 25px; }
.tip-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(var(--text_main-rgb), 0.05); border: 1px solid var(--modal-border); padding: 12px 5px; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-smooth); }
.tip-btn .emoji { font-size: 20px; }
.tip-btn .pct { font-size: 13px; font-weight: 700; color: var(--modal-text-muted); }
.tip-btn.active { border-color: var(--accent_secondary); background: rgba(var(--accent_secondary-rgb), 0.08); }
.tip-btn.active .pct { color: var(--accent_secondary); }

/* --- Dividir Cuenta --- */
.split-toggle-btn { width: 100%; background: transparent; border: 1px dashed var(--modal-border); color: var(--modal-text-muted); padding: 12px; border-radius: var(--radius-md); font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition-smooth); margin-bottom: 20px; }
.split-toggle-btn.active { border-style: solid; border-color: var(--accent_primary); color: var(--accent_primary); background: rgba(var(--accent_primary-rgb), 0.05); }

.split-container { background: rgba(var(--text_main-rgb), 0.02); border: 1px solid var(--modal-border); border-radius: var(--radius-md); padding: 15px; margin-bottom: 20px; }
.split-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.split-counter { display: flex; align-items: center; background: var(--modal-bg); border: 1px solid var(--modal-border); border-radius: var(--radius-sm); overflow: hidden; }
.split-counter button { width: 32px; height: 32px; border: none; background: transparent; color: var(--modal-text-main); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.split-counter input { width: 40px; text-align: center; border: none; border-left: 1px solid var(--modal-border); border-right: 1px solid var(--modal-border); background: transparent; color: var(--modal-text-main); font-weight: 800; font-size: 14px; }

.split-tabs { display: flex; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--modal-border); margin-bottom: 15px; }
.split-tabs button { flex: 1; padding: 8px; font-size: 11px; font-weight: 700; border: none; background: rgba(var(--text_main-rgb), 0.02); color: var(--modal-text-muted); cursor: pointer; text-transform: uppercase; }
.split-tabs button.active { background: var(--accent_primary); color: var(--btn_primary_text, #FFFFFF); }

.split-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(var(--text_main-rgb), 0.05); }
.split-row-name { font-size: 13px; color: var(--modal-text-main); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.split-amount { font-size: 14px; font-weight: 800; color: var(--accent_secondary); }
.split-input-wrapper { display: flex; align-items: center; border: 1px solid var(--modal-border); border-radius: var(--radius-sm); padding: 4px 8px; background: var(--modal-bg); }
.split-input-wrapper input { width: 45px; border: none; text-align: right; background: transparent; font-size: 13px; font-weight: 700; color: var(--modal-text-main); outline: none; }

/* --- Resumen Final --- */
.pay-summary { background: rgba(var(--text_main-rgb), 0.03); border: 1px solid rgba(var(--text_main-rgb), 0.08); border-radius: var(--radius-md); padding: 15px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--modal-text-muted); margin-bottom: 8px; }
.summary-row.total { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(var(--text_main-rgb), 0.08); font-size: 18px; font-weight: 800; color: var(--modal-text-main); margin-bottom: 0; }

/* --- BOTONES DE PAGO ESTANDARIZADOS (Fix iOS y Consistencia) --- */
.btn-pay-continue, .wa-btn, #btnCardLink {
    width: 100%; height: 56px; 
    padding: 0 20px; border: none; border-radius: var(--radius-md);
    font-weight: 800; font-size: 14px; text-transform: uppercase;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: var(--transition-smooth); box-shadow: var(--shadow);
    box-sizing: border-box; text-decoration: none; 
    -webkit-appearance: none; 
}

.btn-pay-continue, #btnCardLink { 
    background: var(--accent_secondary); 
    color: var(--btn_secondary_text, #FFFFFF); 
}

.wa-btn { 
    background: #25D366; 
    color: #FFFFFF; 
    margin-top: 10px;
}

.btn-pay-continue:active, .wa-btn:active, #btnCardLink:active { 
    transform: scale(0.98); opacity: 0.9; 
}

/* --- FIX iOS: BOTÓN VOLVER / CAMBIAR MÉTODO --- */
.btn-pay-back {
    display: block; width: 100%; padding: 15px; margin-top: 15px;
    background: transparent; border: none;
    color: var(--modal-text-muted); 
    font-size: 13px; font-weight: 700; text-align: center;
    text-decoration: none; 
    cursor: pointer; transition: color 0.2s;
    -webkit-appearance: none;
}
.btn-pay-back:hover { color: var(--accent_secondary); }
.btn-pay-back::before { content: '← '; }

/* --- Métodos de Pago y SPEI --- */
.payment-method-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--modal-bg); border: 1px solid var(--modal-border); padding: 18px 20px; border-radius: var(--radius-md); font-size: 14px; font-weight: 800; color: var(--modal-text-main); cursor: pointer; transition: var(--transition-smooth); margin-bottom: 12px; }
.payment-method-btn:hover { border-color: var(--accent_primary); transform: translateX(4px); background: rgba(var(--text_main-rgb), 0.02); }

.bank-data-box { background: rgba(var(--text_main-rgb), 0.02); border: 1px dashed var(--modal-border); border-radius: var(--radius-md); padding: 20px; margin: 15px 0 25px; display: flex; flex-direction: column; gap: 12px; }
.bank-row { display: flex; flex-direction: column; gap: 4px; }
.bank-row span { color: var(--modal-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.bank-row strong { color: var(--modal-text-main); font-size: 15px; font-weight: 800; }

.btn-copy-clabe { background: transparent; border: none; color: var(--accent_secondary); cursor: pointer; padding: 4px; border-radius: 4px; transition: background 0.2s; display: flex; align-items: center; justify-content: center;}
.btn-copy-clabe:hover { background: rgba(var(--accent_secondary-rgb), 0.1); }

/* =========================================
   18. GOOGLE REVIEWS (RESEÑAS)
   ========================================= */
.review-banner {
    background: linear-gradient(145deg, rgba(var(--text_main-rgb), 0.02) 0%, rgba(var(--text_main-rgb), 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 35px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.review-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #FFC107; /* Brillo dorado al pasar el mouse */
}

.review-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    color: #FFC107; /* Dorado Clásico de Google */
}

.review-stars .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    font-size: 36px;
    filter: drop-shadow(0 2px 10px rgba(255, 193, 7, 0.4));
    animation: pulseStar 2s infinite alternate;
}

/* Animación escalonada para las estrellas */
.review-stars .material-symbols-outlined:nth-child(2) { animation-delay: 0.2s; }
.review-stars .material-symbols-outlined:nth-child(3) { animation-delay: 0.4s; }
.review-stars .material-symbols-outlined:nth-child(4) { animation-delay: 0.6s; }
.review-stars .material-symbols-outlined:nth-child(5) { animation-delay: 0.8s; }

@keyframes pulseStar {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); filter: drop-shadow(0 4px 15px rgba(255, 193, 7, 0.7)); }
}

.review-title {
    color: var(--text_main);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.review-desc {
    color: var(--text_muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 320px;
}

/* Botón Estandarizado (Igual a Pagar Cuenta / WhatsApp) */
.review-btn {
    width: 100%;
    max-width: 280px;
    height: 56px;
    background: var(--accent_primary);
    color: var(--btn_primary_text, #FFFFFF);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow);
    -webkit-appearance: none;
}

.review-btn:hover {
    background: var(--accent_secondary);
    transform: scale(1.02);
}

/* =========================================
   19. NEWSLETTER (SUSCRIPCIÓN)
   ========================================= */

/* --- Banner CTA Principal --- */
.news-banner-card {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: linear-gradient(135deg, rgba(var(--accent_primary-rgb), 0.08) 0%, rgba(var(--text_main-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--accent_primary-rgb), 0.2);
    border-radius: var(--radius-xl); padding: 18px 20px;
    cursor: pointer; transition: var(--transition-smooth); box-shadow: var(--shadow-sm);
}
.news-banner-card:hover {
    transform: translateY(-3px); border-color: rgba(var(--accent_primary-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(var(--accent_primary-rgb), 0.15); background: rgba(var(--accent_primary-rgb), 0.12);
}
.news-banner-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent_primary); color: var(--btn_primary_text, #FFFFFF);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--accent_primary-rgb), 0.4);
}
.news-banner-content { flex: 1; display: flex; flex-direction: column; }
.news-banner-title { font-size: 16px; font-weight: 800; color: var(--text_main); margin: 0 0 4px 0; line-height: 1.2; }
.news-banner-desc { font-size: 13px; color: var(--text_muted); margin: 0; line-height: 1.4; opacity: 0.9; }
.news-banner-arrow { color: var(--accent_primary); font-size: 20px; transition: transform 0.3s; }
.news-banner-card:hover .news-banner-arrow { transform: translateX(5px); }

/* --- Contenedor Interno del Modal --- */
.news-form-container { padding: 25px; }

/* --- Formulario y Campos (Heredado de Reserva) --- */
.news-input-group { margin-bottom: 16px; }
.news-label { 
    display: block; font-size: 11px; color: var(--modal-text-muted); 
    text-transform: uppercase; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.5px; 
}
/* Fijamos la altura para los inputs de date como en las reservas */
#newsletterForm input.form-input { height: 50px; }
#newsletterForm input[type="date"]::-webkit-calendar-picker-indicator { 
    cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
}
/* En modo oscuro, invertimos el ícono del calendario para que sea blanco */
[data-theme="dark"] #newsletterForm input[type="date"]::-webkit-calendar-picker-indicator { 
    filter: invert(1); 
}

/* --- Checkbox Personalizado Premium --- */
.news-checkbox-group {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--modal-text-muted); font-size: 13px; margin: 10px 0 25px 0; cursor: pointer; line-height: 1.4;
}
.news-checkbox-group input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; border: 2px solid var(--modal-border);
    border-radius: 4px; background: rgba(var(--text_main-rgb), 0.05);
    display: grid; place-content: center; cursor: pointer; margin-top: 2px;
    transition: all 0.2s ease; flex-shrink: 0;
}
.news-checkbox-group input[type="checkbox"]::before {
    content: ""; width: 10px; height: 10px;
    transform: scale(0); transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #FFFFFF; background-color: #FFFFFF;
    transform-origin: center; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.news-checkbox-group input[type="checkbox"]:checked { 
    background: var(--accent_primary); border-color: var(--accent_primary); 
}
.news-checkbox-group input[type="checkbox"]:checked::before { transform: scale(1); }
.news-required-star { color: var(--accent_secondary); margin-left: 3px; font-weight: 800; }

/* --- Estados y Éxito --- */
.modal-primary-btn.is-loading { opacity: 0.7; pointer-events: none; }
.news-spin-icon { animation: spin 1s linear infinite; font-size: 18px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.news-success-box {
    display: none; margin-top: 15px; padding: 15px;
    border: 1px solid var(--success); background: rgba(var(--success-rgb, 40, 167, 69), 0.1);
    color: var(--success); text-align: center; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 800; animation: fadeIn 0.3s ease;
}
.news-success-box.show { display: block; }


/* =========================================
   20. INVOICING (FACTURACIÓN)
   ========================================= */

:root {
    /* Blindaje: Busca la variable nueva, si no la halla busca uc9, si no halla nada usa tu turquesa */
    --safe-success: var(--success, var(--uc9, #00B2A9));
    --safe-success-rgb: var(--success-rgb, var(--uc9-rgb, 0, 178, 169));
}

/* --- Banner CTA de Facturación --- */
.invoice-banner-card {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: linear-gradient(135deg, rgba(var(--safe-success-rgb), 0.08) 0%, rgba(var(--text_main-rgb, 255, 255, 255), 0.02) 100%); 
    border: 1px solid rgba(var(--safe-success-rgb), 0.25); 
    border-radius: var(--radius-xl); padding: 18px 20px;
    cursor: pointer; transition: var(--transition-smooth, all 0.3s ease);
    position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.invoice-banner-card:hover {
    background: rgba(var(--safe-success-rgb), 0.12);
    border-color: var(--safe-success); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--safe-success-rgb), 0.2); 
}

.invoice-banner-left { display: flex; align-items: center; gap: 15px; flex: 1; }

.invoice-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--safe-success); color: #FFFFFF !important;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--safe-success-rgb), 0.4);
    font-size: 24px !important;
    transition: transform 0.3s;
}
.invoice-banner-card:hover .invoice-icon { transform: scale(1.1) rotate(-5deg); }

.invoice-banner-text { display: flex; flex-direction: column; }
.invoice-title { font-size: 16px; font-weight: 800; color: var(--text_main); margin: 0 0 4px 0; line-height: 1.2; }
.invoice-desc { font-size: 13px; color: var(--text_muted); margin: 0; line-height: 1.4; opacity: 0.9; }

.invoice-banner-right {
    display: flex; align-items: center; gap: 4px; color: var(--safe-success); font-weight: 700; font-size: 12px; text-transform: uppercase; flex-shrink: 0;
}
.invoice-banner-right .material-symbols-outlined { font-size: 20px; transition: transform 0.3s; }
.invoice-banner-card:hover .invoice-banner-right .material-symbols-outlined { transform: translateX(5px); }

/* --- Formulario de Facturación en Modal --- */
.invoice-form-container { padding: 25px; }
.invoice-input-group { margin-bottom: 16px; }
.invoice-label { 
    display: block; font-size: 11px; color: var(--modal-text-muted); 
    text-transform: uppercase; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.5px; 
}
.invoice-select { 
    appearance: none; -webkit-appearance: none; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23888888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'); 
    background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; cursor: pointer; 
}
.invoice-select option { background: var(--modal-bg); color: var(--modal-text-main); }

/* Botón Submit Verde sin CSS Inline */
.invoice-btn-submit {
    background: var(--safe-success) !important;
    color: #FFFFFF !important;
    margin-top: 10px;
}

/* --- Mensaje de Éxito --- */
.invoice-success-box {
    display: none; margin-top: 15px; padding: 15px;
    border: 1px solid var(--safe-success); background: rgba(var(--safe-success-rgb), 0.1);
    color: var(--safe-success); text-align: center; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 800; animation: fadeIn 0.3s ease;
}
.invoice-success-box.show { display: block; }

/* =========================================
   📱 RESPONSIVE (MÓVIL) PARA CTAS
   ========================================= */
@media (max-width: 600px) {
    .invoice-banner-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .invoice-banner-left { flex-direction: row; align-items: center; gap: 15px; }
    .invoice-desc { max-width: 100%; }
    .invoice-banner-right {
        width: 100%; justify-content: space-between; 
        margin-top: 5px; padding-top: 15px; border-top: 1px dashed rgba(var(--safe-success-rgb), 0.3);
    }
}

/* =========================================
   21. SOCIAL MEDIA CARDS
   ========================================= */
.social-module-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}
.social-module-desc {
    color: var(--text_muted);
    font-size: 13px;
    text-align: center;
    max-width: 90%;
    margin: 0;
    line-height: 1.4;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.social-card {
    background: rgba(var(--text_main-rgb), 0.03);
    border: 1px solid rgba(var(--text_main-rgb), 0.08);
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text_main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-card:hover, .social-card:active {
    background: rgba(var(--accent_primary-rgb), 0.05);
    border-color: var(--accent_primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--accent_primary-rgb), 0.2);
}

.social-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(var(--text_main-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text_main);
    transition: all 0.3s ease;
}

.social-card:hover .social-icon-wrapper {
    background: var(--accent_primary);
    color: var(--btn_primary_text, #FFFFFF); /* Contraste seguro dinámico */
    transform: scale(1.1);
}

.social-icon-wrapper svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-platform {
    font-size: 13px;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.social-user {
    font-size: 11px;
    color: var(--text_muted);
    font-weight: 600;
}

/* =========================================
   🏛️ HERITAGE MODULE - THE BLACK SHEEP (PREMIUM APP STYLE)
   ========================================= */

.ez-heritage-container {
    width: 100%;
    max-width: 600px; /* Ancho perfecto para un perfil elegante */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Garantiza el centrado absoluto */
    gap: 4rem; /* Separación amplia entre bloques */
}

.ez-heritage-container * {
    box-sizing: border-box;
}

.ez-h-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Tipografía --- */
.ez-h-title {
    font-size: 1.4rem;
    color: var(--text_main);
    margin: 0 0 1.2rem 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ez-h-subtitle {
    font-size: 0.9rem;
    color: var(--accent_primary);
    margin: 0 0 1rem 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ez-h-text {
    color: var(--text_muted);
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
}

.ez-h-text p {
    margin: 0 0 1.2rem 0;
}
.ez-h-text p:last-child {
    margin: 0;
}
.ez-h-text b, 
.ez-h-text strong {
    color: var(--text_main);
    font-weight: 600;
}

.ez-h-center {
    margin-bottom: 2rem;
}

/* --- Misión (Glass Card) --- */
.ez-h-glass-card {
    width: 100%;
    background: var(--glass-bg); /* Toma el rgba de tu config */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ez-h-quote {
    font-style: italic;
    color: var(--text_main);
    font-size: 1.1rem;
    margin: 1.5rem 0;
    border-left: 2px solid var(--accent_primary);
    padding-left: 1rem;
    text-align: left;
    line-height: 1.5;
}

.ez-h-tag {
    display: inline-block;
    background: rgba(var(--neutral_dark), 0.1);
    color: var(--accent_primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

/* --- Políticas (Lista Elegante) --- */
/* Cambié el grid amontonado por una lista vertical minimalista, se lee mucho más premium en móvil */
.ez-h-policy-list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ez-h-policy-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg_soft);
    border-radius: var(--radius-md);
    color: var(--text_main);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.ez-h-policy-list li:hover {
    border-color: var(--glass-border);
    background: var(--glass-bg);
}

.ez-h-icon {
    color: var(--accent_primary);
    font-size: 1.5rem;
}

/* --- Sucursales (App Cards) --- */
.ez-h-branches {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ez-h-branch-link {
    position: relative;
    width: 100%;
    height: 180px; /* Tarjeta panorámica, más elegante que un cuadrado gigante */
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    background: var(--bg_soft);
    border: 1px solid var(--glass-border);
}

.ez-h-branch-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Mantiene la imagen sobria */
    transition: var(--transition-smooth);
}

.ez-h-branch-link:hover .ez-h-branch-bg {
    opacity: 0.8;
    transform: scale(1.05);
}

.ez-h-branch-info {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    /* Un gradiente negro forzado para que siempre sea legible sin importar el tema */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    text-align: left;
    width: 100%;
}

.ez-h-branch-info h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
}

.ez-h-branch-info p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-weight: 300;
}

.ez-h-action {
    display: inline-flex;
    align-items: center;
    color: var(--accent_primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ez-h-action .material-symbols-outlined {
    font-size: 1.2rem;
    margin-left: 2px;
}