/* ==========================================================================
   Horario Duo - Minimalist Aesthetic Style System (Non-Neon, Soft & Cute)
   ========================================================================== */

/* 1. Theme Variables & Design Tokens */
:root {
    --font-primary: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    
    /* Default: Theme Pink (Soft Pastel Blossom / Aesthetic Warm Blush) */
    --bg-app: #faf5f4;
    --bg-card: #ffffff;
    --bg-sidebar: #f5ecea;
    --text-main: #2b2224;
    --text-muted: #756367;
    --text-light: #a49195;
    --border-main: #ecdcd9;
    --border-light: #f4eaee;
    --shadow-xs: 0 1px 3px rgba(80, 50, 60, 0.04);
    --shadow-sm: 0 4px 14px rgba(90, 50, 60, 0.05);
    --shadow-md: 0 10px 25px rgba(90, 50, 60, 0.08);
    --shadow-lg: 0 20px 40px rgba(90, 50, 60, 0.12);
    --accent: #d86c80;
    --accent-hover: #c2576b;
    --accent-light: #fae8eb;
    --accent-rgb: 216, 108, 128;
    
    /* Avatar Tags */
    --color-boy: #3b71ca;
    --color-girl: #d86c80;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-white {
    --bg-app: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-main: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --accent: #475569;
    --accent-hover: #334155;
    --accent-light: #f1f5f9;
    --accent-rgb: 71, 85, 105;
}

body.theme-dark {
    --bg-app: #0f1117;
    --bg-card: #181b24;
    --bg-sidebar: #13161f;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border-main: #242a38;
    --border-light: #1c212e;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --accent: #e28598;
    --accent-hover: #f095a8;
    --accent-light: #2c2128;
    --accent-rgb: 226, 133, 152;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    line-height: 1.45;
    font-size: 14px;
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar Navigation (Desktop only) */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    flex-shrink: 0;
    transition: var(--transition-base);
    z-index: 10;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.logo-icon-heart {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin: 14px 0 6px 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background-color: var(--border-light);
    color: var(--text-main);
}

.nav-btn.active {
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
}

/* Sidebar Theme Switcher Box */
.theme-switcher-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 6px;
}

.theme-switcher-box label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-buttons-row {
    display: flex;
    gap: 4px;
}

.btn-theme-select {
    flex: 1;
    border: 1px solid transparent;
    background: var(--bg-app);
    color: var(--text-muted);
    padding: 6px 0;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-theme-select:hover {
    color: var(--text-main);
    border-color: var(--border-main);
}

.btn-theme-select.active {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.25);
}

/* Sync Box & Badge */
.sync-pin-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.sync-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #94a3b8;
}

.sync-badge.online {
    color: #15803d;
}

.sync-badge.online::before {
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.sync-badge.offline {
    color: #b91c1c;
}

.sync-badge.offline::before {
    background-color: #ef4444;
}

/* Sidebar User Session Chip */
.sidebar-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 10px;
}

.chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent);
}

.chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.chip-label {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.chip-username {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-main);
}

/* Main Area Layout */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 36px;
    height: 100vh;
    overflow-y: auto;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.couple-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.avatar-tag {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.avatar-tag.boy {
    background-color: rgba(59, 113, 202, 0.1);
    color: var(--color-boy);
}

.avatar-tag.girl {
    background-color: rgba(216, 108, 128, 0.12);
    color: var(--color-girl);
}

.heart-separator {
    font-size: 12px;
    color: var(--text-light);
}

h1, #title-main {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Tab Views */
.tab-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tab-view.hidden {
    display: none !important;
}

.transition-fade {
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Sub-tabs for Schedules (Javi / Mari / ESAVE) */
.schedule-subtabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.subtab-btn {
    padding: 7px 16px;
    border: 1px solid var(--border-main);
    background-color: var(--bg-card);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.subtab-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

.subtab-btn.active {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
}

/* Schedule Grid Base */
.schedule-card-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    padding: 16px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.schedule-grid-container {
    display: grid;
    grid-template-columns: 60px repeat(5, minmax(130px, 1fr));
    position: relative;
    border-radius: var(--radius-sm);
    min-width: 740px;
    flex-grow: 1;
}

.grid-header-cell {
    padding: 12px 6px;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    border-bottom: 1.5px solid var(--border-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-body {
    grid-column: 1 / -1;
    position: relative;
    height: 780px; /* 13 hours (07:00 to 20:00) * 60px */
}

/* Live Current Time Line */
.current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    z-index: 25;
    pointer-events: none;
    opacity: 0.85;
}

.current-time-dot {
    position: absolute;
    left: 55px;
    top: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.5);
}

.grid-header-cell.today-column-header {
    background-color: var(--accent-light);
    color: var(--accent);
    border-bottom: 2.5px solid var(--accent);
    font-weight: 800;
}

.grid-hour-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.grid-hour-label {
    width: 60px;
    text-align: right;
    padding-right: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
}

.grid-day-col-line {
    position: absolute;
    top: 0;
    bottom: 0;
    border-right: 1px solid var(--border-light);
    pointer-events: none;
}

/* Class Card (Clean Minimalist Schedule Card) */
.class-card {
    position: absolute;
    border-radius: var(--radius-md);
    padding: 8px 10px;
    border: 1px solid;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.class-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.class-card.owner-he {
    border-left: 3.5px solid var(--color-boy);
}

.class-card.owner-she {
    border-left: 3.5px solid var(--color-girl);
}

.class-name {
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1.25;
}

.class-details {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 500;
}

.class-prof {
    font-size: 9.5px;
    font-weight: 600;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-card-prof,
.attendance-card-prof {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.class-time {
    margin-top: auto;
    font-size: 9.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Muted Pastel, Non-Neon Subject Color Tags */
.color-sky { 
    background-color: #f0f7ff; 
    color: #1d4ed8; 
    border-color: #bae0fd; 
}
.color-amber { 
    background-color: #fefce8; 
    color: #a16207; 
    border-color: #fef08a; 
}
.color-purple { 
    background-color: #faf5ff; 
    color: #7e22ce; 
    border-color: #e9d5ff; 
}
.color-rose { 
    background-color: #fff1f2; 
    color: #be123c; 
    border-color: #fecdd3; 
}
.color-emerald { 
    background-color: #f0fdf4; 
    color: #15803d; 
    border-color: #bbf7d0; 
}
.color-indigo { 
    background-color: #f5f7ff; 
    color: #4338ca; 
    border-color: #c7d2fe; 
}
.color-pink { 
    background-color: #fdf2f8; 
    color: #9d174d; 
    border-color: #fbcfe8; 
}

/* Tasks / Checklist Section */
.todo-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.todo-filters {
    display: flex;
    gap: 4px;
    background: var(--border-light);
    padding: 3px;
    border-radius: var(--radius-full);
}

.todo-filter-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.todo-filter-btn.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-xs);
}

.tasks-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
}

.task-item-card:hover {
    border-color: var(--accent);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.8px solid var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.task-checkbox:hover {
    background-color: var(--accent-light);
}

.task-item-card.completed .task-checkbox {
    background-color: var(--accent);
}

.task-item-card.completed .task-title {
    text-decoration: line-through;
    opacity: 0.5;
}

.task-content {
    flex-grow: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.task-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.task-subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--accent-light);
    color: var(--accent);
}

.task-subject-tag.badge-sky { background: #f0f7ff; color: #1d4ed8; }
.task-subject-tag.badge-pink { background: #fdf2f8; color: #9d174d; }
.task-subject-tag.badge-purple { background: #faf5ff; color: #7e22ce; }
.task-subject-tag.badge-amber { background: #fefce8; color: #a16207; }
.task-subject-tag.badge-rose { background: #fff1f2; color: #be123c; }
.task-subject-tag.badge-emerald { background: #f0fdf4; color: #15803d; }
.task-subject-tag.badge-indigo { background: #f5f7ff; color: #4338ca; }

.btn-delete-task {
    border: none;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.btn-delete-task:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-delete-note {
    border: none;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.btn-delete-note:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Attendance Dashboard */
.attendance-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attendance-owner-switcher {
    display: flex;
    gap: 6px;
    background: var(--border-light);
    padding: 4px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.attendance-owner-btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.attendance-owner-btn.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-xs);
}

.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.attendance-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-fast);
}

.attendance-card:hover {
    border-color: var(--accent);
}

.attendance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attendance-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.attendance-percentage-ring {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    background-color: rgba(21, 128, 61, 0.1);
    color: #15803d;
}

.attendance-percentage-ring.warning {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.btn-reset-attendance {
    border: none;
    background: var(--border-light);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-reset-attendance:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.attendance-ratio {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.attendance-controls {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.btn-attendance {
    flex: 1;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-attendance-present {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.btn-attendance-present:hover {
    background-color: #dcfce7;
}

.btn-attendance-absent {
    background-color: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.btn-attendance-absent:hover {
    background-color: #ffe4e6;
}

.agenda-empty-state {
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    background: var(--bg-card);
    border: 1px dashed var(--border-main);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Calendar Section (Calendario de Pareja & Festivos de Colombia)
   ========================================================================== */
.calendar-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow-xs);
}

.calendar-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.calendar-title-wrap p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.calendar-month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--border-light);
    padding: 4px 8px;
    border-radius: var(--radius-full);
}

.btn-cal-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.btn-cal-arrow:hover {
    background: var(--bg-card);
    color: var(--accent);
}

.cal-month-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    min-width: 120px;
    text-align: center;
    color: var(--text-main);
    text-transform: capitalize;
}

.calendar-btn-group {
    display: flex;
    gap: 8px;
}

.calendar-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-xs);
    overflow-x: auto;
}

.calendar-weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 0;
}

.cal-weekday.holiday-col {
    color: #ef4444;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-cell {
    min-height: 70px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
    position: relative;
}

.calendar-day-cell:hover {
    border-color: var(--accent);
    background: var(--bg-app);
}

.calendar-day-cell.other-month {
    opacity: 0.3;
    background: transparent;
}

.calendar-day-cell.today {
    border: 2px solid var(--accent);
    background: var(--accent-light, rgba(236, 72, 153, 0.08));
}

.calendar-day-cell.selected {
    box-shadow: 0 0 0 2px var(--text-main);
    border-color: var(--text-main);
}

.calendar-day-cell.holiday {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.cell-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.calendar-day-cell.today .day-number {
    color: var(--accent);
}

.calendar-day-cell.holiday .day-number {
    color: #dc2626;
}

.cell-holiday-tag {
    font-size: 9px;
    font-weight: 700;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 2px;
}

.cell-events-indicator {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.event-dot.task-he { background-color: #0284c7; }
.event-dot.task-she { background-color: #ec4899; }
.event-dot.task-both { background-color: #8b5cf6; }
.event-dot.special-cumple { background-color: #f59e0b; }
.event-dot.special-aniversario { background-color: #e11d48; }
.event-dot.special-cita { background-color: #10b981; }
.event-dot.special-recordatorio { background-color: #6366f1; }

/* Selected Day Agenda Card */
.selected-day-agenda-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.day-agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.day-agenda-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.day-agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.day-agenda-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-app);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.day-agenda-block-title {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agenda-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.agenda-item-card.holiday {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.agenda-item-card.special {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

/* Rincón del Amor & Love Notes Section (Minimalist & Aesthetic) */
.love-corner-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.love-corner-banner {
    background: linear-gradient(135deg, var(--bg-card), var(--accent-light));
    border: 1px solid var(--border-main);
    color: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xs);
}

.banner-text h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.banner-text p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Chiikawa Dance Trigger Button */
.header-chiikawa-avatar {
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 5px 10px;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.header-chiikawa-avatar img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.header-chiikawa-avatar:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-sm);
}

.banner-chiikawa-avatar img {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.love-notes-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.love-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.love-notes-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: var(--border-light);
    color: var(--text-muted);
}

.love-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.love-notes-filters {
    display: flex;
    gap: 4px;
    background: var(--border-light);
    padding: 3px;
    border-radius: var(--radius-full);
}

.note-filter-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.note-filter-btn.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-xs);
}

.love-notes-search-wrapper {
    flex: 1;
    min-width: 160px;
}

.love-notes-search-input {
    width: 100%;
    border: 1px solid var(--border-main);
    background: var(--bg-input, rgba(0,0,0,0.02));
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
}

.love-notes-search-input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
}

.love-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

/* Sticky Notes (Aesthetic Stationery / Soft Pastel) */
.sticky-note {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-note:nth-child(odd) {
    transform: rotate(-0.5deg);
}

.sticky-note:nth-child(even) {
    transform: rotate(0.6deg);
}

.sticky-note:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.sticky-note.note-pink { 
    background-color: #fff0f3; 
    color: #831843; 
    border-color: #fbcfe8; 
}
.sticky-note.note-yellow { 
    background-color: #fefce8; 
    color: #713f12; 
    border-color: #fef08a; 
}
.sticky-note.note-blue { 
    background-color: #f0f9ff; 
    color: #075985; 
    border-color: #bae6fd; 
}
.sticky-note.note-purple { 
    background-color: #f5f3ff; 
    color: #5b21b6; 
    border-color: #ddd6fe; 
}

.sticky-note-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
}

.sticky-note-body {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    white-space: pre-wrap;
}

.sticky-note-image-container {
    margin-top: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sticky-note-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sticky-note-image:hover {
    transform: scale(1.015);
    opacity: 0.95;
}

.btn-remove-preview {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: none;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-remove-preview:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
}

/* Photo Lightbox Modal */
.photo-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.photo-lightbox-backdrop.open {
    display: flex;
}

.photo-lightbox-card {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: #000;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.photo-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #1e293b;
    border: none;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    transition: transform 0.15s ease;
}

.photo-lightbox-close:hover {
    transform: scale(1.1);
}

.photo-lightbox-caption {
    color: #f1f5f9;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    max-width: 500px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.45);
}

/* Global Buttons and Modals */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-primary { 
    background: var(--accent); 
    color: #ffffff; 
    border-color: var(--accent); 
}

.btn-primary:hover { 
    background: var(--accent-hover); 
    border-color: var(--accent-hover); 
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

.btn-outline { 
    background: var(--bg-card); 
    border: 1px solid var(--border-main); 
    color: var(--text-muted); 
}

.btn-outline:hover { 
    background: var(--border-light); 
    color: var(--text-main); 
    border-color: var(--accent); 
}

.btn-sm { 
    padding: 6px 12px; 
    font-size: 11.5px; 
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

.btn-link:hover {
    color: var(--text-main);
}

.warning-text {
    color: #dc2626 !important;
}

.warning-text:hover {
    border-color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.08) !important;
}

/* Modal Backdrops & Cards */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 12, 16, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 440px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-main);
}

.modal-close-btn {
    float: right;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-fast);
}

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

.form-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-muted);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border-main);
    border-radius: var(--radius-md);
    background: var(--bg-app);
    color: var(--text-main);
    outline: none;
    font-size: 13px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

/* Details Modal Specifics */
.modal-header-accent {
    height: 4px;
    width: 40px;
    background: var(--accent);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.detail-badge-group {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.detail-code {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--border-light);
    color: var(--text-muted);
}

.detail-subject-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.detail-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-app);
    border-radius: var(--radius-md);
}

.info-icon {
    font-size: 18px;
}

.info-content label {
    font-size: 10.5px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.info-content span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-md);
    z-index: 200;
    font-size: 12.5px;
    font-weight: 700;
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Bottom Nav Bar for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-card);
    border-top: 1px solid var(--border-main);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.bottom-nav-btn.active {
    color: var(--accent);
}

.bottom-nav-btn svg {
    transition: transform 0.2s ease;
}

.bottom-nav-btn.active svg {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    html, body {
        height: 100%;
        width: 100%;
        overflow: hidden;
        position: fixed;
    }
    .app-container {
        height: 100%;
        height: 100dvh;
        overflow: hidden;
    }
    .sidebar { display: none !important; }
    .bottom-nav { display: flex; }
    .main-content {
        height: calc(100% - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 16px 80px 16px;
    }
    
    .mobile-day-selector {
        display: flex;
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .mobile-day-btn {
        flex: 1;
        border: 1px solid transparent;
        background: var(--border-light);
        padding: 7px 0;
        font-size: 11.5px;
        font-weight: 700;
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        cursor: pointer;
        transition: var(--transition-fast);
    }
    
    .mobile-day-btn.active {
        background: var(--accent);
        color: #ffffff;
        border-color: var(--accent);
    }

    .mobile-day-btn.btn-all-days {
        flex: 1.3;
        background: var(--accent-light);
        color: var(--accent);
    }

    .mobile-day-btn.btn-all-days.active {
        background: var(--accent);
        color: #ffffff;
    }

    /* Mobile Agenda List View */
    .mobile-agenda-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 2px 0 16px 0;
    }

    .mobile-day-header-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.8px;
        color: var(--text-main);
        margin: 10px 0 2px 2px;
        text-transform: uppercase;
    }

    .mobile-day-header-title .day-dot {
        font-size: 8px;
        color: var(--accent);
    }

    .mobile-empty-day {
        padding: 12px 14px;
        font-size: 11.5px;
        font-weight: 600;
        color: var(--text-muted);
        background: var(--bg-card);
        border: 1px dashed var(--border-main);
        border-radius: var(--radius-md);
    }

    .mobile-agenda-card {
        background-color: var(--bg-card);
        border: 1px solid var(--border-main);
        border-radius: var(--radius-md);
        padding: 12px 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-xs);
        cursor: pointer;
        transition: transform 0.15s ease;
    }

    .mobile-agenda-card:active {
        transform: scale(0.98);
    }

    .mobile-card-accent-bar {
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 4px;
        background-color: var(--accent);
    }

    .mobile-agenda-card.color-sky .mobile-card-accent-bar { background-color: #3b82f6; }
    .mobile-agenda-card.color-amber .mobile-card-accent-bar { background-color: #f59e0b; }
    .mobile-agenda-card.color-purple .mobile-card-accent-bar { background-color: #a855f7; }
    .mobile-agenda-card.color-rose .mobile-card-accent-bar { background-color: #f43f5e; }
    .mobile-agenda-card.color-emerald .mobile-card-accent-bar { background-color: #10b981; }
    .mobile-agenda-card.color-indigo .mobile-card-accent-bar { background-color: #6366f1; }
    .mobile-agenda-card.color-pink .mobile-card-accent-bar { background-color: #ec4899; }

    .mobile-card-time {
        display: flex;
        flex-direction: column;
        font-size: 12px;
        font-weight: 800;
        color: var(--accent);
        min-width: 48px;
        line-height: 1.25;
        font-variant-numeric: tabular-nums;
    }

    .mobile-card-time .end-time {
        font-size: 10.5px;
        color: var(--text-muted);
        font-weight: 600;
    }

    .mobile-card-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-card-title {
        font-size: 13.5px;
        font-weight: 700;
        color: var(--text-main);
        line-height: 1.2;
    }

    .mobile-card-room {
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 500;
    }

    .mobile-card-code {
        font-size: 9.5px;
        font-weight: 700;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        white-space: nowrap;
    }
    
    .schedule-grid-container {
        grid-template-columns: 60px 1fr;
        min-width: 0;
    }
    
    .day-header { display: none; }
    .day-header.active-mobile-day { display: block; grid-column: 2; }
    
    .class-card {
        left: calc(60px + 4px) !important;
        width: calc(100% - 60px - 8px) !important;
    }
    
    .love-corner-banner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    
    .banner-chiikawa-avatar img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

@media (min-width: 1025px) {
    .mobile-day-selector { display: none; }
    .mobile-agenda-container { display: none !important; }
}

/* HORARIOS DE RUTA ESAVE 2026-2 (Minimalist & Clean) */
.routes-view-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    width: 100%;
}

.routes-header-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xs);
    flex-wrap: wrap;
    gap: 8px;
}

.routes-banner-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}

.routes-banner-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.routes-tag-pill {
    background: var(--bg-app);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-main);
}

.routes-day-filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.route-day-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.route-day-pill:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

.route-day-pill.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.esave-day-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.esave-day-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.esave-table-container {
    width: 100%;
    overflow-x: auto;
}

.esave-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.esave-table th {
    text-align: left;
    padding: 6px 10px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-main);
}

.esave-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    vertical-align: middle;
}

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

.time-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.people-tag {
    font-weight: 600;
    color: var(--text-muted);
}

.people-tag.has-people {
    color: var(--accent);
    font-weight: 700;
}

.obs-tag {
    font-size: 11.5px;
    color: var(--text-light);
}

/* Chiikawa Video Overlay Modal */
.modal-card.chiikawa-video-card {
    max-width: 340px;
    width: 90%;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    text-align: center;
    border-radius: var(--radius-xl);
}

.chiikawa-video-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.chiikawa-video-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

#chiikawa-video-player {
    width: 100%;
    max-height: 440px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    outline: none;
    background: #000000;
}

.chiikawa-video-footer {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

/* LOCK & LOGIN SCREEN OVERLAY */
.lock-screen-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-app);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.lock-screen-overlay.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lock-screen-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lock-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.lock-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.lock-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    margin-bottom: 18px;
}

.lock-prompt {
    font-size: 12.5px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 12px;
}

.login-user-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
}

.login-user-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-main);
    background: var(--bg-app);
    cursor: pointer;
    transition: var(--transition-fast);
}

.login-user-btn:hover {
    border-color: var(--accent);
}

.login-user-btn.active {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
}

.user-btn-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.pin-input-group {
    margin: 10px 0 4px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

#pin-input-field {
    width: 100%;
    max-width: 260px;
    height: 46px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-main);
    background: var(--bg-app);
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
    padding: 0 16px;
}

#pin-input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.pin-error-text {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    margin-top: 4px;
}

.btn-lock-submit {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.lock-footer-tag {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 10px;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.lock-screen-card.shake {
    animation: shakeError 0.35s ease;
}

/* TASK COMPLETED POPUP MODAL STYLES */
.task-completed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-xl);
    padding: 20px;
    width: 86%;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
}

.modal-backdrop.open .task-completed-card {
    transform: scale(1);
    opacity: 1;
}

.task-completed-img-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bae0fd;
}

.task-completed-img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    display: block;
}

.task-completed-badge {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

/* CONFIGURACIÓN & AJUSTES TAB */
.settings-dashboard {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
}

.settings-header-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
}

.settings-header-banner h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.settings-header-banner p {
    font-size: 12px;
    color: var(--text-muted);
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-xs);
}

.settings-card-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.settings-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.settings-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    border: 2px solid var(--accent);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-user-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.settings-user-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

.settings-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.settings-theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: var(--bg-app);
    border: 1.5px solid var(--border-main);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.settings-theme-option:hover {
    border-color: var(--accent);
}

.settings-theme-option.active {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.theme-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
}

.theme-preview-pink {
    background: linear-gradient(135deg, #d86c80, #f8d5db);
}

.theme-preview-white {
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
}

.theme-preview-dark {
    background: linear-gradient(135deg, #0f1117, #334155);
}

.settings-sync-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-sync-pill {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.settings-sync-pill.offline {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}
