﻿/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.cristo-roto {
    font-family: 'Montserrat', sans-serif;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 35px;
}

.cristo-roto .page-title {
    color: #004C99;
    font-weight: 800;
}

/* =========================================================
   BLOQUES GENERALES
   ========================================================= */

.cr-titulo {
    font-size: 3.1rem;
    color: #701705;
    line-height: 1.65;
}

.cr-bloque {
    background: #FAE7FE;
    border-radius: 12px;
    padding: 28px 40px;
    margin: 25px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cr-bloque h2 {
    font-size: 2rem;
    color: #800000;
    margin-bottom: 12px;
}

.cr-bloque p {
    font-size: 1.25rem;
    line-height: 1.65;
    text-align: justify;
    margin-bottom: 16px;
}

/* =========================================================
   FILAS CON IMAGEN + TEXTO (GRID)
   ========================================================= */

/* Imagen a la izquierda */
.cr-fila-izq {
    display: grid;
    grid-template-columns: 28% 1fr; /* imagen | texto */
    gap: 2rem;
    align-items: start;
    margin: 1.5rem 0;
}

.cr-fila-izq img {
    width: 100%;
    border-radius: 10px;
}

.cr-fila-izq p {
    margin: 0;
    text-align: justify;
}

/* Imagen a la derecha */
.cr-fila-der {
    display: grid;
    grid-template-columns: 1fr 28%; /* texto | imagen */
    gap: 2rem;
    align-items: start;
    margin: 1.5rem 0;
}

.cr-fila-der img {
    width: 100%;
    border-radius: 10px;
}

.cr-fila-der p {
    margin: 0;
    text-align: justify;
}

/* =========================================================
   IMÁGENES GENERALES (NO AFECTA A LAS FLOTANTES)
   ========================================================= */

.cristo-roto img {
    display: block;
    margin: 25px auto;
    max-width: 100%;
}

.cr-fila-izq img,
.cr-fila-der img {
    display: block;       /* correcto dentro de Grid */
    margin: 0;            /* elimina el hueco vertical */
    max-width: 100%;
}

/* =========================================================
   CITA ESTILIZADA
   ========================================================= */

.cita-estilizada {
    font-size: 1.25rem;
    line-height: 1.65;
    text-align: justify;
    border-left: 2px solid var(--color-liturgico, #5A2A83);
    padding-left: 25px;
    margin: 20px 60px 20px 25px;
    color: #000;
    font-style: italic;
}

/* =========================================================
   IMÁGENES FLOTANTES (SISTEMA ANTIGUO, OPCIONAL)
   ========================================================= */

.img-flotante-izq {
    float: left;
    width: 10%;
    margin: 0.5rem 2.5rem 1.5rem 0;
    display: inline-block; /* evita conflicto con .cristo-roto img */
}

.img-flotante-der {
    float: right;
    width: 40%;
    margin: 0 0 1rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

/* =========================================================
   TEXTO GENERAL
   ========================================================= */

p {
    overflow-wrap: break-word;
}

/* =========================================================
   BLOQUE DE ORACIÓN (pin de madera centrado)
   ========================================================= */

.cr-oracion {
    position: relative;
    max-width: 850px;
    margin: 3rem auto;
    padding: 5rem 2.5rem 4rem; /* más espacio para los rollos */
    border-radius: 12px;

    /* Fondo claro tipo pergamino */
    background:
        /* textura de fibras */
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.07) 0px,
            rgba(255,255,255,0.07) 2px,
            rgba(0,0,0,0.03) 3px,
            rgba(0,0,0,0.03) 4px
        ),
        /* manchas suaves */
        linear-gradient(
            180deg,
            rgba(255,255,255,0.2) 0%,
            rgba(0,0,0,0.05) 100%
        ),
        /* base cálida */
        linear-gradient(
            135deg,
            #fdf8e8 0%,
            #f7eccc 50%,
            #f3dfb3 100%
        );

    border: 1px solid #d8c49a;

    /* profundidad */
    box-shadow:
        inset 0 0 25px rgba(0,0,0,0.12),
        inset 0 0 60px rgba(0,0,0,0.06),
        0 4px 10px rgba(0,0,0,0.15);
}

/* Rollos superior e inferior */
.cr-oracion::before,
.cr-oracion::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;              /* más ancho */
    height: 40px;            /* rollo mucho más grande */
    border-radius: 20px;     /* más redondeado */

    background: linear-gradient(
        180deg,
        #fffdf7 0%,
        #f7e8c9 50%,
        #e8d2a6 100%
    );

    box-shadow:
        inset 0 4px 6px rgba(255,255,255,0.8),   /* brillo superior */
        inset 0 -4px 8px rgba(0,0,0,0.18),       /* sombra inferior */
        0 6px 12px rgba(0,0,0,0.20);             /* sombra exterior */
}

/* Rollo superior */
.cr-oracion::before {
    top: -22px;   /* baja un poco para que se vea completo */
}

/* Rollo inferior */
.cr-oracion::after {
    bottom: -22px;
    transform: translateX(-50%) rotate(180deg);
}

/* Pin de madera */
.cr-oracion .pin {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fce7c7, #d7a86e, #b07a45);
    border: 2px solid #8a5a2f;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.25),
        inset 0 1px 2px rgba(255,255,255,0.7),
        inset 0 -1px 2px rgba(0,0,0,0.2);
    z-index: 3;
}

/* Título alineado con los párrafos */
.cr-oracion-titulo {
    font-size: 1.8rem;
    color: #800000;
    font-weight: 700;
    text-align: left;

    max-width: 650px;
    margin: 2.8rem auto 1.5rem; /* baja para alinearse con el texto */
}

/* Texto */
.cr-oracion-texto {
    font-size: 1.25rem;
    line-height: 1.65;
    color: #333;

    max-width: 650px;
    margin: 0 auto;
    text-align: left;
}

.cr-oracion-texto p {
    margin-bottom: 1.2rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {
    .cr-fila-izq,
    .cr-fila-der {
        grid-template-columns: 1fr;
    }

    .cr-fila-izq img,
    .cr-fila-der img {
        margin-bottom: 1rem;
    }
}
