/* Modal y Overlay Mejorado - Una sola scrollbar */
#palabraDiaModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  max-width: 95vw;
  max-height: 95vh;
  width: 900px;
  overflow: hidden;
  display: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#overlay-palabra-dia {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  display: none;
  backdrop-filter: blur(4px);
}

/* Header del Modal Mejorado */
.modal-header {
  background: linear-gradient(135deg, #543fca 0%, #ffdcdc 50%, #c6e3ff 100%);
  color: white;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px 20px 0 0;
}

.modal-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title i {
  font-size: 1.6rem;
  opacity: 0.9;
}

/* Botón de cerrado mejorado en esquina superior derecha */
.close-palabra-dia-modal {
  position: absolute;
  top: 35px;
  right: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-palabra-dia-modal:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.close-palabra-dia-modal:active {
  transform: scale(1.05) rotate(90deg);
}

/* Contenedor principal con UNA SOLA scrollbar */
.modal-body {
  height: calc(95vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  scroll-behavior: smooth;
}

/* Scrollbar personalizada */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #357abd, #1e5f99);
}

/* Navegación del mes mejorada */
.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: linear-gradient(135deg, #def5ff 0%, #def5ff 100%);
  border-bottom: 3px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Botones de navegación con colores originales */
.nav-button {
  background: linear-gradient(135deg, #c6e3ff 0%, #c6e3ff 100%);
  color: rgb(0, 0, 0);
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-button:hover {
  background: linear-gradient(135deg, #543fca 0%, #c6e3ff 90%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.nav-button:disabled {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-hoy {
  background: linear-gradient(135deg, #c6e3ff 0%, #c6e3ff 100%) !important;
  font-size: 0.9rem;
  padding: 10px 16px;
}

.btn-hoy:hover {
  background: linear-gradient(135deg, #543fca 0%, #c6e3ff 130%) !important;
}

#palabraMesActual {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

/* Calendario Container Mejorado */
.calendario-container {
  background:  #4a90e2;
  margin: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 4px solid #4a90e2;
}

/* Encabezados de días de la semana mejorados */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 800;
  margin: 0;
  padding: 20px 15px;
  background: linear-gradient(135deg, #c6e3ff 0%, #c6e3ff 100%);
  color: #495057;
  font-size: 1rem;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-weekdays > div {
  padding: 10px 5px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.calendar-weekdays > div:hover {
  background: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
}

/* Contenedor de días mejorado */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 25px;
  background: white;
}

/* Días del calendario mejorados */
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 700;
  position: relative;
  min-height: 55px;
  border: 3px solid #4a90e2;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  font-size: 1.1rem;
  color: #2c3e50;
}

.calendar-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, transparent 0%, rgba(74, 144, 226, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calendar-day:hover::before {
  opacity: 1;
}

.calendar-day:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #a8d8ea 100%);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
  border-color: #4a90e2;
}

/* Estados de los días mejorados */
.calendar-day.inactive {
  background: transparent;
  cursor: default;
  opacity: 0;
  box-shadow: none;
  border: none;
}

.calendar-day.available {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
  color: #2c3e50;
  border: 3px solid #4a90e2;
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, #d1ecf1 0%, #a8d8ea 100%);
  border-color: #4a90e2;
  color: #1e5f99;
}

.calendar-day.future {
  background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
  color: #adb5bd;
  cursor: not-allowed;
  border: 3px solid #4a90e2;
}

.calendar-day.future:hover {
  transform: none;
  background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.calendar-day.today {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
  border: 3px solid #4a90e2;
  position: relative;
}

.calendar-day.today::after {
  content: '●';
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.calendar-day.today:hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #e53935 100%);
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.calendar-day.selected {
  background: linear-gradient(135deg, #000000 0%, #357abd 100%) !important;
  color: rgb(71, 30, 30) !important;
  font-weight: 800;
  border: 3px solid #1e5f99;
  box-shadow: 0 6px 25px rgba(74, 144, 226, 0.5);
  position: relative;
}

.calendar-day.selected::after {
  content: '✓';
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 10px;
  color: rgba(202, 34, 34, 0.9);
  font-weight: 900;
}

.calendar-day.selected:hover {
  background: linear-gradient(135deg, #357abd 0%, #1e5f99 100%) !important;
  color: white !important;
  transform: scale(1.1) translateY(-2px);
}

/* Sección de Lectura Mejorada (sin scroll propio) */
.lectura-expandible {
  background: white;
  margin: 20px 30px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #4a90e2;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(-10px);
}

.lectura-expandible.expanded {
  max-height: 2000px; /* Altura suficientemente grande */
  opacity: 1;
  transform: translateY(0);
}

.lectura-header {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px 13px 0 0;
}

.lectura-info {
  flex: 1;
}

.lectura-fecha {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lectura-fecha i {
  font-size: 1.2rem;
  opacity: 0.9;
}

.lectura-tipo {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  font-style: italic;
  font-weight: 500;
}

.lectura-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lectura-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
}

/* Contenido de lectura mejorado (SIN scroll propio) */
.lectura-content {
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 0 0 13px 13px;
}

.lectura-section {
  margin-bottom: 30px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #4a90e2;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lectura-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  transition: width 0.3s ease;
}

.lectura-section:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 30px rgba(74, 144, 226, 0.15);
}

.lectura-section:hover::before {
  width: 8px;
}

.lectura-section:last-child {
  margin-bottom: 0;
}

.lectura-section h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin: 0 0 18px 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lectura-section h3 i {
  color: #4a90e2;
  font-size: 1.2rem;
  padding: 8px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 50%;
}

.lectura-section p {
  line-height: 1.8;
  color: #495057;
  margin-bottom: 15px;
  font-size: 1rem;
  text-align: justify;
  font-weight: 400;
}

.lectura-section .cita {
  font-style: italic;
  color: #6c757d;
  text-align: right;
  margin-top: 20px;
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1rem;
  border-top: 2px solid #e9ecef;
  padding-top: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Estados de carga y error mejorados */
.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  text-align: center;
  color: #6c757d;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.error-container h3 {
  color: #dc3545;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
}

.error-container p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.btn-external {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-external:hover {
  background: linear-gradient(135deg, #357abd 0%, #1e5f99 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

/* Mensajes temporales mejorados */
.mensaje-temporal {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 15px 25px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  z-index: 20;
  animation: slideIn 0.5s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.mensaje-temporal.warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.mensaje-temporal.info {
  background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
}

.mensaje-temporal.error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animación de pulso mejorada para el día actual */
@keyframes pulse {
  0% {
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 35px rgba(255, 107, 107, 0.8);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
    transform: scale(1);
  }
}

/* Responsive Design Mejorado */
@media (max-width: 768px) {
  #palabraDiaModal {
    width: 95vw;
    height: 95vh;
    max-width: none;
    border-radius: 15px;
  }
  
  .modal-header {
    padding: 20px;
    border-radius: 15px 15px 0 0;
  }
  
  .modal-title {
    font-size: 1.4rem;
  }
  
  .modal-body {
    height: calc(95vh - 80px);
  }
  
  .month-navigation {
    padding: 20px;
  }
  
  .nav-button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  #palabraMesActual {
    font-size: 1.2rem;
  }
  
  .calendario-container {
    margin: 15px 20px;
  }
  
  .calendar-days {
    gap: 4px;
    padding: 20px;
  }
  
  .calendar-day {
    min-height: 48px;
    font-size: 1rem;
  }
  
  .lectura-expandible {
    margin: 15px 20px 25px;
  }
  
  .lectura-content {
    padding: 25px;
  }
  
  .lectura-section {
    padding: 20px;
    margin-bottom: 25px;
  }
  
  .lectura-section h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .modal-header {
    padding: 15px;
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
  
  .calendar-days {
    padding: 15px;
    gap: 3px;
  }
  
  .calendar-day {
    min-height: 42px;
    font-size: 0.9rem;
  }
  
  .calendar-weekdays {
    padding: 15px 10px;
    font-size: 0.85rem;
  }
  
  .lectura-content {
    padding: 20px;
  }
  
  .lectura-section {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .lectura-section h3 {
    font-size: 1rem;
  }
  
  .lectura-section p {
    font-size: 0.95rem;
  }
  
  .nav-button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Estilos adicionales para la información de fuente */
.fuente-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  font-size: 0.9rem;
  color: #495057;
}

.fuente-info p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fuente-info i {
  color: #4a90e2;
  font-size: 0.9rem;
}

.fuente-info a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.fuente-info a:hover {
  color: #357abd;
  text-decoration: underline;
}

/* Estilos para enlaces externos en error */
.enlaces-externos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.btn-external {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 3px 15px rgba(74, 144, 226, 0.3);
}

.btn-external:hover {
  background: linear-gradient(135deg, #357abd 0%, #1e5f99 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
  text-decoration: none;
  color: white;
}

.btn-external:active {
  transform: translateY(0);
}

/* Mejorar el contenedor de error */
.error-container {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border: 2px solid #fc8181;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  color: #c53030;
}

.error-container h3 {
  color: #c53030;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.error-container p {
  color: #744210;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Mejorar el loading */
.loading-container {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  color: #0369a1;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0f2fe;
  border-top: 4px solid #0284c7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-container p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #0369a1;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .fuente-info {
    padding: 15px;
    font-size: 0.85rem;
  }
  
  .fuente-info p {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .enlaces-externos {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .btn-external {
    width: 100%;
    max-width: 250px;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .error-container {
    padding: 25px 20px;
  }
  
  .error-container h3 {
    font-size: 1.1rem;
    flex-direction: column;
    gap: 8px;
  }
  
  .loading-container {
    padding: 35px 25px;
  }
}

@media (max-width: 480px) {
  .fuente-info {
    padding: 12px;
    font-size: 0.8rem;
  }
  
  .btn-external {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  
  .error-container {
    padding: 20px 15px;
  }
  
  .loading-container {
    padding: 30px 20px;
  }
  
  .loading-container p {
    font-size: 1rem;
  }
}

/* 🎊 ESTILOS PARA SANTO DEL DÍA - COLORES CORREGIDOS */
.santo-del-dia {
  background: linear-gradient(135deg, #4a90e2 0%, #c6e3ff 100%);
  border: 2px solid #357abd;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
  position: relative;
  overflow: hidden;
}

.santo-del-dia::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.santo-del-dia h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.santo-del-dia h3 i {
  color: #ffd700;
  font-size: 1.3rem;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* 📊 ESTILOS PARA INFORMACIÓN DEL SISTEMA */
.info-sistema {
  background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
  border: 2px solid #bee5eb;
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 25px;
  font-size: 0.9rem;
  color: #495057;
  text-align: center;
}

.info-sistema p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.info-sistema i {
  color: #17a2b8;
  font-size: 0.9rem;
}

/* 🎯 MEJORAS PARA LECTURAS EXISTENTES */
.lectura-section {
  position: relative;
  transition: all 0.3s ease;
}

.lectura-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25px;
  right: 25px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e9ecef, transparent);
  opacity: 0.7;
}

.lectura-section:last-of-type::after {
  display: none;
}

/* 📱 RESPONSIVE PARA SANTO DEL DÍA */
@media (max-width: 768px) {
  .santo-del-dia {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .santo-del-dia h3 {
    font-size: 1.2rem;
    flex-direction: column;
    gap: 8px;
  }
  
  .santo-del-dia h3 i {
    font-size: 1.1rem;
  }
  
  .info-sistema {
    padding: 12px 15px;
    font-size: 0.85rem;
  }
  
  .info-sistema p {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .santo-del-dia {
    padding: 12px;
    margin-bottom: 18px;
  }
  
  .santo-del-dia h3 {
    font-size: 1.1rem;
  }
  
  .info-sistema {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* 🎨 VARIANTES DE COLOR PARA DIFERENTES TEMPORADAS LITÚRGICAS */
.temporada-navidad .santo-del-dia {
  background: linear-gradient(135deg, #dc143c 0%, #ff6347 100%);
  border-color: #b91c1c;
}

.temporada-navidad .santo-del-dia h3 {
  color: white;
}

.temporada-cuaresma .santo-del-dia {
  background: linear-gradient(135deg, #4a90e2 0%, #c6e3ff 100%);
  border-color: #357abd;
}

.temporada-cuaresma .santo-del-dia h3 {
  color: white;
}

.temporada-pascua .santo-del-dia {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.temporada-pascua .santo-del-dia h3 {
  color: #1e293b;
}

/* 📈 INDICADOR DE CARGA PARA LECTURAS REALES - CORREGIDO */
.lectura-real-indicator {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* 🎨 ESTILOS SIMPLES PARA DÍAS CON LECTURAS REALES */

/* Días con lecturas reales */
.calendar-day.has-real-reading {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  color: #155724;
  font-weight: bold;
  position: relative;
}

.calendar-day.has-real-reading::after {
  content: "📖";
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
}

.calendar-day.has-real-reading:hover {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  transform: scale(1.05);
}

/* Día actual con lectura */
.calendar-day.today.has-real-reading {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-color: #e65100;
  color: white;
}

/* Asegurar que días seleccionados siempre tengan texto blanco */
.calendar-day.selected,
.calendar-day.selected.today,
.calendar-day.selected.has-real-reading,
.calendar-day.selected.today.has-real-reading {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
  color: white !important;
  border: 3px solid #1e5f99 !important;
}

/* Secciones de lectura */
.lectura-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-left: 4px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lectura-section h3 {
  color: #007bff;
  margin-bottom: 10px;
  font-size: 16px;
}

.lectura-section .cita {
  font-style: italic;
  color: #666;
  font-size: 14px;
  text-align: right;
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* Loading spinner */
.loading-container {
  text-align: center;
  padding: 40px;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mensajes temporales */
.mensaje-temporal {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.mensaje-temporal.warning {
  background: #ffc107;
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Estilos para textoExtra con diseño similar al santo del día */
.santo-del-dia {
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.santo-del-dia h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.santo-del-dia h3 i {
  color: #ffd700;
  font-size: 1.2rem;
}

/* Estilo para el texto extra - similar al título pero diferenciado */
.texto-extra {
  color: #006edb;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 8px 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-radius: 8px;
  border-left: 3px solid #f39c12;
  position: relative;
  font-style: italic;
}

/* Pequeño icono decorativo para el texto extra */
.texto-extra::before {
  content: "✨";
  position: absolute;
  left: -8px;
  top: 12px;
  background: #f39c12;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Efecto hover para el texto extra */
.texto-extra:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
  transition: all 0.3s ease;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .santo-del-dia h3 {
    font-size: 1.2rem;
  }
  
  .texto-extra {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  
  .texto-extra::before {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
}

/* 🎯 AGREGA ESTO AL FINAL DE TU palabra-del-dia.css */

/* Cita bíblica arriba del texto */
.lectura-section .cita-arriba {
  font-style: italic;
  color: #4a90e2;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 10px 0 15px 0;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
  border-left: 3px solid #4a90e2;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Texto de la lectura */
.lectura-section .texto-lectura {
  line-height: 1.8;
  color: #495057;
  font-size: 1rem;
  text-align: justify;
  font-weight: 400;
  margin: 0;
}

/* Orden correcto de elementos */
.lectura-section {
  display: flex;
  flex-direction: column;
}

.lectura-section h3 {
  order: 1;
  margin-bottom: 0;
}

.lectura-section .cita-arriba {
  order: 2;
}

.lectura-section .texto-lectura {
  order: 3;
}

/* Efecto hover para la cita */
.lectura-section .cita-arriba:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  transform: translateX(3px);
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .lectura-section .cita-arriba {
    font-size: 0.85rem;
    padding: 6px 10px;
    margin: 8px 0 12px 0;
  }
  
  .lectura-section .texto-lectura {
    font-size: 0.95rem;
  }
}