:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #fff;
    --header-gradient: linear-gradient(135deg, #2c3e50, #4ca1af);
    --border-color: #eee;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --primary-color: #34495e;
    --accent-color: #f39c12;
    --header-gradient: linear-gradient(135deg, #121212, #2c3e50);
    --border-color: #444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Admin Styles */
.admin-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background: var(--card-bg);
    color: var(--text-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background-color: #34495e;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.admin-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: #ecf0f1;
    text-decoration: none;
}

.admin-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Tabs Navigation */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    color: var(--text-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
    opacity: 0.7;
}

.tab-btn:hover {
    background: rgba(0,0,0,0.05);
    opacity: 1;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    opacity: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Sections */
.form-section, .list-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-section h2, .list-section h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    width: fit-content;
    padding-bottom: 0.5rem;
}

/* Enhanced Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8c8d;
    margin-bottom: 0.6rem;
}

.form-group input, .form-group select, .form-group textarea {
    border: 2px solid #f0f0f0;
    padding: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Import Boxes */
.import-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.import-box {
    background: #fcfcfc;
    padding: 1.5rem;
    border: 2px dashed #ddd;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.import-box:hover {
    border-color: var(--accent-color);
    background: #fff;
}

/* Tables Redesign */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: #f8f9fa;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #7f8c8d;
    padding: 1.2rem;
    text-align: left;
}

td {
    padding: 1.2rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #fafafa;
}

/* Custom Buttons */
.btn-save {
    background: var(--accent-color);
    width: 100%;
    padding: 1.2rem;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-save:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Settings Styles */
.logo-preview-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.logo-preview-box img {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Fullscreen Editor fix */
.ql-toolbar.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background: white;
}

#editor-container.fullscreen {
    position: fixed;
    top: 42px; /* Height of toolbar */
    left: 0;
    width: 100%;
    height: calc(100% - 42px) !important;
    z-index: 3000;
    background: white;
}

.btn-edit {
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.btn-view {
    background-color: #2ecc71;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    text-decoration: none;
}

.btn-view:hover { background-color: #27ae60; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: var(--text-color);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Admin Layout Redesign: Sidebar */
.admin-page {
    background-color: #f0f2f5;
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.sidebar-brand {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.admin-sidebar nav {
    flex-grow: 1;
    padding: 1.5rem 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left: 4px solid var(--accent-color);
}

.sidebar-nav-item span {
    margin-right: 12px;
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-content-wrapper {
    flex-grow: 1;
    margin-left: 280px;
    padding: 2.5rem;
    width: calc(100% - 280px);
}

.admin-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* User Frontend Styles */

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    color: #7f8c8d;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.calendar-day .day-number {
    font-weight: bold;
    font-size: 1.1rem;
}

.calendar-day .day-status {
    margin-top: auto;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
}

.calendar-day.status-full { border-left: 5px solid #2ecc71; background: #fafffb; }
.calendar-day.status-partial { border-left: 5px solid #f1c40f; background: #fffdf5; }
.calendar-day.status-empty { border-left: 5px solid #e74c3c; background: #fffafb; }

.calendar-day.other-month {
    opacity: 0.3;
    pointer-events: none;
}

/* User Frontend Styles */
.user-header {
    padding: 1rem 1.5rem 4rem;
    background: var(--header-gradient);
    background-size: cover;
    background-position: center;
    color: white;
    transition: background 0.8s ease, color 0.4s ease;
    position: relative;
}

/* Colores de Banner Dinámicos */
.user-header.theme-laudes { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); color: #2c3e50; }
.user-header.theme-sexta { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.user-header.theme-visperas { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: #2c3e50; }
.user-header.theme-completas { background: linear-gradient(135deg, #09203f 0%, #537895 100%); }
.user-header.theme-evangelio { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    gap: 1rem;
}

.header-controls-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 102;
}

.search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-expandable {
    position: absolute;
    left: 0;
    display: flex;
    background: var(--card-bg);
    border-radius: 25px;
    padding: 5px 15px;
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 101;
    border: 1px solid var(--border-color);
}

.search-wrapper.active .search-expandable {
    width: 280px;
    opacity: 1;
    left: 0;
    padding-left: 55px; /* Deja espacio para el botón toggle */
}

.search-expandable input {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.search-expandable button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 5px;
    color: var(--primary-color);
}

[data-theme="dark"] .search-expandable button {
    color: var(--accent-color);
}


/* Resultados de búsqueda */
.search-results-list {
    text-align: left;
}

.search-result-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(0,0,0,0.03);
}

[data-theme="dark"] .search-result-item:hover {
    background: rgba(255,255,255,0.05);
}

.search-result-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

[data-theme="dark"] .search-result-item h3 {
    color: var(--accent-color);
}

.search-result-item .preview {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
}

.search-result-item .date-tag {
    font-size: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.menu-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.logo-container-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.install-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px; /* Cuadrado con bordes suaves */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.install-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.title-container {
    text-align: center;
}

.title-container h1 {
    margin: 0;
    font-size: 2.5rem;
}

.title-container p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.site-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: -2rem auto 2rem;
    background: var(--card-bg);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.date-selector:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.date-selector input[type="date"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.hours-nav {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hour-btn {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.9rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hour-btn.active, .hour-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.liturgy-container {
    max-width: 850px;
    margin: 0 auto 2rem;
    background: var(--card-bg);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-height: 500px;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.liturgy-content {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
}

[data-theme="dark"] .ql-editor {
    color: var(--text-color);
}

.liturgy-text p {
    margin-bottom: 1.2rem;
}

.liturgy-content h2 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.liturgy-schedule {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2rem;
    font-family: 'Segoe UI', sans-serif;
    opacity: 0.8;
}

[data-theme="dark"] .liturgy-schedule {
    color: var(--accent-color);
}

.empty-state {
    text-align: center;
    color: #999;
    padding-top: 6rem;
}

.error { color: #e74c3c; font-weight: bold; }

/* Control de Imágenes */
.liturgy-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 15px auto;
    display: block;
    object-fit: contain;
    max-height: 650px;
}

/* Offline & Progress Styles */
.offline-banner {
    background-color: #e74c3c;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.download-progress-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1001;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

#progressText {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

/* --- Etiqueta de Tiempo Litúrgico --- */
.liturgical-time-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-gold, #b8860b);
    background: rgba(184, 134, 11, 0.10);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 20px;
    padding: 0.25rem 0.9rem;
    margin-bottom: 0.6rem;
}

[data-theme="dark"] .liturgical-time-label {
    color: #f0c060;
    background: rgba(240, 192, 96, 0.12);
    border-color: rgba(240, 192, 96, 0.3);
}

/* --- Imagen de Cabecera de Hora Litúrgica --- */
.liturgy-header-img-wrapper {
    width: 100%;
    margin: -1rem -1rem 1.5rem -1rem;
    width: calc(100% + 2rem);
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    max-height: 260px;
}

.liturgy-header-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    animation: headerFadeIn 0.5s ease;
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .liturgy-header-img {
        height: 160px;
    }
}

/* --- Estilos Responsive --- */
@media (max-width: 768px) {
    .liturgy-container {
        padding: 2rem;
        margin: 0 auto 1.5rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .liturgy-container {
        padding: 1.2rem;
        margin: 0 auto 1rem;
        border-radius: 6px;
    }
    .liturgy-content {
        font-size: 1.15rem; /* Ajuste del tamaño de fuente en móviles */
    }
}

/* Estilos para el Calendario del Menú Lateral */
.sidebar-calendar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-weight: bold;
    transition: background 0.2s, border-color 0.2s;
}

.calendar-nav-btn:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--accent-gold);
}

.calendar-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.5rem;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.calendar-day-cell:hover {
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-gold);
}

.calendar-day-cell.inactive {
    color: #cbd5e1;
    opacity: 0.35;
    pointer-events: none;
}

.calendar-day-cell.selected {
    background: var(--accent-gold);
    color: white !important;
    font-weight: bold;
}

.calendar-day-cell.today {
    border: 1px solid var(--accent-gold);
}


