* {
    box-sizing: border-box;
}


/* ========================================
   GENERAL
   ======================================== */

body {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.65;

    background-color: #ffd6e8;
    color: #2b2b2b;
}


/* ========================================
   HEADER
   ======================================== */

.parish-header {
    background-color: #ffffff;

    border-bottom: 4px solid #8b1e1e;

    padding: 22px 20px;
}


.header-content {
    width: 90%;
    max-width: 1000px;

    margin: auto;

    display: grid;
    grid-template-columns: 170px 1fr 170px;

    align-items: center;

    gap: 20px;
}


.header-space {
    width: 170px;
}


.header-text {
    text-align: center;
}


header h1 {
    margin: 6px 0;

    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;

    color: #8b1e1e;
}


header h2 {
    margin: 5px 0;

    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;

    color: #2f4f88;
}


.header-virgin {
    width: 190px;
    height: 240px;

    object-fit: contain;

    justify-self: center;
}


/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.container {
    width: 90%;
    max-width: 1000px;

    margin: auto;
}


/* ========================================
   SECCIONES GENERALES
   ======================================== */

section {
    position: relative;

    background-color: #ffffff;

    margin: 30px auto;
    padding: 38px 42px;

    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}


section > * {
    position: relative;

    z-index: 2;
}


section h2 {
    margin-top: 0;
    margin-bottom: 26px;

    text-align: center;

    font-size: 33px;
    line-height: 1.2;
    font-weight: 700;

    color: #8b1e1e;
}


/* ========================================
   ROSAS
   ======================================== */

.with-roses {
    overflow: visible;
}


.with-roses::before,
.with-roses::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    background-image: url("images/rosa.png");
    background-size: 150% 150%;
    background-position: top left;
    background-repeat: no-repeat;

    pointer-events: none;

    z-index: 1;
}


.with-roses::before {
    top: -34px;
    left: -34px;
}


.with-roses::after {
    right: -34px;
    bottom: -34px;

    transform: rotate(180deg);
}


/* Rosas de Confesiones y Adoración */

.small-roses::before,
.small-roses::after {
    width: 135px;
    height: 135px;
}


.small-roses::before {
    top: -28px;
    left: -28px;
}


.small-roses::after {
    right: -28px;
    bottom: -28px;
}


/* ========================================
   HORARIOS DE MISA
   ======================================== */

.mass-section {
    padding: 44px 42px 36px;
}


.mass-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


.mass-card {
    background-color: #eef4fb;

    border-left: 5px solid #2f4f88;

    padding: 25px;

    text-align: center;
}


.mass-card h3 {
    margin-top: 0;
    margin-bottom: 22px;

    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;

    color: #2f4f88;
}


.mass-day {
    margin-bottom: 16px;
}


.mass-day strong {
    display: block;

    margin-bottom: 2px;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;

    color: #8b1e1e;
}


.mass-day span {
    display: block;

    font-size: 18px;
    line-height: 1.45;
}


.sunday-masses span {
    margin-bottom: 5px;
}


/* ========================================
   INFORMACIÓN GENERAL
   ======================================== */

.info {
    text-align: center;

    font-size: 18px;
    line-height: 1.7;
}


.info p {
    margin: 14px 0;
}


.info strong {
    font-weight: 700;
}


/* ========================================
   CONFESIONES Y ADORACIÓN
   ======================================== */

.sacrament-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    margin: 30px auto;
}


.sacrament-grid section {
    height: 100%;

    margin: 0;
}


/* ========================================
   CLERO
   ======================================== */

.clergy-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.clergy-card {
    background-color: #fff8fb;

    border-top: 5px solid #8b1e1e;
    border-radius: 6px;

    padding: 25px 20px;

    text-align: center;
}


.clergy-card h3 {
    margin-top: 0;
    margin-bottom: 14px;

    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;

    color: #2f4f88;
}


.clergy-card p {
    margin: 8px 0;

    font-size: 18px;
    line-height: 1.5;
}


.clergy-card strong {
    font-weight: 700;

    color: #8b1e1e;
}


/* ========================================
   SECCIÓN DE INFORMACIÓN
   ======================================== */

.information-section {
    padding: 35px 50px;
}


.information-layout {
    width: 100%;

    display: grid;

    grid-template-columns: 1.15fr 1fr;

    align-items: stretch;

    gap: 45px;
}


/* TEXTO */

.information-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: left;

    font-size: 18px;
    line-height: 1.7;
}


.information-text h2 {
    margin: 0 0 26px 0;

    text-align: left;

    font-size: 33px;
    line-height: 1.2;
    font-weight: 700;

    color: #8b1e1e;
}


.information-text p {
    margin: 16px 0;
}


.information-text strong {
    font-size: 19px;
    font-weight: 700;

    color: #8b1e1e;
}


/* FOTO DE LA PARROQUIA */

.information-image {
    display: flex;
    align-self: stretch;
    justify-content: center;
}


.information-image img {
    width: 100%;
    height: 100%;

    min-height: 330px;

    object-fit: cover;
    object-position: center top;

    border-radius: 18px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.16);

    display: block;
}


/* ========================================
   LINKS
   ======================================== */

a {
    color: #2f4f88;

    font-size: 17px;
}


a:hover {
    color: #8b1e1e;
}


/* ========================================
   FOOTER
   ======================================== */

footer {
    margin-top: 40px;

    padding: 25px 15px;

    background-color: #8b1e1e;
    color: #ffffff;

    text-align: center;

    font-size: 16px;
    line-height: 1.55;
}


footer p {
    margin: 8px 0;
}


/* ========================================
   CELULAR
   ======================================== */

@media (max-width: 700px) {

    /* GENERAL */

    body {
        font-size: 18px;
        line-height: 1.6;
    }


    .container {
        width: 94%;
    }


    /* HEADER */

/* HEADER */

    .parish-header {
        padding: 20px 14px;
    }

    .header-content {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr 95px;

        align-items: center;

        gap: 12px;
    }

    .header-space {
        display: none;
    }

    .header-text {
        text-align: left;
    }

    .header-text h1 {
        margin: 7px 0;

        font-size: 28px;
        line-height: 1.12;
    }

    .header-text h2 {
        margin: 5px 0;

        font-size: 18px;
        line-height: 1.25;
    }

    .header-virgin {
        width: 140px;
        height: 165px;

        object-fit: contain;

        justify-self: end;
    }


    .header-text h1 {
        font-size: 29px;
        line-height: 1.12;
    }


    .header-text h2 {
        font-size: 19px;
        line-height: 1.25;
    }


    /* SECCIONES */

    section {
        margin: 22px auto;
        padding: 32px 20px;
    }


    section h2 {
        margin-bottom: 24px;

        font-size: 29px;
        line-height: 1.15;
    }


    /* HORARIOS DE MISA */

    .mass-section {
        padding: 36px 18px 28px;
    }


    .mass-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .mass-card {
        padding: 24px 18px;
    }


    .mass-card h3 {
        font-size: 23px;
    }


    .mass-day {
        margin-bottom: 18px;
    }


    .mass-day strong {
        font-size: 19px;
    }


    .mass-day span {
        font-size: 18px;
    }


    /* CONFESIONES Y ADORACIÓN */

    .sacrament-grid {
        grid-template-columns: 1fr;
    }


    .info {
        font-size: 18px;
    }


    .info p {
        margin: 15px 0;
    }


    /* CLERO */

    .clergy-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .clergy-card {
        padding: 24px 18px;
    }


    .clergy-card h3 {
        font-size: 22px;
    }


    .clergy-card p {
        font-size: 18px;
    }


    /* ROSAS */

    .with-roses::before,
    .with-roses::after {
        width: 88px;
        height: 88px;
    }


    .with-roses::before {
        top: -12px;
        left: -12px;
    }


    .with-roses::after {
        right: -12px;
        bottom: -12px;
    }


    .small-roses::before,
    .small-roses::after {
        width: 80px;
        height: 80px;
    }


    /* INFORMACIÓN */

    .information-section {
        padding: 30px 20px;
    }


    .information-layout {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        align-items: stretch;

        gap: 28px;
    }


    .information-text {
        text-align: center;

        font-size: 18px;
    }


    .information-text h2 {
        margin-bottom: 22px;

        text-align: center;

        font-size: 29px;
    }


    .information-text p {
        margin: 15px 0;
    }


    .information-text strong {
        font-size: 19px;
    }


    .information-image {
        width: 100%;
    }


    .information-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;

        aspect-ratio: 4 / 5;

        object-fit: cover;
        object-position: center top;

        border-radius: 15px;
    }


    /* LINKS */

    a {
        font-size: 17px;

        overflow-wrap: anywhere;
    }


    /* FOOTER */

    footer {
        margin-top: 30px;

        padding: 24px 18px;

        font-size: 15px;
        line-height: 1.55;
    }

}