/* ==========================================================================
   A. CONTENEDOR Y TIPOGRAFÍA EDITORIAL
   ========================================================================== */
.lecturas-leccionario {
    max-width: 800px;
    margin: 2rem auto;
    /* Sans-serif para la interfaz, Serif para los textos bíblicos */
    font-family: 'Merriweather', 'Lora', Georgia, serif; 
}

.lectura-bloque {
    background: #ffffff;
    padding: 3rem; /* Un poco más de aire para respirar */
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    transition: transform 0.2s ease;
}


/* Título de la lectura (Ej. Primera Lectura, Evangelio) */
.lectura-bloque h2 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: #b91c1c; /* Rojo litúrgico */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 0.75rem;
    font-weight: 700;
}


/* Cita bíblica (Editorial) */
.lectura-bloque h3 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Cuerpo del texto bíblico general (+10%, pasando de 1.05rem a 1.15rem) */
.lectura-bloque:not(.salmo_responsorial) p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.25rem;
    font-weight: normal;
}

/* ==========================================================================
   B. DETALLES LITÚRGICOS ESPECÍFICOS
   ========================================================================== */
/* Salmo Responsorial: Textos aumentados un 10% (de 1.05rem a 1.15rem) */
.lectura-bloque.salmo_responsorial p {
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 4px solid #cbd5e1;
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   C. MENÚ DE PESTAÑAS (MÚLTIPLES CELEBRACIONES Y BOTONES - BLINDADO)
   ========================================================================== */
.misa-menu-opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

/* Botón base estilo "Píldora" (Modern UI) */
button.misa-boton {
    font-family: system-ui, -apple-system, sans-serif !important;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 2px solid transparent !important;
    padding: 10px 24px !important;
    border-radius: 50px !important; /* Bordes totalmente redondeados */
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

button.misa-boton:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Estado activo del botón reforzado con máxima especificidad */
button.misa-boton.boton-activo,
.misa-menu-opciones button.misa-boton.boton-activo {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: 2px solid #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

/* ==========================================================================
   D. TRATAMIENTO DE PÁRRAFOS Y ACLAMACIÓN FINAL (EXCEPTO SALMO)
   ========================================================================== */
/* Primer párrafo (Monición / Introducción): Aumentado un 10% (de 1rem a 1.1rem) */
.lectura-bloque:not(.salmo_responsorial) p:first-of-type {
    color: #b91c1c;      
    font-size: 1.1rem;     
    font-style: italic;
    font-weight: normal;
}

/* Segundo párrafo: con el flujo fino y normal */
.lectura-bloque:not(.salmo_responsorial) p:nth-of-type(2) {
    font-weight: normal;
}

/* Estilo automático para las respuestas "R." o "R/." en el Salmo Responsorial */
.lectura-bloque.salmo_responsorial p strong,
.lectura-bloque.salmo_responsorial p b {
    color: #b91c1c;
}

/* Estilo igual al cuerpo de los párrafos, pero en cursiva y rojo litúrgico para la aclamación */
article.lectura-bloque p.aclamacion-liturgica {
    color: #b91c1c !important;
    font-style: italic !important;
    font-weight: normal !important;
    font-size: 1.15rem !important;
    line-height: 1.75 !important;
    margin-top: 1.5rem !important;
}

/* ==========================================================================
   E. CABECERA, ALINEACIÓN Y METADATOS
   ========================================================================== */
/* Ocultar de forma quirúrgica el grupo flex de autor/metadatos bajo el título */
h1.wp-block-post-title + .wp-block-group.has-small-font-size {
    display: none !important;
}

/* Alinear el título principal a la izquierda y darle un ancho de 800px como las cajas */
h1.wp-block-post-title {
    max-width: 800px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 2rem !important; /* Margen inferior limpio y amplio */
}

/* Asegurar que el contenedor general de la cabecera acompañe la alineación */
.wp-block-post-featured-image + .wp-block-group,
.wp-site-blocks > .wp-block-group {
    text-align: left;
}

/* Etiqueta tipo botón/píldora para el subtítulo de Santoral */
.santoral-subtitulo {
    display: inline-block !important;
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    margin-bottom: 2rem !important;
    margin-top: -1rem !important;
}