/* ============================================
   BARBERSHOP DASHBOARD - PROFESSIONAL STYLES
   ============================================ */

:root {
    --primary: #f2ca50;
    --primary-light: #fce8b8;
    --primary-dark: #d4af37;
    --secondary: #e8974f;
    --success: #43e97b;
    --warning: #ffd700;
    --danger: #ff6b6b;
    --info: #00f2fe;

    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --border-color: #333333;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 8px 32px rgba(242, 202, 80, 0.15);
    --box-shadow-sm: 0 2px 8px rgba(242, 202, 80, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #f2ca50 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 1.8rem;
    color: #f2ca50;
    filter: drop-shadow(0 0 8px rgba(242, 202, 80, 0.4));
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #f2ca50 0%, #d4af37 100%);
    transition: height 0.3s ease;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(242, 202, 80, 0.08);
    border-left-color: var(--primary);
}

.nav-item:hover::before {
    height: 100%;
}

.nav-item.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(242, 202, 80, 0.15) 0%, rgba(242, 202, 80, 0.05) 100%);
    border-left-color: var(--primary);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: #ff6b6b;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 24px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.03) 100%);
    border-bottom: 1px solid rgba(242, 202, 80, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    will-change: transform, opacity;
}

.top-bar.hide-on-scroll {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f2ca50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 0.6s ease-out;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(242, 202, 80, 0.03) 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 202, 80, 0.15);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(242, 202, 80, 0.08) 100%);
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.analytics-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(242, 202, 80, 0.3);
}

.analytics-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 202, 80, 0.4);
}

.analytics-btn i {
    font-size: 1.1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

.content-wrapper {
    padding: 20px 24px 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(242, 202, 80, 0.3), inset 0 0 5px rgba(242, 202, 80, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(242, 202, 80, 0.5), inset 0 0 10px rgba(242, 202, 80, 0.2);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: slideInLeft 0.6s ease-out;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f2ca50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cabecera compacta: el título principal ya vive en .top-bar. */
.content-section > .section-header:first-child {
    min-height: 0;
    margin-bottom: 16px;
    animation: none;
}

.content-section > .section-header:first-child h2 {
    display: none;
}

.content-section > .section-header:first-child > h2 + * {
    margin-left: auto;
}

.content-section > .section-header:first-child:has(.fa-arrow-left) {
    justify-content: flex-start;
}

.content-section > .section-header:first-child:empty {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ============================================
   LUXURY DATE FILTER DROPDOWN
   ============================================ */

.date-filter-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 26, 0.98) 100%);
    border: 1.5px solid rgba(242, 202, 80, 0.35);
    border-radius: 12px;
    padding: 0 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.date-filter-container:hover,
.date-filter-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 18px rgba(242, 202, 80, 0.3);
    background: linear-gradient(135deg, rgba(38, 38, 50, 0.95) 0%, rgba(26, 26, 34, 0.98) 100%);
}

.date-filter-icon {
    color: var(--primary);
    font-size: 0.95rem;
    margin-right: 8px;
    pointer-events: none;
}

.date-filter-arrow {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-left: 8px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.date-filter-container:focus-within .date-filter-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.date-filter-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.date-filter-select option {
    background: #181820;
    color: #ffffff;
    font-weight: 600;
    padding: 12px;
}

/* ============================================
   KPI CARDS
   ============================================ */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.03) 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.kpi-card:nth-child(1) { animation-delay: 0.1s; }
.kpi-card:nth-child(2) { animation-delay: 0.2s; }
.kpi-card:nth-child(3) { animation-delay: 0.3s; }
.kpi-card:nth-child(4) { animation-delay: 0.4s; }

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(242, 202, 80, 0.2);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.08) 100%);
}

.kpi-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.8rem;
}

.kpi-content {
    flex: 1;
}

.kpi-content h3 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.kpi-change {
    font-size: 0.9rem;
    font-weight: 500;
}

.kpi-change.positive {
    color: var(--success);
}

.kpi-change.negative {
    color: var(--danger);
}

/* ============================================
   CHARTS
   ============================================ */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.chart-container {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.04) 100%);
    border: 1px solid rgba(242, 202, 80, 0.15);
    border-radius: 14px;
    padding: 22px;
    animation: slideInLeft 0.6s ease-out backwards;
    transition: var(--transition);
}

.chart-container:nth-child(1) { animation-delay: 0.2s; }
.chart-container:nth-child(2) { animation-delay: 0.3s; }

.chart-container:hover {
    box-shadow: 0 15px 35px rgba(242, 202, 80, 0.15);
    border-color: rgba(242, 202, 80, 0.3);
}

.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-header-row h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-mode-toggles {
    display: inline-flex;
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(242, 202, 80, 0.25);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.chart-mode-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.chart-mode-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.chart-mode-btn.active {
    background: linear-gradient(135deg, #F2CA50 0%, #C69214 100%);
    color: #000;
    box-shadow: 0 2px 8px rgba(242, 202, 80, 0.35);
}

/* ============================================
   TABLES
   ============================================ */

.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-input,
.filter-select {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-container {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.02) 100%);
    border: 1px solid rgba(242, 202, 80, 0.15);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    animation: slideInLeft 0.6s ease-out;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 25px;
}

.table-container::-webkit-scrollbar {
    height: 7px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(242, 202, 80, 0.3);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 202, 80, 0.6);
}

.data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(242, 202, 80, 0.05) 100%);
    border-bottom: 2px solid rgba(242, 202, 80, 0.2);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #f2ca50;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-top: 1px solid rgba(242, 202, 80, 0.08);
    color: var(--text-primary);
    white-space: nowrap;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out backwards;
}

.data-table tbody tr:hover {
    background: rgba(242, 202, 80, 0.08);
    box-shadow: inset 0 0 10px rgba(242, 202, 80, 0.05);
}

.data-table td.actions,
.actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.data-table td.actions .btn,
.actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(67, 233, 123, 0.15);
    color: var(--success);
}

.status-inactive {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(242, 202, 80, 0.2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 202, 80, 0.35);
    background: linear-gradient(135deg, #fce8b8 0%, #f2ca50 100%);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--primary);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: var(--danger);
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* ============================================
   FIDELIZACIÓN
   ============================================ */

.fidelizacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tier-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.04) 100%);
    border: 1px solid rgba(242, 202, 80, 0.15);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
    animation: slideInRight 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.tier-card:hover::before {
    left: 100%;
}

.tier-card:nth-child(1) { animation-delay: 0.1s; }
.tier-card:nth-child(2) { animation-delay: 0.2s; }
.tier-card:nth-child(3) { animation-delay: 0.3s; }

.tier-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(242, 202, 80, 0.3);
    border-color: var(--primary);
}

.tier-card.tier-gold {
    background: 
        radial-gradient(circle at 90% 10%, rgba(255, 215, 0, 0.28), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.18), transparent 50%),
        linear-gradient(145deg, #2d2309 0%, #1c1505 50%, #110d02 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 215, 0, 0.14);
}

.tier-card.tier-gold:hover {
    border-color: rgba(255, 215, 0, 0.85);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 35px rgba(255, 215, 0, 0.35);
}

.tier-card.tier-silver {
    background: 
        radial-gradient(circle at 90% 10%, rgba(226, 232, 240, 0.25), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(148, 163, 184, 0.18), transparent 50%),
        linear-gradient(145deg, #202630 0%, #151921 50%, #0d1015 100%);
    border: 1.5px solid rgba(203, 213, 225, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(203, 213, 225, 0.14);
}

.tier-card.tier-silver:hover {
    border-color: rgba(226, 232, 240, 0.85);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 35px rgba(203, 213, 225, 0.3);
}

.tier-card.tier-bronze {
    background: 
        radial-gradient(circle at 90% 10%, rgba(229, 147, 92, 0.28), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(184, 98, 47, 0.18), transparent 50%),
        linear-gradient(145deg, #2e170c 0%, #1d0e07 50%, #110804 100%);
    border: 1.5px solid rgba(229, 147, 92, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(229, 147, 92, 0.14);
}

.tier-card.tier-bronze:hover {
    border-color: rgba(229, 147, 92, 0.85);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 35px rgba(229, 147, 92, 0.3);
}

/* ============================================
   EPIC FIDELIZACIÓN CARDS
   ============================================ */

.epic-card {
    position: relative;
    perspective: 1000px;
    min-height: 420px;
    overflow: visible;
    transform-style: preserve-3d;
}

.tier-medal {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 10;
    animation: medalBounce 0.6s ease-out backwards;
    filter: drop-shadow(0 0 15px rgba(242, 202, 80, 0.6));
}

.tier-gold .tier-medal {
    background: linear-gradient(135deg, #ffd700 0%, #f2ca50 50%, #d4af37 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(242, 202, 80, 0.4);
    color: #0a0a0a;
    animation-delay: 0.1s;
}

.tier-silver .tier-medal {
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #a8a8a8 100%);
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.6), 0 0 50px rgba(192, 192, 192, 0.3);
    color: #1a1a1a;
    animation-delay: 0.2s;
}

.tier-bronze .tier-medal {
    background: linear-gradient(135deg, #e8aa4f 0%, #cd7f32 50%, #a76a2a 100%);
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.6), 0 0 50px rgba(205, 127, 50, 0.3);
    color: #0a0a0a;
    animation-delay: 0.3s;
}

@keyframes medalBounce {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.tier-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: left 0.6s ease;
    pointer-events: none;
}

.tier-card:hover .tier-shine {
    left: 100%;
    opacity: 1;
}

.tier-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, transparent 0%, transparent 70%, rgba(242, 202, 80, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tier-card:hover .tier-glow {
    opacity: 1;
}

.tier-gold .tier-glow {
    background: radial-gradient(circle, transparent 0%, transparent 70%, rgba(255, 215, 0, 0.15) 100%);
}

.tier-silver .tier-glow {
    background: radial-gradient(circle, transparent 0%, transparent 70%, rgba(192, 192, 192, 0.12) 100%);
}

.tier-bronze .tier-glow {
    background: radial-gradient(circle, transparent 0%, transparent 70%, rgba(205, 127, 50, 0.12) 100%);
}

.tier-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0 5px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tier-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: 1px;
}

.epic-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    border-radius: 20px;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    animation: badgePulse 2s ease-in-out infinite;
}

.tier-gold .epic-badge {
    background: linear-gradient(135deg, #ffd700 0%, #f2ca50 100%);
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.tier-silver .epic-badge {
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.tier-bronze .epic-badge {
    background: linear-gradient(135deg, #e8aa4f 0%, #cd7f32 100%);
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.benefit-row:hover {
    transform: translateX(8px);
    padding-left: 8px;
}

.benefit-row i {
    font-size: 1.1rem;
    min-width: 20px;
}

.tier-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.tier-gold .stat-number {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.tier-silver .stat-number {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.tier-bronze .stat-number {
    color: #e8aa4f;
    text-shadow: 0 0 10px rgba(232, 170, 79, 0.4);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Animación de aparición de tarjetas */
.epic-card {
    animation: cardFadeInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.tier-gold {
    animation-delay: 0.1s;
}

.tier-silver {
    animation-delay: 0.2s;
}

.tier-bronze {
    animation-delay: 0.3s;
}

@keyframes cardFadeInScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto 3D en hover */
.epic-card:hover {
    perspective: 1000px;
}

/* Glow animado infinito en tarjetas */
.tier-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    animation: infiniteGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.tier-gold::after {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation-delay: 0s;
}

.tier-silver::after {
    background: radial-gradient(circle, rgba(192, 192, 192, 0.2) 0%, transparent 70%);
    animation-delay: 0.5s;
}

.tier-bronze::after {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.2) 0%, transparent 70%);
    animation-delay: 1s;
}

@keyframes infiniteGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ============================================
   MODAL TIER DETAIL (ÉPICO)
   ============================================ */

.modal-tier-content {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.05) 100%);
    border: 2px solid rgba(242, 202, 80, 0.2);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 50px 100px rgba(242, 202, 80, 0.25);
}

.tier-detail-header {
    text-align: center;
    padding: 40px 30px;
    border-bottom: 2px solid rgba(242, 202, 80, 0.15);
    position: relative;
    overflow: hidden;
}

.tier-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f2ca50, transparent);
    animation: shimmerLine 2s ease-in-out infinite;
}

@keyframes shimmerLine {
    0%, 100% { background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.3), transparent); }
    50% { background: linear-gradient(90deg, transparent, #f2ca50, transparent); }
}

.tier-detail-medal {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: medalFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(242, 202, 80, 0.5));
}

@keyframes medalFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#tierDetailTitle {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f2ca50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin: 10px 0;
}

#tierDetailSubtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 1px;
    font-style: italic;
}

.tier-detail-body {
    padding: 30px;
}

.detail-section {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.05) 0%, transparent 100%);
    border-left: 4px solid rgba(242, 202, 80, 0.3);
    border-radius: 12px;
    animation: slideInLeft 0.5s ease-out backwards;
}

.detail-section:nth-child(1) { animation-delay: 0.1s; }
.detail-section:nth-child(2) { animation-delay: 0.2s; }
.detail-section:nth-child(3) { animation-delay: 0.3s; }
.detail-section:nth-child(4) { animation-delay: 0.4s; }
.detail-section:nth-child(5) { animation-delay: 0.5s; }

.detail-section h3 {
    font-size: 1.2rem;
    color: #f2ca50;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h3 i {
    font-size: 1.3rem;
}

.requirements-box {
    display: grid;
    gap: 12px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(242, 202, 80, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(242, 202, 80, 0.3);
}

.requirement-item:hover {
    background: rgba(242, 202, 80, 0.12);
    border-left-color: #f2ca50;
    transform: translateX(5px);
}

.requirement-item i {
    font-size: 1.3rem;
    color: #f2ca50;
    min-width: 25px;
}

.requirement-item span {
    flex: 1;
    font-size: 0.95rem;
}

.requirement-item .requirement-value {
    font-weight: 700;
    color: #f2ca50;
    font-size: 1.1rem;
}

.benefits-detailed {
    display: grid;
    gap: 12px;
}

.benefit-detailed {
    padding: 18px;
    background: rgba(242, 202, 80, 0.08);
    border-radius: 8px;
    border-left: 3px solid rgba(242, 202, 80, 0.3);
    transition: all 0.3s ease;
}

.benefit-detailed:hover {
    background: rgba(242, 202, 80, 0.12);
    border-left-color: #f2ca50;
    transform: translateX(5px);
}

.benefit-detailed strong {
    color: #f2ca50;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 1rem;
}

.benefit-detailed strong i {
    font-size: 1.2rem;
}

.benefit-detailed p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.5;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.15) 0%, transparent 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(242, 202, 80, 0.15);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #f2ca50;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 202, 80, 0.3);
}

.tier-progression {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.progression-tier {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.progression-tier.tier-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, transparent 100%);
    border: 2px solid rgba(205, 127, 50, 0.4);
}

.progression-tier.tier-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, transparent 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
}

.progression-tier.tier-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, transparent 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.progression-tier.active {
    box-shadow: 0 0 20px rgba(242, 202, 80, 0.5);
    transform: scale(1.05);
}

.progression-tier.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #f2ca50;
    animation: triangleFloat 1.5s ease-in-out infinite;
}

@keyframes triangleFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.progression-tier-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.progression-tier-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.action-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.action-primary {
    background: linear-gradient(135deg, #f2ca50 0%, #d4af37 100%);
    color: #0a0a0a;
}

.action-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(242, 202, 80, 0.3);
}

.action-secondary {
    background: rgba(242, 202, 80, 0.15);
    color: #f2ca50;
    border: 1px solid rgba(242, 202, 80, 0.3);
}

.action-secondary:hover {
    background: rgba(242, 202, 80, 0.25);
    border-color: #f2ca50;
}

.action-tertiary {
    background: rgba(242, 202, 80, 0.1);
    color: #f2ca50;
    border: 1px solid rgba(242, 202, 80, 0.2);
}

.action-tertiary:hover {
    background: rgba(242, 202, 80, 0.15);
}

.tier-detail-footer {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid rgba(242, 202, 80, 0.15);
    background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.05));
}

.tier-detail-footer .btn {
    flex: 1;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tier-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.tier-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tier-badge.gold {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.tier-badge.silver {
    background: rgba(192, 192, 192, 0.2);
    color: #c0c0c0;
}

.tier-badge.bronze {
    background: rgba(205, 127, 50, 0.2);
    color: #cd7f32;
}

.tier-benefits {
    margin-bottom: 20px;
}

.tier-benefits p {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.tier-benefits i {
    color: var(--success);
    width: 16px;
}

.tier-members {
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-align: center;
    color: var(--text-secondary);
}

.top-customers {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.top-customers h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.customer-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.customer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: var(--transition);
}

.customer-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.customer-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.customer-info {
    flex: 1;
}

.customer-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.customer-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.customer-reward {
    text-align: right;
}

.points {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   ACTIVIDADES
   ============================================ */

.activities-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.activities-container h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    align-items: flex-start;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   MODALES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.04) 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    animation: scaleIn 0.3s ease-out;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.horario-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.form-actions button {
    flex: 1;
}

.form-section {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section .form-row {
    margin-bottom: 15px;
}

/* ============================================
   HORARIOS
   ============================================ */

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

.horarios-grid .form-section {
    animation: slideInUp 0.5s ease-out;
}

/* ============================================
   BARBEROS
   ============================================ */

.barberos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.barbero-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.barbero-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary);
}

.barbero-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.barbero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.barbero-info {
    padding: 20px;
}

.barbero-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.barbero-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.barbero-rating {
    display: flex;
    gap: 4px;
    margin: 10px 0;
    color: var(--warning);
}

.barbero-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.barbero-actions button {
    flex: 1;
    padding: 8px;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 2000;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border-color);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

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

    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 20px;
    }

    .sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        background: transparent !important;
        width: 100% !important;
        padding: 10px 0 !important;
        overflow-y: auto;
    }

    .nav-item {
        display: flex !important;
        align-items: center !important;
        padding: 14px 20px !important;
        border-bottom: none !important;
        border-left: 3px solid transparent !important;
    }

    .nav-item span {
        display: inline !important;
    }

    .nav-item.active {
        border-left-color: var(--primary) !important;
        border-bottom-color: transparent !important;
    }

    .sidebar-footer {
        display: block !important;
        margin-top: auto;
        padding: 15px 20px;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .search-bar {
        width: 200px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay para cerrar el menú al hacer clic fuera en móviles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

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

    .main-content {
        margin-left: 0;
        margin-top: 0;
    }

    .content-wrapper {
        padding: 20px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .fidelizacion-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .barberos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 95%;
        max-height: none;
    }
}

/* Agenda diaria interactiva */
.modal-agenda-dia {
    width: min(1180px, 96vw);
    max-width: 1180px;
    max-height: 94vh;
    overflow-y: auto;
}

.agenda-dia-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    margin-bottom: 30px;
}

.agenda-horario-panel,
.agenda-citas-panel {
    min-width: 0;
}

.agenda-horario-panel h3,
.agenda-citas-panel h3 {
    color: var(--primary);
    font-size: 1.12rem;
    margin: 0 0 14px;
}

.agenda-dia-inline {
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
}

.agenda-slot {
    display: grid;
    grid-template-columns: 72px 1fr;
    min-height: 52px;
    border-bottom: 1px solid var(--border-color);
}

.agenda-slot:last-child {
    border-bottom: 0;
}

.agenda-slot > time {
    padding: 15px 10px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    border-right: 1px solid var(--border-color);
    background: rgba(242, 202, 80, 0.035);
}

.agenda-slot-content {
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.slot-disponible {
    color: rgba(148, 163, 184, 0.58);
    font-size: 0.75rem;
}

.agenda-slot-cita {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(242, 202, 80, 0.42);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.14), rgba(67, 233, 123, 0.08));
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

.agenda-slot-cita strong,
.agenda-slot-cita span {
    display: block;
}

.agenda-slot-cita span {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.citas-dia-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 3px;
}

.agenda-cita-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-left: 4px solid #ffd700;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.agenda-cita-card.estado-confirmada {
    border-left-color: #43e97b;
}

.agenda-cita-card:hover,
.agenda-cita-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(242, 202, 80, 0.7);
    background: rgba(242, 202, 80, 0.075);
    outline: none;
}

.agenda-cita-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.agenda-cita-time span {
    color: var(--primary);
    font-size: 1.22rem;
    font-weight: 900;
}

.agenda-cita-time small {
    color: var(--text-secondary);
    font-size: 0.68rem;
}

.agenda-cita-main h4 {
    margin: 0 0 7px;
    color: var(--text-primary);
}

.agenda-cita-main p {
    margin: 4px 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.agenda-cita-main p i {
    width: 17px;
    color: var(--primary);
}

.agenda-cita-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.ver-cita-label {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
}

#modal-detalle-cita {
    z-index: 3400;
}

.modal-cita-detail {
    width: min(620px, 94vw);
    max-width: 620px;
}

.detalle-cita-contenido {
    padding: 24px;
}

.detalle-cita-hero {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(242, 202, 80, 0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.12), rgba(255, 255, 255, 0.02));
}

.detalle-cita-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--primary);
}

.detalle-cita-clock i {
    font-size: 1.35rem;
}

.detalle-cita-clock strong {
    font-size: 1.65rem;
}

.detalle-cita-clock span,
.detalle-cita-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.detalle-cita-client-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.detalle-cita-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 0 16px rgba(242, 202, 80, 0.35);
    object-fit: cover;
    flex-shrink: 0;
}

.detalle-cita-client-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.detalle-cita-client-meta h3,
.detalle-cita-hero h3 {
    margin: 4px 0 8px;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.detalle-cita-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.detalle-cita-field {
    display: grid;
    grid-template-columns: 30px 1fr;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.detalle-cita-field i {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--primary);
}

.detalle-cita-field span {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.detalle-cita-field strong {
    margin-top: 3px;
    color: var(--text-primary);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.detalle-cita-notas {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.detalle-cita-notas span {
    color: var(--primary);
    font-weight: 800;
}

.detalle-cita-notas p {
    margin: 8px 0 0;
    color: var(--text-secondary);
}

.detalle-cita-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 820px) {
    .agenda-dia-workspace,
    .detalle-cita-grid {
        grid-template-columns: 1fr;
    }

    .agenda-dia-inline,
    .citas-dia-cards {
        max-height: 390px;
    }

    .detalle-cita-actions {
        flex-wrap: wrap;
    }
}

/* ============================================
   DETALLES DEL DÍA SELECCIONADO
   ============================================ */

.detalle-dia-header {
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.detalle-dia-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.fecha-completa {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.citas-detalladas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.cita-detalle-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: var(--transition);
}

.cita-detalle-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.cita-tiempo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.cita-tiempo .hora {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.cita-detalles-info {
    flex: 1;
}

.cita-detalles-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.cita-detalles-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cita-detalles-info p.servicio {
    color: var(--primary);
    font-weight: 500;
}

.cita-detalles-info p.barbero {
    color: var(--success);
}

.cita-detalles-info p.estado {
    margin-top: 6px;
}

.cita-acciones {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cita-acciones button {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.resumen-barberos {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.resumen-barberos h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.barbero-resumen {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.barbero-resumen:hover {
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

.barbero-info-mini {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.barbero-info-mini .nombre {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.barbero-info-mini .horario {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.barra-ocupacion {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.barra-ocupacion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ocupacion-texto {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

.sin-citas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.sin-citas i {
    color: var(--text-secondary);
    margin-bottom: 15px;
    opacity: 0.5;
}

.sin-citas p {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.sin-citas .texto-secundario {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.sin-citas .btn {
    width: 100%;
    justify-content: center;
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }

    .page-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   WHATSAPP & CLIENT PROFILE MODAL
   ============================================ */

.btn-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1ebe5d !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-info {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-info:hover {
    background: #2563eb !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
}

.btn-icon-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    margin-left: 6px;
    vertical-align: middle;
}

.btn-icon-whatsapp:hover {
    background: #1ebe5d;
    transform: scale(1.18);
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
}

.client-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.client-name-cell:hover strong {
    color: var(--primary);
}

.client-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.phone-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-large {
    max-width: 720px !important;
    width: 95% !important;
}

/* ============================================
   LUXURY CLIENT PROFILE MODAL
   ============================================ */

.modal-content.modal-large {
    max-width: 680px;
    background: #131317;
    border: 1.5px solid rgba(242, 202, 80, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(242, 202, 80, 0.15);
    overflow: hidden;
}

.modal-content.modal-large .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(242, 202, 80, 0.2);
    background: rgba(242, 202, 80, 0.05);
}

.modal-content.modal-large .modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cliente-perfil-body {
    padding: 24px;
}

.perfil-hero {
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.12) 0%, rgba(26, 26, 34, 0.95) 100%);
    border: 1.5px solid rgba(242, 202, 80, 0.25);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.perfil-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(242, 202, 80, 0.15), transparent 70%);
    pointer-events: none;
}

.perfil-avatar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.perfil-avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 0 20px rgba(242, 202, 80, 0.4);
    object-fit: cover;
    flex-shrink: 0;
}

.perfil-names h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

.perfil-contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-pill:hover {
    background: rgba(242, 202, 80, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.tier-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.tier-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(242, 202, 80, 0.5);
}

.tier-badge.silver {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(226, 232, 240, 0.3);
}

.tier-badge.bronze {
    background: linear-gradient(135deg, #fdba74 0%, #c2410c 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(253, 186, 116, 0.3);
}

/* 3D KPI Metric Cards */
.perfil-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.perfil-kpi-item {
    background: #181820;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
}

.perfil-kpi-item:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 202, 80, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.perfil-kpi-item .label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.perfil-kpi-item .val {
    font-size: 1.45rem;
    font-weight: 900;
    font-family: monospace;
}

/* 2-Column Key Details Grid */
.perfil-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #181820;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.perfil-detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 12px;
}

.perfil-detail-row span.title {
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.perfil-detail-row span.data {
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Appointment History */
.perfil-history {
    margin-bottom: 20px;
}

.perfil-history h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perfil-history-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: none;
}

.perfil-history-list::-webkit-scrollbar {
    display: none;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #181820;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: rgba(242, 202, 80, 0.3);
    background: #20202a;
}

.history-item .service {
    font-weight: 700;
    color: #fff;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-item .date-barber {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15) !important;
    color: #25d366 !important;
    border: 1px solid rgba(37, 211, 102, 0.4) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2) !important;
}

.btn-whatsapp:hover {
    background: #25d366 !important;
    color: #000 !important;
}

/* ============================================
   REPORTES AVANZADOS STYLES
   ============================================ */

.reportes-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reportes-kpi-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.reportes-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0.3;
}

.reportes-kpi-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(242, 202, 80, 0.15);
    transform: translateY(-2px);
}

.reportes-kpi-card.ingresos::before {
    background: #22c55e;
}

.reportes-kpi-card.gastos::before {
    background: #ef4444;
}

.reportes-kpi-card.ganancia::before {
    background: #3b82f6;
}

.reportes-kpi-card.margen::before {
    background: #f59e0b;
}

.reportes-kpi-card .kpi-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.reportes-kpi-card.ingresos .kpi-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.reportes-kpi-card.gastos .kpi-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.reportes-kpi-card.ganancia .kpi-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.reportes-kpi-card.margen .kpi-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.reportes-kpi-card .kpi-content label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.reportes-kpi-card h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.reportes-kpi-card .kpi-meta {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.reportes-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.reportes-chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.reportes-chart-container > canvas {
    flex: 1;
}

.reportes-chart-container.grande {
    grid-column: 1 / -1;
    min-height: 450px;
}

.reportes-chart-container:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(242, 202, 80, 0.1);
}

.reportes-chart-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.reportes-chart-container h3 i {
    color: var(--primary);
}

.reportes-chart-container canvas {
    max-height: 350px;
    height: 350px !important;
    width: 100% !important;
}

.reportes-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.reportes-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
}

.reportes-table-container:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(242, 202, 80, 0.1);
}

.reportes-table-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.reportes-table-container h3 i {
    color: var(--primary);
}

.reportes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.reportes-table thead {
    background: rgba(242, 202, 80, 0.05);
    border-bottom: 2px solid var(--border-color);
}

.reportes-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.reportes-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.reportes-table tbody tr {
    transition: var(--transition);
}

.reportes-table tbody tr:hover {
    background: rgba(242, 202, 80, 0.05);
}

.reportes-table tbody tr:last-child td {
    border-bottom: none;
}

.reportes-table tbody tr td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

.reportes-gastos-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.reportes-gastos-section:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(242, 202, 80, 0.1);
}

.reportes-gastos-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.reportes-gastos-section h3 i {
    color: var(--primary);
}

.reportes-gastos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.gasto-item {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gasto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gasto-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.gasto-icon.suministros {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.gasto-icon.servicios {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.gasto-icon.personal {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.gasto-icon.alquiler {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.gasto-icon.marketing {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.gasto-icon.otros {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.gasto-content label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.gasto-monto {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 5px 0;
}

.gasto-percent {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(212, 175, 55, 0.8) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(242, 202, 80, 0.3);
    letter-spacing: 0.5px;
}

.reportes-metricas-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
}

.reportes-metricas-section:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(242, 202, 80, 0.1);
}

.reportes-metricas-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.reportes-metricas-section h3 i {
    color: var(--primary);
}

.reportes-metricas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metrica-card {
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.metrica-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(242, 202, 80, 0.1);
}

.metrica-card label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.metrica-card h4 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 10px 0;
    font-weight: 700;
}

.metrica-card p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

@media (max-width: 1024px) {
    .reportes-details-grid {
        grid-template-columns: 1fr;
    }

    .reportes-charts-grid {
        grid-template-columns: 1fr;
    }

    .reportes-chart-container.grande {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .reportes-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reportes-gastos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reportes-metricas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   QR SCANNER STYLES
   ============================================ */

.qr-scanner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
}

.qr-scanner-container.showing-result {
    grid-template-columns: 1fr !important;
    max-width: 680px;
    margin: 0 auto 30px auto;
}

.qr-scanner-container.showing-result .qr-scanner-panel {
    display: none !important;
}

.qr-scanner-container.showing-result .qr-info-panel {
    border-color: rgba(242, 202, 80, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    animation: qrFadeIn 0.35s ease-out;
}

@keyframes qrFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.qr-scanner-panel,
.qr-info-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
}

.qr-scanner-panel:hover,
.qr-info-panel:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(242, 202, 80, 0.1);
}

.qr-scanner-panel h3,
.qr-info-panel h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.camera-viewport {
    width: 100%;
    height: 300px;
    background: #0f0f23;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.camera-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
}

.scanner-reticle {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(242, 202, 80, 0.7);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}

.scanner-laser {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f2ca50, transparent);
    box-shadow: 0 0 10px #f2ca50;
    animation: scanLaserAnim 2s infinite ease-in-out alternate;
}

@keyframes scanLaserAnim {
    0% { top: 15%; opacity: 0.3; }
    50% { opacity: 1; }
    100% { top: 85%; opacity: 0.3; }
}

#qr-info-content {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-client-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-client-card {
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.qr-client-details {
    flex: 1;
}

.qr-client-details p {
    margin: 3px 0;
    font-size: 0.95rem;
}

.qr-client-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.qr-cita-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.qr-cita-info p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.qr-validation-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
    border: 2px solid #22c55e;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.qr-validation-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.qr-validation-success p,
.qr-validation-error p {
    margin: 8px 0;
}

.qr-points-badge {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
}

.qr-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.qr-action-buttons .btn {
    flex: 1;
}

.qr-history-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.qr-history-container h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-history-item {
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.qr-history-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(242, 202, 80, 0.1);
}

.qr-history-item-info {
    flex: 1;
}

.qr-history-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.qr-history-item-time {
    font-size: 0.85rem;
    color: #999;
}

.qr-history-item-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.qr-history-item-status.validado {
    color: #22c55e;
}

.qr-history-item-status.fallido {
    color: #ef4444;
}

/* ============================================
   REPORTES AVANZADOS & FINANZAS
   ============================================ */

.reportes-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.reportes-chart-container {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.03) 100%);
    border: 1px solid rgba(242, 202, 80, 0.15);
    border-radius: 16px;
    padding: 22px;
    height: 340px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: var(--transition);
}

.reportes-chart-container.grande {
    grid-column: span 2;
    height: 380px;
}

.reportes-chart-container:hover {
    border-color: rgba(242, 202, 80, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.reportes-chart-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.reportes-chart-container canvas {
    flex: 1 1 auto;
    width: 100% !important;
    height: calc(100% - 35px) !important;
    display: block;
}

.reportes-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.reportes-table-container {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(242, 202, 80, 0.03) 100%);
    border: 1px solid rgba(242, 202, 80, 0.15);
    border-radius: 16px;
    padding: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reportes-table-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reportes-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.reportes-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(242, 202, 80, 0.2);
    text-transform: uppercase;
}

.reportes-table td {
    padding: 12px 14px;
    color: #fff;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .reportes-charts-grid,
    .reportes-details-grid {
        grid-template-columns: 1fr;
    }
    .reportes-chart-container.grande {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .qr-scanner-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .data-table td.actions .btn,
    .actions .btn {
        padding: 5px 8px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .charts-grid,
    .fidelizacion-grid,
    .barberos-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .qr-scanner-container {
        grid-template-columns: 1fr;
    }

    .camera-viewport {
        height: 250px;
    }
}

/* ============================================
   AI INTELLIGENCE & ADVANCED ANALYTICS SUITE
   ============================================ */

.ai-tab-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(242, 202, 80, 0.2);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.ai-tab-btn {
    background: #16161e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.ai-tab-btn:hover {
    color: #fff;
    border-color: rgba(242, 202, 80, 0.4);
    background: #20202c;
}

.ai-tab-btn.active {
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 202, 80, 0.15);
}

.ai-suite-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.ai-card {
    background: linear-gradient(135deg, #181822 0%, #13131a 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ai-card.full-width {
    grid-column: span 2;
}

.ai-card:hover {
    border-color: rgba(242, 202, 80, 0.45);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(242, 202, 80, 0.1);
}

.ai-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.ai-card-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.ai-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-badge.gold {
    background: rgba(242, 202, 80, 0.15);
    border-color: rgba(242, 202, 80, 0.4);
    color: var(--primary);
}

/* Prediction List & Risk Bars */
.ai-item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.ai-item-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(242, 202, 80, 0.3);
}

.risk-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.risk-pill.high {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.risk-pill.medium {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.risk-pill.low {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Marketing Heatmap Matrix */
.marketing-heatmap {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.heatmap-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a1a1aa;
    text-align: center;
    padding: 6px 0;
}

.heatmap-cell {
    padding: 12px 6px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    transition: transform 0.2s ease;
    cursor: default;
}

.heatmap-cell:hover {
    transform: scale(1.08);
}

.heatmap-cell.hot {
    background: linear-gradient(135deg, rgba(242, 202, 80, 0.9) 0%, rgba(245, 158, 11, 0.95) 100%);
    color: #000;
    box-shadow: 0 0 12px rgba(242, 202, 80, 0.4);
}

.heatmap-cell.warm {
    background: rgba(242, 202, 80, 0.35);
    color: #fff;
    border: 1px solid rgba(242, 202, 80, 0.5);
}

.heatmap-cell.cool {
    background: rgba(255, 255, 255, 0.04);
    color: #71717a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Recommendation & Cross-sell Cards */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.recommendation-card {
    background: #1b1b26;
    border: 1px solid rgba(242, 202, 80, 0.25);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Profitability Matrix Table */
.profit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.profit-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 14px 12px;
    border-bottom: 1.5px solid rgba(242, 202, 80, 0.25);
    text-align: left;
}

.profit-table td {
    padding: 14px 12px;
    color: #fff;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.star-badge {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 992px) {
    .ai-suite-grid {
        grid-template-columns: 1fr;
    }
    .ai-card.full-width {
        grid-column: span 1;
    }
}

/* ============================================
   ENHANCED VIP LOYALTY & REWARDS ECOSYSTEM
   ============================================ */

/* Multi-tier Visual Progress Bar */
.loyalty-progression-card {
    background: linear-gradient(135deg, #181824 0%, #121219 100%);
    border: 1.5px solid rgba(242, 202, 80, 0.3);
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.progression-steps-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 10px 15px 10px;
}

.progression-line-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    z-index: 1;
}

.progression-line-fill {
    height: 100%;
    background: linear-gradient(90deg, #cd7f32 0%, #c0c0c0 40%, #ffd700 80%, #a855f7 100%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(242, 202, 80, 0.6);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progression-step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.node-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #181822;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.progression-step-node.completed .node-icon {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F2CA50 0%, #C69214 100%);
    color: #000;
    box-shadow: 0 0 18px rgba(242, 202, 80, 0.5);
}

.progression-step-node.active .node-icon {
    border-color: #ffd700;
    background: #000;
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    transform: scale(1.15);
}

.node-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progression-step-node.completed .node-label,
.progression-step-node.active .node-label {
    color: #fff;
}

/* Loyalty Earn Grid (Referrals, Purchases, Reviews) */
.loyalty-earn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.earn-card {
    background: linear-gradient(135deg, #181822 0%, #13131a 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.earn-card:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 202, 80, 0.45);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.earn-points-badge {
    background: rgba(242, 202, 80, 0.15);
    border: 1px solid rgba(242, 202, 80, 0.35);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Rewards Catalog Filter & Grid */
.rewards-filter-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rewards-filter-btn {
    background: #181822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.rewards-filter-btn:hover,
.rewards-filter-btn.active {
    background: linear-gradient(135deg, #F2CA50 0%, #C69214 100%);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(242, 202, 80, 0.3);
}

.rewards-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reward-card {
    background: linear-gradient(135deg, #181822 0%, #13131a 100%);
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.reward-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(242, 202, 80, 0.15);
}

.reward-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(242, 202, 80, 0.12);
    border: 1px solid rgba(242, 202, 80, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.reward-cost-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #000;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: monospace;
}

/* VIP Events Section */
.vip-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vip-event-card {
    background: linear-gradient(135deg, #1d1d2b 0%, #14141d 100%);
    border: 1px solid rgba(242, 202, 80, 0.3);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.vip-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700 0%, #c084fc 100%);
}

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

/* ============================================
   SISTEMA DE CUPONES & PROMOCIONES MARKETING
   ============================================ */

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

.cupon-card {
    background: linear-gradient(135deg, #191924 0%, #12121a 100%);
    border: 1.5px dashed rgba(242, 202, 80, 0.4);
    border-radius: 18px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.cupon-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(242, 202, 80, 0.2);
}

.cupon-card.expired {
    opacity: 0.6;
    border-color: rgba(239, 68, 68, 0.4);
    filter: grayscale(0.5);
}

.cupon-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cupon-badge-discount {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: -0.5px;
}

.cupon-code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(242, 202, 80, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.cupon-code-text {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.cupon-copy-btn {
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.cupon-copy-btn:hover {
    color: #fff;
}

.cupon-usage-track {
    margin-bottom: 14px;
}

.cupon-usage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cupon-usage-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.cupon-usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 6px;
}

.cupon-meta-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.cupon-meta-list span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cupon-meta-list strong {
    color: #fff;
}

/* ============================================
   SISTEMA DE RESEÑAS, RATINGS & REPUTACIÓN
   ============================================ */

.reviews-summary-hero {
    background: linear-gradient(135deg, #181824 0%, #121219 100%);
    border: 1.5px solid rgba(242, 202, 80, 0.3);
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    gap: 30px;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.rating-score-main {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 20px;
}

.rating-big-number {
    font-size: 3.8rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
    font-family: monospace;
    letter-spacing: -2px;
}

.rating-stars-gold {
    color: #ffd700;
    font-size: 1.25rem;
    margin: 8px 0 4px 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.rating-histogram {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.histogram-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.histogram-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.histogram-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #d4af37 100%);
    border-radius: 8px;
}

.reviews-barbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.barber-rating-card {
    background: #181822;
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.barber-rating-card:hover,
.barber-rating-card.active {
    border-color: var(--primary);
    background: rgba(242, 202, 80, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

.review-card {
    background: linear-gradient(135deg, #181822 0%, #13131a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    transition: all 0.25s ease;
}

.review-card.featured {
    border-color: rgba(242, 202, 80, 0.45);
    background: linear-gradient(135deg, #1f1d15 0%, #13131a 100%);
    box-shadow: 0 8px 25px rgba(242, 202, 80, 0.12);
}

.review-card.pending {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #ffffff;
    object-fit: cover;
}

.review-experience-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.experience-tag {
    background: rgba(242, 202, 80, 0.1);
    border: 1px solid rgba(242, 202, 80, 0.25);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.review-photos-grid {
    display: flex;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.review-photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 1px solid rgba(242, 202, 80, 0.3);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.review-photo-thumb:hover {
    transform: scale(1.08);
    border-color: var(--primary);
}

.review-reply-box {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 0.82rem;
}

/* Interactive Star Picker */
.star-rating-picker {
    display: flex;
    gap: 8px;
    font-size: 1.8rem;
    color: #4b5563;
    cursor: pointer;
    margin-top: 4px;
}

.star-rating-picker i:hover,
.star-rating-picker i.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

@media (max-width: 900px) {
    .reviews-summary-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .rating-score-main {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 15px;
        padding-right: 0;
    }
}

/* ============================================
   PERFIL MEJORADO 360 DEL CLIENTE
   ============================================ */

.cliente-perfil-body {
    padding: 24px;
    max-height: 82vh;
    overflow-y: auto;
}

.perfil-hero {
    background: linear-gradient(135deg, #181824 0%, #121219 100%);
    border: 1.5px solid rgba(242, 202, 80, 0.3);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
    gap: 15px;
}

.perfil-avatar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.perfil-avatar-large {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: #ffffff;
    box-shadow: 0 0 20px rgba(242, 202, 80, 0.4);
    object-fit: cover;
}

.perfil-names h3 {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.perfil-contact-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: #ccc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.contact-pill:hover {
    background: rgba(242, 202, 80, 0.15);
    border-color: var(--primary);
    color: #fff;
}

.perfil-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.perfil-kpi-item {
    background: #181822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.perfil-kpi-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.perfil-kpi-item .val {
    font-size: 1.45rem;
    font-weight: 900;
    font-family: monospace;
}

/* Tabs Navigation in Profile */
.perfil-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.perfil-tab-btn {
    background: #181822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.perfil-tab-btn:hover,
.perfil-tab-btn.active {
    background: linear-gradient(135deg, #F2CA50 0%, #C69214 100%);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(242, 202, 80, 0.3);
}

.perfil-tab-pane {
    display: none;
}

.perfil-tab-pane.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* Grooming Spec Grid (Barber Notes) */
.grooming-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.grooming-spec-card {
    background: #181822;
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 12px;
    padding: 14px;
}

.grooming-spec-card .title {
    font-size: 0.76rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.grooming-spec-card .desc {
    font-size: 0.88rem;
    color: #fff;
    line-height: 1.4;
}

/* Client Lookbook (Haircut Photos) */
.client-lookbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.lookbook-item {
    background: #181822;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lookbook-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.lookbook-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.lookbook-caption {
    padding: 8px;
    font-size: 0.72rem;
    color: #a1a1aa;
    text-align: center;
    background: #121219;
}

/* Preferences Grid */
.client-prefs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pref-card {
    background: #181822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pref-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(242, 202, 80, 0.12);
    border: 1px solid rgba(242, 202, 80, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Favorite Products */
.client-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.client-prod-card {
    background: #181822;
    border: 1px solid rgba(242, 202, 80, 0.2);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ============================================
   APPOINTMENTS SIDEBAR - CALENDAR VIEW
   ============================================ */

.appointments-sidebar {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    max-height: 700px;
    overflow-y: auto;
    display: block;
}

.appointments-sidebar h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.citas-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detalle-dia-header {
    padding: 15px;
    background: rgba(242, 202, 80, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 10px;
}

.detalle-dia-header h3 {
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.detalle-dia-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.citas-detalladas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cita-detalle-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition);
}

.cita-detalle-item:hover {
    background: rgba(242, 202, 80, 0.08);
    border-color: var(--primary);
}

.cita-tiempo {
    min-width: 50px;
}

.cita-tiempo .hora {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.cita-detalles-info {
    flex: 1;
}

.cita-detalles-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cita-detalles-info p {
    margin: 3px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cita-detalles-info p i {
    margin-right: 6px;
    color: var(--primary);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-confirmada {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
}

.status-pendiente {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.cita-acciones {
    display: flex;
    gap: 6px;
}

.cita-acciones .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.resumen-barberos {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.resumen-barberos h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.barbero-resumen {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.barbero-info-mini {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.barbero-info-mini .nombre {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.barbero-info-mini .horario {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.barra-ocupacion {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.barra-ocupacion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.ocupacion-texto {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sin-citas {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.sin-citas i {
    color: var(--primary);
    margin-bottom: 15px;
}

.sin-citas p {
    margin: 10px 0;
}

.sin-citas .texto-secundario {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .appointments-sidebar {
        max-height: 500px;
        padding: 15px;
    }

    .grooming-spec-grid,
    .client-prefs-grid {
        grid-template-columns: 1fr;
    }
}
