/* ============ FUENTE LOCAL: FRAY GABRIEL (solo títulos de sección) ============ */
@font-face {
    font-family: "Fray Gabriel";
    src: url("../fonts/fray-gabriel.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============ TOKENS — MODO CLARO ============ */
:root {
    --crema: #faf6ec;
    --crema-alt: #f1e8d2;
    --crema-honda: #e9dcb9;
    --verde-oscuro: #0e3a2b;
    --verde: #1f6b4a;
    --verde-claro: #3f9c72;
    --oro: #b9863a;
    --oro-claro: #d8a85c;
    --oro-suave: #efd9a6;
    --tinta: #221f18;
    --tinta-sub: #5c5745;
    --bronce: #8c6a3f;
    --linea: rgba(34, 31, 24, 0.12);

    --display: "Cormorant Garamond", serif;
    --sans: "Jost", sans-serif;
    --manuscrita: "Caveat", cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    background: var(--crema);
    color: var(--tinta);
    font-family: var(--sans);
    overflow-x: hidden;
}
body.locked {
    overflow: hidden;
    height: 100vh;
}

html,
body {
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
ul {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--oro);
    outline-offset: 3px;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--oro);
    font-weight: 500;
}

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(2.2rem, 6vw, 3.5rem);
    text-align: center;
}
.section-head h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2rem, 4.6vw, 2.9rem);
    color: var(--verde-oscuro);
    line-height: 1.15;
    margin-top: 0.7rem;
}
.section-head p {
    margin-top: 1rem;
    color: var(--tinta-sub);
    font-weight: 300;
    line-height: 1.7;
}

.section-head h2 .script-accent {
    font-family: var(--manuscrita);
    font-style: normal;
    font-weight: 600;
    color: var(--oro);
}
section {
    position: relative;
    padding: clamp(4.5rem, 10vw, 6.5rem) clamp(1.5rem, 3vw, 2rem);
}
.alt-bg {
    background: var(--crema-alt);
}

/* ============ REVEAL-ON-SCROLL ============ */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============ PRELOADER ============ */
#preloader {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 38%,
        #fffaf0 0%,
        var(--crema) 68%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    /* Zona segura: separa el texto del marco de rosas para que nunca se tapen */
    padding: clamp(3.5rem, 12vh, 6rem) clamp(0.75rem, 8vw, 6rem);
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.flame-wrap {
    width: 52px;
    height: 72px;
    margin-bottom: 2.1rem;
    opacity: 0;
    animation: flameIn 1s ease 0.2s forwards;
}
@keyframes flameIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}
.flame-wrap svg {
    width: 100%;
    height: 100%;
}
.flame-core {
    animation: flicker 2.4s ease-in-out infinite;
    transform-origin: 50% 90%;
}
@keyframes flicker {
    0%,
    100% {
        transform: scale(1) skewX(0deg);
    }
    25% {
        transform: scale(1.04, 0.97) skewX(-2deg);
    }
    50% {
        transform: scale(0.96, 1.05) skewX(2deg);
    }
    75% {
        transform: scale(1.02, 0.98) skewX(-1deg);
    }
}

.intro-name {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.1rem, 6.6vw, 4.2rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--verde-oscuro);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.05em;
    width: 100%;
    max-width: 90vw;
}
.intro-name span {
    opacity: 0;
    display: inline-block;
    transform: translateY(24px);
    animation: letterUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Salto de línea dentro del nombre (una línea por renglón en el panel) */
.intro-name .intro-break {
    flex-basis: 100%;
    width: 0;
    height: 0;
    opacity: 1;
    animation: none;
}
@keyframes letterUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-sub {
    margin-top: 1rem;
    opacity: 0;
    font-style: italic;
    font-family: var(--display);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--oro);
    animation: fadeUp 1s ease 2.1s forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.intro-line {
    width: 1px;
    height: 0;
    background: linear-gradient(var(--oro), transparent);
    margin-top: 2rem;
    animation: lineDown 1.6s ease 2.5s forwards;
}
@keyframes lineDown {
    to {
        height: 44px;
    }
}

.intro-hint {
    position: absolute;
    bottom: 2.6rem;
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--tinta-sub);
    opacity: 0;
    animation: fadeUp 0.8s ease 3.4s forwards;
}

.rose-border {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}
.rose-dot {
    position: absolute;
    width: 8rem;
    height: 8rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.45);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        filter 0.35s ease;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.18));
}
.rose-dot.visible {
    opacity: 1;
    transform: scale(1);
}

/* En pantallas chicas el nombre respira mejor dentro de la zona segura */
@media (max-width: 640px) {
    .intro-name {
        letter-spacing: 0.09em;
    }
}
.rose-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.22),
        transparent 60%
    );
    opacity: 0.45;
    pointer-events: none;
}

/* ============ HERO (mantiene el contraste de la foto) ============ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    isolation: isolate;
    padding: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            180deg,
            rgba(10, 20, 15, 0.5) 0%,
            rgba(10, 16, 12, 0.68) 55%,
            rgba(8, 14, 10, 0.9) 100%
        ),
        url("https://images.unsplash.com/photo-1438032005730-c779502df39b?fm=jpg&q=80&w=2400&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    filter: saturate(0.85) brightness(0.92);
    transform: scale(1.08);
    opacity: 0;
    transition:
        opacity 1.4s ease,
        transform 8s ease;
}
body.revealed .hero-bg {
    opacity: 1;
    transform: scale(1);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 55%,
        transparent 30%,
        rgba(6, 12, 9, 0.55) 100%
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1200px;
    padding: clamp(4.5rem, 12vw, 6rem) 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero .eyebrow {
    color: var(--oro-suave);
}
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}
body.revealed .hero-eyebrow {
    animation-delay: 0.5s;
}

.emblem {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.4rem 0 1.2rem;
}

.parish-name {
    font-family: var(--display);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: 0.02em;
    font-size: clamp(2.5rem, 11vw, 9rem);
    color: #f6f1e4;
    -webkit-text-stroke: 1px rgba(246, 241, 228, 0.4);
    user-select: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
body.revealed .parish-name {
    opacity: 1;
    transition-delay: 0.6s;
}
.parish-name .accent {
    display: block;
    font-style: italic;
    font-weight: 300;
    font-size: 0.42em;
    letter-spacing: 0.3em;
    color: var(--oro-suave);
    -webkit-text-stroke: 0;
    margin-bottom: 0.25em;
}
.parish-location {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(0.78rem, 1.4vw, 1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(239, 217, 166, 0.72);
    margin-top: 0.9em;
    opacity: 0;
    transition: opacity 1.2s ease 1s;
}
body.revealed .parish-location {
    opacity: 1;
}

/* Imágenes decorativas en las esquinas superiores del hero, bajo la navbar */
.hero-corner {
    position: absolute;
    top: calc(var(--nav-h) + 1rem);
    width: clamp(70px, 8vw, 130px);
    height: auto;
    object-fit: contain;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s ease 0.4s;
    z-index: 3;
}
body.revealed .hero-corner {
    opacity: 1;
}
.hero-corner--izq {
    left: 1.2rem;
    transform-origin: top left;
}
.hero-corner--der {
    right: 1.2rem;
    transform-origin: top right;
}
@media (max-width: 640px) {
    .hero-corner {
        width: clamp(50px, 14vw, 80px);
        top: calc(var(--nav-h) + 0.6rem);
    }
    .hero-corner--izq {
        left: 0.6rem;
    }
    .hero-corner--der {
        right: 0.6rem;
    }
}

.statue-wrap {
    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(150px, 24vw, 300px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 1.2s ease;
}
body.revealed .statue-wrap {
    opacity: 1;
    transition-delay: 0.9s;
}

.statue-wrap::before {
    content: "";
    position: absolute;
    inset: -24%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 248, 205, 0.55) 0%,
        rgba(255, 248, 205, 0.28) 30%,
        transparent 65%
    );
    filter: blur(32px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}
body.revealed .statue-wrap::before {
    opacity: 1;
}
.statue-wrap:hover::before,
.statue-wrap:focus-visible::before,
.statue-wrap.revealed-touch::before {
    transform: scale(1.12);
    opacity: 1;
}

.statue-glow {
    position: absolute;
    left: 50%;
    top: 4%;
    width: 90%;
    height: 90%;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(255, 237, 160, 0.55) 0%,
        rgba(255, 237, 160, 0.18) 35%,
        transparent 75%
    );
    filter: blur(22px);
    pointer-events: none;
    animation: glowPulse 4.5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.statue-img {
    position: relative;
    width: 100%;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.5));
    transition:
        opacity 0.7s ease,
        filter 0.7s ease,
        transform 0.7s ease;
    animation: hover-float 6s ease-in-out infinite;
}
@keyframes hover-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.statue-wrap:hover .statue-img,
.statue-wrap:focus-visible .statue-img,
.statue-wrap.revealed-touch .statue-img {
    opacity: 0.08;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)) blur(1.5px);
    transform: scale(1.02);
}

.statue-hint {
    position: absolute;
    bottom: -2.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(246, 241, 228, 0.75);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.statue-wrap:hover .statue-hint,
.statue-wrap:focus-visible .statue-hint {
    opacity: 1;
}

.embers {
    position: absolute;
    inset: -20% 0 0 0;
    pointer-events: none;
    overflow: visible;
}
.ember {
    position: absolute;
    bottom: 38%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--oro-suave);
    box-shadow: 0 0 8px 2px rgba(239, 217, 166, 0.85);
    opacity: 0;
    animation: rise 5.5s ease-in infinite;
}
@keyframes rise {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.6);
    }
    10% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx, 10px), -190px) scale(0.2);
    }
}

.hero-cta-row {
    margin-top: 5.2rem;
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
}
body.revealed .hero-cta-row {
    animation: fadeUp 1s ease 1.3s forwards;
}

.btn {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 1.05rem 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--oro);
    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
    display: inline-block;
}
.btn-solid {
    background: var(--oro);
    color: #fffdf6;
    font-weight: 500;
}
.btn-solid:hover,
.btn-solid:focus-visible {
    background: var(--oro-claro);
    border-color: var(--oro-claro);
}
.btn-ghost {
    color: #f6f1e4;
    border-color: rgba(246, 241, 228, 0.4);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--oro-suave);
    color: var(--oro-suave);
}

.btn-dark {
    border-color: var(--verde);
    color: var(--verde-oscuro);
}
.btn-dark:hover,
.btn-dark:focus-visible {
    background: var(--verde-oscuro);
    color: #fffdf6;
}

/* Botón «Ver la historia completa» bajo el scrollytelling */
.historia-cta {
    display: flex;
    justify-content: center;
    margin-top: 3.2rem;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    z-index: 5;
}
body.revealed .scroll-cue {
    animation: fadeUp 1s ease 1.8s forwards;
}
.scroll-cue span {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(246, 241, 228, 0.75);
}
.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(var(--oro-suave), transparent);
    animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50.1% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ============ SEAL ICON (insignia circular reutilizable) ============ */
.seal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--oro);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--crema);
    box-shadow:
        0 0 0 5px var(--crema),
        0 0 0 6px var(--linea);
}
.seal svg {
    width: 28px;
    height: 28px;
    stroke: var(--verde-oscuro);
    fill: none;
    stroke-width: 1.4;
}

/* ============ SCROLLYTELLING ============ */
.scrolly-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}
.scrolly-visual {
    position: sticky;
    top: 12vh;
    height: 64vh;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--verde-oscuro), var(--verde) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(14, 58, 43, 0.35);
}
.scrolly-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 20%,
        rgba(255, 255, 255, 0.12),
        transparent 55%
    );
}
.visual-step {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    opacity: 0;
    transform: scale(0.88);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    padding: 2rem;
    text-align: center;
}
.visual-step.active {
    opacity: 1;
    transform: scale(1);
}
.visual-step svg {
    width: 64px;
    height: 64px;
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 1.2;
}
.visual-step .visual-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(14, 58, 43, 0.35);
}

/* When a step has a photo, hide the number, label and icon and show the image full-bleed when active */
.visual-step.has-photo .visual-num,
.visual-step.has-photo .visual-label,
.visual-step.has-photo svg {
    display: none;
}

.visual-step.has-photo {
    padding: 0;
}

.visual-step.has-photo .visual-photo {
    display: block;
}

.visual-step.has-photo.active {
    opacity: 1;
    transform: none;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
}

.visual-step.has-photo.active .visual-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px; /* match .scrolly-visual */
    box-shadow: none;
}
.visual-step .visual-label {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.5rem;
    color: #fffdf6;
}
.visual-num {
    position: absolute;
    top: 1.4rem;
    left: 1.6rem;
    font-family: var(--display);
    font-size: 0.85rem;
    color: rgba(255, 253, 246, 0.6);
    letter-spacing: 0.15em;
}

.scrolly-steps {
    display: flex;
    flex-direction: column;
}
.scrolly-step {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.32;
    transition: opacity 0.5s ease;
    padding: 1rem 0;
}
.scrolly-step.active {
    opacity: 1;
}
.scrolly-step h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--verde-oscuro);
    margin-bottom: 1rem;
}
.scrolly-step p {
    color: var(--tinta-sub);
    line-height: 1.8;
    font-weight: 300;
    max-width: 480px;
}
.scrolly-step ul {
    margin-top: 1rem;
}
.scrolly-step li {
    color: var(--tinta-sub);
    line-height: 1.8;
    font-weight: 300;
    padding-left: 1.2rem;
    position: relative;
}
.scrolly-step li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--oro);
}

/* Formato enriquecido del texto (subtítulos, notas) */
.scrolly-step .formato-sub {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    color: var(--oro);
    margin: 1.5rem 0 0.35rem;
}
.scrolly-step .formato-sub:first-child {
    margin-top: 0;
}
.scrolly-step .formato-nota {
    margin-top: 0.9rem;
    padding: 0.85rem 1.1rem;
    border-left: 3px solid var(--oro);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(246, 241, 228, 0.88);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 520px;
}
/* Nota del formato en secciones claras (texto legible sobre fondo crema) */
.sec-claro .scrolly-step .formato-nota {
    background: rgba(185, 134, 58, 0.09);
    color: var(--tinta-sub);
}

@media (max-width: 860px) {
    .scrolly-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .scrolly-visual {
        /* compensa la navbar fija para que la card no quede oculta bajo ella */
        top: calc(var(--nav-h) + 0.6rem);
        height: 38vh;
        z-index: 10;
    }
    .scrolly-step {
        min-height: 60vh;
        padding: 2.4rem 0;
        opacity: 1;
        /* fondo heredado para tapar el contenido al scrollear bajo la card */
        background: inherit;
        position: relative;
        z-index: 1;
    }
    .visual-step svg {
        width: 48px;
        height: 48px;
    }
    .visual-step .visual-label {
        font-size: 1.2rem;
    }
}

/* ============ HORARIOS ============ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
    max-width: 1100px;
    margin: 0 auto;
}
.info-card {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    text-align: left;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -20px rgba(34, 31, 24, 0.25);
    border-color: var(--oro);
}
.info-card .seal {
    margin-bottom: 1.2rem;
}
.info-card h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--verde-oscuro);
    margin-bottom: 0.7rem;
}
.info-card p,
.info-card li {
    color: var(--tinta-sub);
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: 300;
}
.info-card .row {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed var(--linea);
    padding: 0.5rem 0;
    font-size: 0.88rem;
}
.info-card .row span:first-child {
    color: var(--tinta);
    font-weight: 500;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.service-card .seal {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}
.service-card h3 {
    margin-bottom: 0.35rem;
}
.service-role {
    color: var(--verde-oscuro);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ============ GRUPOS ============ */

/* ============ GRUPOS ============ */
.group-card {
    position: relative;
    overflow: hidden;
    background: var(--crema);
    border-radius: 18px;
    padding: 2.3rem 1.9rem 2.1rem;
    border: 1px solid var(--linea);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}
.group-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(var(--oro-claro), var(--oro));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}
.group-card.in-view::before {
    transform: scaleY(1);
}
.group-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 44px -22px rgba(34, 31, 24, 0.28);
    border-color: var(--oro);
}

.group-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    background: linear-gradient(
        155deg,
        var(--verde-claro),
        var(--verde-oscuro) 78%
    );
    box-shadow: 0 10px 20px -8px rgba(14, 58, 43, 0.5);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.group-card:hover .group-icon {
    transform: rotate(-8deg) scale(1.08);
}
.group-icon-img {
    overflow: hidden;
    padding: 0;
}
.group-icon-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.group-coord {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--linea);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.group-coord-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tinta-sub);
}
.group-coord-name {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--verde-oscuro);
}
.group-coord-tel {
    font-size: 0.84rem;
    color: var(--bronce);
    text-decoration: none;
}
.group-coord-tel:hover {
    text-decoration: underline;
}
.group-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.group-icon svg path,
.group-icon svg circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}
.group-card.in-view .group-icon svg path,
.group-card.in-view .group-icon svg circle {
    stroke-dashoffset: 0;
}

.group-card h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--verde-oscuro);
    margin-bottom: 0.5rem;
}
.group-card p {
    color: var(--tinta-sub);
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.9rem;
}
.group-card a {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--oro);
    border-bottom: 1px solid var(--oro);
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition:
        gap 0.3s ease,
        color 0.3s ease;
}
.group-card a:hover {
    gap: 0.7rem;
    color: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
}

@media (prefers-reduced-motion: reduce) {
    .group-card::before {
        transform: scaleY(1);
    }
    .group-icon svg path,
    .group-icon svg circle {
        stroke-dashoffset: 0;
    }
}

/* ============ AGENDA / TIMELINE ============ */
.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--linea);
}
.tl-item {
    position: relative;
    padding: 0 0 3rem clamp(2.8rem, 8vw, 3.4rem);
}
.tl-item:last-child {
    padding-bottom: 0;
}
.tl-dot {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--crema);
    border: 2px solid var(--oro);
}
.tl-date {
    font-family: var(--display);
    font-style: italic;
    color: var(--oro);
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: block;
}
.tl-item h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--verde-oscuro);
    margin-bottom: 0.4rem;
}
.tl-item p {
    color: var(--tinta-sub);
    font-weight: 300;
    /* ============ GRUPOS ============ */
    line-height: 1.7;
    max-width: 520px;
}
.tl-img {
    display: block;
    width: 100%;
    max-width: 460px;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--linea);
    margin: 0.5rem 0 0.9rem;
    box-shadow: 0 14px 28px -18px rgba(34, 31, 24, 0.35);
}
.tl-place {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bronce);
    margin-bottom: 0.55rem;
}
.tl-place svg {
    flex-shrink: 0;
}

/* ============ DONACIONES ============ */
.give-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
@media (max-width: 860px) {
    .give-wrap {
        grid-template-columns: 1fr;
    }
}
.give-text h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--verde-oscuro);
    line-height: 1.2;
    margin-bottom: 1.1rem;
}
.give-text p {
    color: var(--tinta-sub);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.6rem;
}
.give-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.give-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
}
.give-method .seal {
    width: 46px;
    height: 46px;
}
.give-method .seal svg {
    width: 20px;
    height: 20px;
}
.give-method h4 {
    font-family: var(--display);
    font-weight: 600;
    color: var(--verde-oscuro);
    font-size: 1.1rem;
}
.give-method p {
    font-size: 0.85rem;
    color: var(--tinta-sub);
    font-weight: 300;
}

.give-visual {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 30%,
        var(--verde-claro),
        var(--verde-oscuro) 75%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px -20px rgba(14, 58, 43, 0.4);
}
.give-visual svg {
    width: 38%;
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 1.1;
    animation: heartbeat 3.2s ease-in-out infinite;
}
@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

/* ============ CONTACTO ============ */
.contact-wrap {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 900px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.contact-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-row .seal {
    width: 46px;
    height: 46px;
}
.contact-row .seal svg {
    width: 20px;
    height: 20px;
}
.contact-row h4 {
    font-family: var(--display);
    font-weight: 600;
    color: var(--verde-oscuro);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.contact-row p {
    color: var(--tinta-sub);
    font-size: 0.9rem;
    font-weight: 300;
}
.contact-social-title {
    font-family: var(--display);
    font-weight: 600;
    color: var(--verde-oscuro);
    margin-bottom: 0.6rem;
}
.social-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}
.social-row a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--linea);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}
.social-row a:hover {
    border-color: var(--oro);
    transform: translateY(-3px);
}
.social-row svg {
    width: 17px;
    height: 17px;
    stroke: var(--verde-oscuro);
    fill: none;
    stroke-width: 1.4;
}

.map-frame {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 14px;
    filter: grayscale(0.25) sepia(0.08);
    margin-top: 0.5rem;
}

.contact-form {
    background: var(--crema-alt);
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-row label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tinta-sub);
}
.form-row input,
.form-row textarea {
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--linea);
    background: var(--crema);
    color: var(--tinta);
    resize: vertical;
    transition: border-color 0.3s ease;
}
.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--oro);
    outline: none;
}
.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}
.form-note {
    font-size: 0.78rem;
    color: var(--tinta-sub);
    font-style: italic;
}

.site-foot {
    background: var(--verde-oscuro);
    color: rgba(246, 241, 228, 0.75);
    text-align: center;
    padding: 2.6rem 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.site-foot strong {
    color: var(--oro-suave);
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.08em;
}

/* botón volver arriba (no es navbar) */
#toTop {
    position: fixed;
    right: 1.4rem;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--verde-oscuro);
    border: 1px solid var(--oro);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s ease;
    z-index: 40;
    cursor: pointer;
}
#toTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#toTop svg {
    width: 16px;
    height: 16px;
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 2;
}

/* ============ NAVBAR — menú de secciones con padres e hijos ============ */
:root {
    --nav-h: 68px;
}

/* Los enlaces ancla no quedan ocultos bajo la barra fija */
[id] {
    scroll-margin-top: calc(var(--nav-h) + 0.9rem);
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    height: var(--nav-h);
    background: color-mix(in srgb, var(--verde-oscuro) 42%, transparent);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(255, 253, 246, 0.14);
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease;
}
.site-nav.scrolled {
    background: color-mix(in srgb, var(--verde-oscuro) 94%, transparent);
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.65);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fffdf6;
    min-width: 0;
    flex: 1 1 auto;
}
.nav-monogram {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at 35% 30%,
        var(--verde-claro),
        var(--verde-oscuro) 78%
    );
    border: 1px solid rgba(239, 217, 166, 0.45);
    color: var(--oro-suave);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
    border: 1px solid rgba(239, 217, 166, 0.45);
}
.nav-name {
    font-family: var(--display);
    font-size: clamp(1rem, 4.8vw, 1.32rem);
    letter-spacing: 0.04em;
    flex: 1 1 auto;
    min-width: 0;
    /* Que no desborde: si algún día el nombre es muy largo, se corta con puntos */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}

/* ---------- Navegación de escritorio ---------- */
.nav-desktop {
    display: block;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(0.05rem, 0.35vw, 0.4rem);
    list-style: none;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0.5rem 0.52rem;
    border: 0;
    background: transparent;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 253, 246, 0.92);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        background 0.25s ease;
}
.nav-link:hover,
.nav-item:focus-within > .nav-link {
    color: var(--oro-suave);
    background: rgba(255, 253, 246, 0.1);
}
.nav-chev {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.has-drop:hover .nav-chev,
.has-drop:focus-within .nav-chev {
    transform: rotate(180deg);
}

/* ---- Desplegable (padre → hijos) ---- */
.nav-drop {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 250px;
    padding: 0.6rem;
    background: linear-gradient(
        165deg,
        rgba(255, 253, 246, 0.97),
        rgba(250, 246, 236, 0.95)
    );
    border: 1px solid rgba(255, 253, 246, 0.6);
    border-radius: 16px;
    box-shadow: 0 24px 50px -20px rgba(6, 18, 12, 0.55);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}
.has-drop:hover .nav-drop,
.has-drop:focus-within .nav-drop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-drop-link {
    display: block;
    padding: 0.62rem 0.85rem;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 400;
    color: var(--verde-oscuro);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}
.nav-drop-link:hover {
    background: rgba(31, 107, 74, 0.1);
    color: var(--verde);
    padding-left: 1.05rem;
}

/* ---------- Botón hamburguesa (móvil / tablet) ---------- */
.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 253, 246, 0.3);
    border-radius: 12px;
    background: rgba(255, 253, 246, 0.08);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}
.nav-burger:hover {
    background: rgba(255, 253, 246, 0.16);
    border-color: rgba(239, 217, 166, 0.5);
}
.nav-burger span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fffdf6;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}
.nav-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Cajón móvil ---------- */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: color-mix(in srgb, var(--verde-oscuro) 45%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}
.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(410px, 100%);
    background: var(--crema);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -30px 0 60px -30px rgba(6, 18, 12, 0.5);
    visibility: hidden;
}
.nav-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid var(--linea);
}
.drawer-head .nav-brand {
    color: var(--verde-oscuro);
}
.drawer-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--linea);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--verde-oscuro);
    flex-shrink: 0;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}
.drawer-close:hover {
    border-color: var(--oro);
    transform: rotate(90deg);
}
.drawer-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem 1.3rem 1.4rem;
}
.drawer-list {
    list-style: none;
}
.drawer-link,
.drawer-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 0.2rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--linea);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--verde-oscuro);
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}
.drawer-link:hover,
.drawer-parent:hover {
    color: var(--oro);
    padding-left: 0.4rem;
}
.drawer-chev {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.drawer-group.is-open .drawer-chev {
    transform: rotate(180deg);
}

.drawer-sub {
    display: none;
    padding: 0.1rem 0 0.6rem;
}
.drawer-group.is-open .drawer-sub {
    display: block;
    animation: drawerIn 0.3s ease;
}
@keyframes drawerIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.drawer-sublink {
    display: block;
    padding: 0.58rem 0 0.58rem 0.9rem;
    margin-left: 0.35rem;
    border-left: 2px solid var(--oro);
    color: var(--tinta-sub);
    font-size: 0.92rem;
    font-weight: 400;
    transition: color 0.2s ease;
}
.drawer-sublink:hover {
    color: var(--verde);
}

.drawer-foot {
    padding: 1.2rem 1.3rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--linea);
    text-align: center;
}
.drawer-cta {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--verde), var(--verde-oscuro));
    color: #fffdf6;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    transition:
        background 0.3s ease,
        transform 0.2s ease;
}
.drawer-cta:hover {
    background: linear-gradient(180deg, var(--oro), var(--bronce));
    transform: translateY(-1px);
}
.drawer-org {
    margin-top: 0.8rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--tinta-sub);
}

/* ---------- Responsive: hamburguesa en tablet y móvil ---------- */
@media (max-width: 1100px) {
    .nav-desktop {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
}
/* ============================================================
     ANIMACIONES DE ENTRADA ALTERNATIVAS (variedad entre secciones)
     ============================================================ */
.reveal-left {
    opacity: 0;
    transform: translateX(-46px);
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(46px);
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.82) rotate(-2deg);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-scale.in-view {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---- Horarios: ahora entran con un ligero giro/escala en lugar del fade estándar ---- */
#horarios .info-card {
    transition:
        transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}
#horarios .info-card:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 0 22px 42px -18px rgba(34, 31, 24, 0.28);
}
#horarios .info-card .seal svg {
    transition: transform 0.5s ease;
}
#horarios .info-card:hover .seal svg {
    transform: rotate(18deg) scale(1.08);
}

/* Grupos: el acento lateral y el ícono ya aportan su propia identidad de animación (ver bloque GRUPOS arriba) */

/* ============================================================
   PADRES / EQUIPO SACERDOTAL — tarjetas con info superpuesta a la foto
   ============================================================ */
.padres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

/* --- Card: la foto ocupa TODA la card, la info va superpuesta abajo --- */
.priest-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(
        165deg,
        var(--verde) 0%,
        var(--verde-oscuro) 80%
    );
    box-shadow: 0 14px 34px -22px rgba(14, 58, 43, 0.32);
    transform: translateY(0);
    transition:
        transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);

    opacity: 0;
    animation: priestCardIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i, 0) * 90ms);
}
.priest-card:hover,
.priest-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 30px 54px -22px rgba(14, 58, 43, 0.42);
}

@keyframes priestCardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .priest-card {
        animation: none;
        opacity: 1;
    }
}

/* --- Foto a sangre, cubre toda la card --- */
.priest-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.priest-card:hover img {
    transform: scale(1.09);
}

.priest-silhouette {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.priest-silhouette svg {
    width: 38%;
    height: 38%;
    stroke: rgba(255, 253, 246, 0.55);
    fill: none;
    stroke-width: 1.1;
}

/* --- Degradado inferior para que el texto se lea sobre la foto --- */
.priest-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 36, 27, 0) 18%,
        rgba(10, 36, 27, 0.68) 45%,
        rgba(8, 30, 22, 1) 100%
    );
    pointer-events: none;
}

/* --- Info superpuesta, anclada abajo --- */
.priest-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6%;
    padding: 0.9rem 1rem 0.9rem;
    z-index: 2;
    transform: translateY(-6%);
}

.priest-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.priest-name-row h4 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.45rem;
    color: #fffdf6;
    line-height: 1.12;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
    margin-bottom: 0.05rem;
}

.priest-badge {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--oro-suave);
    display: flex;
    align-items: center;
    justify-content: center;
}
.priest-badge svg {
    width: 9px;
    height: 9px;
    stroke: var(--verde-oscuro);
    stroke-width: 2.6;
    fill: none;
}

.priest-role {
    margin-top: 0.1rem;
    font-size: 1.02rem;
    font-weight: 300;
    color: rgba(246, 241, 228, 0.94);
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.priest-brief {
    margin-top: 0.5rem;
    font-size: 0.96rem;
    color: rgba(246, 241, 228, 0.92);
    font-weight: 300;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Datos + CTA, misma fila, sobre la foto --- */
.priest-footer {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.priest-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    min-width: 0;
}
.priest-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    font-size: 0.84rem;
    color: rgba(246, 241, 228, 0.86);
    white-space: nowrap;
}
.priest-meta svg {
    width: 12px;
    height: 12px;
    stroke: rgba(246, 241, 228, 0.82);
    fill: none;
    stroke-width: 1.7;
    flex: none;
}

/* CTA tipo "Follow +": pastilla clara sobre la foto */
.priest-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.92);
    color: var(--verde-oscuro);
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.35);
    transition:
        background 0.35s ease,
        transform 0.35s ease;
}
.priest-cta svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform 0.35s ease;
}
.priest-card:hover .priest-cta {
    background: #fffdf6;
}
.priest-card:hover .priest-cta svg {
    transform: translateX(2px);
}

/* --- Empty state --- */
.admin-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--tinta-sub);
    font-size: 0.9rem;
    padding: 2rem 0;
}

@media (max-width: 600px) {
    .priest-card {
        animation-delay: 0ms !important;
    }
    .priest-footer {
        flex-wrap: wrap;
    }
    .priest-cta {
        margin-left: auto;
    }
}

/* ============================================================
     GALERÍA — mosaico con lightbox
     ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 130px;
    gap: 0.9rem;
    max-width: 1100px;
    margin: 0 auto;
}
.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(
        150deg,
        var(--verde-claro),
        var(--verde-oscuro)
    );
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item:nth-child(4) {
    grid-column: span 2;
}
.gallery-item:nth-child(6) {
    grid-row: span 2;
}
.gallery-item:nth-child(2n) {
    background: linear-gradient(150deg, var(--oro-claro), var(--bronce));
}
.gallery-item:nth-child(3n) {
    background: linear-gradient(150deg, var(--verde-oscuro), #06170f);
}
.gallery-item:hover {
    transform: scale(1.035);
    z-index: 2;
}
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(8, 14, 10, 0.75) 0%,
        transparent 55%
    );
}
.gallery-item span {
    position: relative;
    z-index: 1;
    color: #fffdf6;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.05rem;
}
.gallery-item svg {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 20px;
    height: 20px;
    stroke: rgba(255, 253, 246, 0.8);
    fill: none;
    stroke-width: 1.6;
    z-index: 1;
}

@media (max-width: 760px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .gallery-item:nth-child(6) {
        grid-row: span 1;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 14, 10, 0.82);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
    padding: 2rem;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox-card {
    width: min(560px, 90vw);
    border-radius: 22px;
    padding: 3.2rem 2.2rem;
    background: linear-gradient(160deg, var(--verde), var(--verde-oscuro) 75%);
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}
.lightbox.is-open .lightbox-card {
    transform: scale(1) translateY(0);
}
.lightbox-img {
    width: 100%;
    max-height: 46vh;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.1rem;
    display: none;
}
.lightbox-card h3 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    color: #fffdf6;
    font-size: 1.7rem;
}
.lightbox-card p {
    color: var(--oro-suave);
    font-weight: 300;
    margin-top: 0.8rem;
    font-size: 0.92rem;
}
.lightbox-close {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 253, 246, 0.4);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}
.lightbox-close:hover {
    transform: rotate(90deg);
    border-color: var(--oro-suave);
}
.lightbox-close svg {
    width: 16px;
    height: 16px;
    stroke: #fffdf6;
    fill: none;
    stroke-width: 1.8;
}

/* ============================================================
     TESTIMONIOS — corcho con notas pegadas
     ============================================================ */
.testi-board {
    position: relative;
    max-width: 1150px;
    padding: clamp(2rem, 6vw, 3.2rem) clamp(1.4rem, 5vw, 2.6rem);
    margin: 0 auto;
    border-radius: 26px;
    background:
        radial-gradient(rgba(34, 31, 24, 0.05) 1px, transparent 1px) 0 0/16px
            16px,
        var(--crema-honda);
    border: 1px solid var(--linea);
    box-shadow:
        inset 0 2px 10px rgba(34, 31, 24, 0.08),
        0 30px 60px -30px rgba(34, 31, 24, 0.25);
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem 2rem;
}
@media (max-width: 900px) {
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testi-board {
        padding: 2.4rem 1.6rem;
    }
}
@media (max-width: 620px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
}

.testi-note {
    position: relative;
    background: var(--crema);
    border-radius: 2px;
    padding: 1.9rem 1.7rem 1.6rem;
    box-shadow:
        0 14px 26px -14px rgba(34, 31, 24, 0.35),
        0 2px 4px rgba(34, 31, 24, 0.08);
    transform: rotate(var(--tilt, 0deg));
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    opacity: 0;
}
.testi-note.in-view {
    animation: notePin 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes notePin {
    0% {
        opacity: 0;
        transform: translateY(-26px) rotate(0deg) scale(0.9);
    }
    70% {
        opacity: 1;
        transform: translateY(4px) rotate(calc(var(--tilt, 0deg) * 1.3))
            scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1);
    }
}
.testi-note:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 22px 34px -16px rgba(34, 31, 24, 0.4);
    z-index: 2;
}

.testi-note:nth-child(1) {
    --tilt: -1.4deg;
}
.testi-note:nth-child(2) {
    --tilt: 0.9deg;
}
.testi-note:nth-child(3) {
    --tilt: -0.7deg;
}
.testi-note:nth-child(4) {
    --tilt: 1.6deg;
}
.testi-note:nth-child(5) {
    --tilt: -1.8deg;
}
.testi-note:nth-child(6) {
    --tilt: 1.1deg;
}

.testi-tape {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 64px;
    height: 24px;
    background: linear-gradient(
        180deg,
        rgba(216, 168, 92, 0.55),
        rgba(185, 134, 58, 0.4)
    );
    border: 1px solid rgba(185, 134, 58, 0.3);
    box-shadow: 0 3px 6px rgba(34, 31, 24, 0.15);
}
.testi-note:nth-child(even) .testi-tape {
    transform: translateX(-50%) rotate(3deg);
}

.testi-note p {
    font-family: var(--manuscrita);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.28;
    color: var(--tinta);
}
.testi-note p::before {
    content: "\201C";
    color: var(--oro);
}
.testi-note p::after {
    content: "\201D";
    color: var(--oro);
}

.testi-divider {
    width: 34px;
    height: 1px;
    background: var(--oro);
    margin: 1.1rem 0 0.6rem;
}
.testi-name {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    color: var(--verde-oscuro);
    font-size: 1.02rem;
}
.testi-role {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--tinta-sub);
    margin-top: 0.15rem;
    font-family: "Courier New", monospace;
}

@media (prefers-reduced-motion: reduce) {
    .testi-note {
        opacity: 1;
        transform: rotate(var(--tilt, 0deg));
        animation: none;
    }
}

/* ============================================================
     PREGUNTAS FRECUENTES — acordeón
     ============================================================ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    border: 1px solid var(--linea);
    border-radius: 14px;
    background: var(--crema);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.3rem 1.6rem;
    text-align: left;
    font-family: var(--display);
    font-size: 1.15rem;
    color: var(--verde-oscuro);
    font-weight: 600;
}
.faq-plus {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.faq-plus::before,
.faq-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--oro);
    transition: transform 0.35s ease;
}
.faq-plus::before {
    width: 16px;
    height: 2px;
    transform: translate(-50%, -50%);
}
.faq-plus::after {
    width: 2px;
    height: 16px;
    transform: translate(-50%, -50%);
}
.faq-item.is-open .faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-a p {
    padding: 0 1.6rem 1.5rem;
    color: var(--tinta-sub);
    font-weight: 300;
    line-height: 1.75;
    font-size: 0.94rem;
}
.faq-item.is-open .faq-a {
    max-height: 220px;
}

/* ============================================================
     AVISOS PARROQUIALES — tarjetas alternadas deslizantes
     ============================================================ */
.avisos-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.aviso-card {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    background: var(--crema-alt);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    position: relative;
}
.aviso-card:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}
.aviso-tag {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        160deg,
        var(--verde-claro),
        var(--verde-oscuro)
    );
    color: #fffdf6;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.1;
}
.aviso-card h4 {
    font-family: var(--display);
    font-weight: 600;
    color: var(--verde-oscuro);
    font-size: 1.15rem;
}
.aviso-card p {
    color: var(--tinta-sub);
    font-weight: 300;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .aviso-card,
    .aviso-card:nth-child(even) {
        flex-direction: row;
        text-align: left;
    }
}

/* ============================================================
     FORMULARIO DE CONTACTO — estados de éxito y error
     ============================================================ */
.form-success {
    background: rgba(31, 107, 74, 0.1);
    border: 1px solid var(--verde);
    color: var(--verde-oscuro);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-errors {
    background: rgba(140, 106, 63, 0.12);
    border: 1px solid var(--bronce);
    color: var(--bronce);
    border-radius: 10px;
    padding: 0.9rem 1rem 0.9rem 2rem;
    font-size: 0.85rem;
    list-style: disc;
    line-height: 1.6;
}

/* ============================================================
     EQUIPO SACERDOTAL — fotos en tarjetas y ficha completa
     ============================================================ */
a.priest-card {
    text-decoration: none;
    display: block;
}
.priest-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 253, 246, 0.35);
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 253, 246, 0.12);
}
.priest-ver-ficha {
    display: inline-block;
    margin-top: 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--verde);
    font-weight: 500;
}

/* ---------- Página de ficha ---------- */
body.ficha-body {
    margin: 0;
    background: var(--crema);
    color: var(--tinta);
    font-family: var(--sans);
}
/* La barra de navegación queda como barra sólida arriba y el contenido
   fluye debajo, sin fundirse con el hero ni tapar nada. */
body.ficha-body .site-nav {
    background: var(--verde-oscuro);
}
.ficha-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem clamp(1.25rem, 6vw, 3rem);
    background: var(--verde-oscuro);
}
.ficha-brand {
    font-family: var(--display);
    font-size: 1.25rem;
    color: #fffdf6;
    text-decoration: none;
    letter-spacing: 0.04em;
}
.ficha-back {
    color: var(--oro-suave);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.ficha-back:hover {
    text-decoration: underline;
}
.ficha-hero {
    text-align: center;
    /* Padding extra arriba para no quedar bajo la navbar fija */
    padding: calc(clamp(3rem, 9vw, 4rem) + var(--nav-h))
        clamp(1.25rem, 6vw, 3rem) 3.2rem;
    background: linear-gradient(
        170deg,
        var(--verde) 0%,
        var(--verde-oscuro) 85%
    );
    color: #fffdf6;
}
.ficha-photo {
    width: clamp(170px, 26vw, 260px);
    height: clamp(170px, 26vw, 260px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 253, 246, 0.4);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5);
    margin: 0 auto 1.4rem;
}
.ficha-photo-silhouette {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 253, 246, 0.12);
}
.ficha-photo-silhouette svg {
    width: clamp(62px, 9vw, 96px);
    height: clamp(62px, 9vw, 96px);
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 1.1;
}
.ficha-rol {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--oro-suave);
    margin-bottom: 0.6rem;
}
.ficha-name {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0;
}
.ficha-lema {
    margin-top: 1rem;
    font-family: var(--script);
    font-size: 1.35rem;
    color: #f3e3bd;
}
.ficha-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1280px;
    margin: -1.6rem auto 0;
    padding: 0 clamp(1.25rem, 6vw, 3rem);
    position: relative;
    z-index: 2;
}
.ficha-fact {
    background: #fffdf6;
    border: 1px solid var(--linea);
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    text-align: center;
    box-shadow: 0 16px 34px -22px rgba(14, 58, 43, 0.35);
}
.ficha-fact-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tinta-sub);
    margin-bottom: 0.35rem;
}
.ficha-fact-value {
    font-family: var(--display);
    font-size: 1.15rem;
    color: var(--verde-oscuro);
    font-weight: 600;
}
.ficha-contenido {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem clamp(1.25rem, 6vw, 3rem) 4rem;
}
.ficha-section {
    margin-bottom: 2.6rem;
}
.ficha-section-title {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.ficha-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--linea);
}
.ficha-text {
    color: var(--tinta-sub);
    font-weight: 300;
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}
.ficha-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.4rem;
}
.ficha-timeline {
    border-left: 2px solid var(--bronce);
    margin: 1.2rem 0 0 0.4rem;
    padding-left: 1.6rem;
    display: grid;
    gap: 1.3rem;
}
.ficha-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
    align-items: baseline;
}
.ficha-timeline-item::before {
    content: "";
    position: absolute;
    left: -1.78rem;
    top: 0.4rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bronce);
    box-shadow: 0 0 0 4px var(--crema);
}
.ficha-timeline-fecha {
    font-family: var(--display);
    font-weight: 600;
    color: var(--verde-oscuro);
}
.ficha-timeline-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ficha-timeline-titulo {
    font-weight: 500;
    color: var(--tinta);
}
.ficha-timeline-desc {
    color: var(--tinta-sub);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}
.ficha-foot {
    text-align: center;
    padding: 1.6rem clamp(1.25rem, 6vw, 3rem);
    border-top: 1px solid var(--linea);
    color: var(--tinta-sub);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.ficha-foot a {
    color: var(--verde);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}
@media (max-width: 560px) {
    .ficha-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
    .ficha-facts {
        margin-top: -1rem;
    }
}

/* ============================================================

      /* ============================================================
     SUBPÁGINAS (testimonios, formulario, ficha por token)
     ============================================================ */
.sub-body {
    margin: 0;
    background: var(--crema);
    color: var(--tinta);
    font-family: var(--sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.sub-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem clamp(1.25rem, 6vw, 3rem);
    background: var(--verde-oscuro);
}
.sub-brand {
    font-family: var(--display);
    font-size: 1.25rem;
    color: #fffdf6;
    text-decoration: none;
    letter-spacing: 0.04em;
}
.sub-back {
    color: var(--oro-suave);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.sub-back:hover {
    text-decoration: underline;
}
.sub-main {
    flex: 1;
}
.sub-hero {
    text-align: center;
    /* Padding extra arriba para no quedar bajo la navbar fija */
    padding: calc(clamp(2.8rem, 9vw, 3.4rem) + var(--nav-h))
        clamp(1.25rem, 6vw, 3rem) 2.6rem;
    background: linear-gradient(
        170deg,
        var(--verde) 0%,
        var(--verde-oscuro) 85%
    );
    color: #fffdf6;
}
.sub-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--oro-suave);
    margin-bottom: 0.6rem;
}
.sub-hero h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.6rem;
}
.sub-hero p:not(.sub-eyebrow):not(.sub-badge):not(.sub-flash) {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 253, 246, 0.85);
    font-weight: 300;
    line-height: 1.7;
}
.sub-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.6rem clamp(1.25rem, 6vw, 3rem) 3.4rem;
}
.sub-narrow {
    max-width: 680px;
}
.sub-flash {
    margin-top: 1.2rem;
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    background: rgba(255, 253, 246, 0.14);
    border: 1px solid rgba(255, 253, 246, 0.3);
    color: #fffdf6;
    font-size: 0.95rem;
}
.sub-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}
.sub-badge-ok {
    background: #2e6b52;
    color: #eaf6ee;
}
.sub-badge-wait {
    background: #b9863a;
    color: #fff8e8;
}
.sub-badge-no {
    background: #7c2d2d;
    color: #fdeaea;
}

.testi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.6rem;
}
.testi-card {
    position: relative;
    background: #fffdf6;
    border: 1px solid var(--linea);
    border-radius: 18px;
    padding: 2rem 1.8rem 1.6rem;
    box-shadow: 0 18px 36px -24px rgba(34, 31, 24, 0.3);
}
.testi-card-quote {
    position: absolute;
    top: 0.4rem;
    left: 1.2rem;
    font-family: var(--display);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--oro);
    opacity: 0.55;
}
.testi-card-text {
    color: var(--tinta-sub);
    font-weight: 300;
    line-height: 1.75;
    white-space: pre-line;
    margin: 0;
}
.testi-card-foot {
    margin-top: 1.2rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--linea);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.testi-card-foot strong {
    color: var(--verde-oscuro);
    font-family: var(--display);
    font-size: 1.05rem;
}
.testi-card-foot span {
    color: var(--tinta-sub);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sub-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.sub-btn-primary,
.sub-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #25d366;
    color: #063;
    font-weight: 500;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 14px 28px -16px rgba(18, 140, 70, 0.7);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.sub-btn-primary {
    background: var(--verde);
    color: #fffdf6;
    box-shadow: 0 14px 28px -16px rgba(14, 58, 43, 0.7);
}
.sub-btn-primary:hover,
.sub-btn-wa:hover {
    transform: translateY(-2px);
}
.sub-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--linea);
    color: var(--verde-oscuro);
    text-decoration: none;
    font-size: 0.95rem;
}
.sub-btn-ghost:hover {
    border-color: var(--oro);
}
.sub-form {
    display: grid;
    gap: 1.2rem;
}
.sub-field {
    display: grid;
    gap: 0.4rem;
}
.sub-field label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--verde-oscuro);
    font-weight: 500;
}
.sub-field input,
.sub-field textarea {
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--linea);
    background: #fffdf6;
    color: var(--tinta);
}
.sub-field input:focus,
.sub-field textarea:focus {
    outline: none;
    border-color: var(--oro);
    box-shadow: 0 0 0 3px rgba(185, 134, 58, 0.15);
}
.sub-errors {
    background: #fdeaea;
    border: 1px solid #e5b4b4;
    color: #7c2d2d;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin: 0;
    font-size: 0.88rem;
}
.sub-hint {
    color: var(--tinta-sub);
    font-size: 0.82rem;
    font-weight: 300;
    margin: 0;
}
.sub-note {
    color: var(--tinta-sub);
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 2.2rem;
}
.sub-code {
    background: rgba(185, 134, 58, 0.12);
    border: 1px solid var(--linea);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    word-break: break-all;
}
.sub-empty {
    color: var(--tinta-sub);
    font-weight: 300;
    text-align: center;
    padding: 2rem 0;
}

/* ============ HISTORIA EN TEXTO (/historia-texto) ============ */
.historia-texto-articulo {
    margin: 2rem auto;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 20px;
    padding: clamp(1.6rem, 4.5vw, 3rem);
    box-shadow: 0 24px 60px -40px color-mix(in srgb, var(--bronce) 40%, transparent);
    color: var(--tinta-sub);
}
.historia-texto-articulo p {
    font-weight: 300;
    line-height: 1.9;
    font-size: 1.06rem;
    margin: 0 0 1.2rem;
}
.historia-texto-articulo p:last-child {
    margin-bottom: 0;
}
.sub-foot {
    text-align: center;
    padding: 1.6rem clamp(1.25rem, 6vw, 3rem);
    border-top: 1px solid var(--linea);
    color: var(--tinta-sub);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.sub-foot a {
    color: var(--verde);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

/* ---------- CTA de testimonios en la portada ---------- */
.testi-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}
.testi-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #063;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    box-shadow: 0 14px 28px -16px rgba(18, 140, 70, 0.7);
    transition: transform 0.3s ease;
}
.testi-btn-wa:hover {
    transform: translateY(-2px);
}
.testi-ver-todos {
    color: var(--verde-oscuro);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.04em;
}
.testi-ver-todos:hover {
    text-decoration: underline;
}
@media (max-width: 620px) {
    .testi-cta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================================
   SERVICIOS GRATUITOS — tarjetas estilo "perfil" (ícono enmarcado + info)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

/* --- Card shell --- */
.service-card {
    position: relative;
    padding: 0.6rem 0.6rem 1.1rem;
    border-radius: 28px;
    background: var(--crema-alt);
    border: 1px solid var(--linea);
    overflow: hidden;
    box-shadow: 0 14px 34px -22px rgba(14, 58, 43, 0.28);
    transform: translateY(0);
    transition:
        transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 54px -22px rgba(14, 58, 43, 0.38);
}

/* --- Panel superior "enmarcado", ocupa el lugar de la foto --- */
.service-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        165deg,
        var(--verde) 0%,
        var(--verde-oscuro) 80%
    );
}
.service-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 22%,
        rgba(255, 255, 255, 0.16),
        transparent 60%
    );
}
.service-photo img.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seal {
    position: relative;
    width: 44%;
    height: 44%;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.seal svg {
    width: 100%;
    height: 100%;
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 1.3;
}
.service-card:hover .seal {
    transform: scale(1.08) rotate(-4deg);
}

/* --- Body --- */
.service-body {
    padding: 0.9rem 0.4rem 0 0.4rem;
}

.service-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.service-name-row h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--verde-oscuro);
    line-height: 1.25;
}
.service-badge {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--oro-suave);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-badge svg {
    width: 9px;
    height: 9px;
    stroke: var(--verde-oscuro);
    stroke-width: 2.6;
    fill: none;
}

.service-role {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--oro-suave);
    filter: brightness(0.75);
}

.service-body > p:not(.service-role) {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--tinta-sub);
    line-height: 1.55;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Etiqueta "Gratuito", ocupa el lugar del botón "Follow +" --- */
.service-footer {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
}
.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1.3px solid var(--verde);
    color: var(--verde-oscuro);
    font-size: 0.68rem;
    font-weight: 500;
    background: transparent;
    transition:
        background 0.35s ease,
        color 0.35s ease;
}
.service-tag svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
}
.service-card:hover .service-tag {
    background: var(--verde);
    color: #fffdf6;
}

@media (max-width: 600px) {
    .service-photo {
        aspect-ratio: 16 / 10;
    }
}

/* Carrusel de servicios: en móvil muestra una card a la vez con deslizamiento */
.serv-carousel {
    position: relative;
}
.serv-track-wrap {
    overflow: hidden;
}
#servTrack {
    transition: transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}
.serv-carousel-btns {
    display: none;
}

@media (max-width: 640px) {
    #servTrack {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1.2rem;
        padding: 0.4rem 0 0.8rem;
        max-width: none;
        margin: 0;
    }
    #servTrack .service-card {
        flex: 0 0 100%;
        min-width: 0;
    }
    .serv-carousel-btns {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    .serv-carousel-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1.5px solid var(--oro);
        background: var(--crema);
        color: var(--verde-oscuro);
        font-size: 1.7rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px -4px rgba(14, 58, 43, 0.25);
        transition:
            background 0.2s ease,
            transform 0.2s ease;
    }
    .serv-carousel-btn:hover {
        background: var(--oro-suave);
        transform: scale(1.08);
    }
    .serv-carousel-btn:disabled {
        opacity: 0.32;
        cursor: default;
        transform: none;
    }
}

/* ============================================================
   RESPONSIVIDAD — ajustes finos para móvil S/M/L, tablet y PC
   ============================================================ */

/* Móvil grande / tablet pequeña (≤640px) */
@media (max-width: 640px) {
    .btn {
        padding: 0.95rem 1.6rem;
    }
    .hero-cta-row {
        margin-top: 4rem;
    }
    .gallery-grid {
        grid-auto-rows: 120px;
    }
    .gallery-item {
        padding: 0.75rem;
    }
    .scrolly-visual {
        height: 36vh;
    }
}

/* Móviles S y M (≤420px) */
@media (max-width: 420px) {
    section {
        padding-top: 4.2rem;
        padding-bottom: 4.2rem;
    }
    .section-head {
        margin-bottom: 2.2rem;
    }
    .statue-hint {
        white-space: normal;
        max-width: 78vw;
        line-height: 1.6;
    }
    .hero-cta-row {
        gap: 0.7rem;
    }
    .aviso-card {
        gap: 1rem;
        padding: 1.1rem 1.2rem;
    }
    .aviso-tag {
        width: 48px;
        height: 48px;
        font-size: 0.72rem;
    }
    .faq-q {
        padding: 1.1rem 1.2rem;
    }
    .faq-a p {
        padding: 0 1.2rem 1.2rem;
    }
    .testi-note {
        padding: 1.5rem 1.3rem 1.4rem;
    }
    .testi-note p {
        font-size: 1.3rem;
    }
    .testi-cta {
        margin-top: 1.6rem;
    }
    .info-card {
        padding: 1.8rem 1.4rem;
    }
    .group-card {
        padding: 1.8rem 1.4rem 1.7rem;
    }
    .contact-form button {
        align-self: stretch;
        width: 100%;
        text-align: center;
    }
    .give-method {
        padding: 1.1rem 1.2rem;
    }
    .ficha-timeline {
        padding-left: 1.2rem;
    }
    .ficha-timeline-item::before {
        left: -1.45rem;
    }
    .priest-card {
        border-radius: 20px;
    }
    .priest-name-row h4 {
        font-size: 1.3rem;
    }
    .menu-list a {
        font-size: 1.4rem;
        padding: 0.42rem 0;
    }
}

/* Móvil S (≤360px) */
@media (max-width: 360px) {
    .gallery-grid {
        grid-auto-rows: 100px;
    }
    .gallery-item span {
        font-size: 0.85rem;
    }
    .parish-name {
        font-size: clamp(2.2rem, 11vw, 9rem);
    }
    .scrolly-visual {
        height: 32vh;
    }
    .visual-step svg {
        width: 40px;
        height: 40px;
    }
    .sub-btn-primary,
    .sub-btn-wa,
    .sub-btn-ghost {
        padding: 0.8rem 1.2rem;
        font-size: 0.88rem;
    }
}

/* Tablet: reflexiones en 2 columnas (en vez de 3 apretadas) */
@media (min-width: 851px) and (max-width: 1080px) {
    .reflections-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablets verticales: columnas cómodas en horarios/grupos/servicios y padres */
@media (min-width: 601px) and (max-width: 860px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 601px) and (max-width: 740px) {
    .padres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============ INTENCIONES A LA VIRGEN ============ */
.intencion-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    padding: 1rem 1.2rem 2rem;
    text-align: center;
}

/* Respect the HTML5 hidden attribute for the overlay to avoid showing the modal on load */
.intencion-overlay[hidden] {
    display: none !important;
}

.intencion-imagen {
    position: relative;
    width: min(440px, 84vw);
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    outline: none;
    /* Plain image: remove rounded corners and shadows so only the photo is visible */
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.intencion-imagen img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 0;
}

.intencion-imagen:hover img,
.intencion-imagen:focus-visible img {
    transform: scale(1.04);
}

.intencion-imagen:hover,
.intencion-imagen:focus-visible {
    /* No border or shadow on hover — keep only the subtle image scale (defined on img) */
    box-shadow: none;
}

.intencion-imagen-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(
            circle at 50% 30%,
            color-mix(in srgb, var(--verde-claro) 25%, transparent),
            transparent 60%
        ),
        linear-gradient(160deg, var(--verde), var(--verde-oscuro) 75%);
    color: var(--crema);
    border-radius: 20px;
}

.intencion-imagen-fallback svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: var(--oro-claro);
    stroke-width: 1.7;
}

.intencion-imagen-fallback strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.intencion-toca {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 0.45rem 0.9rem;
    /* Semi-transparent pill to improve readability without hiding the photo */
    background: rgba(0, 0, 0, 0.48);
    color: #fffdf6;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
    text-align: center;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
    .intencion-toca {
        font-size: 1.05rem;
        bottom: 18px;
    }
}

.intencion-counter strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 8vw, 3.6rem);
    font-weight: 600;
    line-height: 1;
    color: var(--oro);
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.intencion-counter span {
    display: block;
    margin-top: 0.3rem;
    color: var(--tinta-sub);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

/* ---------- Modal ---------- */
.intencion-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: transparent; /* removed dimming */
    /* removed backdrop blur to avoid page-wide blur on intent click */
    animation: fadeUp 0.3s ease;
}

.intencion-modal {
    position: relative;
    background: var(--crema);
    border-radius: 22px;
    width: min(500px, 100%);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 1.8rem 1.6rem 1.6rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    animation: fadeUp 0.35s ease;
}

.intencion-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(14, 58, 43, 0.08);
    color: var(--verde-oscuro);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.intencion-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.intencion-close:hover {
    background: rgba(14, 58, 43, 0.16);
    transform: rotate(90deg);
}

.intencion-modal h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--verde-oscuro);
    margin: 0 0 1rem;
    line-height: 1.2;
    padding-right: 2rem;
}

.intencion-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid rgba(14, 58, 43, 0.25);
    border-radius: 14px;
    background: #fffdf6;
    color: var(--tinta);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.8rem 0.9rem;
    resize: vertical;
    min-height: 110px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.intencion-form textarea:focus {
    border-color: var(--verde-claro);
    box-shadow: 0 0 0 4px rgba(63, 156, 114, 0.18);
}

.intencion-char {
    text-align: right;
    font-size: 0.8rem;
    color: var(--tinta-sub);
    margin: 0.35rem 0 0.8rem;
}

.intencion-submit {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1.2rem;
}

.intencion-error {
    margin: 0.7rem 0 0;
    color: #a33327;
    font-size: 0.88rem;
    line-height: 1.45;
}

.intencion-estado {
    text-align: center;
    padding: 0.6rem 0;
}

.intencion-icono {
    font-size: 3rem;
    margin-bottom: 0.6rem;
}

.intencion-estado p {
    color: var(--tinta-sub);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.1rem;
}

/* ---------- Animaciones ---------- */
@media (max-width: 480px) {
    .intencion-imagen {
        width: min(350px, 88vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .intencion-overlay,
    .intencion-modal {
        animation: none;
    }
}

/* ============ ESTRUCTURA DE LA PARROQUIA (portada) ============ */
.estructura-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 22px;
    padding: 1.2rem 1.8rem 1.2rem 1.2rem;
    box-shadow: 0 16px 40px -24px rgba(34, 31, 24, 0.35);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}
.estructura-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -26px rgba(34, 31, 24, 0.42);
    border-color: var(--oro);
}
.estructura-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
.estructura-card-body {
    display: grid;
    gap: 0.8rem;
}
.estructura-card-body h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--verde-oscuro);
    margin: 0;
}
.estructura-card-body p {
    color: var(--tinta-sub);
    font-weight: 300;
    font-size: 0.94rem;
    line-height: 1.7;
    margin: 0;
}
.estructura-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--crema);
    background: linear-gradient(120deg, var(--verde), var(--verde-oscuro));
    box-shadow: 0 12px 22px -12px rgba(14, 58, 43, 0.55);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        gap 0.3s ease;
}
.estructura-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px -14px rgba(14, 58, 43, 0.6);
    gap: 0.75rem;
}
@media (max-width: 720px) {
    .estructura-card {
        grid-template-columns: 1fr;
        padding: 1.1rem 1.1rem 1.5rem;
    }
    .estructura-btn {
        justify-self: stretch;
        justify-content: center;
    }
}

/* ============ HISTORIA DE LA PARROQUIA (sección independiente en portada) ============ */
.historia-parroquia-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 22px;
    padding: 1.2rem 1.8rem 1.2rem 1.2rem;
    box-shadow: 0 16px 40px -24px rgba(34, 31, 24, 0.35);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}
/* sin visual: una sola columna centrada */
.historia-parroquia-card--solo-texto {
    grid-template-columns: 1fr;
    max-width: 600px;
    text-align: center;
    padding: 2.2rem 2.4rem;
}
.historia-parroquia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -26px rgba(34, 31, 24, 0.42);
    border-color: var(--oro);
}
.historia-parroquia-tiras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}
.historia-parroquia-foto {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 3px solid var(--oro-suave);
    background: var(--crema-alt);
}
.historia-parroquia-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.historia-parroquia-foto:hover img {
    transform: scale(1.06);
}
.historia-parroquia-icono {
    display: grid;
    place-items: center;
    min-height: 230px;
    background: linear-gradient(135deg, var(--crema-alt), var(--crema-honda));
    border-radius: 14px;
}
.historia-parroquia-icono svg {
    width: 110px;
    height: 82px;
    fill: none;
    stroke: var(--oro);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.historia-parroquia-body {
    display: grid;
    gap: 0.8rem;
}
.historia-parroquia-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--oro);
    font-weight: 500;
}
.historia-parroquia-body h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--verde-oscuro);
    margin: 0;
}
.historia-parroquia-body p {
    color: var(--tinta-sub);
    font-weight: 300;
    font-size: 0.94rem;
    line-height: 1.7;
    margin: 0;
}
/* Botones de la tarjeta: «Ver la historia completa» + «Ver la línea del tiempo» */
.historia-parroquia-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.4rem;
}
.historia-parroquia-acciones .estructura-btn {
    justify-self: auto;
}
.estructura-btn-linea {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--verde) 45%, transparent);
    color: var(--verde-oscuro);
    box-shadow: none;
}
.estructura-btn-linea:hover {
    background: color-mix(in srgb, var(--verde) 9%, transparent);
    box-shadow: none;
    gap: 0.75rem;
}
@media (max-width: 720px) {
    .historia-parroquia-card {
        grid-template-columns: 1fr;
        padding: 1.1rem 1.1rem 1.5rem;
    }
    .historia-parroquia-acciones {
        flex-direction: column;
        align-items: stretch;
    }
    .historia-parroquia-acciones .estructura-btn {
        justify-self: stretch;
        justify-content: center;
    }
}

/* ============ NICAN MOPOHUA (libro en la portada) ============ */
.nican-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: 22px;
    padding: 1.2rem 1.8rem 1.2rem 1.2rem;
    box-shadow: 0 16px 40px -24px rgba(34, 31, 24, 0.35);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}
.nican-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -26px rgba(34, 31, 24, 0.42);
    border-color: var(--oro);
}
.nican-libro-mini {
    position: relative;
    height: 250px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--crema-alt), var(--crema-honda));
    overflow: hidden;
}
.nican-mini-canto {
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 170px;
    background: #fdfaf1;
    border: 1px solid var(--linea);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 10px 24px -14px rgba(34, 31, 24, 0.4);
}
.nican-mini-canto-1 {
    left: calc(50% - 95px);
    transform: rotate(-7deg);
}
.nican-mini-canto-2 {
    left: calc(50% - 52px);
    transform: rotate(-2deg);
}
.nican-mini-canto-3 {
    left: calc(50% - 5px);
    transform: rotate(4deg);
}
.nican-mini-tapa {
    position: relative;
    z-index: 2;
    width: 150px;
    height: 190px;
    border-radius: 5px 14px 14px 5px;
    background: linear-gradient(160deg, var(--verde), var(--verde-oscuro));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 16px 30px -14px rgba(14, 58, 43, 0.65),
        inset -8px 0 16px rgba(0, 0, 0, 0.22);
    display: grid;
    place-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.8rem;
}
.nican-mini-tapa::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(239, 217, 166, 0.55);
    border-radius: 4px 10px 10px 4px;
    pointer-events: none;
}
.nican-mini-rayos {
    width: 74px;
    height: 74px;
    margin: 0 auto;
    fill: none;
    stroke: var(--oro-claro);
    stroke-width: 2.4;
}
.nican-mini-rayos circle {
    fill: rgba(239, 217, 166, 0.16);
}
.nican-mini-titulo {
    font-family: "Fray Gabriel", "Cormorant Garamond", serif;
    font-size: 1.15rem;
    line-height: 1.1;
    color: var(--oro-suave);
}
.nican-mini-sub {
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(250, 246, 236, 0.78);
}
.nican-card-body {
    display: grid;
    gap: 0.8rem;
}
.nican-card-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--oro);
    font-weight: 500;
}
.nican-card-body h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--verde-oscuro);
    margin: 0;
}
.nican-card-body p {
    color: var(--tinta-sub);
    font-weight: 300;
    font-size: 0.94rem;
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 720px) {
    .nican-card {
        grid-template-columns: 1fr;
        padding: 1.1rem 1.1rem 1.5rem;
    }
    .nican-libro-mini {
        height: 210px;
    }
    .nican-card-body .estructura-btn {
        justify-self: stretch;
        justify-content: center;
    }
}

/* ============ FRAY GABRIEL: TÍTULOS DE SECCIÓN + NOMBRE DE LA PARROQUIA ============
   Al final para que gane sobre las reglas con var(--display). */
.section-head h2,
.galeria-head h1,
.parish-name,
.intro-name {
    font-family: "Fray Gabriel", "Cormorant Garamond", serif;
    font-weight: 600;
}
