/* Estilos Generales */
        :root {
            --brand-color: #E6BF84;
            --dark-text: #333333;
            --light-text: #666666;
            --background-light: #fdfdfd;
            --border-light: #f0f0f0;
            --accent-blue: #4A90E2;
            --accent-green: #7ED321;
            --accent-orange: #F5A623;
            --accent-red: #D0021B;
            /* Colores minimalistas para la biblioteca */
            --library-bg: #f8f9fa;
            --library-header: #2c3e50;
            --library-card: #ffffff;
            --library-text: #2c3e50;
            --library-text-light: #6c757d;
            --library-border: #e9ecef;
            --library-accent: #495057;
            --library-hover: #343a40;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: 'Open Sans', sans-serif;
            background-color: var(--background-light);
            margin: 0;
            color: var(--dark-text);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        body.modal-open {
            overflow: hidden;
        }

        /* Header Styles */
        header {
            padding: 20px;
            background-color: white;
            border-bottom: 1px solid var(--border-light);
            position: relative;
            transition: all 0.3s ease;
        }
        .header-top-row {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
            position: relative;
        }
        .navigation-container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-grow: 1;
        }
        .year-navigation, .list-view-month-navigation {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
        }
        .nav-button {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--light-text);
            transition: color 0.3s ease;
        }
        .nav-button:hover {
            color: var(--dark-text);
        }
        .current-year, .current-month-year {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.8rem;
            font-weight: 300;
            color: var(--dark-text);
            margin: 0;
        }
        .view-switcher {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            background-color: #f5f5f5;
            border-radius: 18px;
            padding: 4px;
        }
        .view-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }
        .view-btn svg {
            width: 20px;
            height: 20px;
            fill: #888;
            transition: fill 0.3s ease;
        }
        .view-btn.active {
            background-color: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .view-btn.active svg {
            fill: var(--dark-text);
        }

        /* Hamburger Menu */
        .hamburger-menu {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: background-color 0.3s ease;
        }
        .hamburger-menu:hover {
            background-color: #f5f5f5;
        }
        .hamburger-line {
            width: 20px;
            height: 2px;
            background-color: var(--light-text);
            transition: all 0.3s ease;
        }
        .hamburger-menu.active .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .hamburger-menu.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }
        .hamburger-menu.active .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Sidebar Menu */
        .sidebar-menu {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100vh;
            background-color: white;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            z-index: 2500;
            transition: left 0.3s ease;
            overflow-y: auto;
        }
        .sidebar-menu.active {
            left: 0;
        }
        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .sidebar-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2rem;
            font-weight: 500;
            color: var(--dark-text);
            margin: 0;
        }
        .close-sidebar {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--light-text);
            padding: 5px;
        }
        .sidebar-content {
            padding: 20px;
        }
        .sidebar-btn {
            display: flex;
            align-items: center;
            width: 100%;
            background: none;
            border: 1px solid var(--border-light);
            padding: 12px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--dark-text);
            transition: all 0.3s ease;
            margin-bottom: 10px;
            text-align: left;
        }
        
        /* Separación visual del icono y texto en el menú */
        .sidebar-btn i {
            margin-right: 15px; /* Aumentar separación */
            font-size: 1.1rem;
            color: var(--brand-color);
            min-width: 20px; /* Asegurar ancho consistente */
            text-align: center;
        }
        .sidebar-btn:hover {
            background-color: #f8f8f8;
            border-color: var(--brand-color);
        }
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 2400;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .months-navigation {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
            position: relative;
        }
        
        /* Mejoras para móvil - scroll horizontal con fade */
        @media (max-width: 768px) {
            /* Mejoras específicas para el header en móvil */
            header {
                padding: 15px 10px;
                position: sticky;
                top: 0;
                z-index: 100;
                background-color: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border-bottom: 1px solid rgba(240, 240, 240, 0.8);
            }
            
            .header-top-row {
                margin-bottom: 15px;
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .navigation-container {
                order: 2;
                width: 100%;
                justify-content: center;
            }
            
            .view-switcher {
                position: static;
                transform: none;
                order: 3;
                margin: 0 auto;
            }
            
            .hamburger-menu {
                position: static;
                transform: none;
                order: 1;
            }
            
            /* Navegación de meses optimizada para táctil */
            .months-navigation {
                display: flex;
                justify-content: flex-start;
                flex-wrap: nowrap;
                overflow-x: auto;
                overflow-y: hidden;
                padding: 10px 0;
                margin: 15px 0;
                scroll-behavior: smooth;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; /* Firefox */
                -ms-overflow-style: none; /* IE and Edge */
                position: relative;
            }
            
            .months-navigation::-webkit-scrollbar {
                display: none; /* Chrome, Safari, Opera */
            }
            
            /* Botones de mes más grandes para táctil */
            .month-btn {
                min-width: 80px !important;
                padding: 10px 15px !important;
                font-size: 0.85rem !important;
                white-space: nowrap;
                touch-action: manipulation;
            }
            
            /* Fade en los bordes para indicar scroll */
            .months-navigation::before,
            .months-navigation::after {
                content: '';
                position: absolute;
                top: 0;
                bottom: 0;
                width: 20px;
                z-index: 2;
                pointer-events: none;
            }
            
            .months-navigation::before {
                left: 0;
                background: linear-gradient(to right, var(--background-light), transparent);
            }
            
            .months-navigation::after {
                right: 0;
                background: linear-gradient(to left, var(--background-light), transparent);
            }
            
            .month-button {
                flex-shrink: 0;
                white-space: nowrap;
                margin-right: 10px;
            }
            
            .month-button:last-child {
                margin-right: 0;
            }
        }
        .month-button {
            background: none;
            border: 1px solid #e0e0e0;
            padding: 8px 15px;
            border-radius: 20px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--light-text);
        }
        .month-button:hover {
            background-color: #f8f8f8;
            border-color: #cccccc;
        }
        .month-button.active {
            background-color: var(--dark-text);
            color: white;
            border-color: var(--dark-text);
        }
       
        /* ---- View Specific Header Styles ---- */
        body.grid-view .list-view-month-navigation { display: none; }
        body.list-view .year-navigation { display: none; }
        body.list-view .months-navigation { display: none; }
        body.annual-view .list-view-month-navigation { display: none; }
        body.annual-view .months-navigation { display: none; }

        body.list-view header {
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        body.list-view .header-top-row {
            margin-bottom: 0;
        }
        
        #music-toggle-btn {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 38px;
            height: 38px;
            background-color: rgba(255, 255, 255, 0.9);
            border: 1px solid #e0e0e0;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            color: #555555;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            z-index: 1500;
            padding: 0;
        }
        
        #music-toggle-btn:hover {
            color: #000000;
            background-color: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transform: scale(1.05);
        }
        
        #music-toggle-btn:active {
            transform: scale(1.05) translateY(-1px);
            transition: transform 0.1s ease;
        }
        
        #music-toggle-btn.loading {
            color: transparent;
        }
        
        #music-toggle-btn.loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            border: 2px solid #bbbbbb;
            border-top-color: #555555;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Calendar Styles */
        .calendar-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 20px;
            background-image: url('imagenes/fondo-calendario.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            position: relative;
            display: block;
            transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
        }
        .calendar-container.fade-out {
            opacity: 0;
            transform: translateY(-30px);
        }
        .weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-family: 'Montserrat', sans-serif;
            font-weight: 500;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #999999;
            margin-bottom: 15px;
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
        }

        /* ---- List View Specific Styles ---- */
        body.list-view .weekdays {
            display: none;
        }
        body.list-view .calendar-grid {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }
        body.list-view .day-cell {
            width: 65%; 
            max-width: 380px;
            aspect-ratio: 1; 
        }
        body.list-view .day-cell.other-month {
            display: none;
        }
        body.list-view .day-cell {
            filter: grayscale(80%) sepia(30%) hue-rotate(-20deg) saturate(0.5) brightness(0.9);
            opacity: 0.8;
            transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease;
        }
        body.list-view .day-cell:hover,
        body.list-view .day-cell.in-view {
            opacity: 1;
            filter: none;
            transform: scale(1.3) !important;
            z-index: 10;
        }
        body.list-view .day-cell.today-cell {
            opacity: 1;
            filter: none;
        }

        /* Mejoras para vista de lista en móvil */
        @media (max-width: 768px) {
            body.list-view .calendar-grid {
                gap: 25px;
                padding: 0 15px;
            }
            
            body.list-view .day-cell {
                width: 85%;
                max-width: 320px;
                border-radius: 12px;
                box-shadow: 0 2px 12px rgba(0,0,0,0.1);
            }
            
            body.list-view .day-cell:hover,
            body.list-view .day-cell.in-view {
                transform: scale(1.15) !important; /* Escala menor en móvil */
                box-shadow: 0 6px 20px rgba(0,0,0,0.15);
            }
            
            /* Números de día más grandes en vista lista móvil */
            body.list-view .day-number {
                font-size: 1.4rem !important;
                font-weight: 700 !important;
            }
            
            /* Santo identity más visible en lista móvil */
            body.list-view .santo-identity {
                font-size: 0.8rem !important;
                padding: 4px 8px !important;
                background-color: rgba(0,0,0,0.8) !important;
                border-radius: 6px !important;
            }
        }

        @media (max-width: 480px) {
            body.list-view .calendar-grid {
                gap: 20px;
                padding: 0 10px;
            }
            
            body.list-view .day-cell {
                width: 90%;
                max-width: 280px;
            }
            
            body.list-view .day-cell:hover,
            body.list-view .day-cell.in-view {
                transform: scale(1.1) !important;
            }
            
            body.list-view .day-number {
                font-size: 1.2rem !important;
            }
            
            body.list-view .santo-identity {
                font-size: 0.75rem !important;
            }
        }

        /* ---- Annual View Specific Styles ---- */
        body.annual-view .calendar-container {
            max-width: 1400px;
            padding: 20px;
        }
        
        body.annual-view .weekdays {
            display: none;
        }
        
        body.annual-view .calendar-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .annual-month-container {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .annual-month-container:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            transition: all 0.7s ease-out;
        }
        
        .annual-month-header {
            text-align: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.7s ease-out;
        }
        
        .annual-month-header:hover {
            background: rgba(230, 191, 132, 0.1);
            border-radius: 8px;
            margin: -5px -5px 5px -5px;
            padding: 5px 5px 8px 5px;
        }
        
        .annual-month-name {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--dark-text);
            margin: 0;
        }
        
        .annual-month-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }
        
        .annual-day-cell {
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(0,0,0,0.05);
            border-radius: 3px;
            position: relative;
            cursor: pointer;
            transition: all 0.7s ease-out;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 500;
            color: var(--dark-text);
            background-size: cover;
            background-position: top center;
            background-repeat: no-repeat;
            filter: grayscale(100%) sepia(30%) hue-rotate(-20deg) saturate(0.5) brightness(0.9);
            opacity: 0;
            transform: scale(0.9);
        }
        
        .annual-day-cell.visible {
            opacity: 1;
            transform: scale(1);
        }
        
        .annual-day-cell:hover {
            filter: none;
            transform: scale(1.1);
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        
        .annual-day-cell.other-month {
            background: rgba(250, 250, 250, 0.4);
            color: #cccccc;
            filter: grayscale(100%) brightness(0.7);
        }
        
        .annual-day-cell.today-cell {
            filter: none;
            color: white;
            font-weight: 600;
            box-shadow: 0 0 8px rgba(230, 191, 132, 0.6);
            border: 2px solid var(--brand-color);
        }
        
        .annual-day-cell.has-santo {
            border-color: rgba(74, 144, 226, 0.3);
        }
        
        .annual-day-cell.has-santo:hover {
            filter: none;
        }
        
        .annual-day-cell.has-santo.today-cell {
            filter: none;
            border-color: var(--brand-color);
        }
        
        .annual-day-number {
            position: absolute;
            top: 2px;
            right: 2px;
            font-size: 0.6rem;
            color: #ffffff;
            font-weight: 600;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            z-index: 3;
            transition: opacity 0.3s ease;
        }
        
        .annual-day-cell.other-month .annual-day-number {
            color: #cccccc;
        }
        
        .annual-day-cell.today-cell .annual-day-number {
            color: white;
        }
        
        .annual-day-cell:hover .annual-day-number {
            opacity: 0;
        }
        
        /* Liturgical colors for annual view - colores más vibrantes */
        .annual-day-cell.liturgical-green {
            border-left: 4px solid #32CD32;
            box-shadow: -2px 0 8px rgba(50, 205, 50, 0.4);
        }
        .annual-day-cell.liturgical-purple {
            border-left: 4px solid #9932CC;
            box-shadow: -2px 0 8px rgba(153, 50, 204, 0.4);
        }
        .annual-day-cell.liturgical-white {
            border-left: 4px solid #FFD700;
            box-shadow: -2px 0 8px rgba(255, 215, 0, 0.4);
        }
        .annual-day-cell.liturgical-red {
            border-left: 4px solid #FF4500;
            box-shadow: -2px 0 8px rgba(255, 69, 0, 0.4);
        }
        .annual-day-cell.liturgical-rose {
            border-left: 4px solid #FF1493;
            box-shadow: -2px 0 8px rgba(255, 20, 147, 0.4);
        }
        
        /* Responsive adjustments for annual view */
        @media (max-width: 1200px) {
            body.annual-view .calendar-grid {
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 900px) {
            body.annual-view .calendar-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(6, 1fr);
            }
        }
        
        @media (max-width: 600px) {
            body.annual-view .calendar-grid {
                grid-template-columns: 1fr;
                grid-template-rows: repeat(12, 1fr);
            }
            
            .annual-month-container {
                padding: 10px;
            }
            
            .annual-month-name {
                font-size: 1rem;
            }
            
            .annual-day-cell {
                font-size: 0.6rem;
            }
        }

        /* Mejoras específicas para móvil - calendario */
        @media (max-width: 768px) {
            .calendar-container {
                padding: 20px 15px;
                margin: 0 10px;
                border-radius: 8px;
            }
            
            .calendar-grid {
                gap: 6px; /* Espaciado más compacto */
            }
            
            .weekdays {
                margin-bottom: 12px;
                font-size: 0.8rem;
                font-weight: 600;
            }
            
            /* Mejoras para las celdas del día */
            .day-cell {
                border-radius: 6px;
                min-height: 60px; /* Altura mínima para táctil */
                touch-action: manipulation;
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }
            
            .day-cell:active {
                transform: scale(0.95);
                transition: transform 0.1s ease;
            }
            
            /* Números de día más grandes */
            .day-number {
                font-size: 1rem !important;
                font-weight: 600 !important;
                text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
            }
            
            /* Tooltip más grande para móvil */
            .tooltip {
                font-size: 0.75rem !important;
                padding: 6px 10px !important;
                max-width: 200px !important;
                white-space: normal !important;
                text-align: center !important;
            }
            
            /* Santo identity más visible */
            .santo-identity {
                font-size: 0.7rem !important;
                padding: 3px 6px !important;
                border-radius: 4px !important;
                background-color: rgba(0,0,0,0.75) !important;
                color: white !important;
                text-shadow: none !important;
            }
        }

        @media (max-width: 480px) {
            .calendar-container {
                margin: 0 5px;
                padding: 15px 10px;
            }
            
            .calendar-grid {
                gap: 4px;
            }
            
            .day-cell {
                min-height: 50px;
                border-radius: 4px;
            }
            
            .day-number {
                font-size: 0.9rem !important;
            }
            
            .santo-identity {
                font-size: 0.65rem !important;
                padding: 2px 4px !important;
            }
            
            .weekdays {
                font-size: 0.75rem;
            }
        }

        .day-cell {
            aspect-ratio: 1;
            background-color: rgba(255, 255, 255, 0.7);
            border: 2px solid transparent;
            border-radius: 4px;
            position: relative;
            cursor: pointer;
            overflow: hidden;
            z-index: 1;
            background-size: cover;
            background-position: top center;
            background-repeat: no-repeat;
            filter: grayscale(100%) sepia(30%) hue-rotate(-20deg) saturate(0.5) brightness(0.9);
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease;
        }
        .day-cell.visible {
            opacity: 1;
            transform: scale(1);
        }
        
        .day-cell:hover {
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
            z-index: 10;
            filter: none;
        }

        body.grid-view .day-cell:hover {
             transform: scale(1.5) !important;
        }

        .day-cell.today-cell {
            filter: none;
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 15px rgba(230, 191, 132, 0.6);
        }
        .day-cell.today-cell:hover {
            border-color: #F0D4AB;
        }

        /* ===== ESTILOS LITÚRGICOS ===== */
        
        /* Verde - Tiempo Ordinario */
        .day-cell.liturgical-green {
            box-shadow: 0 0 8px rgba(34, 139, 34, 0.3);
        }
        .day-cell.liturgical-green:hover {
            transform: scale(1.05);
            border: 2px solid rgba(34, 139, 34, 0.5);
            box-shadow: 0 0 15px rgba(34, 139, 34, 0.7);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        /* Morado - Adviento y Cuaresma */
        .day-cell.liturgical-purple {
            box-shadow: 0 0 8px rgba(128, 0, 128, 0.3);
        }
        .day-cell.liturgical-purple:hover {
            transform: scale(1.05);
            border: 2px solid rgba(128, 0, 128, 0.5);
            box-shadow: 0 0 15px rgba(128, 0, 128, 0.7);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        /* Blanco/Dorado - Navidad y Pascua */
        .day-cell.liturgical-white {
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
        }
        .day-cell.liturgical-white:hover {
            transform: scale(1.05);
            border: 2px solid rgba(255, 215, 0, 0.5);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        /* Rojo - Fiestas especiales */
        .day-cell.liturgical-red {
            box-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
        }
        .day-cell.liturgical-red:hover {
            transform: scale(1.05);
            border: 2px solid rgba(220, 20, 60, 0.5);
            box-shadow: 0 0 15px rgba(220, 20, 60, 0.7);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        /* Rosa - Gaudete y Laetare */
        .day-cell.liturgical-rose {
            box-shadow: 0 0 8px rgba(255, 192, 203, 0.4);
        }
        .day-cell.liturgical-rose:hover {
            transform: scale(1.05);
            border: 2px solid rgba(255, 105, 180, 0.5);
            box-shadow: 0 0 15px rgba(255, 192, 203, 0.8);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }

        /* ===== COMPATIBILIDAD CON DÍA ACTUAL ===== */
        
        /* Cuando el día actual tiene color litúrgico, combinar ambos efectos */
        .day-cell.today-cell.liturgical-green {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 15px rgba(230, 191, 132, 0.6), 0 0 8px rgba(34, 139, 34, 0.3);
        }
        .day-cell.today-cell.liturgical-purple {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 15px rgba(230, 191, 132, 0.6), 0 0 8px rgba(128, 0, 128, 0.3);
        }
        .day-cell.today-cell.liturgical-white {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 15px rgba(230, 191, 132, 0.6), 0 0 8px rgba(255, 255, 255, 0.4);
        }
        .day-cell.today-cell.liturgical-red {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 15px rgba(230, 191, 132, 0.6), 0 0 8px rgba(220, 20, 60, 0.3);
        }
        .day-cell.today-cell.liturgical-rose {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 15px rgba(230, 191, 132, 0.6), 0 0 8px rgba(255, 192, 203, 0.4);
        }

        /* ===== HOVER ESPECIAL PARA DÍA ACTUAL CON COLORES LITÚRGICOS ===== */
        
        /* El día actual mantiene su borde dorado en hover, pero intensifica el halo litúrgico */
        .day-cell.today-cell.liturgical-green:hover {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 20px rgba(230, 191, 132, 0.8), 0 0 12px rgba(34, 139, 34, 0.6);
            transform: scale(1.05);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        .day-cell.today-cell.liturgical-purple:hover {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 20px rgba(230, 191, 132, 0.8), 0 0 12px rgba(128, 0, 128, 0.6);
            transform: scale(1.05);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        .day-cell.today-cell.liturgical-white:hover {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 20px rgba(230, 191, 132, 0.8), 0 0 12px rgba(255, 255, 255, 0.7);
            transform: scale(1.05);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        .day-cell.today-cell.liturgical-red:hover {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 20px rgba(230, 191, 132, 0.8), 0 0 12px rgba(220, 20, 60, 0.6);
            transform: scale(1.05);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }
        
        .day-cell.today-cell.liturgical-rose:hover {
            border: 2px solid var(--brand-color);
            box-shadow: 0 0 20px rgba(230, 191, 132, 0.8), 0 0 12px rgba(255, 192, 203, 0.7);
            transform: scale(1.05);
            transition: transform 0.7s ease-out, border-color 0.4s ease, box-shadow 0.4s ease-out;
        }

        /* ===== INDICADORES DE HALLAZGOS EN EL CALENDARIO ===== */
        
        .day-cell.dia-con-hallazgos {
            position: relative;
        }

        .hallazgo-indicator {
            position: absolute;
            top: 4px;
            left: 4px;
            width: 20px;
            height: 20px;
            background: rgba(51, 51, 51, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 4;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .hallazgo-indicator i {
            font-size: 10px;
            color: white;
        }

        .day-cell:hover .hallazgo-indicator {
            background: var(--brand-color);
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .day-cell:hover .hallazgo-indicator i {
            color: #333;
        }

        /* Animación de pulso sutil para días con hallazgos */
        .day-cell.dia-con-hallazgos::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            background: rgba(51, 51, 51, 0.2);
            border-radius: 50%;
            animation: hallazgo-pulse 3s infinite ease-in-out;
            z-index: 3;
        }

        @keyframes hallazgo-pulse {
            0%, 100% {
                opacity: 0.2;
                transform: scale(1);
            }
            50% {
                opacity: 0.6;
                transform: scale(1.2);
            }
        }

        .day-number {
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 1.2rem;
            color: #ffffff;
            font-weight: 600;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
            z-index: 3;
            transition: opacity 0.3s ease;
        }
        .day-cell.other-month {
            background-color: rgba(250, 250, 250, 0.7);
        }
        .day-cell.other-month .day-number {
            color: #cccccc;
        }
        .tooltip {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(255, 255, 255, 0.95);
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 0.8rem;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
        }
        .day-cell:hover .tooltip {
            opacity: 1;
            visibility: visible;
            bottom: -45px;
        }
        .image-overlay {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: top center;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity 3.0s ease;
            pointer-events: none;
            z-index: 1;
        }
        .image-overlay.active {
            opacity: 1;
            z-index: 2;
        }
        
        body.grid-view .day-cell:hover .day-number {
            opacity: 0;
        }
        
        .santo-identity {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: auto;
            min-height: 20%;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.7rem;
            text-align: center;
            padding: 5px;
            box-sizing: border-box;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            overflow: hidden;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .day-cell:hover .santo-identity,
        .day-cell.in-view .santo-identity {
            opacity: 1;
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 2000;
            padding: 20px;
            box-sizing: border-box;
        }
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background-color: #ffffff;
            border-radius: 8px;
            max-width: 90vw;
            max-height: 90vh;
            overflow: hidden;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            min-height: 0;
        }
        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 3;
            touch-action: manipulation;
        }
        .close-modal:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Mejoras del modal para móvil */
        @media (max-width: 768px) {
            .modal-overlay {
                padding: 10px;
                background-color: rgba(0, 0, 0, 0.85); /* Más opaco en móvil */
            }
            
            .modal-content {
                max-width: 95vw;
                max-height: 85vh;
                border-radius: 12px;
                margin: auto;
            }
            
            .close-modal {
                top: 15px;
                right: 15px;
                width: 44px;
                height: 44px;
                font-size: 1.6rem;
                background-color: rgba(0, 0, 0, 0.5);
                backdrop-filter: blur(5px);
                -webkit-backdrop-filter: blur(5px);
            }
            
            .close-modal:active {
                transform: scale(0.95);
                transition: transform 0.1s ease;
            }
        }

        @media (max-width: 480px) {
            .modal-overlay {
                padding: 5px;
            }
            
            .modal-content {
                max-width: 98vw;
                max-height: 90vh;
                border-radius: 8px;
            }
            
            .close-modal {
                top: 10px;
                right: 10px;
                width: 40px;
                height: 40px;
                font-size: 1.4rem;
            }
        }
        .modal-body {
            position: relative;
            z-index: 2;
            padding: 30px;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 30%, transparent 60%);
            border-radius: 8px;
            transition: background 0.5s ease;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        .modal-body.fully-shaded {
            background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
        }

        /* Mejoras del modal-body para móvil */
        @media (max-width: 768px) {
            .modal-body {
                padding: 20px;
                background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, transparent 70%);
            }
            
            .modal-body.fully-shaded {
                background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 100%);
            }
        }

        @media (max-width: 480px) {
            .modal-body {
                padding: 15px;
            }
        }
        .santo-name {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2rem;
            font-weight: 300;
            color: white;
            margin-bottom: 15px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
            align-self: flex-start;
        }
        .santo-info {
            display: none;
            margin-bottom: 10px;
        }
        .santo-info p {
            margin-bottom: 8px;
            line-height: 1.6;
            color: white;
            font-size: 0.9rem;
        }
        .info-label {
            font-weight: 600;
            color: #cccccc;
        }
        .santo-history {
            line-height: 1.7;
            color: white;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
            display: none;
        }
        .santo-history.expanded {
            display: block;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding-right: 10px;
        }
        .santo-history.expanded::-webkit-scrollbar {
            width: 6px;
        }
        .santo-history.expanded::-webkit-scrollbar-track {
            background: transparent;
        }
        .santo-history.expanded::-webkit-scrollbar-thumb {
            background-color: rgba(255, 255, 255, 0.4);
            border-radius: 3px;
        }
        .modal-actions {
            align-self: flex-start;
            margin-top: 15px;
            display: flex;
            gap: 10px;
            flex-shrink: 0;
        }
        .action-btn {
            background: none;
            border: 1px solid white;
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background-color 0.3s ease;
            display: none;
        }
        .action-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        #read-history-btn {
            display: inline-block;
        }

        #readings-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: 1px solid white;
            color: white;
            padding: 0;
        }

        #readings-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Modal "Ver Todo" */
        .full-text-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
        }
        .full-text-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .full-text-content {
            background-color: #2c2c2c;
            color: #f0f0f0;
            border-radius: 8px;
            width: 90%;
            max-width: 700px;
            height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 5px 20px rgba(0,0,0,0.5);
        }
        .full-text-header {
            padding: 15px 20px;
            border-bottom: 1px solid #444;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .full-text-header h2 {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            font-weight: 500;
        }
        .close-full-text {
            background: none;
            border: none;
            color: #f0f0f0;
            font-size: 1.5rem;
            cursor: pointer;
        }
        .full-text-body {
            padding: 20px;
            overflow-y: auto;
            line-height: 1.8;
            font-size: 1rem;
        }
        .full-text-body p { margin-top: 0; }
        .full-text-body strong { color: #cccccc; }
        .full-text-body hr { border: 0; height: 1px; background-color: #444; margin: 20px 0; }
        .full-text-body::-webkit-scrollbar { width: 8px; }
        .full-text-body::-webkit-scrollbar-track { background: #2c2c2c; }
        .full-text-body::-webkit-scrollbar-thumb { background-color: #666; border-radius: 4px; }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            font-size: 1.3rem;
            cursor: pointer;
            padding: 8px;
            z-index: 4;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease, opacity 0.4s ease;
            touch-action: manipulation;
        }
        .modal-nav.prev { left: 10px; }
        .modal-nav.next { right: 10px; }
        .modal-nav:hover { background: rgba(0, 0, 0, 0.8); }
        .modal-nav.hidden-by-text {
            opacity: 0;
            pointer-events: none;
        }

        /* Mejoras de navegación del modal para móvil */
        @media (max-width: 768px) {
            .modal-nav {
                width: 44px;
                height: 44px;
                font-size: 1.1rem;
                background: rgba(0, 0, 0, 0.7);
                backdrop-filter: blur(5px);
                -webkit-backdrop-filter: blur(5px);
            }
            
            .modal-nav.prev { left: 15px; }
            .modal-nav.next { right: 15px; }
            
            .modal-nav:active {
                transform: translateY(-50%) scale(0.9);
                transition: transform 0.1s ease;
            }
        }

        @media (max-width: 480px) {
            .modal-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .modal-nav.prev { left: 10px; }
            .modal-nav.next { right: 10px; }
        }

        footer {
            background-color: #fefefe;
            border-top: 1px solid #f5f5f5;
            text-align: center;
            padding: 25px 20px;
            margin-top: 40px;
        }
        footer p { color: #888888; font-size: 0.9rem; }
        footer a { color: #555555; font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
        footer a:hover { color: #000000; text-decoration: underline; }

        /* Estilos para el botón de sugerencias */
        .suggestions-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 50%;
            color: var(--light-text);
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
        }

        /* Mejoras para botones flotantes en móvil */
        @media (max-width: 768px) {
            .suggestions-btn {
                bottom: 15px;
                right: 15px;
                width: 56px;
                height: 56px;
                font-size: 1.3rem;
                box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            }
            
            .suggestions-btn:active {
                transform: scale(0.95);
                transition: transform 0.1s ease;
            }
            
            #music-toggle-btn {
                bottom: 15px;
                left: 15px;
                width: 44px;
                height: 44px;
                font-size: 1.1rem;
                box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            }
            
            #music-toggle-btn:active {
                transform: scale(0.95);
                transition: transform 0.1s ease;
            }
        }

        @media (max-width: 480px) {
            .suggestions-btn {
                width: 52px;
                height: 52px;
                font-size: 1.2rem;
            }
            
            #music-toggle-btn {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
        }
        
        .suggestions-btn:hover {
            background-color: #f8f8f8;
            border-color: #cccccc;
            color: var(--dark-text);
            transform: scale(1.05);
        }
        
        .suggestions-btn i {
            font-size: 1.1rem;
        }
        
        /* Modal de sugerencias */
        .suggestions-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .suggestions-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .suggestions-content {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            transform: translateY(30px);
            transition: transform 0.3s ease;
        }
        
        .suggestions-modal.active .suggestions-content {
            transform: translateY(0);
        }
        
        .suggestions-header {
            background: white;
            color: var(--dark-text);
            padding: 20px;
            border-bottom: 1px solid var(--border-light);
            text-align: center;
            position: relative;
        }
        
        .suggestions-header h2 {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2rem;
            font-weight: 500;
            color: var(--dark-text);
        }
        
        .suggestions-header .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: var(--light-text);
            font-size: 1.5rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .suggestions-header .close-btn:hover {
            background-color: #f8f8f8;
            color: var(--dark-text);
        }
        
        .suggestions-body {
            padding: 30px;
        }
        
        .suggestions-message {
            background: #f8f9fa;
            border: 1px solid var(--border-light);
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            line-height: 1.5;
            color: var(--dark-text);
            font-family: 'Open Sans', sans-serif;
        }
        
        .suggestions-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .form-group label {
            font-weight: 600;
            color: var(--dark-text);
            font-size: 0.9rem;
        }
        
        .form-group input,
        .form-group textarea {
            padding: 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-family: 'Open Sans', sans-serif;
            font-size: 0.95rem;
            transition: border-color 0.3s ease;
            resize: vertical;
            width: 100%;
            box-sizing: border-box;
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--brand-color);
        }
        
        .form-group textarea {
            min-height: 120px;
        }
        
        .submit-btn {
            background: none;
            color: var(--dark-text);
            border: 1px solid #e0e0e0;
            padding: 12px 20px;
            border-radius: 20px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .submit-btn:hover {
            background-color: #f8f8f8;
            border-color: #cccccc;
        }
        
        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
                }
        
        
        
        /* ===== MURAL DEL PEREGRINO - ESTÉTICA MONOCROMÁTICA ===== */
        
        /* Contenedor Principal del Mural */
        .mural-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: #ffffff;
            z-index: 1000;
            overflow-y: auto;
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            display: none;
        }
        
        .mural-container.active {
            opacity: 1;
            transform: translateY(0);
            display: block;
        }
        
        /* Header del Mural */
        .mural-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 2rem 3rem;
            background: #ffffff;
            border-bottom: 1px solid #e8e8e8;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .mural-back-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: transparent;
            border: 1px solid #d0d0d0;
            color: #666666;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }
        
        .mural-back-btn:hover,
        .mural-back-btn:focus {
            background: #f5f5f5;
            border-color: #b0b0b0;
            color: #333333;
            outline: none;
        }
        
        .mural-title-section {
            text-align: center;
            flex: 1;
        }
        
        .mural-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 2.2rem;
            font-weight: 300;
            color: #333333;
            margin: 0 0 0.5rem 0;
            letter-spacing: 0.5px;
        }
        
        .mural-subtitle {
            font-family: 'Open Sans', sans-serif;
            font-size: 1rem;
            color: #888888;
            margin: 0;
            font-weight: 400;
            font-style: italic;
        }
        
        .mural-header-spacer {
            width: 48px; /* Para balancear el botón de volver */
        }
        
        /* Main Content */
        .mural-main {
            padding: 3rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* Grid del Mural - Formato horizontal (uno por fila) */
        .mural-grid {
            display: flex;
            flex-direction: column;
            gap: 24px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease-out;
            max-width: 900px;
            margin: 0 auto;
        }
        
        .mural-grid.loaded {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Tarjetas del Mural - Estética horizontal minimalista */
        .mural-card {
            display: flex;
            background: #ffffff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            min-height: 140px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateY(20px);
        }
        
        .mural-card.card-animada {
            animation: aparicionTarjeta 0.6s ease-out forwards;
        }
        
        @keyframes aparicionTarjeta {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .mural-card:hover {
            border-color: #c0c0c0;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            transform: translateY(-4px);
        }
        
        /* ===== SCRIPTORIUM - CÓDICES RECIENTES MINIMALISTAS ===== */
        .mural-card.reciente {
            min-height: 200px;
            background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
            border: 2px solid #d4af37; /* Solo borde dorado simple */
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            position: relative;
            transform: scale(1.05); /* Hacer las tarjetas recientes un 5% más grandes */
            margin: 8px; /* Agregar espacio extra para la escala */
        }
        
        .mural-card.reciente .mural-card-visual {
            width: 280px; /* Aumentar ancho de la imagen */
            min-width: 280px;
            height: 200px; /* Aumentar altura de la imagen */
        }
        
        .mural-card.reciente .mural-card-fecha {
            background: #f5f5f5; /* Fondo gris simple */
            color: #333;
            font-weight: 700;
            padding: 10px 15px; /* Aumentar padding */
            font-size: 13px; /* Aumentar tamaño de fuente */
            border-radius: 6px;
            /* Quitar el texto "CÓDICE RECIENTE" */
        }
        
        .mural-card.reciente .mural-card-titulo {
            font-size: 22px; /* Aumentar tamaño del título */
            font-weight: 700;
            margin-bottom: 15px; /* Más espacio */
            line-height: 1.3;
        }
        
        .mural-card.reciente .mural-card-descripcion {
            font-size: 16px; /* Aumentar tamaño de descripción */
            line-height: 1.8;
            margin-bottom: 10px;
        }
        
        .mural-card.reciente:hover {
            border-color: var(--brand-color);
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.20);
            transform: scale(1.05) translateY(-8px); /* Mantener escala en hover */
        }
        
        /* Parte visual de la tarjeta - lado izquierdo */
        .mural-card-visual {
            width: 200px;
            min-width: 200px;
            height: 140px;
            position: relative;
            background: #f8f8f8;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        /* Ocultar el visual cuando está vacío */
        .mural-card-visual:empty {
            display: none;
        }
        
        /* Estilo para tarjetas sin imagen */
        .mural-card.sin-imagen {
            display: block;
        }
        
        .mural-card.sin-imagen .mural-card-visual {
            display: none;
        }
        
        .mural-card.sin-imagen .mural-card-info {
            width: 100%;
            margin-left: 0;
        }
        
        /* Fecha en la tarjeta - esquina superior izquierda de la imagen */
        .mural-card-fecha {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 6px 10px;
            border-radius: 6px;
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.5px;
            z-index: 2;
            text-transform: uppercase;
        }
        
        .mural-card-imagen {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        
        .mural-card:hover .mural-card-imagen {
            transform: scale(1.02);
        }
        
        /* Placeholder para contenido sin imagen */
        .mural-card-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
            color: #999999;
            gap: 8px;
        }
        
        .mural-card-placeholder i {
            font-size: 28px;
        }
        
        .mural-card-placeholder span {
            font-family: 'Open Sans', sans-serif;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Información de la tarjeta - lado derecho */
        .mural-card-info {
            flex: 1;
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .mural-card-titulo {
            font-family: 'Montserrat', sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #2c2c2c;
            margin: 0 0 8px 0;
            line-height: 1.4;
        }
        
        /* Indicador de tipo de contenido */
        .mural-card-tipo {
            display: inline-block;
            margin-bottom: 12px;
            padding: 4px 12px;
            background: #f0f0f0;
            color: #666;
            border-radius: 20px;
            font-family: 'Open Sans', sans-serif;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            width: fit-content;
        }
        
        /* Descripción del hallazgo */
        .mural-card-descripcion {
            font-family: 'Open Sans', sans-serif;
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin: 0;
            letter-spacing: 0.5px;
            font-weight: 500;
        }
        
        /* Indicador de destacado */
        .mural-card.destacado {
            border-color: #333333;
            position: relative;
        }
        
        .mural-card.destacado::before {
            content: "★";
            position: absolute;
            top: 12px;
            right: 12px;
            background: #333333;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            z-index: 2;
        }
        
        /* Modal del Hallazgo */
        .hallazgo-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            opacity: 0;
            transition: opacity 0.4s ease;
            backdrop-filter: blur(3px);
        }
        
        .hallazgo-modal-overlay.active {
            opacity: 1;
        }
        
        .hallazgo-modal-container {
            width: 100%;
            max-width: 900px;
            max-height: 90vh;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            transform: scale(0.9) translateY(50px);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
        }
        
        .hallazgo-modal-overlay.active .hallazgo-modal-container {
            transform: scale(1) translateY(0);
        }
        
        /* Header del Modal */
        .hallazgo-modal-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid #e8e8e8;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fafafa;
        }
        
        .hallazgo-fecha-modal {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9rem;
            font-weight: 500;
            color: #666666;
            letter-spacing: 1px;
        }
        
        .hallazgo-modal-back,
        .hallazgo-modal-close {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: transparent;
            border: 1px solid #d0d0d0;
            color: #666666;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .hallazgo-modal-back:hover,
        .hallazgo-modal-close:hover {
            background: #f0f0f0;
            color: #333333;
        }
        
        /* Body del Modal */
        .hallazgo-modal-body {
            overflow-y: auto;
            max-height: calc(90vh - 80px);
        }
        
        /* Contenedor visual del hallazgo */
        .hallazgo-visual-container {
            width: 100%;
            background: #f8f8f8;
        }
        
        .hallazgo-video-embed {
            width: 100%;
            aspect-ratio: 16/9;
        }
        
        .hallazgo-imagen-grande {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* Información del hallazgo */
        .hallazgo-info {
            padding: 2rem;
        }
        
        .hallazgo-titulo-modal {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.8rem;
            font-weight: 400;
            color: #333333;
            margin: 0 0 1rem 0;
            line-height: 1.3;
        }
        
        .hallazgo-descripcion-modal {
            font-family: 'Open Sans', sans-serif;
            font-size: 1.1rem;
            color: #666666;
            line-height: 1.6;
            margin: 0 0 2rem 0;
        }
        
        /* Sección "Por qué lo recomiendo" */
        .hallazgo-recomendacion {
            background: #f9f9f9;
            border-left: 3px solid #333333;
            padding: 1.5rem;
            margin: 0 0 2rem 0;
        }
        
        .recomendacion-titulo {
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            font-weight: 500;
            color: #333333;
            margin: 0 0 1rem 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .recomendacion-texto {
            font-family: 'Open Sans', sans-serif;
            font-size: 1rem;
            color: #555555;
            line-height: 1.6;
            margin: 0;
            font-style: italic;
        }
        
        /* Botón de acción */
        .hallazgo-accion {
            text-align: center;
        }
        
        .hallazgo-btn-accion {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2rem;
            background: #333333;
            color: white;
            border: none;
            border-radius: 6px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .hallazgo-btn-accion:hover {
            background: #222222;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            color: white;
        }
        
        /* Loading */
        .mural-loading {
            text-align: center;
            padding: 4rem;
            color: #888888;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 2px solid #e8e8e8;
            border-top: 2px solid #333333;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .mural-header {
                padding: 1.5rem;
            }
            
            .mural-title {
                font-size: 1.8rem;
            }
            
            .mural-main {
                padding: 2rem 1.5rem;
            }
            
            .mural-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .hallazgo-modal-overlay {
                padding: 1rem;
            }
            
            .hallazgo-info {
                padding: 1.5rem;
            }
            
            .hallazgo-titulo-modal {
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .mural-title {
                font-size: 1.6rem;
            }
            
            .mural-subtitle {
                font-size: 0.9rem;
            }
            
            .mural-card-visual {
                height: 160px;
            }
        }
        
        /* ===== REPRODUCTOR DE AUDIO MINIMALISTA ===== */
        
        .hallazgo-audio-container {
            padding: 1rem;
            background: #ffffff;
            border-radius: 8px;
            text-align: center;
            min-height: 80px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-top: 1px solid #e9ecef;
            margin-top: 1rem;
        }
        
        .audio-player-header {
            display: none; /* Ocultar el header con "Reproductor de Audio" */
        }
        
        .hallazgo-audio-player {
            border-radius: 8px;
            background: #f8f9fa;
            padding: 8px;
            border: 1px solid #dee2e6;
            outline: none;
            box-shadow: none;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 300px;
        }
        
        .hallazgo-audio-player:focus {
            border-color: #6c757d;
            box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
        }
        
        .audio-info {
            display: none; /* Ocultar la info con la nota musical */
        }
        
        /* Personalización minimalista del reproductor HTML5 */
        .hallazgo-audio-player::-webkit-media-controls-panel {
            background-color: #f8f9fa;
            border-radius: 6px;
        }
        
        .hallazgo-audio-player::-webkit-media-controls-play-button,
        .hallazgo-audio-player::-webkit-media-controls-pause-button {
            background-color: #6c757d; /* Gris monocromático */
            border-radius: 50%;
            color: white;
        }
        
        .hallazgo-audio-player::-webkit-media-controls-timeline {
            background-color: #e9ecef;
            border-radius: 4px;
        }
        
        .hallazgo-audio-player::-webkit-media-controls-current-time-display,
        .hallazgo-audio-player::-webkit-media-controls-time-remaining-display {
            font-family: 'Open Sans', sans-serif;
            font-size: 0.75rem;
            color: #6c757d;
        }
        
        @media (max-width: 768px) {
            .hallazgo-audio-container {
                padding: 0.75rem;
                min-height: 60px;
            }
        }
        
                /* Estilos para el Banner de Citas */

        #citas-banner {
            background-color: var(--background-light);
            border-top: 1px solid var(--border-light);
            padding: 25px 20px;
            text-align: center;
            overflow: hidden;
            max-width: 1200px;
            margin: 0 auto;
            box-sizing: border-box;
            display: none; /* Oculto por defecto */
        }

        body.grid-view #citas-banner {

            display: block; /* Mostrar solo en la vista mensual */

        }

        #cita-contenido {

            transition: opacity 2.5s ease-in-out;

            opacity: 1;

        }

        #cita-contenido.fade-out {

            opacity: 0;

        }

        .cita-texto {

            font-family: 'Georgia', serif;

            font-size: 1.0rem; /* Reducido desde 1.4rem */

            font-style: italic;

            color: var(--light-text); /* Cambiado a gris más claro */

            margin: 0 0 15px 0;

            line-height: 1.6;

        }



        .cita-autor {

            font-family: 'Montserrat', sans-serif;

            font-weight: 500;

            font-size: 0.8rem; /* Reducido desde 1rem */

            color: #888888; /* Tono de gris más suave */

            margin: 0;

        }

        @media (max-width: 768px) {

            .cita-texto { font-size: 1.0rem; }

            .cita-autor { font-size: 0.8rem; }

        }

        

        @media (max-width: 768px) {

            .header-top-row { flex-direction: column; gap: 15px; }

            .view-switcher { position: static; transform: none; }

            .modal-body { padding: 20px; }

            .santo-name { font-size: 1.1rem; }

            .full-text-body { font-size: 0.9rem; }

            body.list-view .day-cell.in-view,

            body.list-view .day-cell:hover {

                 transform: scale(1.1) !important;

            }

            

            .suggestions-btn {

                bottom: 15px;

                right: 15px;

                width: 45px;

                height: 45px;

                font-size: 1rem;

            }

            

            .suggestions-content {

                width: 95%;

                margin: 20px;

            }

            

            .suggestions-body {

                padding: 20px;

            }

        }


/* ===== RESPONSIVE MURAL DEL PEREGRINO ===== */

@media (max-width: 768px) {
    .mural-grid {
        max-width: 100%;
        gap: 16px;
        padding: 0 16px;
    }
    
    .mural-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .mural-card-visual {
        width: 100%;
        height: 200px;
    }
    
    .mural-card-info {
        padding: 20px;
    }
    
    .mural-card-titulo {
        font-size: 16px;
    }
    
    .mural-card-descripcion {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mural-grid {
        gap: 12px;
        padding: 0 12px;
    }
    
    .mural-card-visual {
        height: 160px;
    }
    
    .mural-card-info {
        padding: 16px;
    }
    
    .mural-card-fecha {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ===== MEJORAS ADICIONALES PARA MÓVIL ===== */

/* Mejoras de texto y tipografía para móvil */
@media (max-width: 768px) {
    /* Mejoras generales de texto */
    .santo-name {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
    
    .santo-info {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .info-label {
        font-weight: 600 !important;
        display: block !important;
        margin-bottom: 2px !important;
    }
    
    /* Mejoras para los botones de acción */
    .modal-actions {
        flex-direction: row !important;
        gap: 8px !important;
        margin-top: 15px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .read-history-btn,
    .view-all-btn,
    .read-less-btn,
    .action-btn {
        width: auto !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        text-align: center !important;
        touch-action: manipulation !important;
        flex: 0 0 auto !important;
        min-width: 60px !important;
    }
    
    /* Mejoras para navegación año/mes */
    .nav-button {
        padding: 10px !important;
        font-size: 1.3rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: manipulation !important;
    }
    
    .current-year,
    .current-month-year {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
    
    /* Mejoras para sidebar */
    .sidebar-menu {
        width: 280px !important;
    }
    
    .sidebar-btn {
        padding: 15px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        touch-action: manipulation !important;
    }
    
    /* Mejoras para elementos de formulario */
    .suggestions-form textarea {
        min-height: 120px !important;
        font-size: 1rem !important;
        padding: 12px !important;
    }
    
    .submit-btn {
        padding: 12px 24px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        touch-action: manipulation !important;
    }
}

/* Mejoras específicas para pantallas muy pequeñas */
@media (max-width: 480px) {
    .santo-name {
        font-size: 1.2rem !important;
    }
    
    .current-year,
    .current-month-year {
        font-size: 1.3rem !important;
    }
    
    .nav-button {
        font-size: 1.2rem !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .sidebar-menu {
        width: 260px !important;
    }
}

/* Mejoras para interacciones táctiles */
@media (max-width: 768px) {
    /* Mejor feedback táctil */
    .day-cell:active,
    .month-btn:active,
    .view-btn:active,
    .nav-button:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Áreas de toque más grandes */
    .view-btn {
        padding: 10px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Mejor espaciado entre elementos interactivos */
    .view-switcher {
        gap: 8px !important;
        padding: 6px !important;
    }
    
    /* Mejor contraste para texto sobre imágenes */
    .tooltip {
        background-color: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        font-weight: 500 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .santo-identity {
        font-weight: 600 !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    /* Mejoras para scroll en móvil */
    body {
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Optimización de rendimiento para animaciones en móvil */
    .day-cell,
    .modal-content,
    .calendar-container {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: transform !important;
    }
}

/* ===== OPTIMIZACIONES ESPECÍFICAS PARA DISPOSITIVOS TÁCTILES ===== */
.touch-device {
    /* Mejorar rendimiento en dispositivos táctiles */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.touch-device .day-cell {
    /* Eliminar hover effects en dispositivos táctiles */
    transition: transform 0.2s ease, opacity 0.3s ease, filter 0.3s ease;
}

.touch-device .day-cell:hover {
    /* Evitar efectos hover persistentes en táctiles */
    transform: none !important;
}

.touch-device .day-cell:active {
    /* Feedback táctil inmediato */
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

.touch-device .modal-nav:hover {
    /* Eliminar hover en dispositivos táctiles */
    background: rgba(0, 0, 0, 0.5) !important;
}

.touch-device .view-btn:hover,
.touch-device .nav-button:hover,
.touch-device .suggestions-btn:hover {
    /* Eliminar efectos hover problemáticos en táctiles */
    transform: none !important;
    background: inherit !important;
}

/* Mejoras de accesibilidad para táctiles */
.touch-device button,
.touch-device .day-cell,
.touch-device .month-btn {
    min-height: 44px;
    min-width: 44px;
}
