/* 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(--neutral_light); 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;
}

    /* raleway-regular - latin (Uso: Texto base y párrafos) */
    @font-face {
      font-display: swap;
      font-family: 'Raleway';
      font-style: normal;
      font-weight: 400;
      src: url('/statics/fonts/raleway-v37-latin-regular.woff2') format('woff2');
    }

    /* raleway-600 - latin (Uso: Subtítulos y negritas suaves) */
    @font-face {
      font-display: swap;
      font-family: 'Raleway';
      font-style: normal;
      font-weight: 600;
      src: url('/statics/fonts/raleway-v37-latin-600.woff2') format('woff2');
    }

    /* raleway-800 - latin (Uso: Títulos de alto impacto / Hero) */
    @font-face {
      font-display: swap;
      font-family: 'Raleway';
      font-style: normal;
      font-weight: 800;
      src: url('/statics/fonts/raleway-v37-latin-800.woff2') format('woff2');
    }

    /* ── Material Symbols base ── */
    .material-symbols-outlined {
      font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
      vertical-align: middle;
      line-height: 1;
      font-size: 1.4rem;
    }

.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; }

/* =========================================
   CLASES DE UTILIDAD (Reemplazo de estilos en línea)
   ========================================= */
.module-padded { padding: 0 20px; }
.module-margin-x { margin: 0 20px; }
.text-justify { text-align: justify; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mb-5 { margin-bottom: 5px; }
.mb-20 { margin-bottom: 20px; }

/* Ajustes específicos de Modales / Secciones */
.modal-title-custom { color: var(--modal-text-main); }
.dna-section-divider { margin-top: 30px; border-top: 1px solid var(--modal-border); padding-top: 20px; }
.btn-flex-center { display: flex; align-items: center; justify-content: center; gap: 8px; }
.icon-box-20 { width: 20px; height: 20px; display: inline-block; }


/* =========================================
   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; width: 100%; aspect-ratio: 16 / 9; 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(--neutral_light); object-fit: cover; background-size: cover; background-position: center; box-shadow: var(--shadow); }

.section-padding { 
    padding: 1rem 20px 0 20px; 
    margin-top: 40px; 
    margin-bottom: 20px; 
}

#ez-hero-texts {
    margin-top: 0; 
}

.section-margin { margin: 35px 0; }

.title-row { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 4px; 
}

.title-row h1 { 
    font-size: 28px; 
    color: var(--text_main); 
    margin: 0; 
    padding: 0; 
    line-height: 1.1; 
}

.verified-icon { color: var(--accent_secondary); font-size: 24px; }

.subtitle-text { 
    font-family: "Raleway", sans-serif; 
    font-size: 20px; 
    font-weight: 500; 
    color: var(--text_main); 
    margin: 0 0 6px 0; 
    letter-spacing: 1px; 
    line-height: 1.2;
}

.slogan-text { 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--accent_secondary); 
    margin: 0 0 8px 0; 
    line-height: 1.3;
}

.bio-text { 
    margin-top: 10px; 
    color: var(--text_main); 
    font-size: 14px; 
    line-height: 1.6; 
}

.highlight { color: var(--accent_secondary); font-weight: 600; }

/* =========================================
   5. ESTILOS DEL BADGE (Estado + Posición)
   ========================================= */
/* 1. Estructura Base (Posición y Forma) */
.status-badge {
    position: absolute;
    left: 50%;
    bottom: 0; 
    transform: translate(-50%, 50%); 
    background: var(--neutral_dark);
    border: 1px solid var(--secondary); 
    padding: 4px 12px; 
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(var(--neutral_dark-rgb), 0.5);
    white-space: nowrap; 
    width: max-content;
    z-index: 30;
    
    /* Manejo de opacidad desde CSS en lugar de JS */
    opacity: 0; 
    transition: opacity 0.3s ease;
}

/* Clase inyectada por JS para revelar el badge */
.status-badge.show {
    opacity: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neutral_dark);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.status-text {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1; 
}

/* 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); 
}
.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;
}

/* =========================================
   ELEMENTOS MULTIMEDIA (POSTERS Y VIDEOS)
   ========================================= */

/* El video reproduciéndose en el modal de detalle */
.media-video-element, 
.media-poster-img {
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    border-radius: inherit;
    user-select: none;           /* No permite seleccionar */
    -webkit-user-drag: none;     /* No permite arrastrar la imagen */
    pointer-events: none;        /* Bloquea el clic derecho y la interacción directa */
    -webkit-touch-callout: none; /* Bloquea el menú contextual en iOS (Safari) */
}

/* El contenedor de la imagen estática en la cuadrícula */
.media-poster-container {
    position: relative; 
    width: 100%; 
    height: 100%;
    overflow: hidden;
}

/* La imagen en sí (aplica tanto para formato viejo como nuevo) */
.media-poster-container {
    position: relative; 
    width: 100%; 
    height: 100%;
    overflow: hidden;
}

/* El ícono de Play flotante sobre el poster */
.media-play-icon {
    position: absolute; 
    top: 6px; 
    right: 6px; 
    background: rgba(0, 0, 0, 0.6); 
    color: var(--neutral_light, #FFFFFF); 
    border-radius: 50%; 
    padding: 4px; 
    font-size: 16px; 
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 5;
}

/* =========================================
   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: 80vh; 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: var(--accent_secondary); color: var(--btn_secondary_text, #ffffff); border: 1px solid var(--accent_secondary); display: flex; 
    align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease; }

.ez-modal-close:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 4px 12px rgba(var(--accent_secondary-rgb), 0.4); }
.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; }

.ez-modal select.form-input,
.ez-modal .form-input select,
.ez-modal select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    min-height: 48px;
    padding: 12px 42px 12px 14px;
    border-radius: 14px;
    border: var(--modal-input-border, 1px solid rgba(0,0,0,0.08));
    background-color: var(--modal-input-bg, rgba(255,255,255,0.95));
    color: var(--modal-input-text, var(--text_main));
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.ez-modal select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.dark-mode .ez-modal select,
[data-theme="dark"] .ez-modal select {
    background-color: rgba(255,255,255,0.06);
    color: var(--neutral_light);
    border: 1px solid rgba(255,255,255,0.08);
}

.dark-mode .ez-modal select option,
[data-theme="dark"] .ez-modal select option {
    background: #1a1a1a;
    color: #fff;
}

.res-people-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.res-people-label-small {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1;
}

.res-people-inline-text {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1;
}

.res-people-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.res-people-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.res-people-btn .material-symbols-outlined {
    font-size: 18px;
    color: var(--text_main);
}

.ez-modal-number-input {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.ez-modal-number-input::-webkit-outer-spin-button,
.ez-modal-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ez-modal-number-input[type=number] {
    -moz-appearance: textfield;
}

/* =========================================
   MODAL HEADER ACTIONS (Share & Close)
   ========================================= */
.ez-modal-header-actions {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.ez-modal-share-btn {
    background: transparent;
    border: none;
    color: var(--text_main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ez-modal-share-btn:hover {
    background: var(--bg_soft);
    color: var(--accent_secondary);
}

.ez-modal-header-actions .ez-modal-close {
    position: static;
    transform: none;
}

/* =========================================
   SHARE MENU DROPDOWN
   ========================================= */
.ez-share-menu-dropdown {
    display: none;
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.ez-share-menu-dropdown.active {
    display: block;
    animation: ezShareFadeIn 0.25s ease forwards;
}

@keyframes ezShareFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   COPY LINK ICON & DELIVERY
   ========================================= */
.ez-share-copy-icon {
    background-color: #ffffff;
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.delivery-partner-name {
    flex: 1;
    text-align: left;
    margin-left: 8px;
}

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.ez-toast-notification {
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85); 
    color: #fff; 
    padding: 12px 24px;
    border-radius: 50px; 
    z-index: 999999; 
    font-size: 14px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    opacity: 0; 
    transition: opacity 0.3s ease; 
    display: none; 
    align-items: center; 
    gap: 8px;
}

.ez-toast-notification.show { 
    opacity: 1; 
    display: flex; 
}

/* =========================================
   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(--neutral_light-rgb), 0.08); 
    border-color: var(--accent_secondary); 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-soft); 
}
.wifi-btn:hover .wifi-content span { color: var(--text_main); 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_secondary); }
.wifi-debug { display: none; 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); 
    /* Borde claro para garantizar lectura del QR sin importar el modo oscuro */
    border: 6px solid var(--neutral_light, #ffffff); 
    background: var(--neutral_light, #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-color: rgba(var(--text_main-rgb), 0.08); color: var(--secondary); }
.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: var(--neutral_light);
}

/* =========================================
   8. QUICK ACTIONS & MODALES UNIFICADOS
   ========================================= */

/* --- GRID DE BOTONES PRINCIPALES (QUICK ACTIONS) --- */
.action-grid {
    display: flex; gap: 12px; margin: 35px 0; width: 100%; box-sizing: border-box;
}

.action-btn {
    flex: 1; min-width: 0; 
    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); box-sizing: border-box;
}

.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); text-align: center; }
.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-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; }

/* --- CLASES DE UTILIDAD PARA EVITAR ESTILOS EN LÍNEA --- */
.mt-10 { margin-top: 10px !important; }
.mb-0 { margin-bottom: 0 !important; }
.b-info-main-title { font-size: 26px !important; }

/* =========================================
   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); 
    position: relative; scroll-snap-align: center; 
    box-shadow: var(--shadow); border: 1px solid var(--glass-border); cursor: pointer; overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.special-promo-item:hover, .special-promo-item:active { 
    transform: translateY(-4px); 
    border-color: var(--accent_secondary); 
    box-shadow: 0 8px 25px rgba(0,0,0, 0.4); 
}

/* 💡 Nueva clase para la imagen de fondo fluida */
.special-promo-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 0;
}

.special-promo-overlay {
    position: absolute; inset: 0; background: rgba(var(--neutral_dark-rgb), 0.75);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 15px; box-sizing: border-box;
    z-index: 1; /* 💡 Asegura que el texto y el overlay queden sobre la imagen */
}

.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; 
}

/* Clase de utilidad para el texto de carga sin CSS en línea */
.promo-loading-text {
    color: var(--modal-text-muted); padding: 20px; font-size: 12px; opacity: 0.5; text-align: center; width: 100%;
}

/* --- MODAL INTERNO DE DETALLE DE PROMO (PURE CSS) --- */
.promo-detail-img-wrap {
    width: 100%; height: auto; border-radius: var(--radius-md); margin-bottom: 20px;
    box-shadow: var(--shadow); overflow: hidden; background: var(--glass-bg);
}
.promo-detail-img-wrap img, .promo-detail-img-wrap video { 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; }

.ez-promo-modal-z { z-index: 5500; }

/* =========================================
   10. NOTIFICACIONES TOAST (CENTRADAS Y PREMIUM)
   ========================================= */
.promo-toast {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.85); 
    width: 85%; 
    max-width: 350px; 
    background: var(--glass-surface); 
    border: 1px solid var(--glass-border);
    border-top: 5px solid var(--accent_primary); 
    padding: 24px; 
    border-radius: var(--radius-lg); 
    z-index: 6000;
    display: flex; 
    align-items: center; 
    gap: 16px; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0), 0 10px 30px rgba(0,0,0,0);
}

.promo-toast.show { 
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.65), 0 20px 40px rgba(0,0,0,0.4);
}

.promo-toast.end { border-top-color: var(--accent_primary); } 

/* --- Diseño interno del aviso --- */
.promo-toast-icon .material-symbols-outlined { 
    color: var(--accent_secondary); 
    font-size: 32px; 
    background: rgba(var(--bg_main-rgb), 0.1);
    padding: 12px; 
    border-radius: 50%;
    display: flex;
}
.promo-toast.end .promo-toast-icon .material-symbols-outlined { 
    background: rgba(var(--bg_main-rgb), 0.1); 
}

.promo-toast-content { flex: 1; }
.promo-toast-content h4 { 
    margin: 0 0 6px 0; 
    font-size: 18px; 
    color: var(--accent_secondary); 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;    
    text-align: center;
}
.promo-toast-content p { 
    margin: 0; 
    font-size: 14px; 
    line-height: 1.5; 
    font-weight: 600; 
    color: var(--text-main); 
    text-align: center;
}
}

.toast-close-btn { 
    background: rgba(var(--text_main-rgb), 0.05); 
    border: 1px solid var(--modal-border); 
    color: var(--text_muted); 
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; 
    padding: 6px; 
    border-radius: 50%;
    transition: var(--transition-smooth);
    align-self: flex-start; /* Se ancla arriba a la derecha */
    margin-top: -12px;
    margin-right: -12px;
}
.toast-close-btn:hover, .toast-close-btn:active { 
    background: var(--accent_secondary); 
    color: #fff; 
    border-color: var(--accent_secondary); 
    transform: scale(1.1); 
}

/* =========================================
   11. ESTRUCTURA DE PRODUCTOS Y MENÚS
   ========================================= */
.menu-modal-content { flex: 1; overflow-y: auto; padding: 20px; scroll-behavior: smooth; }
.menu-section { padding-top: 30px; padding-bottom: 15px }

/* 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(--modal-text-muted); font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.menu-product .style { font-size: 10px; color: var(--modal-text-muted); 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: 15px; }

/* --- CONFIGURACIÓN DE PRECIOS --- */
.food-prices-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.price-item { 
    display: flex; 
    flex-direction: column; 
    border-left: 2px solid var(--accent_primary); 
    padding-left: 10px; 
}
.price-label { font-size: 9px; text-transform: uppercase; color: var(--text_main); font-weight: 700; margin-bottom: 2px; }
.price-values { display: flex; align-items: baseline; gap: 4px; }
.old-price { font-size: 11px; color: var(--text_main); text-decoration: line-through; opacity: 0.7;}
.current-price { font-size: 14px; font-weight: 800; color: var(--accent_secondary); }

.price-area-bottom { display: none !important; }
.price-area-top { display: flex; flex-shrink: 0; margin-bottom: 5px; }

/* --- ESTRUCTURA BASE DE LA TARJETA --- */
.menu-product { 
    display: flex; flex-direction: row; align-items: flex-start; gap: 12px; 
    padding: 15px 0; border-bottom: 1px solid var(--modal-border); 
    width: 100%; box-sizing: border-box; transition: var(--transition-smooth);
}
.product-img-container { width: 80px; height: 80px; 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-info { flex: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; }

/* Fila de Nombre y Precio */
.name-price-row { 
    display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap; gap: 15px; width: 100%; 
}
.name-brand-group { flex: 1; min-width: 0; }
.price-area-top .price-item { align-items: flex-end; text-align: right; border-left: none; padding-left: 0; } 
.product-footer .presentation-row { color: var(--modal-text-muted); font-size: 12px; margin-top: 10px; font-weight: 600; }

/* =========================================
   ALINEACIÓN PERFECTA PARA GRID Y GRID-PHOTO
   ========================================= */
[data-layout="grid"] .products-grid,
[data-layout="grid-photo"] .products-grid { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; box-sizing: border-box;
}

[data-layout="grid"] .menu-product,
[data-layout="grid-photo"] .menu-product { 
    display: flex; flex-direction: column; height: 100%; border: 1px solid var(--modal-border); 
    border-radius: var(--radius-md); padding: 12px; background: rgba(var(--text_main-rgb), 0.02); 
    box-sizing: border-box; min-width: 0; width: 100%;
}

[data-layout="grid"] .product-img-container { display: none !important; }

[data-layout="grid-photo"] .product-img-container { 
    width: 100%; height: auto; aspect-ratio: 1 / 1; margin-bottom: 12px; flex-shrink: 0; background: var(--glass-bg); border-radius: var(--radius-md); overflow: hidden;
}
[data-layout="grid-photo"] .product-img-container img { width: 100%; height: 100%; object-fit: cover; padding: 8px; box-sizing: border-box; }

[data-layout="grid"] .menu-product-info,
[data-layout="grid-photo"] .menu-product-info { display: flex; flex-direction: column; flex: 1; width: 100%; min-width: 0; }

[data-layout="grid"] .name-price-row,
[data-layout="grid-photo"] .name-price-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; width: 100%; margin-bottom: 12px; }

[data-layout="grid"] .name-brand-group,
[data-layout="grid-photo"] .name-brand-group { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Envoltorios Seguros */
.name-wrapper-with-badge { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.name-badge-wrapper { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }

[data-layout="grid"] .name-wrapper-with-badge,
[data-layout="grid-photo"] .name-wrapper-with-badge { height: 38px; display: flex; align-items: flex-start; align-content: flex-start; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; overflow: hidden; }

[data-layout="grid"] .name,
[data-layout="grid-photo"] .name { font-size: 14px; font-weight: 800; color: var(--text_main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; margin: 0; word-break: break-word; }

[data-layout="grid"] .brand,
[data-layout="grid-photo"] .brand { height: 16px; font-size: 11px; text-transform: uppercase; color: var(--modal-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; font-weight: 700; }

[data-layout="grid"] .price-area-top,
[data-layout="grid-photo"] .price-area-top { flex-shrink: 0; max-width: 45%; }

[data-layout="grid"] .price-item,
[data-layout="grid-photo"] .price-item { display: flex; flex-direction: column; align-items: flex-end; text-align: right; border-left: 2px solid var(--accent_primary); padding-left: 8px; margin: 0; height: auto; }

[data-layout="grid"] .meta-wrapper,
[data-layout="grid-photo"] .meta-wrapper { height: 36px; display: flex; flex-direction: column; justify-content: flex-start; margin-bottom: 12px; overflow: hidden; }
[data-layout="grid"] .meta,
[data-layout="grid-photo"] .meta { font-size: 10px; color: var(--modal-text-muted); font-weight: 700; text-transform: uppercase; margin: 0 0 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-layout="grid"] .style,
[data-layout="grid-photo"] .style { font-size: 11px; color: var(--accent_secondary); font-style: italic; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

[data-layout="grid"] .desc-wrapper,
[data-layout="grid-photo"] .desc-wrapper { flex: 1; display: flex; flex-direction: column; margin-bottom: 15px; }
[data-layout="grid"] .desc,
[data-layout="grid-photo"] .desc { font-size: 12px; line-height: 1.4; color: var(--modal-text-muted); opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

[data-layout="grid"] .product-footer,
[data-layout="grid-photo"] .product-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(var(--text_main-rgb), 0.1); width: 100%; }

@media (max-width: 500px) { 
    [data-layout="grid"] .products-grid, 
    [data-layout="grid-photo"] .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } 
}

/* 5. LAYOUT: FULL */
[data-layout="full"] .menu-product { flex-direction: column; border: none; border-bottom: 1px solid var(--modal-border); padding: 20px 0; }
[data-layout="full"] .product-img-container { width: 100%; height: auto; margin-bottom: 15px; border-radius: var(--radius-lg); }
[data-layout="full"] .product-img-container img { height: auto; object-fit: cover; }

/* --- Badges Promocionales --- */
.badges-container { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; z-index: 10; pointer-events: none; }
.badge-promo { display: inline-block; background: var(--accent_secondary); color: #FFFFFF; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.inline-badge-promo { font-size: 9px; padding: 2px 6px; display: inline-block; vertical-align: middle; margin-bottom: 2px; border-radius: var(--radius-sm); background: var(--accent_secondary); color: #fff;}

/* =========================================
   13. ESTILOS INTERNOS: DETALLE DE PRODUCTO
   ========================================= */
.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; }

.detail-price-main .current-price { font-size: 26px; line-height: 1; }
.detail-price-main .old-price { font-size: 13px; }
.detail-price-main .price-item { align-items: flex-end; padding-left: 12px; }
.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(--text_muted); margin-right: 4px; }
.detail-style { color: var(--accent_secondary); font-style: italic; margin-top: 4px; text-transform: none; }

.detail-specs-footer { border-top: 2px solid var(--primary); padding-top: 15px; display: flex; gap: 25px; }
.spec-item small { color: var(--accent_secondary); font-size: 15px; font-weight: 800; margin: 0; }
.spec-item p { color: var(--modal-text-main); font-size: 13px; font-weight: 600; margin: 0; }

.detail-extras-section { margin-top: 25px; padding: 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); }
.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); }
.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(--secondary); 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; }

.terms-active-badge { font-size: 10px; font-weight: 800; color: var(--accent_secondary); 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(--accent_secondary); }

/* =========================================
   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); }

.menu-grid, #featuredGrid, #featuredGridFood { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; align-items: stretch; }

.menu-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: var(--transition-smooth); position: relative; }
.menu-item:hover, .menu-item:active { cursor: pointer; transform: translateY(-3px); border-color: var(--accent_secondary); filter: brightness(1.05); box-shadow: 0 8px 25px rgba(0,0,0, 0.2); }

.menu-img { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; flex-shrink: 0; background-color: rgba(var(--text_main-rgb), 0.05); }
.menu-img .media-poster-img, .menu-img .media-video-element { width: 100%; height: 100%; object-fit: cover !important; position: absolute; inset: 0; }

.menu-content { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; gap: 8px; }
.menu-name { font-size: 14px; font-weight: 700; margin: 0; color: var(--text_main); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.menu-price, .food-prices-grid { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }

.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(--neutral_light, #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; }

/* =========================================
   DRINKS & FOOD MODULE UTILS
   ========================================= */
.ez-detail-modal-z {
    z-index: 5500;
}

.ez-fade-in {
    animation: ezFadeInAnim 0.5s ease forwards;
}

@keyframes ezFadeInAnim {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ez-expand-btn-drink {
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text_main);
}

/* =========================================
   CLASES DE UTILIDAD PARA EVITAR CSS EN LÍNEA
   ========================================= */
.pt-10 { padding-top: 10px !important; }
.pl-0 { padding-left: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.list-none { list-style: none !important; }
.text-success { color: var(--success) !important; }
.detail-modal-z { z-index: 5500 !important; }
.empty-menu-msg { color: var(--modal-text-muted); padding: 20px; font-size: 12px; opacity: 0.8; text-align: center; }
.item-highlighted { background: rgba(var(--text_main-rgb), 0.15) !important; transition: background 0.4s ease !important; }

/* =========================================
   15. EVENTOS (CAROUSEL, MODAL & PASADOS)
   ========================================= */

/* --- Clases de Utilidad Extraídas --- */
.calendar-modal-body-p0 { padding: 0 !important; }

/* 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(--neutral_light-rgb), 0.05); border: 1px solid rgba(var(--neutral_light-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(--secondary-rgb), 0.4); }

/* Imágenes */
.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); color: var(--neutral_light); background-color:var(--secondary); }

/* 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(--text_main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card-desc { font-size: 13px; color: var(--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(--secondary); color: var(--neutral_light); border-color: var(--secondary); }
.event-btn-primary:hover { opacity: 0.9; transform: scale(0.98); }
.event-btn-secondary { background: transparent; border-color: rgba(var(--neutral_light-rgb), 0.5); color: var(--text_main); }
.event-btn-secondary:hover { background: rgba(var(--neutral_light-rgb), 0.08); }

/* 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; }

/* Scroll Interno del Calendario */
.calendar-content { padding: 20px; display: flex; flex-direction: column; gap: 15px; max-height: 65vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.calendar-content::-webkit-scrollbar { width: 6px; }
.calendar-content::-webkit-scrollbar-track { background: transparent; }
.calendar-content::-webkit-scrollbar-thumb { background: var(--modal-border); border-radius: var(--radius-full); }
.calendar-content::-webkit-scrollbar-thumb:hover { background: var(--accent_secondary); }

/* Lista de Eventos (Calendario) */
.calendar-event-item { display: flex; gap: 15px; padding: 15px; background: rgba(var(--neutral_light-rgb), 0.03); border: 1px solid rgba(var(--neutral_light-rgb), 0.08); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; }
.calendar-event-item:hover { background: rgba(var(--neutral_light-rgb), 0.08); border-color: rgba(var(--neutral_light-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(--secondary); 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); }

/* --- Pestañas y Eventos Pasados --- */
.calendar-tabs { display: flex; border-bottom: 1px solid var(--modal-border); background: rgba(var(--bg_main-rgb), 0.5); position: sticky; top: 0; z-index: 10; }
.cal-tab-btn { flex: 1; background: transparent; border: none; padding: 15px 10px; font-size: 13px; font-weight: 800; color: var(--modal-text-muted); text-transform: uppercase; cursor: pointer; transition: var(--transition-smooth); border-bottom: 3px solid transparent; }
.cal-tab-btn.active { color: var(--accent_secondary); border-bottom-color: var(--accent_secondary); background: rgba(var(--text_main-rgb), 0.02); }
.cal-tab-btn:hover:not(.active) { color: var(--modal-text-main); background: rgba(var(--text_main-rgb), 0.05); }

.empty-state-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; text-align: center; }
.calendar-event-item.is-past-event { opacity: 0.65; filter: grayscale(40%); }
.calendar-event-item.is-past-event:hover { opacity: 1; filter: grayscale(0%); }

.past-event-pill { display: inline-block; background: rgba(var(--text_main-rgb), 0.1); color: var(--modal-text-muted); font-size: 10px; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-full); vertical-align: middle; margin-left: 8px; border: 1px solid rgba(var(--text_main-rgb), 0.2); }

/* Utilidades adicionales */
.section-icon { font-size: 22px; vertical-align: bottom; margin-right: 4px; color: var(--secondary); }
.badge-primary { background: var(--secondary); color: var(--neutral_light); }
.btn-reserve-full { width: 100%; padding: 14px; background: var(--secondary); color: var(--neutral_light); 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; }

.empty-slider-wrapper { width: 100%; display: flex; justify-content: center; }
.empty-state-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; text-align: center; }
.empty-state-icon { font-size: 40px; color: var(--accent_secondary); opacity: 0.5; margin-bottom: 10px; }
.empty-state-text { color: var(--text_main); font-size: 14px; margin: 0; }

/* =========================================
   16. MERCH STORE (OFICIAL)
   ========================================= */

/* Clases de Utilidad para Evitar CSS In-line */
.merch-header-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.merch-section-desc { font-size: 13px; color: var(--modal-text-muted); margin: 0; line-height: 1.4; opacity: 0.9; }
.justify-end { justify-content: flex-end !important; }
.merch-modal-z { z-index: 6000 !important; }

/* =========================================
   BANNER DE MERCH CTA (DISEÑO ORIGINAL PREMIUM)
   ========================================= */
.merch-cta-banner {
    position: relative; width: 100%; border-radius: var(--radius-xl); overflow: hidden;
    aspect-ratio: 16/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); 
}

/* El contenedor del media */
.merch-cta-img { 
    position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden;
}

/* El zoom premium aplicado directo al video o imagen inyectada */
.merch-cta-img img, 
.merch-cta-img video { 
    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 img, 
.merch-cta-banner:hover .merch-cta-img video { 
    transform: scale(1.05); 
}

/* El overlay con el degradado arreglado (solo oscurece la parte baja) */
.merch-cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(var(--bg_main-rgb), 0.95) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
    z-index: 2;
}

/* Botón CTA */
.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_secondary); border-radius: var(--radius-md); 
}
.merch-staff-note .material-symbols-outlined { color: var(--accent_secondary); font-size: 24px; }
.merch-staff-text { font-size: 13px; color: var(--modal-text-main); font-weight: 600; line-height: 1.4; opacity: 0.9; }

/* =========================================
   GALERÍA DE MERCH (CARRUSEL DE DETALLE)
   ========================================= */
.merch-gallery-wrapper {
    position: relative;
    width: 100%;
}

.merch-gallery-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.merch-gallery-slider::-webkit-scrollbar {
    display: none;
}

.merch-gallery-item {
    flex: 0 0 100%; 
    scroll-snap-align: center;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--glass-bg);
}

.merch-gallery-item img, 
.merch-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- NUEVAS FLECHAS DE NAVEGACIÓN --- */
.merch-gallery-arrow {
    position: absolute;
    top: calc(50% - 5px);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, transform 0.2s;
}

.merch-gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.merch-gallery-arrow.left { left: 8px; }
.merch-gallery-arrow.right { right: 8px; }

@media (hover: none) and (pointer: coarse) {
    .merch-gallery-arrow {
        display: none; 
    }
}

/* =========================================
   17. PAY BILL (PAGAR CUENTA)
   ========================================= */

/* Clases de Utilidad y Extracción del CSS Inline */
.d-none { display: none !important; }
.pay-modal-body { padding: 25px; }
.tip-label-center { text-align: center; margin-bottom: 10px; }
.step2-subtitle { text-align: center; color: var(--modal-text-muted); margin-bottom: 20px; font-size: 14px; }
.step2-total-val { color: var(--accent_secondary); font-size: 18px; display: block; margin-top: 5px; }
.flex-center-gap10 { display: flex; align-items: center; gap: 10px; }
.icon-text-main { color: var(--text_main); }
.step3-spei-title { text-align: center; color: var(--modal-text-muted); font-size: 13px; margin: 0; }
.step3-total-val { color: var(--accent_secondary); font-size: 16px; display: block; margin-top: 5px; }
.step3-card-title { text-align: center; color: var(--modal-text-muted); font-size: 14px; margin-bottom: 20px; }
.step3-total-val-lg { color: var(--accent_secondary); font-size: 18px; display: block; margin-top: 5px; }
.card-link-btn { text-decoration: none; margin-bottom: 25px; }
.notify-staff-text-block { text-align: center; font-size: 12px; color: var(--modal-text-muted); margin: 25px 0 12px; font-weight: 700; }
.split-icon { font-size: 16px; color: var(--modal-text-muted); }
.split-input-row { display: flex; align-items: center; gap: 15px; }
.split-amount-val { width: 70px; text-align: right; }

.pay-bill-banner {
    width: 100%; 
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: linear-gradient(135deg, rgba(var(--accent_secondary-rgb), 0.08) 0%, rgba(var(--text_main-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--accent_secondary-rgb), 0.2);
    border-radius: var(--radius-xl); padding: 18px 20px;
    cursor: pointer; transition: var(--transition-smooth); box-shadow: var(--shadow-sm);
}

.pay-bill-banner:hover {
    transform: translateY(-3px); 
    border-color: rgba(var(--accent_secondary-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(var(--accent_secondary-rgb), 0.15); 
    background: rgba(var(--accent_secondary-rgb), 0.12);
}

.pay-bill-icon-wrap {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent_secondary); color: var(--text_main);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--accent_secondary-rgb), 0.4);
}

.pay-bill-icon-wrap .material-symbols-outlined { font-size: 24px; }

.pay-bill-text-content { flex: 1; display: flex; flex-direction: column; }
.pay-bill-text-content h3 { font-size: 16px; font-weight: 800; color: var(--text_main); margin: 0 0 4px 0; line-height: 1.2; }
.pay-bill-text-content p { font-size: 13px; color: var(--text_muted); margin: 0; line-height: 1.4; opacity: 0.9; }

.pay-bill-arrow { color: var(--accent_secondary); font-size: 20px; transition: transform 0.3s; }
.pay-bill-banner:hover .pay-bill-arrow { transform: translateX(5px); }

/* --- Contenido del Banner --- */
.pay-bill-content { display: flex; align-items: center; gap: 15px; flex: 1; }
.pay-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent_secondary); color: var(--neutral_lightn); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 15px rgba(var(--accent_secondary-rgb), 0.4); }
.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 { animation: fadeIn 0.4s ease forwards; }

/* --- 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(--text_main); 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(--text_main); cursor: pointer; text-transform: uppercase; }
.split-tabs button.active { background: var(--accent_primary); color: var(--neutral_light, #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; justify-content: space-between;
    border: 1px solid var(--modal-border); border-radius: var(--radius-sm); 
    padding: 0; background: var(--modal-bg); width: 95px; overflow: hidden;
}
.split-input-wrapper input { 
    width: 35px; border: none; text-align: center; background: transparent; 
    font-size: 13px; font-weight: 700; color: var(--modal-text-main); 
    outline: none; -moz-appearance: textfield;
}
.split-input-wrapper input::-webkit-outer-spin-button,
.split-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.split-input-wrapper span {
    font-size: 12px; color: var(--modal-text-muted); font-weight: 700; margin-right: 4px;
}
.pct-btn-minus, .pct-btn-plus {
    width: 25px; height: 30px; background: rgba(var(--text_main-rgb), 0.05); 
    border: none; color: var(--modal-text-main); font-weight: 800; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.pct-btn-minus:active, .pct-btn-plus:active { background: rgba(var(--text_main-rgb), 0.15); }
.pct-btn-minus { border-right: 1px solid var(--modal-border); }
.pct-btn-plus { border-left: 1px solid var(--modal-border); }

/* --- 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; 
}

/* --- Ícono de Tarjeta en Botones de Pago --- */
.payment-card-icon {
    color: var(--accent_secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.dynamic-card-btn:hover .payment-card-icon {
    transform: scale(1.1);
}

.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); }

/* --- 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);
    position: relative; /* Agregado para posicionar el botón share */
}

.review-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #FFC107; 
}

.review-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    color: #FFC107; 
}

.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;
}

.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;
}

.review-btn {
    width: 100%;
    max-width: 280px;
    height: 56px;
    background: var(--accent_secondary);
    color: var(--neutral_light);
    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);
}

/* 💡 BOTÓN SHARE - CON FIX DE Z-INDEX PARA CLICS ASEGURADOS */
.review-share-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text_muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10; 
}

.review-share-btn:hover {
    background: rgba(var(--text_main-rgb), 0.08);
    color: var(--text_main);
}

/* 💡 CLASE SIN INLINE CSS PARA EL EFECTO DE LLEGADA POR DEEP LINK */
.highlight-review-glow {
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8) !important;
    border-color: #FFC107 !important;
    transition: all 0.3s ease;
}

/* =========================================
   19. NEWSLETTER (SUSCRIPCIÓN)
   ========================================= */

/* --- Clases de Utilidad Extraídas del HTML --- */
.news-submit-btn { margin-top: 10px; }

/* --- Banner CTA Principal --- */
.news-banner-card {
    width: 100%; 
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: linear-gradient(135deg, rgba(var(--accent_secondary-rgb), 0.08) 0%, rgba(var(--text_main-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--accent_secondary-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_secondary-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(var(--accent_secondary-rgb), 0.15); background: rgba(var(--accent_secondary-rgb), 0.12);
}
.news-banner-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent_secondary); color: var(--neutral_light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--accent_secondary-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(--text_muted); font-size: 20px; transition: transform 0.3s; }
.news-banner-card:hover .news-banner-arrow { transform: translateX(5px); color: var(--accent_secondary); }

/* --- Contenedor Interno del Modal --- */
.news-form-container { padding: 25px; }

/* --- Formulario y Campos --- */
.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; 
}
#newsletterForm input.form-input { height: 50px; }
#newsletterForm input[type="date"]::-webkit-calendar-picker-indicator { 
    cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
}
[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 CON FOTO Y FORMATO)
   ========================================= */

/* --- Banner CTA de Facturación --- */
.invoice-banner-card {
    width: 100%; max-width: 960px; margin: 0 auto; box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: linear-gradient(135deg, rgba(var(--accent_secondary-rgb), 0.08) 0%, rgba(var(--text_main-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--accent_secondary-rgb), 0.2);
    border-radius: var(--radius-xl); padding: 18px 20px;
    cursor: pointer; transition: var(--transition-smooth); box-shadow: var(--shadow-sm);
}
.invoice-banner-card:hover {
    transform: translateY(-3px); border-color: rgba(var(--accent_secondary-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(var(--accent_secondary-rgb), 0.15); background: rgba(var(--accent_secondary-rgb), 0.12);
}

.invoice-banner-left { display: flex; align-items: center; gap: 15px; flex: 1; overflow: hidden; min-width: 0; }

/* Corrección de ícono y sombra para que sea idéntico al newsletter */
.invoice-banner-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent_secondary); color: var(--neutral_light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--accent_secondary-rgb), 0.4);
    font-size: 24px !important; transition: transform 0.3s;
}
.invoice-banner-card:hover .invoice-banner-icon { transform: scale(1.1) rotate(-5deg); }

/* Ajuste de textos para que no se corten en móvil y hagan wrap */
.invoice-banner-text { display: flex; flex-direction: column; overflow: hidden; }
.invoice-title { font-size: 16px; font-weight: 800; color: var(--text_main); margin: 0 0 4px 0; line-height: 1.2; word-wrap: break-word; }
.invoice-desc { font-size: 13px; color: var(--text_muted); margin: 0; line-height: 1.4; opacity: 0.9; word-wrap: break-word; }

.invoice-banner-right {
    display: flex; align-items: center; gap: 4px; color: var(--text_main); font-weight: 700; font-size: 12px; text-transform: uppercase; flex-shrink: 0;
}
.invoice-banner-arrow { color: var(--text_muted); font-size: 20px !important; transition: transform 0.3s, color 0.3s; }
.invoice-banner-card:hover .invoice-banner-arrow { transform: translateX(5px); color: var(--accent_secondary); }

/* --- 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); }

.invoice-btn-submit { background: var(--secondary) !important; color: #FFFFFF !important; margin-top: 10px; }

.custom-file-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--text_main-rgb), 0.03);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--text_main-rgb), 0.08);
}
.hidden-file-input {
    display: none !important; 
}
.custom-file-btn {
    background: var(--accent_secondary);
    color: var(--neutral_light);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
    text-transform: uppercase;
    white-space: nowrap;
}
.custom-file-btn:hover {
    opacity: 0.9;
}
.custom-file-btn .material-symbols-outlined {
    font-size: 16px;
}
.custom-file-name {
    color: var(--modal-text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Previsualización de la Imagen del Ticket */
.file-preview-box { margin-top: 10px; display: flex; align-items: center; color: var(--accent_secondary); font-size: 13px; font-weight: 700; gap: 10px; }
.img-preview-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-md); border: 2px solid var(--accent_secondary); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.invoice-success-box {
    display: none; margin-top: 15px; padding: 15px; border: 1px solid var(--secondary); background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary); 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; }

.img-preview-thumb { width: 100%; max-width: 150px; border-radius: 8px; margin-top: 10px; border: 1px solid var(--modal-border); }

/* ── Corrección de contraste para los Selects (Facturación) ── */
#invoiceForm select.form-input option {
    background-color: #222222;
    color: #ffffff;
}
[data-theme="light"] #invoiceForm select.form-input option {
    background-color: #ffffff;
    color: #333333;
}

/* =========================================
   📱 RESPONSIVE (MÓVIL) PARA CTAS
   ========================================= */
@media (max-width: 600px) {
    .invoice-banner-card { flex-direction: column; align-items: flex-start; gap: 15px; padding: 18px; }
    .invoice-banner-left { flex-direction: row; align-items: center; gap: 15px; width: 100%; }
    .invoice-banner-right {
        width: 100%; justify-content: space-between; margin-top: 5px; 
        padding-top: 15px; border-top: 1px dashed rgba(255, 255, 255, 0.2);
    }
}

/* =========================================
   📱 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(--secondary-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;
    cursor: pointer;
}

.social-card:hover, .social-card:active {
    background: rgba(var(--accent_secondary-rgb), 0.05);
    border-color: var(--accent_secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--accent_secondary-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_secondary);
    color: var(--text_main); /* 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;
}
/* =========================================
   🏆 MÓDULO: FIFA WORLD CUP 2026
   Sigue el mismo lenguaje visual Onyx:
   glass-bg, border, radius-lg, text_main
   ========================================= */

/* ── Skeleton loader ───────────────────────────────────────────────────────── */
.wc-skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(var(--text_main-rgb),0.06) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: wcShimmer 1.4s infinite;
    border-radius: var(--radius-lg);
}
@keyframes wcShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.wc-skeleton-header    { height: 30px; margin-bottom: 12px; } 
.wc-skeleton-countdown { height: 180px; }

/* ── Banner exterior ───────────────────────────────────────────────────────── */
.wc-outer-banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── CABECERA (Inspirada en "Featured Drinks | VIEW MENU") ─── */
.wc-banner-top {
    display: flex;
    align-items: baseline; 
    justify-content: space-between;
    margin-bottom: 4px;
}

.wc-banner-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text_main);
    margin: 0;
    line-height: 1.1;
}

.wc-view-all-link {
    background: transparent;
    border: none;
    color: var(--accent_secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: var(--transition-smooth);
}
.wc-view-all-link:hover {
    color: var(--text_main);
}
.wc-view-all-link:active { 
    transform: scale(0.97); 
}

/* ── Slider de partidos (tarjetas 1:1) ────────────────────────────────────── */
.wc-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 -20px;         
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
}
.wc-slider::-webkit-scrollbar { display: none; }

/* ── Tarjeta de partido (1:1) ─────────────────────────────────────────────── */
.wc-match-card {
    flex: 0 0 160px;           
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;      
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.wc-match-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent_secondary-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.wc-final-card {
    border: 2px solid var(--warning);
    background: rgba(var(--warning-rgb, 255,193,7), 0.04);
}

/* ── Contenido de la tarjeta ─────────────────────────────────────────────── */
.wc-card-round {
    font-size: 9px;
    font-weight: 700;
    color: var(--text_muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-align: center;
}

.wc-card-teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.wc-team {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.wc-team-away { flex-direction: row-reverse; }
.wc-winner .wc-team-name { font-weight: 900; color: var(--text_main); }

.wc-team-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.wc-team-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text_main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.wc-team-away .wc-team-name { text-align: right; }
.wc-tbd { color: var(--text_muted); font-style: italic; font-weight: 400; }

.wc-card-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(var(--text_main-rgb), 0.04);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    align-self: center;
}
.wc-score-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--text_muted);
    min-width: 14px;
    text-align: center;
    line-height: 1;
}
.wc-score-win { color: var(--accent_secondary); }
.wc-score-sep {
    font-size: 14px;
    color: var(--text_muted);
    font-weight: 300;
}
.wc-score-vs {
    font-size: 11px;
    font-weight: 700;
    color: var(--text_muted);
    letter-spacing: 0.5px;
}

.wc-card-venue {
    font-size: 9px;
    color: var(--text_muted);
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sin partidos ──────────────────────────────────────────────────────────── */
.wc-no-matches {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 20px;
    color: var(--text_muted);
    font-size: 13px;
    text-align: center;
    opacity: 0.7;
}
.wc-no-matches .material-symbols-outlined { font-size: 36px; }

/* ── Countdown Hero ────────────────────────────────────────────────────────── */
.wc-countdown-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* Ajusta la altura base; el media query la modifica en mobile */
    min-height: 280px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .wc-countdown-hero { min-height: 400px; } /* Más alto en móvil para video vertical */
}

.wc-hero-media-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wc-hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}
.wc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.65) 100%
    );
}

.wc-countdown-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 28px 20px;
    color: #ffffff;
    width: 100%;
}
.wc-countdown-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin: 0 0 16px 0;
}
.wc-countdown-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.wc-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    min-width: 60px;
}
.wc-cd-num {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}
.wc-cd-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
}
.wc-cd-opening-label {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #ffffff;
}
.wc-cd-date-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ── Torneo terminado ─────────────────────────────────────────────────────── */
.wc-ended-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}
.wc-ended-trophy { font-size: 52px; }
.wc-ended-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text_main);
    margin: 0;
}
.wc-ended-desc {
    font-size: 13px;
    color: var(--text_muted);
    max-width: 300px;
    margin: 0;
    line-height: 1.5;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.wc-modal-panel {
    max-height: 80vh;
}

.wc-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--modal-border);
    background: var(--modal-bg);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}
.wc-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 13px 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--modal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    font-family: inherit;
}
.wc-tab-btn.active {
    color: var(--accent_secondary);
    border-bottom-color: var(--accent_secondary);
    background: rgba(var(--text_main-rgb), 0.02);
}
.wc-tab-btn:hover:not(.active) {
    color: var(--modal-text-main);
    background: rgba(var(--text_main-rgb), 0.04);
}

.wc-modal-body {
    padding: 16px 16px 40px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}
.wc-modal-body::-webkit-scrollbar { width: 4px; }
.wc-modal-body::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* ── Partidos en el modal (lista vertical) ───────────────────────────────── */
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wc-modal-matches .wc-match-card {
    flex: none;
    width: 100%;
    min-height: 200px; /* Suficiente altura para la diagonal */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    background: #0f0f14; /* Color de fallback oscuro */
}
.wc-modal-matches .wc-card-teams {
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
}
.wc-modal-matches .wc-team { flex: 1; }
.wc-modal-matches .wc-card-score { flex-shrink: 0; min-width: 50px; }
.wc-modal-matches .wc-team-name { max-width: 80px; font-size: 12px; }
.wc-modal-matches .wc-team-flag { font-size: 22px; }

.wc-day-group-header {
    font-size: 11px;
    font-weight: 800;
    color: var(--text_muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--modal-border);
}
.wc-day-group-header:first-child { margin-top: 0; }

.wc-next-day-header {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent_secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 8px;
}
.wc-no-matches-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 0 16px;
    color: var(--text_muted);
    font-size: 13px;
    text-align: center;
}
.wc-no-matches-modal .material-symbols-outlined { font-size: 36px; opacity: 0.5; }

/* Capa de Imagen de Fondo */
.wc-card-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wc-card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción perfecta sin deformar la foto */
    opacity: 0.85;
}

/* Overlay oscuro para no perder legibilidad */
.wc-card-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15,15,20, 0.85) 0%, 
        rgba(15,15,20, 0.45) 50%, 
        rgba(15,15,20, 0.95) 100%
    );
}

/* Elevar los textos por encima del fondo */
.wc-modal-matches .wc-card-round,
.wc-modal-matches .wc-card-teams,
.wc-modal-matches .wc-card-venue {
    position: relative;
    z-index: 2;
}

.wc-modal-matches .wc-card-round {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Layout Diagonal de Equipos */
.wc-modal-matches .wc-card-teams {
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.wc-modal-matches .wc-team { 
    width: auto; 
    flex: none;
}

.wc-modal-matches .wc-team:first-child {
    align-self: flex-start; /* Equipo A a la izquierda */
}

.wc-modal-matches .wc-team.wc-team-away {
    align-self: flex-end; /* Equipo B a la derecha */
}

.wc-modal-matches .wc-card-score { 
    align-self: center; /* VS en el centro */
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.wc-modal-matches .wc-team-name { 
    max-width: 130px; 
    font-size: 14px; 
    font-weight: 800;
    color: #ffffff; 
}

.wc-modal-matches .wc-team-flag { 
    font-size: 26px; 
}

.wc-modal-matches .wc-card-venue {
    color: rgba(255,255,255,0.7);
    justify-content: center;
    margin-top: 10px;
    font-size: 11px;
}

/* Header de Fechas / Jornadas en el modal */
.wc-day-group-header {
    font-size: 13px;
    font-weight: 900;
    color: var(--accent_secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--modal-border);
}
.wc-day-group-header:first-child { margin-top: 0; }

/* ── Tablas de grupos ────────────────────────────────────────────────────── */
.wc-groups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.wc-group-card {
    background: rgba(var(--text_main-rgb), 0.02);
    border: 1px solid var(--modal-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.wc-group-card-header {
    background: rgba(var(--text_main-rgb), 0.04);
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--modal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--modal-border);
}
.wc-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}
.wc-standings-table th {
    padding: 5px 4px;
    color: var(--modal-text-muted);
    font-weight: 700;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    border-bottom: 1px solid var(--modal-border);
}
.wc-standings-table th:first-child,
.wc-standings-table td:first-child { width: 22px; }
.wc-st-team-col { text-align: left !important; width: 30%; }
.wc-standings-table td {
    padding: 6px 4px;
    text-align: center;
    border-top: 1px solid rgba(var(--text_main-rgb), 0.04);
    color: var(--modal-text-muted);
    font-size: 11px;
}
.wc-standings-table td.wc-st-team-col { color: var(--modal-text-main); font-size: 11px; }
.wc-standings-table tr.wc-qualifies { background: rgba(var(--accent_primary-rgb), 0.04); }
.wc-standings-table tr.wc-qualifies td { color: var(--modal-text-main); }
.wc-pts { font-weight: 800; color: var(--modal-text-main) !important; }
.wc-pos-badge {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
}
.wc-pos-1 { background: rgba(34,197,94,0.15); color: #22c55e; }
.wc-pos-2 { background: rgba(var(--accent_primary-rgb),0.15); color: var(--accent_primary); }
.wc-pos-3 { background: rgba(var(--warning-rgb,255,193,7),0.12); color: var(--warning, #ffc107); }
.wc-pos-4 { background: rgba(var(--text_main-rgb),0.06); color: var(--text_muted); }

/* ── Bracket ──────────────────────────────────────────────────────────────── */
.wc-bracket-wrap { display: flex; flex-direction: column; gap: 20px; }
.wc-bracket-round {}
.wc-bracket-round-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text_muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--modal-border);
}
.wc-bracket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}
.wc-bracket-card {
    flex: none;
    width: 100%;
    aspect-ratio: unset;
    flex-direction: column;
    padding: 10px 12px;
    gap: 6px;
}
.wc-bracket-card .wc-card-teams {
    flex-direction: row;
    gap: 6px;
    justify-content: space-between;
}
.wc-bracket-card .wc-team { flex: 1; }
.wc-bracket-card .wc-card-score { flex-shrink: 0; min-width: 46px; }
.wc-bracket-card .wc-team-name { max-width: 80px; font-size: 11px; }
.wc-bracket-card .wc-team-flag { font-size: 18px; }
.wc-empty-tab {
    text-align: center;
    color: var(--text_muted);
    font-size: 13px;
    padding: 30px 0;
    opacity: 0.7;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wc-cd-num { font-size: 26px; }
    .wc-cd-unit { min-width: 52px; padding: 8px 10px; }
    .wc-match-card { flex: 0 0 148px; }
    .wc-team-name { max-width: 75px; }
    .wc-bracket-grid { grid-template-columns: 1fr; }
}

/* ── Botones de reserva y compartir en tarjetas de partido ─────────────── */
.wc-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.wc-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 10px;
    background: rgba(var(--accent_secondary-rgb), 0.15);
    color: var(--accent_secondary);
    border: 1px solid rgba(var(--accent_secondary-rgb), 0.35);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wc-reserve-btn:hover {
    background: var(--accent_secondary);
    color: #ffffff;
    border-color: var(--accent_secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent_secondary-rgb), 0.35);
}

.wc-reserve-btn:active { transform: translateY(0); }

.wc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text_main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.wc-share-btn .material-symbols-outlined {
    font-size: 18px;
}

.wc-share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ── WC2026 Match Status Badges ─────────────────────────────────────────────
 * Añadir al final de styles.css
 * ─────────────────────────────────────────────────────────────────────────── */

/* Contenedor del badge junto al roundLabel */
.wc-card-round {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Badge base */
.wc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    flex-shrink: 0;
}

/* 🔴 En Vivo */
.wc-status-badge.wc-status-live {
    background: rgba(242, 89, 34, 0.18);
    border: 1px solid rgba(242, 89, 34, 0.45);
    color: #F25922;
}

/* Punto pulsante */
.wc-live-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #F25922;
    animation: wcLivePulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes wcLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.6); }
}

/* ✅ Finalizado */
.wc-status-badge.wc-status-finished {
    background: rgba(0, 178, 169, 0.12);
    border: 1px solid rgba(0, 178, 169, 0.35);
    color: #00B2A9;
}

/* ⏳ Resultado pendiente (fecha pasada sin score) */
.wc-status-badge.wc-status-past {
    background: rgba(255, 193, 7, 0.10);
    border: 1px solid rgba(255, 193, 7, 0.30);
    color: #FFC107;
}

/* Tarjeta en vivo — borde sutil naranja */
.wc-match-card.wc-status-live {
    border-color: rgba(242, 89, 34, 0.35);
    box-shadow: 0 0 0 1px rgba(242, 89, 34, 0.15);
}

/* Tarjeta finalizada — borde teal */
.wc-match-card.wc-status-finished {
    border-color: rgba(0, 178, 169, 0.25);
}