/* Explain: Styles for the parish page, using a magazine-like layout with navy, cream, and gold. */
/* Explains: hoja de estilo propia de la página «Parroquia» — un diseño de revista digital de patrimonio
   y vida parroquial en azul marino, blanco cálido y dorado suave: portada fotográfica con lema y accesos,
   retrato y vídeo de San Pío X, línea del tiempo del templo, tarjetas de patrimonio arquitectónico,
   galería ampliable, vida parroquial, horario y bloque de ubicación y contacto.
   Solo se carga en esta página: el resto de la web no se toca. */

body.parroquia-page {
    background-color: #FBF7EE;
    background-image:
        radial-gradient(circle at 12% -4%, rgba(217, 178, 95, 0.2), transparent 30rem),
        radial-gradient(circle at 90% 6%, rgba(30, 58, 86, 0.1), transparent 32rem),
        linear-gradient(180deg, #FDFCF8 0%, #F7F2E7 100%);
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ---------- Estructura común ---------- */
.pq-wrap {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.pq-section {
    padding-block: clamp(3rem, 7vw, 5.25rem);
}

.pq-section--tint {
    border-block: 1px solid rgba(30, 58, 86, 0.07);
    background: linear-gradient(180deg, rgba(30, 58, 86, 0.05), rgba(30, 58, 86, 0.015));
}

.pq-head {
    max-width: 44rem;
}

.pq-head--center {
    margin-inline: auto;
    text-align: center;
}

.pq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: #9C7B33;
    font-size: clamp(0.66rem, 2vw, 0.74rem);
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pq-kicker::before {
    display: inline-block;
    width: 1.9rem;
    height: 1px;
    background: #C9A24A;
    content: "";
}

.pq-head--center .pq-kicker {
    justify-content: center;
}

.pq-title {
    margin: 0.75rem 0 0;
    color: var(--poster-navy);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 5.4vw, 2.55rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.pq-subtitle {
    margin: 0;
    color: var(--poster-navy);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3.4vw, 1.4rem);
    font-weight: 700;
    line-height: 1.28;
}

.pq-lead {
    margin: 0.9rem 0 0;
    color: #4C5A66;
    font-size: clamp(0.96rem, 2.5vw, 1.06rem);
    font-weight: 500;
    line-height: 1.8;
}

/* ---------- Botones ---------- */
.pq-btn {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.45rem;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2.4vw, 0.95rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease, background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}

.pq-btn--gold {
    background-image: linear-gradient(180deg, #F6D998, #D3A94F);
    color: #142A41;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.pq-btn--ghost {
    border: 1px solid rgba(251, 247, 238, 0.55);
    background: rgba(255, 255, 255, 0.14);
    color: #FBF7EE;
    backdrop-filter: blur(8px);
}

.pq-btn--navy {
    background: var(--poster-navy);
    color: var(--poster-cream);
    box-shadow: 0 14px 30px rgba(30, 58, 86, 0.24);
}

.pq-btn:hover,
.pq-btn:focus-visible {
    outline: none;
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.pq-btn--navy:hover,
.pq-btn--navy:focus-visible {
    background: #27496B;
}

.pq-btn:active {
    transform: translateY(0) scale(0.98);
}

.pq-link {
    border-bottom: 1px solid rgba(201, 162, 74, 0.5);
    color: #9C7B33;
    font-size: 0.92rem;
    font-weight: 700;
    padding-bottom: 0.1rem;
    text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease;
}

.pq-link:hover,
.pq-link:focus-visible {
    outline: none;
    border-color: var(--poster-navy);
    color: var(--poster-navy);
}

/* ---------- Portada ---------- */
.pq-hero {
    padding-top: clamp(2.75rem, 6vw, 3.25rem);
}

.pq-hero-figure {
    position: relative;
    display: flex;
    min-height: clamp(29rem, 82vh, 46rem);
    align-items: flex-end;
    margin: 0;
    overflow: hidden;
    background: #14293F;
}

.pq-hero-figure > img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.pq-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 24, 40, 0.72) 0%, rgba(10, 24, 40, 0.12) 34%, rgba(10, 24, 40, 0.5) 68%, rgba(10, 24, 40, 0.94) 100%);
}

.pq-hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding: clamp(2rem, 6vw, 3.2rem) clamp(1.15rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
    color: var(--poster-cream);
    animation: pq-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pq-hero-kicker {
    margin: 0;
    color: #E7C87F;
    font-size: clamp(0.68rem, 2.2vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.pq-hero-title {
    margin: 0.85rem 0 0;
    font-family: var(--font-logo);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.015em;
}

.pq-hero-title-main {
    display: block;
    font-size: clamp(2.05rem, 8vw, 4rem);
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.pq-hero-title-sub {
    display: block;
    margin-top: 0.35rem;
    color: #F3D391;
    font-size: clamp(0.85rem, 3.2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.pq-hero-lema {
    margin: 1rem 0 0;
    max-width: 32rem;
    color: rgba(251, 247, 238, 0.94);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3.4vw, 1.3rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.55;
}

.pq-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.6rem;
}

@keyframes pq-rise {
    from {
        opacity: 0;
        transform: translateY(1.4rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* En ordenador la portada arranca pegada a la franja superior. */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1280px) {
    body.parroquia-page main > section.pq-hero {
        margin-top: -1.5rem;
    }
}

/* ---------- San Pío X ---------- */
.pq-patron {
    display: grid;
    gap: clamp(1.6rem, 4vw, 2.6rem);
    margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

.pq-patron-media {
    display: grid;
    gap: 1rem;
}

.pq-portrait,
.pq-feature {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 86, 0.14);
    border-radius: 1.6rem;
    background: #FFFDF8;
    box-shadow: 0 24px 60px rgba(30, 58, 86, 0.14);
}

.pq-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.pq-portrait figcaption,
.pq-feature figcaption {
    padding: 0.8rem 1rem;
    color: #5A6672;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.pq-video {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 86, 0.14);
    border-radius: 1.4rem;
    background: var(--poster-navy);
    aspect-ratio: 16 / 9;
}

.pq-video-btn {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.pq-video-btn img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: opacity 300ms ease, transform 500ms ease;
}

.pq-video-btn:hover img,
.pq-video-btn:focus-visible img {
    opacity: 1;
    transform: scale(1.03);
}

.pq-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    height: 3.6rem;
    width: 3.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-image: linear-gradient(180deg, #F6D998, #D3A94F);
    color: #142A41;
    font-size: 1.1rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
    transition: transform 260ms ease;
}

.pq-video-btn:hover .pq-video-play,
.pq-video-btn:focus-visible .pq-video-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.pq-patron-text {
    display: grid;
    gap: 1rem;
}

.pq-patron-parrafo {
    margin: 0;
    border: 1px solid rgba(30, 58, 86, 0.1);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.82);
    padding: clamp(1.1rem, 3vw, 1.5rem);
    color: #3F4C58;
    font-size: clamp(0.96rem, 2.4vw, 1.04rem);
    font-weight: 500;
    line-height: 1.85;
    box-shadow: 0 16px 40px rgba(30, 58, 86, 0.06);
}

/* ---------- Línea del tiempo ---------- */
.pq-timeline {
    position: relative;
    margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
    padding: 0;
    list-style: none;
}

.pq-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 1.3rem;
}

.pq-timeline-item::before {
    position: absolute;
    top: 1.1rem;
    bottom: -0.2rem;
    left: 0.72rem;
    width: 2px;
    background: rgba(201, 162, 74, 0.55);
    content: "";
}

.pq-timeline-item:last-child {
    padding-bottom: 0;
}

.pq-timeline-item:last-child::before {
    display: none;
}

.pq-timeline-marker {
    position: relative;
    z-index: 1;
    height: 0.85rem;
    width: 0.85rem;
    margin: 0.95rem 0 0 0.32rem;
    border: 2px solid #C79F45;
    border-radius: 999px;
    background: #FBF7EE;
    box-shadow: 0 0 0 4px rgba(217, 178, 95, 0.16);
}

.pq-timeline-card {
    border: 1px solid rgba(30, 58, 86, 0.1);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.85);
    padding: clamp(1.05rem, 3vw, 1.45rem);
    box-shadow: 0 18px 44px rgba(30, 58, 86, 0.07);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.pq-timeline-card:hover {
    border-color: rgba(201, 162, 74, 0.55);
    box-shadow: 0 24px 58px rgba(30, 58, 86, 0.12);
    transform: translateY(-3px);
}

.pq-timeline-year {
    margin: 0;
    color: #9C7B33;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pq-timeline-title {
    margin: 0.4rem 0 0;
    color: var(--poster-navy);
    font-family: var(--font-heading);
    font-size: clamp(1.08rem, 3vw, 1.28rem);
    font-weight: 700;
    line-height: 1.3;
}

.pq-timeline-text {
    margin: 0.55rem 0 0;
    color: #4C5A66;
    font-size: clamp(0.94rem, 2.3vw, 1rem);
    font-weight: 500;
    line-height: 1.8;
}

/* ---------- Patrimonio ---------- */
.pq-split,
.pq-horario {
    display: grid;
    gap: clamp(1.6rem, 4vw, 2.6rem);
}

.pq-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.6rem 0 0;
}

.pq-fact {
    border: 1px solid rgba(30, 58, 86, 0.1);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 1rem;
    box-shadow: 0 12px 30px rgba(30, 58, 86, 0.05);
}

.pq-fact dt {
    margin: 0;
    color: #9C7B33;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pq-fact dd {
    margin: 0.3rem 0 0;
    color: var(--poster-navy);
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 2.6vw, 1.08rem);
    font-weight: 700;
    line-height: 1.3;
}

.pq-feature img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* ---------- Galería ---------- */
.pq-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: clamp(1.6rem, 4vw, 2.2rem);
}

.pq-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 86, 0.12);
    border-radius: 1.15rem;
    background: #FFFDF8;
    padding: 0;
    text-align: left;
    cursor: zoom-in;
    box-shadow: 0 16px 40px rgba(30, 58, 86, 0.1);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.pq-gallery-item img {
    display: block;
    height: 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 600ms ease;
}

.pq-gallery-item:hover,
.pq-gallery-item:focus-visible {
    outline: none;
    border-color: rgba(201, 162, 74, 0.7);
    box-shadow: 0 22px 52px rgba(30, 58, 86, 0.16);
    transform: translateY(-3px);
}

.pq-gallery-item:hover img,
.pq-gallery-item:focus-visible img {
    transform: scale(1.05);
}

.pq-gallery-cap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background: linear-gradient(180deg, rgba(20, 41, 63, 0), rgba(20, 41, 63, 0.88));
    padding: 1.8rem 0.7rem 0.6rem;
    color: #FBF7EE;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.pq-historic {
    margin-top: clamp(2.2rem, 5vw, 3.2rem);
}

/* ---------- Vida parroquial ---------- */
.pq-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

.pq-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid rgba(30, 58, 86, 0.1);
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, 0.85);
    padding: clamp(1.15rem, 3vw, 1.4rem);
    box-shadow: 0 18px 44px rgba(30, 58, 86, 0.07);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.pq-card:hover {
    border-color: rgba(201, 162, 74, 0.6);
    box-shadow: 0 26px 60px rgba(30, 58, 86, 0.12);
    transform: translateY(-4px);
}

.pq-card-icon {
    display: inline-flex;
    height: 2.7rem;
    width: 2.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: rgba(30, 58, 86, 0.08);
    color: var(--poster-navy);
    font-size: 1.05rem;
}

.pq-card-title {
    margin: 0;
    color: var(--poster-navy);
    font-family: var(--font-heading);
    font-size: clamp(1.02rem, 2.8vw, 1.14rem);
    font-weight: 700;
    line-height: 1.3;
}

.pq-card-text {
    margin: 0;
    color: #4C5A66;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.7;
}

/* ---------- Horario ---------- */
.pq-horario-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}

.pq-horario-figure {
    margin: 0;
}

.pq-horario-figure button {
    display: block;
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 86, 0.14);
    border-radius: 1.5rem;
    background: #FFFDF8;
    padding: 0.5rem;
    cursor: zoom-in;
    box-shadow: 0 24px 60px rgba(30, 58, 86, 0.14);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.pq-horario-figure button:hover,
.pq-horario-figure button:focus-visible {
    outline: none;
    box-shadow: 0 30px 70px rgba(30, 58, 86, 0.2);
    transform: translateY(-3px);
}

.pq-horario-figure img {
    display: block;
    height: auto;
    width: 100%;
    border-radius: 1.1rem;
}

.pq-horario-figure figcaption {
    margin-top: 0.7rem;
    color: #5A6672;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

/* ---------- Ubicación y contacto ---------- */
.pq-contacto {
    display: grid;
    gap: 1rem;
    margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

.pq-map {
    overflow: hidden;
    border: 1px solid rgba(30, 58, 86, 0.14);
    border-radius: 1.6rem;
    background: #E7EDF3;
    box-shadow: 0 22px 56px rgba(30, 58, 86, 0.12);
}

.pq-map iframe {
    display: block;
    min-height: 20rem;
    height: 100%;
    width: 100%;
    border: 0;
}

.pq-contacto-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.6rem;
    background: linear-gradient(160deg, #1E3A56, #14293F);
    padding: clamp(1.3rem, 3.4vw, 1.8rem);
    color: var(--poster-cream);
    box-shadow: 0 24px 60px rgba(20, 41, 63, 0.3);
}

.pq-contacto-kicker {
    margin: 0;
    color: #E7C87F;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.pq-contacto-title {
    margin: 0.5rem 0 0;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.28;
}

.pq-contacto-lista {
    display: grid;
    gap: 0.85rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.pq-contacto-lista li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.55;
}

.pq-contacto-lista i {
    margin-top: 0.18rem;
    flex-shrink: 0;
    color: #E7C87F;
}

.pq-contacto-lista a {
    color: var(--poster-cream);
    text-decoration: none;
    word-break: break-word;
    transition: color 200ms ease;
}

.pq-contacto-lista a:hover,
.pq-contacto-lista a:focus-visible {
    outline: none;
    color: #F3D391;
}

/* ---------- Pantallas medianas y grandes ---------- */
@media (min-width: 640px) {
    .pq-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .pq-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .pq-gallery--feature .pq-gallery-item:first-child {
        grid-column: span 2;
    }

    .pq-gallery--feature .pq-gallery-item:first-child img {
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 900px) {
    .pq-patron {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        align-items: start;
    }

    .pq-split,
    .pq-horario {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
    }

    .pq-contacto {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    }
}

@media (min-width: 1024px) {
    .pq-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pq-hero-copy {
        animation: none;
    }

    .pq-btn,
    .pq-card,
    .pq-timeline-card,
    .pq-gallery-item,
    .pq-gallery-item img,
    .pq-video-btn img,
    .pq-video-play,
    .pq-horario-figure button {
        transition: none;
    }

    .pq-btn:hover,
    .pq-btn:focus-visible,
    .pq-btn:active,
    .pq-card:hover,
    .pq-timeline-card:hover,
    .pq-gallery-item:hover,
    .pq-horario-figure button:hover {
        transform: none;
    }

    .pq-gallery-item:hover img,
    .pq-gallery-item:focus-visible img,
    .pq-video-btn:hover img {
        transform: none;
    }
}