/* ===========================
   EVANGELIO DEL DÍA - ESTILOS
   =========================== */

/* Asegurar centrado de la sección */
#evangelio {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl, 4rem) var(--spacing-md, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#evangelio h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg, 3rem);
  width: 100%;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--primary-color, #8B4513);
  position: relative;
}

#evangelio h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary-color, #8B4513) 0%, 
    var(--secondary-color, #DAA520) 50%, 
    var(--primary-color, #8B4513) 100%);
  border-radius: 2px;
}

.evangelio-card {
  background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%);
  border: 2px solid var(--primary-color, #8B4513);
  border-radius: 15px;
  padding: 30px;
  margin: 20px auto;
  max-width: 800px;
  width: 100%;
  box-shadow: 
    0 10px 30px rgba(139, 69, 19, 0.1),
    0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.evangelio-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 15px 40px rgba(139, 69, 19, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1);
}

.evangelio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--primary-color, #8B4513) 0%, 
    var(--secondary-color, #DAA520) 50%, 
    var(--primary-color, #8B4513) 100%);
}

/* Header del evangelio */
.evangelio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.evangelio-fecha {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color, #8B4513);
}

.evangelio-fecha i {
  font-size: 1.2rem;
  color: var(--secondary-color, #DAA520);
}

.evangelio-fuente {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Contenido principal */
.evangelio-contenido {
  position: relative;
}

.evangelio-cita {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color, #8B4513);
  text-align: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color, #DAA520);
}

.evangelio-cita i {
  color: var(--secondary-color, #DAA520);
  font-size: 1.4rem;
}

.evangelio-titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin-bottom: 25px;
  text-align: center;
}

.evangelio-titulo i {
  color: var(--secondary-color, #DAA520);
  font-size: 1.1rem;
}

/* Texto del evangelio */
.evangelio-texto {
  position: relative;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color, #444);
  text-align: justify;
  margin: 25px 0;
  padding: 20px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.comillas-apertura,
.comillas-cierre {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color, #DAA520);
  opacity: 0.6;
  position: absolute;
  z-index: 1;
}

.comillas-apertura {
  top: -10px;
  left: 10px;
}

.comillas-cierre {
  bottom: -30px;
  right: 15px;
}

/* Reflexión final */
.evangelio-reflexion {
  text-align: center;
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(145deg, 
    rgba(139, 69, 19, 0.05) 0%, 
    rgba(218, 165, 32, 0.05) 100%);
  border-radius: 10px;
  border: 1px dashed var(--secondary-color, #DAA520);
}

.evangelio-reflexion i {
  color: var(--secondary-color, #DAA520);
  margin-right: 8px;
  font-size: 1.1rem;
}

.evangelio-reflexion em {
  font-size: 1rem;
  color: var(--primary-color, #8B4513);
  font-style: italic;
  font-weight: 500;
}

/* Acciones del evangelio */
.evangelio-acciones {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn-evangelio-compartir,
.btn-evangelio-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--primary-color, #8B4513);
  background: transparent;
  color: var(--primary-color, #8B4513);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-evangelio-compartir:hover,
.btn-evangelio-refresh:hover {
  background: var(--primary-color, #8B4513);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-evangelio-compartir i,
.btn-evangelio-refresh i {
  font-size: 0.9rem;
}

/* Estado de carga */
.evangelio-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--primary-color, #8B4513);
}

.evangelio-loading i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--secondary-color, #DAA520);
  animation: spin 1s linear infinite;
}

.evangelio-loading p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===========================
   ESTILOS PARA LECTURAS COMPLETAS
   =========================== */

/* Información litúrgica adicional */
.tiempo-liturgico {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.95em;
  color: #4A4A4A;
}

.color-liturgico {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}

.color-liturgico.color-blanco {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.color-liturgico.color-verde {
  background: #28a745;
  color: white;
}

.color-liturgico.color-morado {
  background: #6f42c1;
  color: white;
}

.color-liturgico.color-rojo {
  background: #dc3545;
  color: white;
}

.santo-dia {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.95em;
  color: #6B4423;
  font-weight: 500;
}

/* Contenedor de lecturas */
.lecturas-container {
  margin-bottom: 25px;
}

.lectura-seccion {
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 12px;
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color, #8B4513);
  transition: all 0.3s ease;
}

.lectura-seccion:hover {
  background: #f0f2f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.lectura-seccion.lectura-primera {
  border-left-color: #28a745;
}

.lectura-seccion.lectura-salmo {
  border-left-color: #17a2b8;
  background: linear-gradient(145deg, #e8f4f8 0%, #f8f9fa 100%);
}

.lectura-seccion.lectura-segunda {
  border-left-color: #ffc107;
}

.lectura-seccion.lectura-evangelio {
  border-left-color: #dc3545;
  background: linear-gradient(145deg, #fff5f5 0%, #f8f9fa 100%);
  border: 2px solid rgba(220, 53, 69, 0.2);
}

.lectura-header {
  margin-bottom: 15px;
}

.lectura-header h4 {
  margin: 0 0 8px 0;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: 1.1em;
  color: var(--primary-color, #8B4513);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lectura-cita {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  font-weight: 500;
}

.lectura-texto {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  position: relative;
  padding: 0 10px;
}

.lectura-evangelio .lectura-texto {
  font-size: 1.05em;
  color: #2c3e50;
  font-weight: 500;
}

/* Botón para alternar lecturas */
.btn-evangelio-toggle {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-evangelio-toggle:hover {
  background: linear-gradient(135deg, #138496, #117a8b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Colores para header según tiempo litúrgico */
.evangelio-header.color-blanco {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #333;
}

.evangelio-header.color-verde {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.evangelio-header.color-morado {
  background: linear-gradient(135deg, #6f42c1, #8e44ad);
  color: white;
}

.evangelio-header.color-rojo {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
}

/* Responsive para lecturas */
@media (max-width: 768px) {
  .lectura-seccion {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .lectura-header h4 {
    font-size: 1em;
  }
  
  .lectura-texto {
    font-size: 0.95em;
    padding: 0 5px;
  }
  
  .evangelio-acciones {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-evangelio-toggle {
    order: -1; /* Mostrar primero en móvil */
  }
}

/* Animaciones para lecturas */
.lectura-seccion {
  animation: fadeInUp 0.6s ease-out;
}

.lectura-seccion:nth-child(1) { animation-delay: 0.1s; }
.lectura-seccion:nth-child(2) { animation-delay: 0.2s; }
.lectura-seccion:nth-child(3) { animation-delay: 0.3s; }
.lectura-seccion:nth-child(4) { animation-delay: 0.4s; }

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

/* Estados de carga mejorados */
.evangelio-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--primary-color, #8B4513);
}

.evangelio-loading i {
  font-size: 2em;
  margin-bottom: 15px;
  color: var(--secondary-color, #DAA520);
}

.evangelio-loading p {
  font-size: 1.1em;
  margin: 0;
  font-weight: 500;
}

/* Comentario reflexivo estilo Dominicos */
.comentario-dominicos {
  background: linear-gradient(145deg, #f0f8ff 0%, #e6f3ff 100%);
  border: 1px solid #b3d9ff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  border-left: 4px solid #2196f3;
}

.comentario-dominicos h4 {
  margin: 0 0 12px 0;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: 1.1em;
  color: #1976d2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comentario-dominicos p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
  font-style: italic;
  text-align: justify;
}

.comentario-dominicos i {
  color: #ffc107;
}

/* Responsive para comentario */
@media (max-width: 768px) {
  .comentario-dominicos {
    padding: 15px;
    margin-top: 15px;
  }
  
  .comentario-dominicos h4 {
    font-size: 1em;
  }
  
  .comentario-dominicos p {
    font-size: 0.95em;
    text-align: left;
  }
}
