/* ========================================================================== */
/* ========================== 1. VARIABLES GLOBALES ========================= */
/* ========================================================================== */

:root {
    /* Modo Oscuro (por defecto) */
    --bg-primary: #000000;
    --bg-secondary: #0f0f0f;
    --card-bg: #161616;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #fdfdfb;
    --accent-hover: #e8e8e6;
    --accent-lime: #2ecc71;
    --border: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --danger: #ff4444;
    --danger-hover: #cc0000;
    --success: #2ecc71;
    --warning: #f39c12;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --transition: all 0.2s ease;
}

.theme-light {
    --bg-primary: #fdfaf6;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #2d2d2d;
    --text-secondary: #636e72;
    --accent: #E67E22;
    --accent-hover: #D35400;
    --accent-lime: #27ae60;
    --border: rgba(0, 0, 0, 0.2);
    --border-subtle: rgba(0, 0, 0, 0.1);
    --danger: #e74c3c;
    --danger-hover: #c0392b;
}

/* ========================================================================== */
/* ========================== 2. RESET Y BASE =============================== */
/* ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    transition: var(--transition);
}

/* ========================================================================== */
/* ========================== 3. LOGIN ====================================== */
/* ========================================================================== */

/* ========================================================================== */
/* ========================== LOGIN RESPONSIVE REDISEÑADO =================== */
/* ========================================================================== */

#login-screen {
    background: radial-gradient(circle at 20% 30%, #1a1a1a, #000000) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card-neon {
    position: relative;
    text-align: center;
    width: 100%;
    margin: auto;
}

.logo-area {
    margin-bottom: 30px;
}

.logo-area .barber-icon {
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-area .barber-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.barber-logo-img {
    text-align: center;
}

.barber-logo-img img {
    width: 100%;
    height: auto;
    display: inline-block;
}

.input-neon {
    position: relative;
    margin-bottom: 25px;
}

.input-neon input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
}

.input-neon input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.input-neon input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-neon label {
    position: absolute;
    left: 18px;
    top: -10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0 8px;
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    pointer-events: none;
}

.btn-neon {
    width: 100%;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.verify-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.verify-icon {
    width: 12px;
    height: 12px;
    background: #55c00d;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==================== MÓVILES (menos de 768px) ==================== */
@media (max-width: 767px) {
    #login-screen {
        padding: 0;
    }
    
    .login-wrapper {
        padding: 16px;
        min-height: 100vh;
        align-items: center;
    }
    
    .login-card-neon {
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
    
    .logo-area .barber-icon {
        width: 100px;
        height: 100px;
    }
    
    .barber-logo-img img {
        max-width: 200px;
    }
    
    .input-neon input {
        padding: 14px 18px;
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .input-neon label {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .btn-neon {
        padding: 14px;
    }
}

/* ==================== TABLETS (768px - 1024px) ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .login-wrapper {
        padding: 30px;
    }
    
    .login-card-neon {
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 40px;
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
        padding: 40px 35px;
        max-width: 450px;
    }
    
    .logo-area .barber-icon {
        width: 120px;
        height: 120px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        padding: 15px;
    }
    
    .barber-logo-img img {
        max-width: 220px;
    }
    
    .input-neon input {
        padding: 15px 20px;
    }
    
    .btn-neon {
        padding: 15px;
    }
}

/* ==================== ESCRITORIO (más de 1024px) ==================== */
@media (min-width: 1025px) {
    .login-wrapper {
        padding: 40px;
    }
    
    .login-card-neon {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 48px;
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        padding: 50px 45px;
        max-width: 500px;
        transition: all 0.3s ease;
    }
    
    /* Efecto de brillo en escritorio */
    .login-card-neon::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #ffffff, #888888, #ffffff);
        border-radius: 50px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .login-card-neon:hover::before {
        opacity: 0.15;
    }
    
    .logo-area .barber-icon {
        width: 140px;
        height: 140px;
        border: 3px solid #ffffff;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        padding: 18px;
        transition: transform 0.3s ease;
    }
    
    .login-card-neon:hover .logo-area .barber-icon {
        transform: scale(1.02);
    }
    
    .barber-logo-img img {
        max-width: 250px;
        transition: transform 0.3s ease;
    }
    
    .login-card-neon:hover .barber-logo-img img {
        transform: scale(1.02);
    }
    
    .input-neon input {
        padding: 16px 22px;
        font-size: 16px;
        transition: all 0.2s ease;
    }
    
    .input-neon input:focus {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    }
    
    .btn-neon {
        padding: 16px;
        font-size: 16px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    
    .btn-neon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.4s, height 0.4s;
    }
    
    .btn-neon:active::after {
        width: 100%;
        height: 100%;
    }
}

/* ==================== PANTALLAS MUY GRANDES (1440px+) ==================== */
@media (min-width: 1440px) {
    .login-card-neon {
        max-width: 550px;
        padding: 60px 50px;
    }
    
    .logo-area .barber-icon {
        width: 160px;
        height: 160px;
    }
    
    .barber-logo-img img {
        max-width: 280px;
    }
    
    .input-neon input {
        padding: 18px 24px;
        font-size: 17px;
    }
    
    .btn-neon {
        padding: 18px;
        font-size: 17px;
    }
}

/* ==================== ALTURA PEQUEÑA ==================== */
@media (max-height: 600px) and (min-width: 768px) {
    .login-card-neon {
        padding: 25px 40px;
    }
    
    .logo-area {
        margin-bottom: 15px;
    }
    
    .logo-area .barber-icon {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    
    .barber-logo-img img {
        max-width: 180px;
    }
    
    .input-neon {
        margin-bottom: 15px;
    }
    
    .input-neon input {
        padding: 10px 18px;
    }
    
    .btn-neon {
        padding: 10px;
    }
}

/* ==================== SAFE AREAS ==================== */
@supports (padding: max(0px)) {
    .login-wrapper {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
/* ========================================================================== */
/* ========================== 5. APP HEADER ================================= */
/* ========================================================================== */

.app-header {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.user-greeting {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.user-greeting strong {
    font-size: 22px;
    display: block;
    margin-top: 5px;
    color: var(--accent);
}

.header-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Reset para iconos generales que no deben cambiar */
.icon-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.icon-btn:hover .material-symbols-rounded {
    color: #000000;
}

.material-symbols-rounded {
    font-size: 24px;
    color: var(--text-primary);
}

/* ========================================================================== */
/* ========================== 6. INFO CARD ================================== */
/* ========================================================================== */

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.info-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.info-icon img.mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-content p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-divider {
    width: 1px;
    background: var(--border);
}

/* ========================================================================== */
/* ========================== 7. BARBERO CON FOTO =========================== */
/* ========================================================================== */

.barber-info-with-photo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.barber-photo {
    width: 55px;
    height: 55px;
    border-radius: 12px !important;
    object-fit: cover;
    border: none;
    background: var(--bg-secondary);
}

.barber-photo-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 12px !important;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: none;
}

#admin-agenda-barber-photo {
    width: 55px;
    height: 55px;
    border-radius: 12px !important;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#admin-agenda-barber-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-details {
    flex: 1;
}

.barber-details label {
    display: block;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.barber-details p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ========================================================================== */
/* ========================== 8. CALENDARIO MENSUAL ========================= */
/* ========================================================================== */

.calendar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-header h2 {
    font-size: 18px;
    color: var(--accent);
}

.month-nav {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.month-nav:hover {
    background: var(--accent);
    color: #000000;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: var(--text-primary);
}

.calendar-day:hover:not(.empty):not(.disabled) {
    background: var(--accent);
    color: #000000;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: var(--accent);
    color: #000000;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--accent);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.available {
    background: linear-gradient(135deg, #1a5c1a, #0d3b0d);
    color: #ffffff;
}

.calendar-day.fully-booked {
    background: linear-gradient(135deg, #5c1a1a, #3b0d0d);
    color: #ffffff;
    opacity: 0.8;
}

.slot-indicator {
    position: absolute;
    bottom: 4px;
    font-size: 8px;
    color: var(--success);
    animation: pulse 1.5s infinite;
}

.theme-light .calendar-day.available {
    background: linear-gradient(135deg, #90EE90, #32CD32);
    color: #1a1a1a;
}

.theme-light .calendar-day.fully-booked {
    background: linear-gradient(135deg, #FFB6C1, #FF6B6B);
    color: #1a1a1a;
}

/* ========================================================================== */
/* ========================== 9. SERVICIOS ================================== */
/* ========================================================================== */

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.service-card.selected {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden; /* Para que la imagen no se salga */
}
.services-grid-admin {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}
.service-details {
    flex: 1;
}

.service-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.service-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--accent);
}

.service-price {
    font-weight: bold;
}

/* ========================================================================== */
/* ========================== 10. HORARIOS ================================== */
/* ========================================================================== */

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.schedule-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.schedule-slot:hover:not(.booked) {
    background: var(--accent);
    color: #000000;
    transform: translateY(-2px);
}

.schedule-slot.booked {
    opacity: 0.4;
    cursor: not-allowed;
}

.slot-time {
    font-size: 14px;
    font-weight: 600;
}

.slot-status {
    font-size: 10px;
    margin-top: 4px;
}
.schedule-slot.past {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-secondary);
    border-color: var(--danger);
}
.schedule-slot.past .slot-status {
    color: var(--danger);
}
/* ========================================================================== */
/* ========================== 11. APPOINTMENTS ============================== */
/* ========================================================================== */

.appointments-history {
    margin-top: 20px;
}

.section-title-reservas {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.appointment-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    gap: 15px;
    flex-wrap: wrap;
}

.appointment-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding-right: 15px;
    border-right: 1px solid var(--border);
}

.appointment-day {
    font-size: 14px;
    font-weight: bold;
}

.appointment-time {
    font-size: 12px;
    color: var(--accent);
}

.appointment-info {
    flex: 1;
}

.appointment-service {
    font-weight: 600;
}

.appointment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-confirmed {
    background: var(--success);
    color: white;
}

.status-completed {
    background: #3498db;
    color: white;
}

.status-cancelled {
    background: var(--danger);
    color: white;
}

.status-no-show {
    background: #ff9800;
    color: white;
}

/* ========================================================================== */
/* ========================== 12. ADMIN TABS ================================ */
/* ========================================================================== */


.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    background: transparent;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 0;
}

/* Modo oscuro - tabs */
.theme-dark .tab-btn {
    background: transparent;
    color: #aaaaaa;
}

.theme-dark .tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.theme-dark .tab-btn.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

/* Modo claro - tabs */
.theme-light .tab-btn {
    background: transparent;
    color: #666666;
}

.theme-light .tab-btn:hover {
    color: #333333;
    background: rgba(0, 0, 0, 0.05);
    transform: none;
}

.theme-light .tab-btn.active {
    color: var(--accent);
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid var(--accent);
}

.tab-btn .material-symbols-rounded {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.theme-dark .tab-btn.active .material-symbols-rounded,
.theme-light .tab-btn.active .material-symbols-rounded {
    color: var(--accent);
}

/* Responsive para tabs - más compacto en móvil */
@media (max-width: 767px) {
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .tab-btn .material-symbols-rounded {
        font-size: 16px;
    }
}

/* Para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================================================== */
/* ========================== 13. ADMIN CARDS =============================== */
/* ========================================================================== */

.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 16px;
}

/* ========================================================================== */
/* ========================== 14. ADMIN APPOINTMENTS ======================== */
/* ========================================================================== */

.admin-appointment-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

.appointment-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.appointment-actions button:hover {
    transform: scale(1.05);
}

.complete-btn {
    background: var(--warning);
    color: #000;
}

.btn-delete {
    background: var(--danger);
    color: white;
}

.btn-bill {
    background: var(--success);
    color: white;
}

/* ========================================================================== */
/* ========================== 15. MODALES =================================== */
/* ========================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
    color: var(--accent);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--danger);
}



.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.modal-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.modal-input {
    min-height: 80px;
    resize: vertical;
}

.btn-confirm-danger {
    background: var(--danger);
    color: white;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-confirm {
    background: var(--accent);
    color: #000000;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================================================== */
/* ========================== 16. TOAST ===================================== */
/* ========================================================================== */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1100;
    white-space: nowrap;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
}

/* ========================================================================== */
/* ========================== 17. CLIENTES, PRODUCTOS, CATEGORÍAS =========== */
/* ========================================================================== */

.clients-grid, .products-grid, .categories-grid, .exceptions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.client-card, .product-card, .category-card, .exception-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.client-name, .product-name, .category-name {
    font-weight: 600;
}

.client-phone, .product-price, .product-stock {
    font-size: 12px;
    color: var(--text-secondary);
}

.stock-low {
    color: var(--danger);
    font-weight: bold;
}

.action-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.action-btn.edit {
    background: var(--warning);
    color: #000;
}

.action-btn.delete {
    background: var(--danger);
    color: white;
}

/* ========================================================================== */
/* ========================== 18. CLIENT SEARCH ============================= */
/* ========================================================================== */

.client-search-results div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.client-search-results div:hover {
    background: var(--accent);
    color: #000000;
}

/* ========================================================================== */
/* ========================== 19. NOTE INDICATOR ============================ */
/* ========================================================================== */

.note-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    margin-left: 8px;
}

.note-bubble {
    visibility: hidden;
    width: 200px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    border: 1px solid var(--accent);
    pointer-events: none;
}

.note-indicator:hover .note-bubble {
    visibility: visible;
    opacity: 1;
}

/* ========================================================================== */
/* ========================== 20. BILLING =================================== */
/* ========================================================================== */

.billing-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px dashed var(--border);
}

.bill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.bill-item.extra {
    color: var(--accent);
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-top: 20px;
    border: 1px solid var(--accent);
}

.total-section span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.btn-add-extra {
    background: var(--accent);
    border: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    padding: 0;
}

.btn-add-extra:hover {
    transform: scale(1.05);
}

.remove-extra-bill {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
}

/* ========================================================================== */
/* ========================== 21. TAB AGENDAR =============================== */
/* ========================================================================== */

.admin-agendar-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-agendar-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.admin-agendar-section-header {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-agendar-section-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--accent);
}

.admin-agendar-section-header .material-symbols-rounded {
    font-size: 22px;
}



.admin-client-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}



#admin-selected-client-info {
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* ========================================================================== */
/* ========================== 22. BOTONES ESPECIALES ======================== */
/* ========================================================================== */

.add-client-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: var(--accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.add-client-icon .material-symbols-rounded {
    font-size: 24px !important;
    color: #000000 !important;
    margin: 0 !important;
}

.add-client-icon:hover {
    transform: scale(1.05) !important;
    background: var(--accent-hover) !important;
}

.back-btn-iphone {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.back-btn-iphone:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) !important;
}

.back-btn-iphone .material-symbols-rounded {
    font-size: 24px !important;
    margin: 0 !important;
}

.btn-cancel-form {
    transition: all 0.2s ease;
}

.btn-cancel-form:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ========================================================================== */
/* ========================== 23. CALENDAR VIEW TOGGLER ===================== */
/* ========================================================================== */

.calendar-view-toggle {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 4px;
    border: 1px solid var(--border);
}

.view-toggle-btn {
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.view-toggle-btn.active {
    background: var(--accent);
    color: #000000;
}

.view-toggle-btn:hover:not(.active) {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ========================================================================== */
/* ========================== 24. VISTA SEMANAL ============================= */
/* ========================================================================== */
/* ========================================================================== */
/* ========================== 24. VISTA SEMANAL ============================= */
/* ========================================================================== */

/* Estilos base (escritorio por defecto) */
#admin-weekly-calendar {
    overflow: visible;
}

.weekly-slots-container {
    overflow: visible;
    margin-top: 15px;
}

.week-day-header {
    display: grid;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    width: 100%;
    border: 1px solid var(--border);
}

.week-time-column {
    font-weight: 700;
    color: var(--accent);
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
}

.week-day-cell {
    text-align: center;
    padding: 10px 5px;
    font-weight: 600;
    font-size: 11px;
    border-left: 1px solid var(--border);
    color: var(--text-primary);
}

.week-day-cell strong {
    font-size: 12px;
    display: block;
    color: var(--accent);
}

.week-day-cell small {
    font-size: 10px;
    color: var(--text-secondary);
}

.week-row {
    display: grid;
    gap: 2px;
    min-height: 55px;
    width: 100%;
}

.week-hour-label {
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.week-slot {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid var(--border);
}

.week-slot-time {
    font-size: 10px;
    font-weight: 600;
    color: inherit;
}

.week-slot-status {
    font-size: 8px;
    white-space: nowrap;
    font-weight: 500;
}

/* Ocultar vista horizontal en móviles */
@media (max-width: 768px) {
    .week-day-header,
    .week-row:not(.mobile-week-row) {
        display: none !important;
    }
}

/* ==================== VISTA SEMANAL MÓVIL ==================== */
.mobile-week-view {
    display: none;
}

@media (max-width: 768px) {
    .mobile-week-view {
        display: block !important;
    }
    
    .mobile-day-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .mobile-day-header {
        background: var(--bg-secondary);
        padding: 16px;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }
    
    .mobile-day-header .day-name {
        font-size: 18px;
        font-weight: 700;
        color: var(--accent);
    }
    
    .mobile-day-header .day-date {
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 4px;
    }
    
    .mobile-day-slots {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .mobile-slot-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--bg-secondary);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-slot-item:active {
        transform: scale(0.98);
    }
    
    .mobile-slot-time {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .mobile-slot-status {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 500;
    }
    
    /* Estados móviles */
    .mobile-slot-item.available {
        background: linear-gradient(135deg, #1a5c1a, #0d3b0d);
        border-color: #2a7c2a;
    }
    .mobile-slot-item.available .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #90EE90;
    }
    
    .mobile-slot-item.reserved {
        background: linear-gradient(135deg, #5c4a1a, #3d2e0d);
        border-color: #8a6a2a;
    }
    .mobile-slot-item.reserved .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #FFD700;
    }
    
    .mobile-slot-item.completed {
        background: linear-gradient(135deg, #1a3a5c, #0d2a3d);
        border-color: #2a5a8a;
    }
    .mobile-slot-item.completed .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #87CEEB;
    }
    
    .mobile-slot-item.no-show {
        background: linear-gradient(135deg, #5c1a1a, #3d0d0d);
        border-color: #8a2a2a;
    }
    .mobile-slot-item.no-show .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #FFB6C1;
    }
    
    .mobile-slot-item.cancelled {
        background: #4a4a4a;
        border-color: #666666;
        opacity: 0.6;
    }
    .mobile-slot-item.cancelled .mobile-slot-status {
        background: rgba(255,255,255,0.1);
        color: #cccccc;
    }
    
    .mobile-slot-item.past {
        background: var(--bg-secondary);
        border-color: var(--border);
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .mobile-no-slots {
        text-align: center;
        padding: 30px;
        color: var(--text-secondary);
        font-size: 14px;
    }
    
    /* Leyenda móvil */
    .week-legend {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
        padding: 12px;
        background: var(--bg-secondary);
        border-radius: var(--radius-sm);
        justify-content: center;
    }
    
    .legend-item {
        font-size: 10px;
        gap: 4px;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
        border-radius: 3px;
    }
}

/* Modo claro móvil */
@media (max-width: 768px) {
    .theme-light .mobile-slot-item.available {
        background: linear-gradient(135deg, #90EE90, #32CD32);
    }
    .theme-light .mobile-slot-item.available .mobile-slot-time,
    .theme-light .mobile-slot-item.available .mobile-slot-status {
        color: #1a1a1a;
    }
    
    .theme-light .mobile-slot-item.reserved {
        background: linear-gradient(135deg, #FFD700, #DAA520);
    }
    .theme-light .mobile-slot-item.reserved .mobile-slot-time,
    .theme-light .mobile-slot-item.reserved .mobile-slot-status {
        color: #1a1a1a;
    }
    
    .theme-light .mobile-slot-item.completed {
        background: linear-gradient(135deg, #87CEEB, #4682B4);
    }
    .theme-light .mobile-slot-item.completed .mobile-slot-time,
    .theme-light .mobile-slot-item.completed .mobile-slot-status {
        color: #1a1a1a;
    }
    
    .theme-light .mobile-slot-item.no-show {
        background: linear-gradient(135deg, #FFB6C1, #FF6B6B);
    }
    .theme-light .mobile-slot-item.no-show .mobile-slot-time,
    .theme-light .mobile-slot-item.no-show .mobile-slot-status {
        color: #1a1a1a;
    }
}

/* Escritorio (>768px) */
@media (min-width: 769px) {
    .week-day-header {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .week-row {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .week-time-column {
        font-size: 13px;
    }
    
    .week-hour-label {
        font-size: 11px;
    }
    
    .week-day-cell {
        font-size: 12px;
        padding: 10px;
    }
    
    .week-day-cell strong {
        font-size: 13px;
    }
    
    .week-slot {
        min-height: 60px;
    }
    
    .week-slot-time {
        font-size: 11px;
    }
    
    .week-slot-status {
        font-size: 9px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Ocultar vista horizontal de escritorio */
    .week-day-header,
    .week-row {
        display: none !important;
    }
    
    /* Mostrar contenedor móvil */
    .weekly-slots-container {
        display: block !important;
    }
    
    .mobile-day-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .mobile-day-header {
        background: var(--bg-secondary);
        padding: 16px;
        border-bottom: 1px solid var(--border);
        text-align: center;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .mobile-day-header .day-name {
        font-size: 18px;
        font-weight: 700;
        color: var(--accent);
    }
    
    .mobile-day-header .day-date {
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 4px;
    }
    
    .mobile-day-slots {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 450px;
        overflow-y: auto;
    }
    
    .mobile-slot-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--bg-secondary);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-slot-item:active {
        transform: scale(0.98);
    }
    
    .mobile-slot-time {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .mobile-slot-status {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 500;
    }
    
    /* Estados móviles - TODOS visibles */
    .mobile-slot-item.available {
        background: linear-gradient(135deg, #1a5c1a, #0d3b0d);
        border-color: #2a7c2a;
    }
    .mobile-slot-item.available .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #90EE90;
    }
    
    .mobile-slot-item.reserved {
        background: linear-gradient(135deg, #5c4a1a, #3d2e0d);
        border-color: #8a6a2a;
    }
    .mobile-slot-item.reserved .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #FFD700;
    }
    
    .mobile-slot-item.completed {
        background: linear-gradient(135deg, #1a3a5c, #0d2a3d);
        border-color: #2a5a8a;
    }
    .mobile-slot-item.completed .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #87CEEB;
    }
    
    .mobile-slot-item.no-show {
        background: linear-gradient(135deg, #5c1a1a, #3d0d0d);
        border-color: #8a2a2a;
    }
    .mobile-slot-item.no-show .mobile-slot-status {
        background: rgba(255,255,255,0.15);
        color: #FFB6C1;
    }
    
    .mobile-slot-item.cancelled {
        background: #4a4a4a;
        border-color: #666666;
        opacity: 0.6;
    }
    .mobile-slot-item.cancelled .mobile-slot-status {
        background: rgba(255,255,255,0.1);
        color: #cccccc;
    }
    
    .mobile-slot-item.past {
        background: var(--bg-secondary);
        border-color: var(--border);
        opacity: 0.6;
    }
    .mobile-slot-item.past .mobile-slot-status {
        color: var(--text-secondary);
    }
    
    .mobile-no-slots {
        text-align: center;
        padding: 30px;
        color: var(--text-secondary);
        font-size: 14px;
    }
}

/* ========================================================================== */
/* ========================== 25. RESPONSIVE (BASE) ========================= */
/* ========================================================================== */

/* Móvil pequeño - Login */
@media (max-width: 480px) {
    .login-card-neon {
        padding: 30px 20px;
    }
    
    .logo-area .barber-icon {
        width: 100px;
        height: 100px;
    }
    
    .logo-area {
        margin-bottom: 25px;
    }
    
    .barber-logo-img img {
        max-width: 70%;
    }
    
    .input-neon input {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .btn-neon {
        padding: 14px;
        font-size: 14px;
    }
}



@media (max-width: 767px) {
    .info-card {
        flex-direction: column;
    }
    
    .info-divider {
        width: 100%;
        height: 1px;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        font-size: 14px;
    }
    
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .appointment-card {
        flex-direction: column;
        text-align: center;
    }
    
    .appointment-date {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
    }
    
    .admin-tabs {
        gap: 6px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .toast {
        white-space: normal;
        max-width: 90%;
        text-align: center;
    }
    
    .admin-client-selector {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .admin-client-selector .admin-client-search-wrapper {
        flex: 1 !important;
    }
    
    .add-client-icon {
        flex-shrink: 0 !important;
    }
    
    #admin-tab-clientes .btn-neon,
    #admin-tab-productos .btn-neon,
    #admin-tab-categorias .btn-neon,
    #admin-tab-stock .btn-neon,
    #admin-tab-config .btn-neon,
    #admin-tab-horarios .btn-neon,
    #admin-tab-reportes .btn-neon {
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
        padding: 12px 20px !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .dashboard-container {
        max-width: 95%;
        padding: 20px;
    }
    
    .calendar-grid {
        gap: 10px;
    }
    
    .calendar-day {
        aspect-ratio: 1;
        font-size: 15px;
        font-weight: 500;
    }
    
    .schedule-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        max-height: 400px;
        overflow-y: auto;
        padding: 5px;
    }
    
    .schedule-slot {
        padding: 12px 6px;
    }
    
    .slot-time {
        font-size: 13px;
    }
    
    .info-card {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding: 20px 25px;
    }
    
    .info-item {
        justify-content: center;
    }
    
    .info-divider {
        width: 1px;
        height: auto;
    }
    
    .modal-content {
        max-width: 550px;
        width: 90%;
    }
    
    .modal-body {
        max-height: 65vh;
    }
    
    .schedule-grid {
        max-height: 450px;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .clients-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .btn-add-extra {
        width: 42px;
        height: 42px;
        min-width: 42px;
        max-width: 42px;
    }
    
    #admin-agenda-slots-container {
        margin-top: 20px;
    }
    
    #admin-agenda-slots-grid {
        max-height: 350px;
        overflow-y: auto;
    }
}

/* Escritorio */
@media (min-width: 1024px) {
    .dashboard-container {
        max-width: 1000px !important;
        padding: 30px 20px !important;
        margin: 0 auto !important;
    }
    
    .calendar-grid {
        gap: 10px;
    }
    
    .calendar-day {
        font-size: 15px;
        min-width: 45px;
    }
    
    .schedule-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 10px !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        padding: 5px !important;
    }
    
    .schedule-slot {
        padding: 12px 6px !important;
    }
    
    .slot-time {
        font-size: 13px !important;
    }
    
    .info-card {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        padding: 20px 25px !important;
    }
    
    .info-item {
        justify-content: center !important;
    }
    
    .info-divider {
        width: 1px !important;
        height: auto !important;
    }
    
    .modal-content {
        max-width: 500px !important;
        width: 90% !important;
    }
    
    .modal-body {
        max-height: 65vh !important;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .clients-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .btn-add-extra {
        width: 42px;
        height: 42px;
        min-width: 42px;
        max-width: 42px;
    }
    
    #admin-agenda-slots-container {
        margin-top: 20px;
    }
    
    #admin-agenda-slots-grid {
        max-height: 350px;
        overflow-y: auto;
    }
    
    .btn-neon {
        width: auto !important;
        min-width: 200px !important;
        max-width: 300px !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        display: inline-block !important;
        margin: 0 auto !important;
    }
    
    .admin-card .btn-neon {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .tab-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .appointment-actions button {
        width: 32px !important;
        height: 32px !important;
    }
    
    .appointment-actions button .material-symbols-rounded {
        font-size: 18px !important;
    }
    
    .back-btn-iphone {
        width: 36px !important;
        height: 36px !important;
    }
    
    .back-btn-iphone .material-symbols-rounded {
        font-size: 20px !important;
    }
    
    .add-client-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .add-client-icon .material-symbols-rounded {
        font-size: 20px !important;
    }
    
    .month-nav {
        padding: 6px 12px !important;
        font-size: 14px !important;
    }
    
    .btn-cancel, .btn-confirm {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .action-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }
    
    .btn-add-extra {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        font-size: 18px !important;
    }
    
    .icon-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    .icon-btn .material-symbols-rounded {
        font-size: 20px !important;
    }
    
    .header-actions .btn-neon {
        width: auto !important;
        padding: 8px 16px !important;
    }
}

/* Pantalla grande */
@media (min-width: 1440px) {
    .dashboard-container {
        max-width: 1100px !important;
    }
    
    .calendar-grid {
        gap: 12px;
    }
    
    .calendar-day {
        font-size: 16px;
    }
}

/* ========================================================================== */
/* ========================== 26. RESPONSIVE VISTA SEMANAL ================== */
/* ========================================================================== */

/* Escritorio */
@media (min-width: 1200px) {
    .week-day-header {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .week-row {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .week-time-column {
        font-size: 13px;
    }
    
    .week-hour-label {
        font-size: 11px;
    }
    
    .week-day-cell {
        font-size: 12px;
        padding: 10px;
    }
    
    .week-day-cell strong {
        font-size: 13px;
    }
    
    .week-slot {
        min-height: 60px;
    }
    
    .week-slot-time {
        font-size: 11px;
    }
    
    .week-slot-status {
        font-size: 9px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .week-day-header {
        grid-template-columns: 70px repeat(7, 1fr);
    }
    
    .week-row {
        grid-template-columns: 70px repeat(7, 1fr);
    }
    
    .week-time-column {
        font-size: 11px;
        padding: 8px 4px;
    }
    
    .week-hour-label {
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .week-day-cell {
        font-size: 10px;
        padding: 8px 3px;
    }
    
    .week-day-cell strong {
        font-size: 11px;
    }
    
    .week-day-cell small {
        font-size: 9px;
    }
    
    .week-slot {
        min-height: 50px;
    }
    
    .week-slot-time {
        font-size: 9px;
    }
    
    .week-slot-status {
        font-size: 8px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .week-day-header {
        grid-template-columns: 55px repeat(7, 1fr);
    }
    
    .week-row {
        grid-template-columns: 55px repeat(7, 1fr);
    }
    
    .week-time-column {
        font-size: 9px;
        padding: 8px 3px;
    }
    
    .week-hour-label {
        font-size: 8px;
        padding: 6px 2px;
    }
    
    .week-day-cell {
        font-size: 8px;
        padding: 8px 2px;
    }
    
    .week-day-cell strong {
        font-size: 9px;
    }
    
    .week-day-cell small {
        font-size: 7px;
    }
    
    .week-slot {
        min-height: 45px;
        padding: 3px;
    }
    
    .week-slot-time {
        font-size: 8px;
    }
    
    .week-slot-status {
        font-size: 7px;
        white-space: nowrap;
    }
    
    .week-legend {
        gap: 10px;
        padding: 8px;
    }
    
    .legend-item {
        font-size: 9px;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
}

/* Móvil muy pequeño */
@media (max-width: 380px) {
    .week-day-header {
        grid-template-columns: 50px repeat(7, 1fr);
    }
    
    .week-row {
        grid-template-columns: 50px repeat(7, 1fr);
    }
    
    .week-time-column {
        font-size: 8px;
        padding: 6px 2px;
    }
    
    .week-hour-label {
        font-size: 7px;
        padding: 5px 1px;
    }
    
    .week-day-cell {
        font-size: 7px;
        padding: 6px 1px;
    }
    
    .week-day-cell strong {
        font-size: 8px;
    }
    
    .week-slot {
        min-height: 40px;
    }
    
    .week-slot-time {
        font-size: 7px;
    }
    
    .week-slot-status {
        font-size: 6px;
    }
}

/* ========================================================================== */
/* ========================== 27. SCROLLBAR ================================= */
/* ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ========================================================================== */
/* ========================== 28. EXIT CONFIRM BOX ========================== */
/* ========================================================================== */

#exit-confirm-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

#exit-confirm-box > div {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 320px;
    width: 85%;
    text-align: center;
}

#exit-confirm-box .modal-body-custom {
    padding: 24px 20px;
}

#exit-confirm-box h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

#exit-confirm-box p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

#exit-confirm-box .btn-group {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px 20px;
}

#exit-cancel-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

#exit-confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-xl);
    border: none;
    background: var(--danger);
    color: white;
    cursor: pointer;
}

/* ========================================================================== */
/* ========================== 29. VISTA RÁPIDA ============================== */
/* ========================================================================== */

#quick-view-modal .modal-content {
    max-width: 400px;
}

#quick-view-edit-btn {
    background: var(--warning);
    color: #000;
}

#quick-view-edit-btn:hover {
    background: #e67e22;
}

/* ========================================================================== */
/* ========================== 30. MODAL CITAS DEL DÍA ======================= */
/* ========================================================================== */

.day-appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-appointment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}

.day-appointment-item:hover {
    background: var(--card-bg);
    transform: translateX(5px);
    border-color: var(--accent);
}

.day-appointment-time {
    min-width: 85px;
    text-align: center;
}

.time-badge {
    font-weight: bold;
    font-size: 14px;
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.time-end {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.day-appointment-info {
    flex: 1;
}

.day-appointment-client {
    font-weight: 600;
    margin-bottom: 4px;
}

.client-phone {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: normal;
}

.day-appointment-service {
    font-size: 12px;
    color: var(--text-secondary);
}

.day-appointment-note {
    font-size: 11px;
    color: var(--accent);
    margin-top: 4px;
    font-style: italic;
}

.day-appointment-status {
    min-width: 100px;
    text-align: right;
}

.day-appointment-status .status-confirmed,
.day-appointment-status .status-completed,
.day-appointment-status .status-cancelled,
.day-appointment-status .status-no-show {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
}

/* Responsive para móvil */
@media (max-width: 767px) {
    .day-appointment-item {
        flex-direction: column;
        text-align: center;
    }
    
    .day-appointment-time {
        min-width: auto;
    }
    
    .day-appointment-status {
        text-align: center;
    }
    
    .day-appointment-status span {
        display: inline-block;
    }
}
/* ========================================================================== */
/* ========================== BOTONES HORARIOS ============================== */
/* ========================================================================== */

/* Sobrescribir solo los botones dentro de admin-tab-horarios */
#admin-tab-horarios .btn-neon {
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
}

/* Asegurar que los contenedores no centren los botones */
#admin-tab-horarios .form-group {
    text-align: left !important;
}

/* Estilo para botón cancelar en horarios */
#admin-tab-horarios .btn-cancel-form {
    width: auto !important;
    min-width: 120px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    margin: 0 !important;
}
/* ========================================================================== */
/* ========================== BOTONES DE REPORTES =========================== */
/* ========================================================================== */

.btn-report {
    background: var(--accent);
    color: #000000;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.btn-report:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modo claro */
.theme-light .btn-report {
    background: var(--accent);
    color: #ffffff;
}

/* Responsive para móvil */
@media (max-width: 767px) {
    .btn-report {
        width: 100%;
        min-width: unset;
        padding: 12px 20px;
    }
    
    #admin-tab-reportes .admin-card div {
        flex-direction: column;
    }
}
/* Estilos para resumen de factura */
.invoice-summary {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-total {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-lime);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--accent-lime);
}

.invoice-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.client-detail-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
}

.client-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.client-detail-label {
    font-weight: bold;
    color: var(--accent);
}

.badge-paid {
    background: #2ecc71;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
/* Modificaciones para que los estados se sientan clickeables en la vista semanal */
.week-slot.completed,
.week-slot.no-show,
.week-slot.cancelled,
.week-slot.past,
.mobile-slot-item.completed,
.mobile-slot-item.no-show,
.mobile-slot-item.cancelled {
    cursor: pointer !important;
    transition: transform 0.15s ease, filter 0.15s ease;
}

/* Efecto sutil al pasar el mouse por encima (Hover) */
.week-slot.completed:hover,
.week-slot.no-show:hover,
.week-slot.cancelled:hover,
.mobile-slot-item.completed:active,
.mobile-slot-item.no-show:active,
.mobile-slot-item.cancelled:active {
    filter: brightness(1.15); /* Brilla un poco más al pasar el cursor o tocar */
    transform: scale(1.01);    /* Crece un milímetro dándole un efecto interactivo */
}
.btn-refresh-agenda {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Esto lo hace circular */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0; /* Importante para que el icono se centre bien */
}

.btn-refresh-agenda:hover {
    background: var(--accent-lime);
    color: #000;
    border-color: var(--accent-lime);
    transform: rotate(180deg); /* Animación al actualizar */
}

.btn-refresh-agenda .material-symbols-rounded {
    font-size: 20px; /* Tamaño del icono dentro del círculo */
}
/* ========================================================================== */
/* ========================== MEJORAS EN PRODUCTOS ========================= */
/* ========================================================================== */

.product-card {
    align-items: flex-start !important; /* Forzar alineación superior */
    gap: 12px;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    word-break: break-word;
    white-space: normal;
    margin-bottom: 6px;
}

.product-meta {
    flex-wrap: wrap;
    gap: 8px;
}

.product-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-actions .action-btn {
    min-width: 70px;
    text-align: center;
}

/* Para pantallas muy pequeñas, si es necesario, los botones se apilan */
@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
        gap: 6px;
    }
    .product-actions .action-btn {
        min-width: 60px;
    }
}

/* ========================================================================== */
/* ========================== BOTONES DE HEADER CON TEXTO =================== */
/* ========================================================================== */
/* ========================================================================== */
/* ========================== BOTONES HEADER (CÍRCULO + TEXTO) ============== */
/* ========================================================================== */

/* El botón es solo un contenedor flexible, sin fondo ni borde */
.header-actions .icon-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    min-width: 60px;
    padding: 0 !important;
    cursor: pointer;
    transition: var(--transition);
}

/* El ícono se convierte en un círculo con fondo y borde */
.header-actions .icon-btn .material-symbols-rounded {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50% !important;
    font-size: 24px;
    color: var(--text-primary);
    transition: var(--transition);
    margin: 0 !important;
}

/* Texto debajo del círculo */
.header-actions .btn-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* Hover: cambia el color del círculo y el texto */
.header-actions .icon-btn:hover .material-symbols-rounded {
    background: var(--accent);
    border-color: var(--accent);
    color: #000000;
}

.header-actions .icon-btn:hover .btn-text {
    color: var(--accent);
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .header-actions .icon-btn {
        min-width: 54px;
    }
    .header-actions .icon-btn .material-symbols-rounded {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .header-actions .btn-text {
        font-size: 9px;
    }
}

/* ========================================================================== */
/* ========================== NOTA EN TARJETAS CLIENTE ====================== */
/* ========================================================================== */
.appointment-note {
    font-size: 12px;
    color: var(--accent);
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.theme-light .appointment-note {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: var(--accent);
}
/* Transición suave para el ícono de tema */
.header-actions .icon-btn .material-symbols-rounded {
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Pequeño efecto al hacer clic */
.header-actions .icon-btn:active .material-symbols-rounded {
    transform: rotate(15deg) scale(0.95);
}
/* ========================================================================== */
/* ========================== TARJETA DE FIDELIDAD ========================== */
/* ========================================================================== */

.loyalty-card {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.loyalty-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.loyalty-header .material-symbols-rounded {
    font-size: 28px;
    color: var(--accent-lime);
}

.loyalty-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--accent);
}

.loyalty-body p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.loyalty-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.loyalty-steps .step {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.loyalty-steps .step.active {
    background: var(--accent-lime);
    border-color: var(--accent-lime);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(46,204,113,0.5);
}

.progress-bar-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    margin: 15px 0;
}

/* Colores dinámicos para la barra de progreso según racha */
.progress-bar.level-0 { background: #555555; width: 0%; }
.progress-bar.level-1 { background: #FFD966; width: 25%; }
.progress-bar.level-2 { background: #F39C12; width: 50%; }
.progress-bar.level-3 { background: #2ECC71; width: 75%; }
.progress-bar.level-4 { background: #27AE60; width: 100%; }

/* Aseguramos transición suave al cambiar de ancho y color */
.progress-bar {
    transition: width 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1), background-color 0.3s ease;
}

.loyalty-message {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    padding: 8px;
    border-radius: 20px;
    background: rgba(46,204,113,0.1);
    color: var(--accent-lime);
}

@media (max-width: 480px) {
    .loyalty-steps .step {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
.loyalty-steps .step .material-symbols-rounded {
    font-size: 24px;
    color: inherit;
    transition: all 0.2s;
}

.loyalty-steps .step.active .material-symbols-rounded {
    color: #000;
}
/* ========== NOVEDADES (BURBUJA) ========== */
.notifications-bubble {
    position: relative;
    display: inline-block;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-panel {
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    max-height: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-weight: bold;
}

.notif-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}

.notifications-list {
    max-height: 290px;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
}

.notification-item h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--accent);
}

.notification-item p {
    margin: 0;
    font-size: 12px;
    color: var(--text-primary);
}

.notification-item .notif-date {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: block;
}

.notification-item.info { border-left: 3px solid #3498db; }
.notification-item.success { border-left: 3px solid #2ecc71; }
.notification-item.warning { border-left: 3px solid #f39c12; }
.notification-item.promo { border-left: 3px solid #e67e22; }

@media (max-width: 480px) {
    .notifications-panel {
        width: 260px;
        right: -10px;
    }
}
/* ========== TOAST FLOTANTE PARA NOVEDADES ========== */
.floating-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 320px;
    z-index: 1100;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease;
}

.floating-toast .toast-icon {
    font-size: 24px;
}

.floating-toast .toast-content {
    flex: 1;
}

.floating-toast .toast-title {
    font-weight: bold;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 4px;
}

.floating-toast .toast-message {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.floating-toast .toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}