@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype"),
        url("/assets/fonts/NunitoSans/NunitoSans-Italic-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("truetype");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Nunito Sans", sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #FFFFF0;
    min-height: 100vh;
}

/* =========== LAYOUT PRINCIPAL =========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 65px;
}

.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* =========== MENÚ LATERAL =========== */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-menu-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #2A2A2A;
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.user-menu-card:hover {
    transform: translateY(-2px);
}

.user-menu-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(178, 34, 34, 0.3), 
        rgba(255, 140, 0, 0.2), 
        rgba(178, 34, 34, 0.3));
    border-radius: 21px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-menu-card:hover::before {
    opacity: 0.08;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2A2A2A;
}

.user-name {
    color: #FFFFF0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.user-email {
    color: #828282;
    font-size: 0.9rem;
}

.user-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #FFFFF0;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(42, 42, 42, 0.6);
    border-color: #2A2A2A;
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(178, 34, 34, 0.15);
    border-color: rgba(178, 34, 34, 0.5);
    color: rgba(255, 140, 0, 0.8);
}

.nav-item.active:hover {
    background: rgba(178, 34, 34, 0.2);
    border-color: rgba(178, 34, 34, 0.7);
    color: rgba(255, 140, 0, 0.9);
}

.nav-item.logout {
    color: #FF6B6B;
    margin-top: 1rem;
}

.nav-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #FF6B6B;
}

/* =========== MENÚ MÓVIL =========== */
.mobile-menu-toggle {
    display: none;
    position: relative;
    margin-bottom: 1.5rem;
}

.mobile-menu-btn {
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #FFFFF0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
}

.mobile-menu-btn:hover {
    border-color: #B22222;
    background: rgba(42, 42, 42, 0.8);
}

.mobile-user-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid #2A2A2A;
    border-top: none;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(20px);
    z-index: 100;
    overflow: hidden;
}

.mobile-user-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-user-nav .nav-item {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #2A2A2A;
}

.mobile-user-nav .nav-item:last-child {
    border-bottom: none;
}

.mobile-user-nav .nav-item:hover {
    transform: none;
    background: rgba(42, 42, 42, 0.8);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========== CONTENIDO PRINCIPAL =========== */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #2A2A2A;
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(178, 34, 34, 0.15);
}

.content-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(178, 34, 34, 0.3), 
        rgba(255, 140, 0, 0.2), 
        rgba(178, 34, 34, 0.3));
    border-radius: 21px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 0.08;
}

.page-title {
    color: #FFFFF0;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FFFFF0 0%, rgba(178, 34, 34, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1.5rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(178, 34, 34, 0.4) 20%, 
        rgba(255, 140, 0, 0.3) 50%, 
        rgba(178, 34, 34, 0.4) 80%, 
        transparent 100%);
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(178, 34, 34, 0.2);
}

.page-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    width: 50%;
    height: 7px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 140, 0, 0.15) 50%, 
        transparent 100%);
    border-radius: 50%;
    filter: blur(3px);
    z-index: -1;
}

/* =========== TOGGLE DE DEMO (SIN DECORACIÓN) =========== */
.demo-toggle-checkbox {
    display: none;
}

.demo-toggle-label {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid #2A2A2A;
    border-radius: 5px;
    color: #828282;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.demo-toggle-label:hover {
    background: rgba(42, 42, 42, 0.8);
    color: #FFFFF0;
}

/* =========== FILTROS DE CITAS =========== */
.appointment-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #2A2A2A;
    border-radius: 10px;
    color: #FFFFF0;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.filter-btn:hover {
    background: rgba(42, 42, 42, 1);
    border-color: rgba(178, 34, 34, 0.5);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(178, 34, 34, 0.15);
    border-color: rgba(178, 34, 34, 0.5);
    color: rgba(255, 140, 0, 0.8);
}

.filter-btn.active:hover {
    background: rgba(178, 34, 34, 0.2);
    border-color: rgba(178, 34, 34, 0.7);
    color: rgba(255, 140, 0, 0.9);
}

/* =========== SECCIONES DE CITAS =========== */
.appointments-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #FFFFF0;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2A2A2A;
}

/* =========== LISTA DE CITAS =========== */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.appointment-card {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid #2A2A2A;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.appointment-card:hover {
    border-color: rgba(178, 34, 34, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.appointment-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(178, 34, 34, 0.1), 
        rgba(255, 140, 0, 0.05), 
        rgba(178, 34, 34, 0.1));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.appointment-card:hover::before {
    opacity: 1;
}

.appointment-date {
    min-width: 200px;
    max-width: 200px;
    padding-right: 1.5rem;
    border-right: 1px solid #2A2A2A;
    flex-shrink: 0;
}

.date-main {
    color: #FFFFF0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.date-time {
    color: rgba(255, 140, 0, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.appointment-service {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.service-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    flex: 1;
}

.service-name {
    color: #FFFFF0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-duration,
.service-price,
.service-barber {
    color: #828282;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-barber {
    color: rgba(255, 140, 0, 0.8);
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    background: transparent;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFF0;
    padding: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.action-btn i {
    font-size: 1.2rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
    pointer-events: none;
}

.action-btn:active::after {
    width: 40px;
    height: 40px;
    top: 0;
    left: 0;
}

.cancel-btn {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.cancel-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.postpone-btn {
    border-color: rgba(255, 140, 0, 0.6);
    color: rgba(255, 140, 0, 0.8);
}

.postpone-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.8);
    color: rgba(255, 140, 0, 1);
}

.completed-badge {
    background: rgba(0, 170, 0, 0.1);
    border: 1px solid rgba(0, 170, 0, 0.3);
    border-radius: 8px;
    color: rgba(0, 170, 0, 0.8);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-badge.no-show,
.completed-badge.no-show {
    background-color: #ff6b6b;
    color: white;
    border: 1px solid #ff5252;
}

.status-badge.no-show i,
.completed-badge.no-show i {
    color: white;
}

.appointment-card .status-badge.no-show {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    font-weight: 600;
}

/* =========== ESTADO VACÍO =========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #2A2A2A;
    border-radius: 15px;
    background: rgba(42, 42, 42, 0.3);
    margin: 1rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: #2A2A2A;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #FFFFF0;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #828282;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

.book-appointment-btn {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    border: none;
    border-radius: 10px;
    color: #FFFFF0;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.book-appointment-btn:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.8) 0%, rgba(178, 34, 34, 0.8) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(178, 34, 34, 0.3);
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

.loading-state:before {
    content: "⏳";
    margin-right: 8px;
}

/* =========== MODALES =========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid #2A2A2A;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-title {
    color: #FFFFF0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFF0 0%, #B22222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-message {
    color: #828282;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.modal-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    color: #FFFFF0;
}

.modal-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.8) 0%, rgba(178, 34, 34, 0.8) 100%);
    transform: translateY(-1px);
}

.modal-btn.cancel {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #2A2A2A;
    color: #FFFFF0;
}

.modal-btn.cancel:hover {
    background: rgba(42, 42, 42, 1);
    border-color: #B22222;
    transform: translateY(-2px);
}

.modal-success .modal-title {
    background: linear-gradient(135deg, #FFFFF0 0%, rgba(0, 170, 0, 0.8) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-success .modal-btn.confirm {
    background: linear-gradient(135deg, rgba(0, 170, 0, 0.9) 0%, rgba(0, 119, 0, 0.9) 100%);
}

.modal-success .modal-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.8) 0%, rgba(0, 170, 0, 0.8) 100%);
}

.modal-info .modal-title {
    background: linear-gradient(135deg, #FFFFF0 0%, rgba(0, 136, 255, 0.8) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-info .modal-btn.confirm {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
}

.modal-info .modal-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.8) 0%, rgba(0, 136, 255, 0.8) 100%);
}

/* =========== FOTO DE PERFIL =========== */
.user-profile-picture {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    cursor: pointer;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A2A2A 0%, #1a1a1a 100%);
    border: 3px solid #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-icon {
    font-size: 3rem;
    color: #828282;
    transition: all 0.3s ease;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-edit-icon {
    font-size: 2rem;
    color: #FFFFF0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.user-profile-picture:hover .profile-image-container {
    border-color: rgba(178, 34, 34, 0.7);
    box-shadow: 0 0 20px rgba(178, 34, 34, 0.3);
}

.user-profile-picture:hover .profile-image {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.user-profile-picture:hover .profile-icon {
    color: rgba(255, 140, 0, 0.8);
    transform: scale(1.1);
}

.user-profile-picture:hover .profile-image-overlay {
    opacity: 1;
}

.user-profile-picture:hover .profile-edit-icon {
    transform: scale(1);
}

.profile-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
    pointer-events: none;
}

.user-profile-picture.active .profile-image-container::after {
    width: 120px;
    height: 120px;
    top: -60px;
    left: -60px;
}

.profile-image.loading {
    opacity: 0.5;
}

.profile-image.error {
    filter: grayscale(1);
}

/* =========== FOTO DE PERFIL RESPONSIVE =========== */
.mobile-profile-section {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2A2A2A;
}

.mobile-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.mobile-profile-picture {
    width: 180px;
    height: 180px;
    cursor: pointer;
}

.mobile-user-details {
    text-align: center;
}

.mobile-user-name {
    color: #FFFFF0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.mobile-user-email {
    color: #828282;
    font-size: 1rem;
    display: block;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .user-menu-card {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .right-column {
        order: 1;
    }
    
    .mobile-profile-section {
        display: block;
        padding: 2rem 0;
    }
    
    .mobile-user-email {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .mobile-menu-toggle {
        margin-top: 1rem;
    }
    
    .appointment-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .appointment-date {
        min-width: auto;
        max-width: none;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #2A2A2A;
        padding-bottom: 1rem;
        width: 100%;
    }
    
    .appointment-service {
        width: 100%;
    }
    
    .appointment-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .demo-toggle-label {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card:hover {
        transform: translateY(-2px);
    }
    
    .page-title {
        font-size: 1.7rem;
    }
    
    .page-title::after {
        height: 2px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(178, 34, 34, 0.3) 20%, 
            rgba(255, 140, 0, 0.2) 50%, 
            rgba(178, 34, 34, 0.3) 80%, 
            transparent 100%);
    }
    
    .page-title::before {
        height: 5px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 140, 0, 0.1) 50%, 
            transparent 100%);
    }
    
    .appointment-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.8rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .user-name {
        font-size: 1.3rem;
    }
    
    .nav-item {
        padding: 0.8rem 1rem;
    }
    
    .appointment-card {
        padding: 1rem;
    }
    
    .service-image {
        width: 50px;
        height: 50px;
    }
    
    .service-name {
        font-size: 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .mobile-profile-picture {
        width: 160px;
        height: 160px;
    }
    
    .mobile-user-name {
        font-size: 1.4rem;
    }
    
    .mobile-profile-picture .profile-icon {
        font-size: 3.5rem;
    }
    
    .mobile-profile-picture .profile-edit-icon {
        font-size: 2.2rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0.8rem 0.6rem;
    }
    
    .content-card {
        padding: 0.8rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .mobile-profile-picture {
        width: 140px;
        height: 140px;
    }
    
    .mobile-user-name {
        font-size: 1.3rem;
    }
    
    .mobile-profile-picture .profile-icon {
        font-size: 3rem;
    }
    
    .mobile-profile-picture .profile-edit-icon {
        font-size: 2rem;
    }
}

/* =========== FILTROS AVANZADOS =========== */
.advanced-filters {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid #2A2A2A;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advanced-filters:hover {
    border-color: rgba(178, 34, 34, 0.3);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filters-header:hover {
    background: rgba(42, 42, 42, 0.8);
}

.filters-title {
    color: #FFFFF0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-title i {
    color: rgba(255, 140, 0, 0.8);
    font-size: 1.2rem;
}

.toggle-filters-btn {
    background: transparent;
    border: none;
    color: #828282;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem;
    border-radius: 5px;
}

.toggle-filters-btn:hover {
    color: #FFFFF0;
    background: rgba(42, 42, 42, 0.8);
}

.filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.5rem;
}

.filters-content.active {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2A2A2A;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group-title {
    color: #FFFFF0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.8) 0%, rgba(255, 140, 0, 0.8) 100%);
    border-radius: 2px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    flex: 1;
    min-width: 120px;
}

.filter-option:hover {
    background: rgba(42, 42, 42, 0.8);
}

.filter-option input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #2A2A2A;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.filter-option input:checked + .checkmark {
    background: rgba(178, 34, 34, 0.8);
    border-color: rgba(178, 34, 34, 0.8);
}

.filter-option input:checked + .checkmark::after {
    content: '✓';
    color: #FFFFF0;
    font-size: 0.8rem;
    font-weight: bold;
}

.filter-label {
    color: #FFFFF0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========== FILTRO DE PRECIO =========== */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    gap: 1rem;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    color: #828282;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.price-input input {
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFF0;
    padding: 0.7rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.price-input input:focus {
    border-color: rgba(178, 34, 34, 0.5);
    outline: none;
}

.price-slider {
    position: relative;
    height: 5px;
    margin: 1.5rem 0 0.5rem;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    width: 100%;
    background: #2A2A2A;
    border-radius: 3px;
}

.range-min,
.range-max {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 5px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-min::-webkit-slider-thumb,
.range-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(178, 34, 34, 0.9);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #FFFFF0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.range-min::-moz-range-thumb,
.range-max::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: rgba(178, 34, 34, 0.9);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #FFFFF0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* =========== FILTRO DE FECHA =========== */
.date-filters {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.date-filter-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.date-filter-option:hover {
    background: rgba(42, 42, 42, 0.8);
}

.date-filter-option input {
    display: none;
}

.date-filter-option label {
    color: #FFFFF0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.date-filter-option label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #2A2A2A;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.date-filter-option input:checked + label::before {
    background: rgba(178, 34, 34, 0.8);
    border-color: rgba(178, 34, 34, 0.8);
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.2);
}

.date-filter-option input:checked + label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #FFFFF0;
    border-radius: 50%;
}

.custom-date-range {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    border: 1px solid #2A2A2A;
}

.date-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-input label {
    color: #828282;
    font-size: 0.8rem;
    font-weight: 500;
}

.date-input input {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFF0;
    padding: 0.7rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.date-input input:focus {
    border-color: rgba(178, 34, 34, 0.5);
    outline: none;
}

/* =========== FILTROS DE BARBERO Y SERVICIO =========== */
.barber-filter,
.service-filter {
    width: 100%;
}

.barber-filter select,
.service-filter select {
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFF0;
    padding: 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.barber-filter select:focus,
.service-filter select:focus {
    border-color: rgba(178, 34, 34, 0.5);
    outline: none;
}

.barber-filter select option,
.service-filter select option {
    background: #1a1a1a;
    color: #FFFFF0;
    padding: 0.5rem;
}

/* =========== ACCIONES DE FILTROS =========== */
.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-action-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.apply-filters {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    color: #FFFFF0;
}

.apply-filters:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.8) 0%, rgba(178, 34, 34, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 34, 34, 0.3);
}

.reset-filters {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #2A2A2A;
    color: #FFFFF0;
}

.reset-filters:hover {
    background: rgba(42, 42, 42, 1);
    border-color: #B22222;
    transform: translateY(-2px);
}

/* =========== RESPONSIVE PARA FILTROS =========== */
@media (max-width: 1024px) {
    .filter-options {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .filter-option {
        min-width: auto;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .filters-header {
        padding: 1rem;
    }
    
    .filters-content {
        padding: 0 1rem;
    }
    
    .filters-content.active {
        padding: 0 1rem 1rem;
    }
    
    .filter-group {
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }
    
    .custom-date-range {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .filters-header {
        padding: 0.8rem;
    }
    
    .filters-title {
        font-size: 1rem;
    }
    
    .filters-content {
        padding: 0 0.8rem;
    }
    
    .filters-content.active {
        padding: 0 0.8rem 0.8rem;
    }
    
    .filter-group-title {
        font-size: 0.9rem;
    }
    
    .filter-label,
    .date-filter-option label {
        font-size: 0.85rem;
    }
    
    .price-input input,
    .date-input input,
    .barber-filter select,
    .service-filter select {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .filter-action-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* =========== FILTROS AVANZADOS =========== */
.advanced-filters {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid #2A2A2A;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advanced-filters:hover {
    border-color: rgba(178, 34, 34, 0.3);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filters-header:hover {
    background: rgba(42, 42, 42, 0.8);
}

.filters-title {
    color: #FFFFF0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-title i {
    color: rgba(255, 140, 0, 0.8);
    font-size: 1.2rem;
}

.toggle-filters-btn {
    background: transparent;
    border: none;
    color: #828282;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem;
    border-radius: 5px;
}

.toggle-filters-btn:hover {
    color: #FFFFF0;
    background: rgba(42, 42, 42, 0.8);
}

.filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.5rem;
}

.filters-content.active {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2A2A2A;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group-title {
    color: #FFFFF0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}