/* =====================================================
   PUBLIC.CSS - Syom Barbería
   Rediseño estilo "app móvil" navy + dorado
   ===================================================== */

:root {
    --gold: #f4a825;
    --gold-light: #ffc857;
    --gold-dark: #c9861a;

    --navy-0: #05070d;
    --navy-1: #0a0e1a;
    --navy-2: #0f1526;
    --navy-3: #141b30;

    --dark-1: var(--navy-1);
    --dark-2: var(--navy-2);
    --dark-3: var(--navy-3);
    --dark-card: #121a2e;

    --black: var(--navy-0);
    --text-light: #f5f6fa;
    --text-muted: #8992a6;

    --border-gold: rgba(244, 168, 37, 0.32);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --shadow-gold: rgba(244, 168, 37, 0.28);

    --green: #22c55e;
    --blue: #3b82f6;
    --red: #ef4444;
    --warning: #ffc107;

    /* Colores específicos del autoservicio */
    --deep-navy: #1a1d23;
    --charcoal: #2C3539;
    --light-gold: #F4E4B8;
    --success: #28a745;
    --danger: #dc3545;
    --ocupado: #f8d7da;
    --ocupado-border: #f5c6cb;
    --ocupado-text: #721c24;
    --confirmado: #d4edda;
    --confirmado-border: #c3e6cb;
    --confirmado-text: #155724;

    --font-title: 'Poppins', sans-serif;
    --font-mono-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--navy-1);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img, video { max-width: 100%; display: block; }

/* VIDEO DE FONDO */
.video-fondo {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,7,13,0.80) 0%, rgba(5,7,13,0.62) 40%, rgba(5,7,13,0.92) 100%);
    z-index: -1;
}

.public-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse at top, #131c33 0%, #05070d 68%);
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particles span {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.35;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* MENSAJES TOAST */
.message-container {
    position: fixed;
    top: 90px; right: 20px;
    z-index: 3000;
    display: flex; flex-direction: column; gap: 10px;
    max-width: calc(100vw - 40px);
}

.toast-msg {
    background: var(--dark-card);
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
    display: flex; align-items: center; gap: 10px;
    animation: toast-in 0.3s ease;
    max-width: 320px;
}

.toast-msg.success { border-color: var(--green); }
.toast-msg.error   { border-color: var(--red); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ALERTAS INLINE */
.alerta-error, .alerta-exito {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-family: var(--font-mono-title);
    font-weight: 500;
    font-size: 14px;
}

.alerta-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--red);
    color: #ff9d9d;
}

.alerta-exito {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid var(--green);
    color: #6ee6a0;
}

/* HEADER */
.public-header {
    position: sticky; top: 0;
    z-index: 1500;
    height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    background: rgba(6, 9, 17, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}

.public-logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    color: var(--navy-0);
    font-size: 17px;
    box-shadow: 0 0 14px var(--shadow-gold);
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-light);
    letter-spacing: 1.5px;
}

.logo-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: var(--font-mono-title);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
}

.btn-header.btn-ingresar {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--navy-0);
}

.btn-header.btn-ingresar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-gold);
}

.btn-header.btn-autoreserva {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.btn-header.btn-autoreserva:hover { background: rgba(244, 168, 37, 0.1); }

/* INICIO CON VIDEO */
.inicio-main {
    min-height: calc(100vh - var(--header-height));
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px 60px;
    position: relative;
    z-index: 2;
}

.hero-inicio {
    text-align: center;
    max-width: 620px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title-inicio {
    font-family: var(--font-title);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9);
    margin-bottom: 18px;
}

.hero-title-inicio span {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(244, 168, 37, 0.55);
}

.hero-tagline-inicio {
    font-size: 17px;
    color: var(--text-muted);
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
    margin-bottom: 36px;
}

.hero-buttons-inicio {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-gold-inicio, .btn-outline-inicio {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono-title);
    font-weight: 600;
    font-size: 15px;
    padding: 16px 34px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.btn-gold-inicio {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--navy-0);
    box-shadow: 0 8px 30px rgba(244, 168, 37, 0.35);
}

.btn-gold-inicio:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(244, 168, 37, 0.55);
}

.btn-outline-inicio {
    background: rgba(10, 14, 26, 0.55);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(8px);
}

.btn-outline-inicio:hover {
    background: rgba(244, 168, 37, 0.12);
    transform: translateY(-4px) scale(1.02);
}

/* GRID DE ACCESOS RAPIDOS */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}

.quick-action-item {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 16px;
    background: rgba(18, 26, 46, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.quick-action-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    background: rgba(244, 168, 37, 0.08);
}

.quick-action-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(244, 168, 37, 0.14);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.quick-action-item span {
    font-family: var(--font-mono-title);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}

.hero-stats-inicio {
    display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
    padding: 26px;
    background: rgba(18, 26, 46, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    max-width: 620px;
    margin: 0 auto;
}

.stat-inicio { text-align: center; }

.stat-number-inicio {
    display: block;
    font-family: var(--font-title);
    font-size: 34px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(244, 168, 37, 0.45);
}

.stat-label-inicio {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-inicio {
    position: relative;
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    z-index: 2;
}

/* LAYOUT */
.app-layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--header-height));
}

.app-layout > main { flex: 1; min-width: 0; }

/* SIDEBAR */
.sidebar-public {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    background: var(--navy-1);
    border-right: 1px solid var(--border-subtle);
    display: flex; flex-direction: column;
    padding: 24px 16px;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

.sidebar-link {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono-title);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-link i { width: 20px; text-align: center; color: var(--gold); }

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(244, 168, 37, 0.12);
    color: var(--text-light);
}

.sidebar-link.active { border: 1px solid var(--border-gold); }

/* FOOTER MOVIL */
.footer-public { display: none; }

/* RESPONSIVE HOME */
@media (min-width: 901px) {
    .quick-actions-grid { grid-template-columns: repeat(4, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
    .sidebar-public { display: none; }

    .hero-title-inicio { font-size: 36px; }
    .hero-tagline-inicio { font-size: 15px; }
    .hero-buttons-inicio { gap: 12px; flex-direction: column; }
    .btn-gold-inicio, .btn-outline-inicio { padding: 15px 26px; font-size: 14px; justify-content: center; width: 100%; }
    .hero-stats-inicio { gap: 22px; padding: 18px; }
    .stat-number-inicio { font-size: 26px; }

    .header-actions .btn-header span { display: none; }
    .header-actions .btn-header { padding: 10px 14px; }

    .footer-public {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 66px;
        background: rgba(8, 11, 20, 0.96);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--border-subtle);
        z-index: 1500;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
    }

    .footer-link {
        display: flex; flex-direction: column; align-items: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 10px;
        font-family: var(--font-mono-title);
        font-weight: 500;
        flex: 1;
        padding: 8px 0;
        background: transparent;
        border: none;
        border-radius: 14px;
        transition: all 0.25s ease;
    }

    .footer-link i { font-size: 17px; transition: transform 0.25s ease; }

    .footer-link:hover { color: var(--gold); }

    .footer-link.active {
        color: var(--gold);
        font-weight: 700;
        background: rgba(244, 168, 37, 0.14);
    }

    .footer-link.active i {
        transform: translateY(-2px);
    }

    .inicio-main { padding-bottom: 90px; }
}

@media (max-width: 480px) {
    .hero-title-inicio { font-size: 30px; }
    .logo-subtitle { display: none; }
    .hero-stats-inicio { gap: 16px; }
    .stat-number-inicio { font-size: 22px; }
    .stat-label-inicio { font-size: 10px; }
    .quick-actions-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .quick-action-item { padding: 13px; }
}


/* =====================================================
   MODAL RESERVA - Integrado desde autoservicio.php
   ===================================================== */

.reserva-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.96);
    backdrop-filter: blur(8px);
    z-index: 4000;
    display: none;
    padding: 20px;
    overflow-y: auto;
}

.reserva-overlay.open { display: block; }

.reserva-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.reserva-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--danger), #c82333);
    color: white;
    border: 2px solid white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reserva-close:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Botón fullscreen dentro del modal */
.btn-fullscreen {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fullscreen:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6);
}

.btn-fullscreen.exit {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
}

.btn-fullscreen.exit:hover {
    box-shadow: 0 8px 35px rgba(220, 53, 69, 0.6);
}

.btn-fullscreen .tooltip-fs {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: var(--deep-navy);
    color: var(--light-gold);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    white-space: nowrap;
    border: 1px solid var(--gold);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.btn-fullscreen:hover .tooltip-fs {
    opacity: 1;
}

/* Modo fullscreen */
body.fullscreen-mode {
    padding: 0 !important;
    background: #1a1d23 !important;
}

body.fullscreen-mode .reserva-container {
    max-width: 100% !important;
    padding: 10px !important;
}

body.fullscreen-mode .tabla-barberos-horarios {
    font-size: 0.7rem !important;
}

body.fullscreen-mode .tabla-barberos-horarios th,
body.fullscreen-mode .tabla-barberos-horarios td {
    padding: 3px 4px !important;
    min-width: 60px !important;
}

body.fullscreen-mode .tabla-barberos-horarios .hora-label {
    min-width: 50px !important;
    font-size: 0.65rem !important;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--charcoal) 100%);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark), var(--gold));
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    font-weight: 700;
}

.header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    color: var(--light-gold);
    margin-top: 5px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Form container */
.form-container {
    background: linear-gradient(135deg, #ffffff, #f8f5f0);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.form-section { display: none; }
.form-section.active { display: block; animation: fadeInUp 0.5s ease-out forwards; }

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--deep-navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.section-title i { color: var(--gold); }

.section-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.5;
}

.error-border { border-color: var(--danger) !important; }

/* Cliente grid */
.cliente-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cliente-card {
    background: white;
    border: 2px solid var(--light-gold);
    border-radius: 14px;
    padding: 25px;
    transition: all 0.3s ease;
}

.cliente-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--deep-navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.cliente-card-title i { color: var(--gold); }

.form-group { margin-bottom: 15px; }

.form-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--deep-navy);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--light-gold);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--charcoal);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 3px;
    min-height: 20px;
}

/* Búsqueda cliente */
.cliente-search { position: relative; }

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0; right: 0;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-results.active { display: block; }

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gold);
}

.search-result-item:hover { background: var(--light-gold); }
.search-result-name { font-weight: 600; color: var(--deep-navy); }
.search-result-phone { font-size: 0.85rem; color: #666; }

.hidden { display: none !important; }

.cliente-seleccionado-box {
    background: #d4edda;
    border: 2px solid var(--success);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cliente-seleccionado-box .icono {
    font-size: 2rem;
    color: var(--success);
}

.btn-cambiar {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--success);
    color: var(--success);
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-cambiar:hover { background: var(--success); color: white; }

/* Tabla barberos-horarios */
.tabla-wrapper {
    overflow-x: auto;
    margin-bottom: 10px;
    border-radius: 12px;
}

.tabla-barberos-horarios {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-width: 700px;
}

.tabla-barberos-horarios thead {
    background: linear-gradient(135deg, var(--deep-navy), var(--charcoal));
}

.tabla-barberos-horarios th {
    padding: 12px 6px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 700;
}

.tabla-barberos-horarios th .barbero-th-nombre {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 3px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.tabla-barberos-horarios th .barbero-th-citas {
    font-size: 0.6rem;
    color: var(--light-gold);
    font-weight: 400;
    display: block;
}

.tabla-barberos-horarios td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #eee;
    vertical-align: middle;
    font-size: 0.75rem;
    min-height: 40px;
    min-width: 70px;
}

.tabla-barberos-horarios tbody tr:hover { background: rgba(244, 228, 184, 0.3); }

.tabla-barberos-horarios .hora-label {
    font-weight: 600;
    color: var(--deep-navy);
    background: #f9f9f9;
    white-space: nowrap;
    font-size: 0.75rem;
    min-width: 60px;
    text-align: center;
    border-right: 2px solid var(--gold);
    position: sticky;
    left: 0;
    z-index: 2;
}

.tabla-barberos-horarios .hora-label span {
    display: block;
    font-weight: 400;
    font-size: 0.6rem;
    color: #999;
}

.celda-libre {
    background: #d4edda;
    color: #155724;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.celda-libre:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
    z-index: 3;
}

.celda-libre .estado-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
}

.celda-libre .estado-texto i { font-size: 0.9rem; }
.celda-libre .estado-texto .sub-texto { font-size: 0.55rem; opacity: 0.7; }

.celda-ocupada {
    background: var(--ocupado);
    color: var(--ocupado-text);
    cursor: not-allowed !important;
    position: relative;
    border-left: 3px solid var(--danger);
    border-right: 3px solid var(--danger);
    pointer-events: none;
}

.celda-ocupada .info-cita {
    font-size: 0.6rem;
    line-height: 1.2;
    padding: 2px;
}

.celda-ocupada .info-cita .cliente-nombre {
    font-weight: 700;
    font-size: 0.65rem;
    color: #721c24;
}

.celda-ocupada .info-cita .servicio-nombre {
    font-size: 0.55rem;
    opacity: 0.8;
    color: #721c24;
}

.celda-ocupada .info-cita .estado-cita {
    font-size: 0.5rem;
    padding: 1px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2px;
    font-weight: 600;
}

.celda-ocupada .info-cita .hora-cita {
    font-size: 0.6rem;
    font-weight: 600;
    color: #721c24;
    display: block;
    margin-bottom: 1px;
}

.celda-confirmada {
    background: var(--confirmado);
    color: var(--confirmado-text);
    cursor: not-allowed !important;
    position: relative;
    border-left: 3px solid var(--success);
    border-right: 3px solid var(--success);
    pointer-events: none;
}

.celda-confirmada .info-cita {
    font-size: 0.6rem;
    line-height: 1.2;
    padding: 2px;
}

.celda-confirmada .info-cita .cliente-nombre {
    font-weight: 700;
    font-size: 0.65rem;
    color: #155724;
}

.celda-confirmada .info-cita .servicio-nombre {
    font-size: 0.55rem;
    opacity: 0.8;
    color: #155724;
}

.celda-confirmada .info-cita .estado-cita {
    font-size: 0.5rem;
    padding: 1px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2px;
    font-weight: 600;
    background: #d4edda;
    color: #155724;
}

.celda-confirmada .info-cita .hora-cita {
    font-size: 0.6rem;
    font-weight: 600;
    color: #155724;
    display: block;
    margin-bottom: 1px;
}

.estado-pendiente { background: #fff3cd; color: #856404; }
.estado-confirmada { background: #d4edda; color: #155724; }
.estado-completada { background: #cce5ff; color: #004085; }

.celda-bloque-ocupado {
    background: #f5c6cb !important;
    color: #721c24 !important;
    cursor: not-allowed !important;
    position: relative;
    border-left: 3px solid var(--danger);
    border-right: 3px solid var(--danger);
    pointer-events: none;
    opacity: 0.7;
}

.celda-bloque-ocupado .info-cita {
    font-size: 0.55rem;
    line-height: 1.1;
    padding: 2px;
}

.celda-bloque-ocupado .info-cita .cliente-nombre {
    font-weight: 700;
    font-size: 0.6rem;
    color: #721c24;
}

.celda-bloque-ocupado .info-cita .hora-cita {
    font-size: 0.55rem;
    font-weight: 600;
    color: #721c24;
    display: block;
}

.celda-seleccionada {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    z-index: 3;
    position: relative;
    cursor: pointer !important;
}

.celda-seleccionada .estado-texto i { color: white; }
.celda-seleccionada .estado-texto .sub-texto { color: rgba(255, 255, 255, 0.8); }

.celda-pasado {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed !important;
    pointer-events: none;
}

.leyenda {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    justify-content: center;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--charcoal);
}

.leyenda-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.leyenda-color.libre { background: #d4edda; }
.leyenda-color.ocupada { background: var(--ocupado); border-color: var(--danger); }
.leyenda-color.confirmada { background: var(--confirmado); border-color: var(--success); }
.leyenda-color.bloque { background: #f5c6cb; border-color: var(--danger); }
.leyenda-color.pasado { background: #e9ecef; }
.leyenda-color.seleccionada { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }

.fecha-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.fecha-controls .form-label { margin: 0; color: var(--deep-navy); }
.fecha-controls .form-control { width: auto; max-width: 200px; }

.btn-fecha {
    padding: 8px 18px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: transparent;
    color: var(--charcoal);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-fecha:hover { background: var(--gold); color: white; }

#fechaMostrada {
    font-weight: 600;
    color: var(--deep-navy);
    font-size: 0.95rem;
    min-width: 150px;
}

/* Servicios */
.servicios-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.servicios-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.servicios-list::-webkit-scrollbar { width: 6px; }
.servicios-list::-webkit-scrollbar-track { background: var(--light-gold); border-radius: 10px; }
.servicios-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

.servicio-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 2px solid var(--light-gold);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.servicio-item:hover {
    transform: translateX(4px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.servicio-item.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--light-gold), #fff);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.servicio-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.servicio-item-info { flex: 1; }

.servicio-item-nombre {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--deep-navy);
    font-weight: 600;
}

.servicio-item-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.servicio-item-precio {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

.servicio-desc-panel {
    background: linear-gradient(135deg, var(--deep-navy), var(--charcoal));
    border-radius: 14px;
    padding: 25px;
    color: var(--light-gold);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.servicio-desc-placeholder {
    text-align: center;
    color: rgba(244, 228, 184, 0.5);
}

.servicio-desc-placeholder i {
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.servicio-desc-placeholder p { font-size: 1rem; }

.servicio-desc-content { animation: fadeInUp 0.4s ease-out; }

.servicio-desc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 700;
}

.servicio-desc-meta {
    font-size: 0.9rem;
    color: var(--light-gold);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.servicio-desc-meta span { display: flex; align-items: center; gap: 6px; }

.servicio-desc-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ece3cf;
}

.servicio-desc-text .empty-desc {
    color: rgba(244, 228, 184, 0.5);
    font-style: italic;
}

/* Horario seleccionado info */
.horario-seleccionado-info {
    background: linear-gradient(135deg, var(--light-gold), #fff);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.horario-seleccionado-info .icono {
    font-size: 1.5rem;
    color: var(--gold);
}

.horario-seleccionado-info .info-text { flex: 1; }

.horario-seleccionado-info .info-text .hora {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--deep-navy);
    font-weight: 700;
}

.horario-seleccionado-info .info-text .fecha {
    color: #666;
    font-size: 0.85rem;
}

.horario-seleccionado-info .info-text .barbero-info {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.horario-seleccionado-info .btn-cambiar-horario {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--charcoal);
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.horario-seleccionado-info .btn-cambiar-horario:hover {
    background: var(--gold);
    color: white;
}

.no-horario-seleccionado {
    text-align: center;
    padding: 20px;
    color: #999;
    margin-top: 15px;
}

.no-horario-seleccionado i {
    font-size: 2rem;
    color: var(--light-gold);
    display: block;
    margin-bottom: 10px;
}

/* Pago */
.pago-container {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.pago-monto {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.qr-image {
    width: 100%;
    max-width: 280px;
    border-radius: 14px;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.pago-nota-advertencia {
    background: #f8d7da;
    border: 2px solid var(--danger);
    color: #721c24;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-align: left;
}

.pago-nota-continuar {
    background: #fff3cd;
    border: 2px solid #856404;
    color: #856404;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    text-align: left;
}

/* Confirmación */
.confirmacion-container {
    text-align: center;
    padding: 40px 20px;
}

.confirmacion-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.confirmacion-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--deep-navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.confirmacion-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

.confirmacion-detalles {
    background: var(--light-gold);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 25px;
}

.confirmacion-detalles .detalle-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.confirmacion-detalles .detalle-item:last-child { border-bottom: none; }

.detalle-label { color: #666; font-weight: 600; }
.detalle-value { color: var(--deep-navy); font-weight: 700; }

/* Botones nav */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--light-gold);
}

.btn-nav {
    padding: 12px 30px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--charcoal);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-nav.prev { background: transparent; color: var(--charcoal); }
.btn-nav.prev:hover { background: var(--light-gold); }

.btn-nav.next {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border-color: var(--gold);
}

.btn-nav.next:hover {
    background: linear-gradient(135deg, #e5c158, #c4a032);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-nav.next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-finalizar {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-finalizar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Toast */
.toast-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 320px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--deep-navy), var(--charcoal));
    border: 2px solid var(--gold);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    z-index: 5000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-notification.show { transform: translateX(0); }

.toast-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-notification.exito .toast-icon {
    background: linear-gradient(135deg, var(--success), #20c997);
    color: white;
}

.toast-notification.error .toast-icon {
    background: linear-gradient(135deg, var(--danger), #c82333);
    color: white;
}

.toast-content { flex: 1; }

.toast-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 5px;
    font-weight: 700;
}

.toast-message { color: var(--light-gold); font-size: 0.95rem; }

.toast-close {
    color: var(--gold);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.toast-close:hover { transform: scale(1.2); color: white; }

/* Responsive reserva */
@media (max-width: 900px) {
    .cliente-grid { grid-template-columns: 1fr; gap: 15px; }

    .servicios-layout { grid-template-columns: 1fr; }

    .servicio-desc-panel { min-height: auto; padding: 20px; }

    .tabla-barberos-horarios { font-size: 0.65rem; min-width: 500px; }
    .tabla-barberos-horarios th,
    .tabla-barberos-horarios td { padding: 4px 3px; min-width: 50px; }
    .tabla-barberos-horarios .hora-label { font-size: 0.6rem; min-width: 40px; }
    .tabla-barberos-horarios th .barbero-th-nombre { font-size: 0.7rem; }

    .nav-buttons { flex-direction: column; }
    .btn-nav { width: 100%; text-align: center; }

    .toast-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
    }

    .fecha-controls { flex-direction: column; align-items: stretch; }
    .fecha-controls .form-control { max-width: 100%; }

    .leyenda { gap: 10px; font-size: 0.7rem; }

    .btn-fullscreen {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .reserva-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.1rem; }
    .servicio-item { padding: 10px 12px; }
    .servicio-item-nombre { font-size: 0.85rem; }
    body.fullscreen-mode .tabla-barberos-horarios { font-size: 0.55rem !important; }
}