/* =========================================================
   ELITE CLUB - IDENTI LUXURY DESIGN SYSTEM
   Colores Principales:
   - Fondo Obsidiana: #0a0a0a / #141414 / #1a1a1a
   - Oro Champagne / IDENTI Gold: #C4A77D
   - Oro Profundo / Bronce: #A0855F
   - Oro Claro Brillante: #dfc8a5
   - Blanco Seda: #FFFFFF / #F5F5F5
   - Acento Tenue: rgba(196, 167, 125, 0.15)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --gold-primary: #C4A77D;
    --gold-secondary: #A0855F;
    --gold-light: #dfc8a5;
    --gold-glow: rgba(196, 167, 125, 0.25);
    --gold-border: rgba(196, 167, 125, 0.35);
    --text-primary: #FFFFFF;
    --text-secondary: #dcdcdc;
    --text-muted: #8e8e8e;
    --success: #2e7d32;
    --success-light: #4caf50;
    --danger: #c62828;
    --warning: #f57c00;
    --info: #0288d1;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* Evitar traducción automática en navegadores para nombres, precios y textos del sistema */
.notranslate,
[translate="no"] {
    /* No alterar la renderización nativa de texto */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(196, 167, 125, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(160, 133, 95, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

/* Header & Logos */
.header-hero {
    text-align: center;
    padding: 30px 10px 20px;
    position: relative;
}

.logo-container {
    display: inline-block;
    position: relative;
    margin-bottom: 16px;
}

.logo-elite {
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(196, 167, 125, 0.3));
    transition: var(--transition);
}

.logo-elite:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 35px rgba(196, 167, 125, 0.5));
}

.badge-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    background: rgba(196, 167, 125, 0.08);
    margin-bottom: 12px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.subtitle {
    color: var(--gold-secondary);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    font-weight: 400;
}

/* Search bar */
.search-wrapper {
    margin: 24px auto 30px;
    max-width: 550px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    background: #141414;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    background: #191919;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Quick Categories Pills */
.category-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 4px 16px;
    margin-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-secondary) transparent;
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--gold-border);
    border-radius: 4px;
}

.cat-pill {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 167, 125, 0.2);
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 7px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--gold-primary);
    color: #000;
    font-weight: 600;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 14px rgba(196, 167, 125, 0.35);
}

/* Categorias y Secciones */
.category-section {
    margin-bottom: 38px;
    scroll-margin-top: 20px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.2);
}

.category-title::before {
    content: "◆";
    font-size: 0.8rem;
    color: var(--gold-secondary);
}

/* Grid de Items */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.menu-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(196, 167, 125, 0.3);
    border-left: 3px solid var(--gold-primary);
    transform: translateX(4px);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
}

.item-name {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.item-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.item-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    white-space: nowrap;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: rgba(196, 167, 125, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(196, 167, 125, 0.2);
}

/* Footer & Redes */
.menu-footer {
    margin-top: 60px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(196, 167, 125, 0.2);
}

.footer-info {
    color: var(--gold-secondary);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.footer-social-link {
    display: inline-block;
    transition: var(--transition);
}

.footer-social-link:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 12px rgba(196, 167, 125, 0.3));
}

.redes-img {
    max-width: 170px;
    height: auto;
}

/* =========================================================
   PANEL ADMIN STYLES
   ========================================================= */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 30px;
    border-bottom: 1px solid var(--gold-border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.admin-panel {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.15);
    flex-wrap: wrap;
    gap: 12px;
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-icon {
    font-size: 1.4rem;
}

.panel-title {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Category Selector Grid */
.cat-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-selector-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    transition: var(--transition);
}

.btn-small:hover {
    background: rgba(196, 167, 125, 0.15);
    border-color: var(--gold-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.category-card-toggle {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.category-card-toggle:hover {
    border-color: rgba(196, 167, 125, 0.4);
    background: #141414;
}

.category-card-toggle.active {
    border-color: var(--gold-primary);
    background: rgba(196, 167, 125, 0.08);
    box-shadow: 0 2px 10px rgba(196, 167, 125, 0.15);
}

.cat-toggle-info {
    display: flex;
    flex-direction: column;
}

.cat-toggle-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.cat-toggle-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Switch styling */
.switch-indicator {
    width: 38px;
    height: 22px;
    background: #2a2a2a;
    border-radius: 999px;
    position: relative;
    transition: var(--transition);
}

.switch-indicator::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #777;
    border-radius: 50%;
    transition: var(--transition);
}

.category-card-toggle.active .switch-indicator {
    background: var(--gold-primary);
}

.category-card-toggle.active .switch-indicator::after {
    transform: translateX(16px);
    background: #000;
}

/* Form elements */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-control {
    background: #0d0d0d;
    border: 1px solid rgba(196, 167, 125, 0.3);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.input-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}

textarea.input-control {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #C4A77D 0%, #A0855F 100%);
    color: #000000;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 167, 125, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-light);
    border: 1px solid var(--gold-border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(196, 167, 125, 0.15);
    border-color: var(--gold-primary);
    color: #ffffff;
}

.btn-danger {
    background: rgba(198, 40, 40, 0.15);
    color: #ff8a80;
    border: 1px solid rgba(198, 40, 40, 0.4);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c62828;
    color: #ffffff;
    border-color: #c62828;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.4);
}

.btn-success {
    background: rgba(46, 125, 50, 0.2);
    color: #81c784;
    border: 1px solid rgba(46, 125, 50, 0.5);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background: #2e7d32;
    color: #ffffff;
}

/* Stats counter bar */
.stats-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.stat-chip {
    padding: 8px 16px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-chip b {
    font-size: 1.05rem;
    color: #fff;
}

.stat-chip.disponible b {
    color: #81c784;
}

.stat-chip.reservada b {
    color: var(--gold-light);
}

.stat-chip.ocupada b {
    color: #ffb74d;
}

/* Mesas Grid */
.mesas-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.mesas-legend {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot-free {
    background: #4caf50;
}

.dot-reserved {
    background: var(--gold-primary);
}

.dot-occupied {
    background: #ff9800;
}

.mesas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mesa-btn {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #e0e0e0;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm, 10px);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-height: 125px;
    box-sizing: border-box;
}

.mesa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-color: var(--gold-primary);
}

.mesa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 6px;
    flex-wrap: nowrap;
}

.mesa-number {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mesa-counter-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mesa-counter-badge.count-0 {
    background: rgba(255, 255, 255, 0.05);
    color: #888888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mesa-counter-badge.count-1 {
    background: rgba(196, 167, 125, 0.2);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
}

.mesa-counter-badge.count-multi {
    background: linear-gradient(135deg, #ffd54f 0%, #ff9800 100%);
    color: #000000;
    border: 1px solid #ffe082;
    font-weight: 900;
    box-shadow: 0 0 14px rgba(255, 179, 0, 0.5);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 179, 0, 0.4);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 18px rgba(255, 179, 0, 0.7);
    }
}

.mesa-multi-notice {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffd54f;
    background: rgba(255, 193, 7, 0.12);
    border: 1px dashed rgba(255, 193, 7, 0.45);
    border-radius: 4px;
    padding: 2px 6px;
    text-align: center;
}

.mesa-reservas-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    max-height: 140px;
    overflow-y: auto;
}

.mesa-reservas-preview::-webkit-scrollbar {
    width: 4px;
}

.mesa-reservas-preview::-webkit-scrollbar-thumb {
    background: rgba(196, 167, 125, 0.3);
    border-radius: 2px;
}

.mesa-preview-empty {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #81c784;
    font-size: 0.78rem;
    padding: 14px 0;
    justify-content: center;
    opacity: 0.85;
}

.mesa-preview-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 167, 125, 0.18);
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 0.75rem;
    color: #ffffff;
    transition: background 0.15s ease;
}

.mesa-preview-item:hover {
    background: rgba(196, 167, 125, 0.14);
}

.mesa-preview-item.status-confirmada {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.12);
}

.mesa-preview-item.status-confirmada .preview-item-time {
    color: #a5d6a7;
}

.mesa-preview-item.status-ocupada {
    border-color: rgba(255, 152, 0, 0.5);
    background: rgba(255, 152, 0, 0.12);
}

.preview-item-time {
    font-weight: 700;
    color: var(--gold-light);
    font-size: 0.76rem;
    font-family: monospace;
    white-space: nowrap;
}

.preview-item-client {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #f5f5f5;
    text-transform: uppercase;
}

.preview-item-pax {
    font-size: 0.68rem;
    color: var(--gold-light);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(196, 167, 125, 0.25);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.mesa-btn.has-multi-reservas {
    border-color: rgba(255, 179, 0, 0.55);
    background: linear-gradient(145deg, #1f180e 0%, #141009 100%);
    box-shadow: 0 0 16px rgba(255, 179, 0, 0.18);
}

.mesa-btn.has-multi-reservas:hover {
    border-color: #ffd54f;
    box-shadow: 0 0 22px rgba(255, 179, 0, 0.4);
}

/* Mesa States */
.mesa-btn.status-disponible {
    border-color: rgba(76, 175, 80, 0.3);
}

.mesa-btn.status-disponible:hover {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.08);
}

.mesa-btn.status-disponible .mesa-status-tag {
    color: #81c784;
    background: rgba(76, 175, 80, 0.15);
}

.mesa-btn.status-reservada {
    background: linear-gradient(145deg, #1f1a14 0%, #16120e 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(196, 167, 125, 0.15);
}

.mesa-btn.status-reservada:hover {
    border-color: var(--gold-light);
    box-shadow: 0 0 18px rgba(196, 167, 125, 0.35);
}

.mesa-btn.status-reservada .mesa-num {
    color: var(--gold-light);
}

.mesa-btn.status-reservada .mesa-status-tag {
    color: #000;
    background: var(--gold-primary);
    font-weight: 700;
}

.mesa-btn.status-ocupada {
    background: linear-gradient(145deg, #22180e 0%, #171108 100%);
    border-color: #ff9800;
}

.mesa-btn.status-ocupada .mesa-status-tag {
    color: #000;
    background: #ff9800;
    font-weight: 700;
}

/* =========================================================
   MODAL / VENTANA EMERGENTE DE GESTIÓN DE CADA MESA
   ========================================================= */

.modal-overlay,
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    animation: modalFadeIn 0.22s ease-out forwards;
}

.modal-overlay.open,
.modal-backdrop.open {
    display: flex !important;
}

.modal-overlay:not(.open),
.modal-backdrop:not(.open) {
    display: none !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card,
.modal-box {
    background: linear-gradient(145deg, #161616 0%, #0d0d0d 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg, 16px);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(196, 167, 125, 0.25);
    position: relative;
    animation: modalSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(28px) scale(0.96);
        opacity: 0;
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.2);
    background: rgba(196, 167, 125, 0.04);
    flex-shrink: 0;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-title,
.modal-mesa-number {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0;
}

.modal-badge-status {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.modal-badge-status.disponible {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.modal-badge-status.reservada {
    background: rgba(196, 167, 125, 0.2);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
}

.modal-badge-status.ocupada {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid #ff9800;
}

.modal-close,
.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(196, 167, 125, 0.25);
    color: var(--gold-light);
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition);
}

.modal-close:hover,
.modal-close-btn:hover {
    background: rgba(196, 167, 125, 0.25);
    color: #ffffff;
    transform: scale(1.08);
    border-color: var(--gold-primary);
}

.modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gold-border);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* =========================================================
   POPUP MODAL MESA AUTO-RESPONSIVE (GESTIÓN DE RESERVAS)
   Evita desbordes y scrolles horizontales / verticales
   ========================================================= */
#modalMesa.modal-overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modalMesa .modal-card {
    width: min(760px, 96vw);
    max-height: min(92vh, 600px);
    height: auto;
    margin: auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95), 0 0 35px rgba(196, 167, 125, 0.22);
}

#modalMesa .modal-header {
    padding: 10px 16px;
    background: rgba(196, 167, 125, 0.05);
    border-bottom: 1px solid rgba(196, 167, 125, 0.2);
}

#modalMesa .modal-body {
    padding: 10px 14px 12px;
    background: #0d0d0d;
}

/* Dossier Card (Mesa Reservada) */
.dossier-card {
    background: #0d0d0d;
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dossier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.dossier-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dossier-label {
    font-size: 0.85rem;
    color: var(--gold-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dossier-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

.dossier-value.name {
    font-size: 1.2rem;
    color: var(--gold-light);
    font-family: var(--font-heading);
}

.dossier-value.price {
    color: #81c784;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Toast Notifications */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1c1c1c;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--gold-border);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    background: rgba(196, 167, 125, 0.03);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 18px;
}

.upload-zone:hover {
    background: rgba(196, 167, 125, 0.08);
    border-color: var(--gold-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .main-title {
        font-size: 1.7rem;
    }

    .mesas-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .mesa-btn {
        min-height: 110px;
        padding: 8px 8px;
    }

    .modal-body {
        padding: 16px;
    }

    .dossier-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dossier-value {
        text-align: left;
    }
}

/* Logo Blanco sin caja para Admin Header */
.admin-brand-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-logo-white {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    filter: drop-shadow(0 2px 10px rgba(196, 167, 125, 0.25));
    transition: var(--transition);
}

.admin-logo-white:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 16px rgba(196, 167, 125, 0.45));
}

.modal-logo-emblem {
    height: 32px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-export {
    background: linear-gradient(135deg, #C4A77D 0%, #A0855F 100%);
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(196, 167, 125, 0.25);
}

.btn-export:hover {
    box-shadow: 0 6px 20px rgba(196, 167, 125, 0.45);
    transform: translateY(-2px);
}

/* =========================================================
   CALENDARIO Y HORARIOS DE APERTURA / CIERRE
   ========================================================= */

.horarios-config-bar {
    background: #0f0f0f;
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.horarios-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.horario-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gold-light);
}

.calendar-nav-bar {
    background: #141414;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-badge-current {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    min-width: 140px;
}

.slots-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

.slot-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 10px;
}

.slot-card:hover {
    border-color: rgba(196, 167, 125, 0.35);
    background: #131313;
}

.slot-card.reserved {
    background: linear-gradient(145deg, #1b1610 0%, #110e0a 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 2px 10px rgba(196, 167, 125, 0.15);
}

.slot-time {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

.slot-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slot-client-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}


/* Logo Blanco sin caja para Admin Header */
.admin-brand-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-logo-white {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    filter: drop-shadow(0 2px 10px rgba(196, 167, 125, 0.25));
    transition: var(--transition);
}

.admin-logo-white:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 16px rgba(196, 167, 125, 0.45));
}

.modal-logo-emblem {
    height: 32px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-export {
    background: linear-gradient(135deg, #C4A77D 0%, #A0855F 100%);
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(196, 167, 125, 0.25);
}

.btn-export:hover {
    box-shadow: 0 6px 20px rgba(196, 167, 125, 0.45);
    transform: translateY(-2px);
}

/* =========================================================
   CALENDARIO Y HORARIOS DE APERTURA / CIERRE
   ========================================================= */

.horarios-config-bar {
    background: #0f0f0f;
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.horarios-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.horario-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gold-light);
}

.calendar-nav-bar {
    background: #141414;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-badge-current {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    min-width: 140px;
}

.slots-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.slots-timeline::-webkit-scrollbar {
    width: 6px;
}

.slots-timeline::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.slots-timeline::-webkit-scrollbar-thumb {
    background: var(--gold-border);
    border-radius: 3px;
}

.slots-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

.slot-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 10px;
}

.slot-card:hover {
    border-color: rgba(196, 167, 125, 0.35);
    background: #131313;
}

.slot-card.reserved {
    background: linear-gradient(145deg, #1b1610 0%, #110e0a 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 2px 10px rgba(196, 167, 125, 0.15);
}

.slot-time {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

.slot-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slot-client-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.slot-client-sub {
    font-size: 0.78rem;
    color: var(--gold-secondary);
}

.mesa-btn .mesa-slots-badge {
    font-size: 0.68rem;
    color: var(--gold-light);
    margin-top: 2px;
    font-weight: 600;
    background: rgba(196, 167, 125, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(196, 167, 125, 0.25);
}

/* =============================================================
   MÉTRICAS DE FIDELIZACIÓN, CHECK-IN & FILTROS DÍA/SEMANA/MES
   ============================================================= */

/* Segmented Control de Período */
.period-segmented-bar {
    display: inline-flex;
    background: #111111;
    border: 1px solid var(--gold-border);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
}

.period-seg-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.period-seg-btn:hover {
    color: var(--gold-light);
    background: rgba(196, 167, 125, 0.08);
}

.period-seg-btn.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #0a0a0a;
    box-shadow: 0 2px 10px rgba(196, 167, 125, 0.35);
    font-weight: 700;
}

/* Dashboard de Métricas y Fidelización */
.metrics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.kpi-card {
    background: linear-gradient(145deg, #161616 0%, #0d0d0d 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-primary);
    opacity: 0.6;
}

.kpi-card.kpi-confirmed::before {
    background: #2e7d32;
    opacity: 1;
}

.kpi-card.kpi-rate::before {
    background: #00897b;
    opacity: 1;
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(196, 167, 125, 0.12);
    border: 1px solid rgba(196, 167, 125, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.kpi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Botón Check-in de Salón (Fidelización) */
.btn-checkin {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #ffffff;
    border: 1px solid #4caf50;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.35);
    transition: var(--transition);
}

.btn-checkin:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.5);
    transform: translateY(-1px);
}

.btn-undo-checkin {
    background: rgba(255, 255, 255, 0.06);
    color: #bdbdbd;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-undo-checkin:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Estado Confirmada en Salón */
.slot-card.confirmed {
    background: linear-gradient(145deg, #0f1c12 0%, #09120b 100%);
    border-color: #2e7d32;
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.2);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-status.badge-confirmada {
    background: rgba(46, 125, 50, 0.2);
    color: #81c784;
    border: 1px solid rgba(46, 125, 50, 0.5);
}

.badge-status.badge-reservada {
    background: rgba(196, 167, 125, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(196, 167, 125, 0.35);
}

.badge-status.badge-ocupada {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Mesa Card con Estado Confirmada */
.mesa-btn.status-confirmada {
    background: linear-gradient(145deg, #132416 0%, #09140b 100%);
    border-color: #4caf50;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.25);
}

.mesa-btn.status-confirmada .mesa-number {
    color: #a5d6a7;
}

.mesa-btn.status-confirmada .mesa-status-tag {
    background: #1b5e20;
    color: #e8f5e9;
    border: 1px solid #4caf50;
}

/* Export Buttons Group */
.export-dropdown-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.export-period-btn {
    background: linear-gradient(135deg, rgba(196, 167, 125, 0.18) 0%, rgba(160, 133, 95, 0.12) 100%);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.export-period-btn:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 14px rgba(196, 167, 125, 0.4);
    transform: translateY(-1px);
}

/* Tabla de Agenda / Período (Semana y Mes) */
.period-table-box {
    background: #111111;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 14px;
}

.period-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}

.period-table th {
    background: #080808;
    color: var(--gold-light);
    padding: 12px 14px;
    font-weight: 700;
    border-bottom: 2px solid var(--gold-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.period-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    vertical-align: middle;
}

.period-table tr:hover td {
    background: rgba(196, 167, 125, 0.04);
}

.period-table .client-cell {
    font-weight: 600;
    color: #ffffff;
}

.period-table .mesa-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(196, 167, 125, 0.15);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.78rem;
}

/* ==========================================
   BOTÓN FLOTANTE VOLVER ARRIBA (BACK TO TOP)
   ========================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 16px rgba(196, 167, 125, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s, box-shadow 0.25s, color 0.25s, visibility 0.3s;
    z-index: 9999;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #0a0a0a;
    box-shadow: 0 8px 30px rgba(196, 167, 125, 0.55), 0 0 20px rgba(223, 200, 165, 0.4);
    transform: translateY(-4px) scale(1.08);
}

.btn-back-to-top:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-back-to-top svg {
    transition: transform 0.25s ease;
}

.btn-back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 22px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* =========================================================
   GESTIÓN DE ACTUALIZACIÓN DE CARTA Y REGISTRO DE AUDITORÍA
   ========================================================= */

.menu-update-meta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.8) 0%, rgba(12, 12, 12, 0.95) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.meta-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-green-dot {
    width: 9px;
    height: 9px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.meta-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-light);
    font-family: var(--font-heading);
}

.meta-details {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-timestamp {
    font-size: 0.96rem;
    color: #ffffff;
    font-weight: 700;
}

.meta-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.btn-ver-registro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 167, 125, 0.08);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-ver-registro:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 16px rgba(196, 167, 125, 0.35);
    transform: translateY(-2px);
}

.btn-imprimir-carta-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(196, 167, 125, 0.22) 0%, rgba(160, 133, 95, 0.15) 100%);
    border: 1px solid var(--gold-primary);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-imprimir-carta-header:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: #070707;
    box-shadow: 0 4px 18px rgba(196, 167, 125, 0.45);
    transform: translateY(-2px);
}

/* Barra de Selección y Exportación por Categoría */
.category-export-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.cat-filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-filter-icon {
    font-size: 1.4rem;
}

.cat-filter-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
}

.cat-filter-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0;
}

.cat-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.select-categoria-admin {
    background: #0d0d0d;
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.select-categoria-admin:hover,
.select-categoria-admin:focus {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(196, 167, 125, 0.35);
}

/* Barra de Carga & Progreso VIP */
.upload-progress-container {
    margin-top: 16px;
    background: #111111;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInProgress 0.25s ease-out;
}

@keyframes fadeInProgress {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.progress-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
    font-size: 0.86rem;
}

.progress-status-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-weight: 500;
}

.progress-percent {
    font-weight: 700;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.95rem;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a6d3b 0%, #C4A77D 50%, #dfc8a5 100%);
    border-radius: 999px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 14px rgba(196, 167, 125, 0.6);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmerProgress 1.4s infinite;
}

@keyframes shimmerProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.spinner-inline {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(196, 167, 125, 0.3);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spinGlow 0.8s linear infinite;
    display: inline-block;
}

@keyframes spinGlow {
    to {
        transform: rotate(360deg);
    }
}

/* Alertas de Resultado de Subida */
.upload-alert-box {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: fadeInAlert 0.3s ease-out;
}

@keyframes fadeInAlert {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.alert-success {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.25) 0%, rgba(13, 38, 15, 0.4) 100%);
    border: 1px solid #2e7d32;
    color: #c8e6c9;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.2);
}

.alert-error {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.25) 0%, rgba(45, 12, 12, 0.4) 100%);
    border: 1px solid #c62828;
    color: #ffcdd2;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.2);
}

.upload-alert-box .alert-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.upload-alert-box .alert-body {
    flex: 1;
}

.upload-alert-box .alert-title {
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #ffffff;
}

.upload-alert-box .alert-message {
    font-size: 0.84rem;
    line-height: 1.4;
    color: inherit;
}

.upload-alert-box .alert-dismiss-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    transition: var(--transition);
}

.upload-alert-box .alert-dismiss-btn:hover {
    color: #ffffff;
}

/* =========================================================
   MÓDULO DE CAJAS & TERMINALES (/cajas)
   ========================================================= */

.top-module-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-module-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-border);
    background: rgba(20, 20, 20, 0.85);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-module-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(196, 167, 125, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-module-btn.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #0a0a0a;
    border-color: var(--gold-light);
    box-shadow: 0 4px 14px rgba(196, 167, 125, 0.35);
}

/* Banner Gran Totalizador de la Jornada - Estilo Sobrio Institucional */
.grand-totalizer-card {
    background: linear-gradient(180deg, #131313 0%, #0a0a0a 100%);
    border: 1px solid rgba(196, 167, 125, 0.28);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    margin-top: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(196, 167, 125, 0.15);
    position: relative;
    overflow: hidden;
}

.grand-totalizer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.grand-totalizer-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.12);
}

.totalizer-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(196, 167, 125, 0.08);
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 12px;
}

.totalizer-tag::before {
    content: '●';
    color: var(--gold-primary);
    font-size: 0.65rem;
}

.totalizer-main-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-shadow: 0 0 25px rgba(196, 167, 125, 0.3);
}

.totalizer-sublabel {
    display: block;
    color: #9a9080;
    font-size: 0.82rem;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.totalizer-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.kpi-box {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
    transition: var(--transition);
}

.kpi-box:hover {
    border-color: rgba(196, 167, 125, 0.3);
    background: #151515;
    transform: translateY(-1px);
}

.kpi-title {
    font-size: 0.7rem;
    color: #9e9382;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.kpi-value {
    display: block;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--font-body);
}

.kpi-danger .kpi-value {
    color: #d47878;
}

.kpi-highlight {
    background: rgba(196, 167, 125, 0.06);
    border-color: rgba(196, 167, 125, 0.3);
}

.kpi-highlight .kpi-title {
    color: var(--gold-primary);
}

.kpi-highlight .kpi-value {
    color: var(--gold-light);
}

/* Gráficos de Cajas - Sobriedad Institucional */
.charts-grid-cajas {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    margin-top: 16px;
}

.chart-card {
    background: #111111;
    border: 1px solid rgba(196, 167, 125, 0.18);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.chart-fullwidth {
    grid-column: 1 / -1;
}

.chart-card-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--gold-light);
    margin-bottom: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-canvas-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
}

/* Puntos de Venta (POS) */
.pos-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.pos-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pos-block-card {
    background: #111111;
    border: 1px solid rgba(196, 167, 125, 0.22);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    position: relative;
}

.pos-block-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 167, 125, 0.2), transparent);
}

.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.pos-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-icon {
    font-size: 1.7rem;
    line-height: 1;
}

.pos-name {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.pos-subtext {
    font-size: 0.76rem;
    color: #8c8273;
    letter-spacing: 0.4px;
}

.pos-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(196, 167, 125, 0.45);
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.pos-total-badge .badge-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9e9382;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.pos-total-badge .badge-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Terminales de Cobro */
.terminals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.terminal-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.terminal-card.has-data {
    border-color: rgba(196, 167, 125, 0.28);
    background: linear-gradient(180deg, #131313 0%, #0c0c0c 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.terminal-card:hover {
    border-color: rgba(196, 167, 125, 0.5);
    transform: translateY(-2px);
}

.terminal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.term-title-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.term-number-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(196, 167, 125, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(196, 167, 125, 0.2);
}

.term-name {
    font-size: 0.88rem;
    color: #f0f0f0;
    font-weight: 600;
}

.btn-rename-term {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: var(--transition);
    padding: 2px;
}

.btn-rename-term:hover {
    opacity: 1;
    transform: scale(1.15);
}

.term-status-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.term-status-tag.status-registered {
    background: rgba(142, 194, 154, 0.1);
    color: #8ec29a;
    border: 1px solid rgba(142, 194, 154, 0.3);
}

.term-status-tag.status-empty {
    background: rgba(255, 255, 255, 0.03);
    color: #777777;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 6px 0 12px;
    font-size: 0.82rem;
}

.tb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cccccc;
}

.tb-label {
    color: #8c8273;
    font-size: 0.78rem;
}

.tb-val {
    font-weight: 600;
    color: #ffffff;
}

.tb-danger .tb-val {
    color: #d47878;
}

.tb-neto-row {
    margin-top: 5px;
    padding-top: 6px;
    border-top: 1px dashed rgba(196, 167, 125, 0.2);
}

.tb-neto-row .tb-label {
    font-weight: 700;
    color: var(--gold-light);
}

.tb-neto {
    font-size: 0.98rem;
    font-weight: 700;
    color: #8ec29a;
}

.terminal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: auto;
}

.term-meta-info {
    font-size: 0.74rem;
    color: #888888;
    margin-bottom: 8px;
    min-height: 18px;
}

.btn-terminal-action {
    width: 100%;
    background: rgba(196, 167, 125, 0.06);
    border: 1px solid rgba(196, 167, 125, 0.3);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.4px;
}

.btn-terminal-action:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #0a0a0a;
    border-color: var(--gold-light);
    box-shadow: 0 4px 12px rgba(196, 167, 125, 0.25);
}

/* Modal Arqueo de Cierre */
.closure-summary-banner {
    display: flex;
    justify-content: space-between;
    background: #090909;
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
}

.closure-summary-banner .cs-item span {
    display: block;
    font-size: 0.68rem;
    color: #8c8273;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.closure-summary-banner .cs-item strong {
    font-size: 1.15rem;
    color: #ffffff;
}

.closure-summary-banner .cs-net strong {
    color: #8ec29a;
    font-size: 1.28rem;
}

/* =========================================================
   PIE DE PÁGINA INSTITUCIONAL OFICIAL (SOBRIO, CENTRADO Y UNIFICADO)
   ========================================================= */
.official-footer {
    width: 100%;
    margin-top: 60px;
    padding: 40px 20px 36px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.8) 25%, #0a0a0a 100%);
    border-top: 1px solid rgba(196, 167, 125, 0.18);
    position: relative;
    text-align: center;
}

.official-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2px;
}

.footer-brand-icon {
    font-size: 1rem;
    color: var(--gold-primary);
    line-height: 1;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: var(--gold-primary);
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.footer-address {
    font-size: 0.82rem;
    color: #a89f91;
    letter-spacing: 0.4px;
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

.footer-contact {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 2px 0;
    text-align: center;
}

.footer-contact .contact-label {
    color: #8c7a60;
    font-weight: 500;
}

.footer-whatsapp {
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-decoration: underline;
    text-decoration-color: rgba(196, 167, 125, 0.7);
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: var(--transition);
}

.footer-whatsapp:hover {
    color: #ffffff;
    text-decoration-color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(196, 167, 125, 0.5);
}

.footer-copyright {
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.32);
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 900px) {
    .charts-grid-cajas {
        grid-template-columns: 1fr;
    }

    .totalizer-main-amount {
        font-size: 2.2rem;
    }

    .official-footer {
        padding: 30px 16px;
    }
}

/* =========================================================
   SEGURIDAD DE CAJAS, HORARIOS Y REGISTRO ÚNICO POR POS
   ========================================================= */
/* Horarios en tarjeta de terminal */
.term-hours-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.73rem;
    color: #a89f91;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.term-hours-badge b {
    color: var(--gold-light);
    font-weight: 600;
}

/* Estado de bloqueo en tarjeta */
.term-status-tag.status-locked {
    background: rgba(196, 167, 125, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(196, 167, 125, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Barra Consolidada en tarjeta de POS */
.pos-consolidated-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(196, 167, 125, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 0.78rem;
}

.pcb-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcb-item span {
    color: #8c8273;
    font-weight: 500;
}

.pcb-item strong {
    color: #f0f0f0;
    font-weight: 600;
}

/* Botón Acta & Bitácora en cabecera de POS */
.btn-pos-acta {
    background: rgba(196, 167, 125, 0.08);
    border: 1px solid rgba(196, 167, 125, 0.35);
    color: var(--gold-light);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-pos-acta:hover {
    background: rgba(196, 167, 125, 0.2);
    border-color: var(--gold-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.pos-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Banner de Seguridad y Bloqueo en Modal */
.lock-security-banner {
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.95) 0%, rgba(15, 12, 10, 0.98) 100%);
    border: 1px solid rgba(196, 167, 125, 0.45);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.lock-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lock-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.lock-banner-header strong {
    color: var(--gold-primary);
    font-size: 0.88rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.lock-banner-header p {
    font-size: 0.78rem;
    color: #c4b8a8;
    line-height: 1.4;
    margin: 0;
}

.lock-unlock-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.lock-pwd-input {
    flex: 1;
    background: #0a0a0a !important;
    border-color: rgba(196, 167, 125, 0.3) !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    padding: 7px 10px !important;
}

.lock-pwd-input:focus {
    border-color: var(--gold-primary) !important;
}

.btn-unlock-admin {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #0a0a0a;
    border: 1px solid var(--gold-light);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-unlock-admin:hover {
    filter: brightness(1.15);
    box-shadow: 0 2px 10px rgba(196, 167, 125, 0.4);
}

.lock-error-msg {
    color: #ef5350;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
}

/* Modal Acta de Registro Único por POS */
.pos-acta-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: #0d0d0d;
    border: 1px solid rgba(196, 167, 125, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.acta-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acta-lbl {
    font-size: 0.68rem;
    color: #8c8273;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.acta-summary-item strong {
    font-size: 0.92rem;
    color: #ffffff;
}

.acta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 18px;
}

.acta-table th {
    background: #141414;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.3);
}

.acta-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e0e0e0;
}

.acta-table tr:hover td {
    background: rgba(196, 167, 125, 0.04);
}

.pos-acta-totals-box {
    display: flex;
    justify-content: space-between;
    background: #0a0a0a;
    border: 1px solid rgba(196, 167, 125, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.pat-item span {
    display: block;
    font-size: 0.68rem;
    color: #8c8273;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.pat-item strong {
    font-size: 1.15rem;
    color: #ffffff;
}

.pat-ret strong {
    color: #d47878;
}

.pat-net strong {
    color: #8ec29a;
    font-size: 1.25rem;
}

/* =============================================================
   MENÚ ESPECIAL DE EVENTOS & FECHAS ESPECIALES (ADMIN & CARTA)
   ============================================================= */

/* Admin Section: Panel Menú Especial */
#seccion-menu-especial {
    border-color: rgba(196, 167, 125, 0.28);
    position: relative;
    overflow: hidden;
}

#seccion-menu-especial::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(196, 167, 125, 0.08), transparent 70%);
    pointer-events: none;
}

/* Switch de Activación de Menú Especial */
.menu-especial-switch-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-control-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(196, 167, 125, 0.25);
    transition: all 0.2s ease;
}

.switch-control-label:hover {
    border-color: var(--gold-primary);
    background: rgba(196, 167, 125, 0.06);
}

.switch-caption {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.custom-switch-wrap {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.custom-switch-wrap input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #222222;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #888888;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.custom-switch-wrap input:checked+.slider-round {
    background-color: #1e3a1f;
    border-color: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.custom-switch-wrap input:checked+.slider-round:before {
    transform: translateX(22px);
    background-color: #81c784;
}

/* Barra de Presets y Alternativas */
.presets-special-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: linear-gradient(135deg, rgba(22, 22, 22, 0.9), rgba(16, 16, 16, 0.95));
    border: 1px dashed rgba(196, 167, 125, 0.35);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 20px;
}

.preset-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-bar-icon {
    font-size: 1.25rem;
}

.preset-dropdown {
    min-width: 280px;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--gold-light);
    border-color: rgba(196, 167, 125, 0.4);
}

.preset-btn-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-preset-action {
    background: rgba(196, 167, 125, 0.12);
    border-color: var(--gold-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-preset-action:hover {
    background: rgba(196, 167, 125, 0.25);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.btn-preset-danger {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
    color: #ff8585;
    font-weight: 600;
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-preset-danger:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #ff5c6c;
}

/* Grillas de Formulario Especial */
.menu-especial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.form-group-special {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-special label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-special {
    background: #111111;
    border: 1px solid rgba(196, 167, 125, 0.25);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.input-special:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(196, 167, 125, 0.25);
    background: #141414;
}

.pasos-heading {
    margin: 20px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pasos-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.paso-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.paso-card:hover {
    border-color: rgba(196, 167, 125, 0.35);
}

.paso-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.paso-textarea {
    resize: vertical;
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 8px 12px;
    background: #0d0d0d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e6e6e6;
}

.paso-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(196, 167, 125, 0.2);
}

.menu-especial-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================================================
   SHOWCASE VIP EN LA CARTA DIGITAL (/menu)
   ============================================================= */

.special-event-showcase {
    background: linear-gradient(145deg, #181511 0%, #100e0a 50%, #0a0907 100%);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(196, 167, 125, 0.15);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    margin: 0 0 45px 0;
    position: relative;
    overflow: hidden;
    animation: fadeInGlow 0.8s ease-out;
}

@keyframes fadeInGlow {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

.special-event-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(223, 200, 165, 0.18), transparent 70%);
    pointer-events: none;
}

.special-event-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 26px;
}

.special-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 167, 125, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 0 15px rgba(196, 167, 125, 0.2);
}

.star-sparkle {
    font-size: 0.95rem;
    animation: pulse 2s infinite ease-in-out;
}

.special-event-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.special-event-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.meta-chip-special {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

.meta-chip-special.date {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.meta-chip-special.price {
    background: rgba(196, 167, 125, 0.18);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
}

.special-event-subtitle {
    font-size: 1rem;
    color: var(--gold-secondary);
    max-width: 680px;
    margin: 8px auto 0;
    line-height: 1.5;
    font-style: italic;
}

/* Grilla de Pasos en Carta Digital */
.special-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.step-card {
    background: rgba(20, 18, 14, 0.85);
    border: 1px solid rgba(196, 167, 125, 0.22);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.step-card.step-card-highlight {
    background: linear-gradient(135deg, rgba(35, 25, 15, 0.9), rgba(20, 15, 10, 0.95));
    border-color: rgba(196, 167, 125, 0.45);
}

.step-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.step-icon {
    font-size: 1.35rem;
}

.step-number {
    font-size: 0.7rem;
    color: var(--gold-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.step-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 700;
}

.step-desc {
    margin: 0;
    font-size: 0.88rem;
    color: #e6e6e6;
    line-height: 1.5;
}

/* Footer Showcase */
.special-event-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 14px;
    border-top: 1px dashed rgba(196, 167, 125, 0.25);
}

.special-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.terms-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.terms-text {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: left;
}

.btn-special-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #1eb954 100%);
    color: #000000;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-special-reserve:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2cf074 0%, #22c75a 100%);
}

.wa-btn-icon {
    font-size: 1.25rem;
}

/* =============================================================
   MÓDULO DE PERSONAL & STAFF, ASISTENCIA Y HABERES
   ============================================================= */

/* Grilla de KPIs de Personal */
.staff-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Barra de Herramientas y Pestañas Segmentadas */
.staff-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.staff-segmented-tabs {
    display: inline-flex;
    background: #121212;
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(196, 167, 125, 0.25);
    gap: 4px;
}

.staff-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.staff-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.staff-tab-btn.active {
    background: linear-gradient(135deg, rgba(196, 167, 125, 0.25), rgba(196, 167, 125, 0.12));
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 10px rgba(196, 167, 125, 0.2);
}

.staff-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.month-selector-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #141414;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Barra de Filtros y Buscador */
.staff-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.staff-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 480px;
}

.staff-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.staff-search-box input {
    padding-left: 36px;
    width: 100%;
}

.staff-filter-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.role-filter-chip {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-filter-chip:hover {
    border-color: var(--gold-primary);
    color: #ffffff;
}

.role-filter-chip.active {
    background: rgba(196, 167, 125, 0.18);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    font-weight: 700;
}

/* =============================================================
   TARJETAS DE PERSONAL (STAFF CARDS GRID)
   ============================================================= */

.staff-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.staff-card {
    background: linear-gradient(145deg, #161616 0%, #0e0e0e 100%);
    border: 1px solid rgba(196, 167, 125, 0.22);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(196, 167, 125, 0.12);
}

.staff-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-avatar-box {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    margin: 0 auto;
}

.staff-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--gold-primary);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 14px rgba(196, 167, 125, 0.3);
    background: #000;
}

.staff-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2.5px solid #161616;
}

.staff-status-dot.activo {
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
}

.staff-status-dot.licencia {
    background: #ffb74d;
    box-shadow: 0 0 8px #ffb74d;
}

.staff-status-dot.inactivo {
    background: #e57373;
    box-shadow: 0 0 8px #e57373;
}

.staff-title-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.staff-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.staff-role-badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--gold-light);
    background: rgba(196, 167, 125, 0.14);
    border: 1px solid rgba(196, 167, 125, 0.3);
    padding: 3px 12px;
    border-radius: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.staff-dni-row {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Ficha Médica y Salud Rápida */
.staff-health-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blood-group-tag {
    font-size: 0.76rem;
    font-weight: 800;
    color: #ff8585;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    padding: 2px 8px;
    border-radius: 10px;
}

.allergy-tag {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.allergy-tag.safe {
    color: #81c784;
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.allergy-tag.alert {
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.15);
    border: 1px solid rgba(255, 183, 77, 0.4);
}

/* Lista de Contacto */
.staff-info-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.82rem;
    color: #cccccc;
    padding: 4px 0;
}

.staff-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-icon {
    font-size: 0.88rem;
    flex-shrink: 0;
}

.info-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-wa-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.staff-wa-link:hover {
    text-decoration: underline;
}

.staff-insta-link {
    color: #e1306c;
    text-decoration: none;
    font-weight: 600;
}

.staff-insta-link:hover {
    text-decoration: underline;
}

/* Horas del Mes */
.staff-hours-box {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hours-header-row,
.hours-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hours-val {
    color: var(--gold-light);
    font-size: 0.95rem;
}

.hours-meter-track {
    width: 100%;
    height: 6px;
    background: #222222;
    border-radius: 3px;
    overflow: hidden;
}

.hours-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Botones de Acción de Tarjeta */
.staff-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-action {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 7px 8px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-card-action:hover {
    background: rgba(196, 167, 125, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.btn-card-action.highlight {
    background: rgba(196, 167, 125, 0.18);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.btn-card-action.danger {
    flex: 0 0 32px;
    color: #ff8585;
}

.btn-card-action.danger:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: #ff5c6c;
}

/* Badges de Asistencia */
.badge-licencia {
    background: rgba(255, 183, 77, 0.18);
    color: #ffb74d;
    border: 1px solid rgba(255, 183, 77, 0.35);
}

.badge-franco {
    background: rgba(144, 202, 249, 0.18);
    color: #90caf9;
    border: 1px solid rgba(144, 202, 249, 0.35);
}

/* Formularios en Modal */
.form-grid-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 680px) {
    .form-grid-modal {
        grid-template-columns: 1fr;
    }
}

.staff-avatar-preview-box {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--gold-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(196, 167, 125, 0.25);
    background: #000;
    flex-shrink: 0;
}

.staff-avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================================
   RECIBO DE SUELDO DIGITAL (PRINTABLE SLIP)
   ============================================================= */

.payroll-receipt {
    background: #0d0d0d;
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
    font-family: var(--font-body);
}

.receipt-header {
    border-bottom: 2px solid rgba(196, 167, 125, 0.35);
    padding-bottom: 12px;
}

.receipt-employee-box {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.receipt-table th {
    background: #161616;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.3);
}

.receipt-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.receipt-totals-row td {
    font-weight: 700;
    font-size: 0.92rem;
    background: #141414;
    border-top: 1px solid rgba(196, 167, 125, 0.3);
    padding: 10px 12px;
}

.receipt-net-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.25), rgba(46, 125, 50, 0.1));
    border: 1px solid #2e7d32;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
}

.net-lbl {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.net-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #81c784;
}

.receipt-signature-row {
    display: flex;
    justify-content: space-around;
    padding-top: 35px;
    margin-top: 10px;
}

.sig-box {
    text-align: center;
    width: 200px;
}

.sig-line {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

.sig-box span {
    font-size: 0.74rem;
    color: var(--text-muted);
}