/* ==========================================================================
   Header + banner de inicio — referencia editorial / app
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --header-h: 87px;
}

@media (max-width: 980px) {
    :root {
        --header-h: 77px;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 69px;
    }
}

/* ---------- Header ---------- */

.site-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(232, 220, 203, .6);
}

.site-header.is-scrolled {
    border-bottom-color: rgba(232, 220, 203, .9);
    box-shadow: 0 12px 30px -26px rgba(63, 38, 12, .55);
}

/* En las páginas con banner la cabecera vive dentro de él: el hero sube detrás. */
body.has-overlay-header main {
    margin-top: calc(-1 * var(--header-h));
}

body.has-overlay-header .site-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.has-overlay-header .site-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: rgba(232, 220, 203, .9);
    box-shadow: 0 12px 30px -26px rgba(63, 38, 12, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 86px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 0;
}

.brand img {
    display: block;
    width: auto;
    height: clamp(46px, 5vw, 62px);
}

.menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: 4px;
    flex: none;
    border: 1px solid #eadfce;
    border-radius: 50%;
    background: #f8f3eb;
    color: var(--tinta);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.menu-toggle:hover {
    background: #fff;
    border-color: #d9c8b2;
    transform: translateY(-1px);
}

.menu-toggle[aria-expanded="true"] {
    background: var(--naranja);
    border-color: var(--naranja);
    color: var(--tinta);
}

.menu-toggle .icon {
    width: 21px;
    height: 21px;
}

@media (min-width: 981px) {
    .menu-toggle {
        display: none;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    min-width: 0;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f8f3eb;
    color: #5e5246;
    font-size: .8rem;
    font-weight: 650;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.nav-pill:hover {
    background: #fff;
    border-color: var(--linea);
    color: var(--tinta);
    transform: translateY(-1px);
}

.nav-pill.is-active {
    background: var(--naranja);
    border-color: var(--naranja);
    color: #fff;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid #eadfce;
    border-radius: 50%;
    background: #fff;
    color: var(--tinta);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    border-color: var(--durazno);
}

.icon-btn .icon {
    width: 19px;
    height: 19px;
}

.icon-btn--soft {
    background: var(--naranja-suave);
    border-color: transparent;
    color: var(--naranja-oscuro);
}

.icon-btn--soft:hover {
    background: #f8d6b1;
}

.icon-btn--social {
    background: var(--naranja);
    border-color: var(--naranja);
    color: #fff;
}

.icon-btn--social:hover {
    background: var(--naranja-oscuro);
    border-color: var(--naranja-oscuro);
    color: #fff;
}

.icon-btn--dark {
    background: var(--tinta);
    border-color: var(--tinta);
    color: #fff;
}

.icon-btn--dark:hover {
    background: #33281e;
    border-color: #33281e;
}

/* ---------- Menú lateral ---------- */

body.menu-open {
    overflow: hidden;
}

.menu-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}

.menu-panel__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(24, 16, 9, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    cursor: pointer;
    transition: opacity .26s ease;
}

.menu-panel__sheet {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(410px, 100%);
    height: 100%;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--crema);
    border-left: 1px solid rgba(255, 255, 255, .5);
    box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .65);
    transform: translateX(102%);
    transition: transform .3s cubic-bezier(.22, .8, .28, 1);
}

.menu-panel.is-open .menu-panel__scrim {
    opacity: 1;
}

.menu-panel.is-open .menu-panel__sheet {
    transform: translateX(0);
}

.menu-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.menu-panel__brand {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: 12px;
}

.menu-panel__brand img {
    width: auto;
    height: 42px;
}

.menu-panel__close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    padding: 0;
    border: 1px solid var(--linea);
    border-radius: 50%;
    background: #fff;
    color: var(--tinta);
    transition: background .18s ease, border-color .18s ease;
}

.menu-panel__close:hover {
    background: var(--crema-2);
    border-color: #d9c8b2;
}

.menu-panel__close .icon {
    width: 19px;
    height: 19px;
}

.menu-panel__eyebrow {
    margin: 4px 0 -6px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--naranja-oscuro);
}

.menu-panel__nav {
    display: grid;
    gap: 6px;
}

.menu-panel__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--linea);
    border-radius: 14px;
    background: #fff;
    color: var(--tinta);
    font-size: .9rem;
    font-weight: 700;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.menu-panel__link:hover {
    border-color: var(--durazno);
    transform: translateX(2px);
}

.menu-panel__link-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: var(--naranja-suave);
    color: var(--naranja-oscuro);
}

.menu-panel__link-icon .icon {
    width: 20px;
    height: 20px;
}

.menu-panel__link > .icon {
    width: 17px;
    height: 17px;
    margin-left: auto;
    opacity: .5;
}

.menu-panel__link.is-active {
    background: var(--naranja);
    border-color: var(--naranja);
    color: #fff;
}

.menu-panel__link.is-active .menu-panel__link-icon {
    background: rgba(255, 255, 255, .38);
    color: var(--tinta);
}

.menu-panel__schedule {
    padding: 16px;
    border: 1px solid var(--linea);
    border-radius: 16px;
    background: #fff;
}

.menu-panel__schedule-title {
    margin: 0 0 8px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #92795f;
}

.menu-panel__schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid #f4ecdf;
    font-size: .8rem;
    color: var(--tinta-media);
}

.menu-panel__schedule-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.menu-panel__schedule-row strong {
    color: var(--tinta);
    text-align: right;
}

.menu-panel__actions {
    display: grid;
    gap: 8px;
}

.menu-panel__meta {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
    font-size: .78rem;
    color: var(--tinta-media);
}

.menu-panel__meta a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-panel__meta a:hover {
    color: var(--naranja-oscuro);
}

.menu-panel__meta .icon {
    width: 16px;
    height: 16px;
    color: var(--naranja-oscuro);
}

/* ---------- Banner de inicio ---------- */

.home-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(18px, 3vw, 34px) clamp(46px, 6vw, 78px);
    background: linear-gradient(180deg, #fff 0%, #fdf9f2 62%, #faf2e6 100%);
}

/* Banner principal: imagen cargada desde el panel */
.home-hero.home-hero--media {
    display: flex;
    align-items: stretch;
    padding: 0;
    min-height: 0;
    aspect-ratio: 1919 / 719;
    background: #f8ddba;
    isolation: isolate;
}

.home-hero--media .home-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero--media .home-hero__caption {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 14px);
    padding-bottom: clamp(20px, 2.5vw, 36px);
}

.home-hero__caption-inner {
    width: min(600px, 46%);
    margin-left: 0;
    margin-right: auto;
    color: var(--tinta);
    text-shadow: none;
}

.home-hero--media .home-hero__caption-inner h1 {
    margin: 12px 0 8px;
    color: var(--tinta);
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.06em;
}

.home-hero__caption-inner .home-hero__dot {
    color: var(--naranja);
}

.home-hero--media .home-hero__lead {
    max-width: 46ch;
    margin: 0;
    color: #5b4635;
    font-size: clamp(.95rem, 1.05vw, 1.06rem);
    line-height: 1.55;
}

.home-hero--media .home-hero__lead strong {
    color: var(--tinta);
}

@media (max-width: 980px) {
    .home-hero.home-hero--media {
        aspect-ratio: auto;
        min-height: 430px;
    }

    .home-hero__caption-inner {
        width: min(560px, 44%);
    }

    /* El templo está hacia la derecha de la foto: en tablet llevamos el encuadre hacia él. */
    .home-hero--media .home-hero__image {
        object-position: 90% center;
    }
}

@media (max-width: 600px) {
    .home-hero.home-hero--media {
        min-height: 430px;
    }

    .home-hero--media .home-hero__caption {
        padding-top: calc(var(--header-h) + 20px);
        padding-bottom: 20px;
    }

    .home-hero--media .home-hero__caption-inner {
        width: 100%;
        padding: 16px;
        border-radius: 20px;
        background: rgba(253, 249, 242, .94);
        box-shadow: 0 18px 40px -24px rgba(63, 38, 12, .55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .home-hero--media .home-hero__caption-inner h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .home-hero--media .home-hero__lead {
        max-width: none;
        font-size: .92rem;
    }

    /* En móvil el encuadre se corre al templo para que se vea completo. */
    .home-hero--media .home-hero__image {
        object-position: 77% center;
    }
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 52% at 12% 18%, rgba(247, 201, 143, .32), transparent 72%),
        radial-gradient(30% 40% at 88% 6%, rgba(232, 128, 42, .12), transparent 72%);
}

.home-hero__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: stretch;
}

.home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-block: clamp(10px, 2vw, 26px);
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--linea);
    border-radius: 999px;
    background: #fff;
    color: var(--tinta-media);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--naranja);
    box-shadow: 0 0 0 4px rgba(232, 128, 42, .15);
}

.home-hero h1 {
    margin: 20px 0 22px;
    font-size: clamp(3.1rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -.07em;
    color: var(--tinta);
}

.home-hero h1 > span:last-child {
    color: var(--tinta);
}

.home-hero__dot {
    color: var(--naranja);
}

.home-hero__lead {
    max-width: 47ch;
    margin: 0;
    color: var(--tinta-media);
    font-size: 1.02rem;
    line-height: 1.62;
}

.home-hero__lead strong {
    color: var(--tinta);
    font-weight: 700;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.home-hero__cta {
    gap: 16px;
    min-height: 58px;
    padding: 8px 8px 8px 24px;
    font-size: .94rem;
}

.home-hero__cta-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    background: #fff;
    color: var(--naranja-oscuro);
}

.home-hero__cta-icon .icon {
    width: 19px;
    height: 19px;
}

.home-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--linea);
    color: var(--tinta);
    font-size: .87rem;
    font-weight: 700;
    transition: color .18s ease, border-color .18s ease;
}

.home-hero__link:hover {
    color: var(--naranja-oscuro);
    border-color: var(--naranja);
}

.home-hero__proof {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 510px;
    margin-top: clamp(30px, 4vw, 46px);
    padding: 14px;
    border: 1px solid var(--linea);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--sombra);
}

.home-hero__proof-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    flex: none;
    overflow: hidden;
    border-radius: 17px;
    background:
        radial-gradient(80% 80% at 30% 20%, rgba(255, 235, 205, .5), transparent 60%),
        linear-gradient(150deg, #f2a147, #b5520d);
    color: #fff;
}

.home-hero__proof-thumb::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
}

.home-hero__proof-thumb .icon {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.home-hero__proof-label {
    margin: 0 0 8px;
    color: #92795f;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.home-hero__stats > div {
    min-width: 64px;
}

.home-hero__stats > div + div {
    padding-left: 16px;
    border-left: 1px solid var(--linea);
}

.home-hero__stats strong {
    display: block;
    color: var(--tinta);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.home-hero__stats span {
    display: block;
    margin-top: 2px;
    color: #8f7f6c;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Bloque editorial sobre la imagen */
.home-hero--media .home-hero__eyebrow {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(255, 255, 255, .9);
}

.home-hero--media .home-hero__actions {
    gap: 16px;
    margin-top: 16px;
}

.home-hero--media .home-hero__link {
    border-bottom-color: rgba(33, 27, 21, .28);
}

.home-hero--media .home-hero__proof {
    max-width: 460px;
    margin-top: 20px;
    padding: 10px;
    gap: 12px;
    border-radius: 18px;
}

.home-hero--media .home-hero__proof-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--naranja-oscuro);
}

.home-hero--media .home-hero__proof-thumb::after {
    inset: 8px;
}

.home-hero--media .home-hero__proof-thumb .icon {
    width: 26px;
    height: 26px;
}

.home-hero--media .home-hero__proof-label {
    margin-bottom: 4px;
}

.home-hero--media .home-hero__stats {
    gap: 12px;
}

.home-hero--media .home-hero__stats > div {
    min-width: 54px;
}

.home-hero--media .home-hero__stats > div + div {
    padding-left: 12px;
}

.home-hero--media .home-hero__stats strong {
    font-size: 1.05rem;
}

.home-hero--media .home-hero__stats span {
    font-size: .58rem;
}

@media (max-width: 1300px) {
    .home-hero--media .home-hero__proof {
        display: none;
    }
}

@media (max-width: 1180px) {
    .home-hero--media .home-hero__caption {
        padding-top: calc(var(--header-h) + 8px);
        padding-bottom: 20px;
    }
}

/* Panel visual */

.home-hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 640px;
    padding: clamp(24px, 3vw, 36px);
    overflow: hidden;
    border-radius: 38px;
    background:
        radial-gradient(80% 60% at 72% 18%, rgba(255, 219, 170, .5), transparent 62%),
        linear-gradient(155deg, #f2a44e 0%, #dd7d20 42%, #a94d0b 100%);
    color: #fff;
    box-shadow: 0 45px 80px -45px rgba(120, 55, 8, .8);
    isolation: isolate;
}

.home-hero__visual::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    background: repeating-conic-gradient(from -15deg at 50% 38%, rgba(255, 255, 255, .1) 0deg 3deg, rgba(255, 255, 255, 0) 3deg 9deg);
    opacity: .55;
    pointer-events: none;
}

.home-hero__visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 34%;
    background: linear-gradient(transparent, rgba(70, 28, 0, .5));
    pointer-events: none;
}

.home-hero__visual-top {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.home-hero__visual-label {
    max-width: 150px;
    color: rgba(255, 255, 255, .7);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.55;
    text-transform: uppercase;
}

.home-hero__visual-heading {
    max-width: 258px;
    margin-left: auto;
    text-align: right;
}

.home-hero__visual-heading h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.5rem, 2.35vw, 2.1rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.home-hero__visual-heading p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .77rem;
    line-height: 1.5;
}

.home-hero__church {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: -2%;
    width: min(78%, 440px);
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 24px 32px rgba(70, 28, 0, .35));
}

.home-hero__chip {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--tinta);
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 16px 30px -18px rgba(70, 28, 0, .75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-hero__chip .dot {
    width: 6px;
    height: 6px;
}

.home-hero__chip--1 {
    top: 34%;
    right: 6%;
}

.home-hero__chip--2 {
    top: 51%;
    left: 5%;
}

.home-hero__chip--3 {
    top: 67%;
    right: 5%;
}

.home-hero__foot {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 40px;
    color: rgba(255, 255, 255, .82);
    font-size: .72rem;
    font-weight: 600;
}

.home-hero__foot a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    color: #fff;
    transition: background .18s ease, transform .18s ease;
}

.home-hero__foot a:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

/* ---------- Marquesina de avisos ---------- */

.notice-bar {
    background: var(--naranja);
    border-top: 3px solid var(--naranja);
    border-bottom: 1px solid rgba(185, 90, 13, .35);
}

.notice-bar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding-block: 10px;
}

.notice-bar__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.notice-bar__track {
    display: flex;
    width: max-content;
    animation: notice-scroll 42s linear infinite;
    will-change: transform;
}

.notice-bar__track[data-count="1"] {
    animation-duration: 14s;
}

.notice-bar__track[data-count="2"] {
    animation-duration: 22s;
}

.notice-bar__track[data-count="3"] {
    animation-duration: 30s;
}

.notice-bar__track[data-count="4"] {
    animation-duration: 38s;
}

.notice-bar__track[data-count="5"] {
    animation-duration: 46s;
}

.notice-bar__track[data-count="6"] {
    animation-duration: 54s;
}

/* La marquesina debe recorrer los avisos incluso si el sistema prefiere
   movimiento reducido; se detiene al pasar el mouse. */
@media (prefers-reduced-motion: reduce) {
    .notice-bar__track[data-count="1"] {
        animation-duration: 14s !important;
    }

    .notice-bar__track[data-count="2"] {
        animation-duration: 22s !important;
    }

    .notice-bar__track[data-count="3"] {
        animation-duration: 30s !important;
    }

    .notice-bar__track[data-count="4"] {
        animation-duration: 38s !important;
    }

    .notice-bar__track[data-count="5"] {
        animation-duration: 46s !important;
    }

    .notice-bar__track[data-count="6"] {
        animation-duration: 54s !important;
    }
}

.notice-bar__list {
    display: flex;
    align-items: center;
    flex: none;
    gap: clamp(20px, 3vw, 40px);
    margin: 0;
    padding-right: clamp(28px, 4vw, 56px);
}

.notice-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 1px rgba(63, 38, 12, .2);
}

.notice-bar__dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--durazno);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}

.notice-bar__title {
    flex: none;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: var(--durazno);
    color: #000;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-shadow: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.notice-bar:hover .notice-bar__track,
.notice-bar:focus-within .notice-bar__track {
    animation-play-state: paused;
}

@keyframes notice-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 720px) {
    .notice-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-block: 12px;
    }

    .notice-bar__title {
        align-self: flex-start;
    }

    .notice-bar__item {
        font-size: .76rem;
    }
}

/* ---------- Historia de la parroquia ---------- */

.history-section__head {
    max-width: 600px;
    margin: 0 auto clamp(40px, 6vw, 72px);
    text-align: center;
}

.history-section__head h2 {
    margin: 0;
    color: var(--tinta);
    font-family: var(--fuente);
    font-size: clamp(2.6rem, 4.4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.history-section__rule {
    display: block;
    width: min(540px, 90%);
    height: 5px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: var(--naranja);
}

.history-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 3vw, 40px);
}

.history-section__media {
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--linea);
    border-radius: 2px;
    background: var(--crema-2);
}

.history-section__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Con foto propia: se ve completa, sin recorte ni marco */
figure.history-section__media--photo {
    display: grid;
    place-items: center;
    aspect-ratio: auto;
    border: 0;
    background: none;
    overflow: visible;
}

figure.history-section__media--photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(620px, 72vh);
    object-fit: contain;
    border-radius: 2px;
}

.history-section__placeholder {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(80% 80% at 70% 30%, rgba(247, 201, 143, .35), transparent 70%),
        var(--crema-2);
    color: var(--naranja-oscuro);
    text-align: center;
}

.history-section__placeholder-year {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--naranja);
}

.history-section__placeholder .icon {
    width: 54px;
    height: 54px;
    stroke-width: 1.3;
}

.history-section__placeholder > span:last-child {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.history-section__copy {
    padding-top: 2px;
}

.history-section__copy p {
    margin: 0;
    color: var(--tinta-media);
    font-family: var(--fuente);
    font-size: 1.0625rem;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .history-section__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .history-section__media {
        aspect-ratio: 16 / 9;
    }

    .history-section__copy {
        max-width: 70ch;
    }
}

@media (max-width: 600px) {
    .history-section__head h2 {
        font-size: clamp(2.25rem, 9vw, 3rem);
    }

    .history-section__rule {
        width: 68%;
        height: 4px;
        margin-top: 16px;
    }

    .history-section__media {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .nav-pill {
        padding: 9px 11px;
        font-size: .77rem;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 5.8vw, 4.9rem);
    }

    .home-hero__proof {
        max-width: 480px;
    }
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
    }

    .header-bar {
        min-height: 76px;
    }

    .home-hero__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-hero__content {
        padding-block: 4px 0;
    }

    .home-hero h1 {
        font-size: clamp(3.4rem, 10vw, 4.9rem);
    }

    .home-hero__lead {
        margin-inline: 0;
    }

    .home-hero__actions {
        justify-content: flex-start;
    }

    .home-hero__proof {
        max-width: none;
    }

    .home-hero__visual {
        min-height: 560px;
    }

    .home-hero__visual-heading {
        max-width: 300px;
    }

    .home-hero__church {
        width: min(72%, 420px);
    }

    .home-hero__chip--1 {
        top: 31%;
    }
}

@media (max-width: 600px) {
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .header-bar {
        min-height: 68px;
        gap: 8px;
    }

    .brand img {
        height: 44px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        margin-left: 0;
    }

    .header-tools {
        gap: 6px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .icon-btn--soft {
        display: none;
    }

    .home-hero {
        padding-block: 14px 46px;
    }


    .home-hero__eyebrow {
        padding: 7px 11px;
        font-size: .58rem;
    }

    .home-hero h1 {
        margin: 16px 0 18px;
        font-size: clamp(2.55rem, 13vw, 3.4rem);
    }

    .home-hero__lead {
        font-size: .94rem;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 22px;
    }

    .home-hero__cta {
        width: 100%;
        justify-content: space-between;
    }

    .home-hero__link {
        align-self: flex-start;
    }

    .home-hero__proof {
        gap: 12px;
        margin-top: 26px;
        padding: 12px;
    }

    .home-hero__proof-thumb {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .home-hero__proof-thumb::after {
        inset: 8px;
    }

    .home-hero__proof-thumb .icon {
        width: 26px;
        height: 26px;
    }

    .home-hero__stats {
        width: 100%;
        gap: 8px;
    }

    .home-hero__stats > div {
        min-width: 0;
    }

    .home-hero__stats > div + div {
        padding-left: 8px;
    }

    .home-hero__stats strong {
        font-size: 1.05rem;
    }

    .home-hero__visual {
        min-height: 470px;
        padding: 20px;
        border-radius: 28px;
    }

    .home-hero__visual-heading {
        max-width: 205px;
    }

    .home-hero__visual-heading h2 {
        font-size: 1.35rem;
    }

    .home-hero__visual-heading p {
        font-size: .7rem;
    }

    .home-hero__visual-label {
        max-width: 110px;
        font-size: .52rem;
    }

    .home-hero__chip {
        padding: 8px 12px;
        font-size: .67rem;
    }

    .home-hero__chip--2 {
        display: none;
    }

    .home-hero__chip--1 {
        top: 37%;
        right: 4%;
    }

    .home-hero__chip--3 {
        top: 56%;
        right: 4%;
    }

    .home-hero__church {
        width: 88%;
        bottom: -1%;
    }

    .home-hero__foot {
        font-size: .7rem;
    }

    .menu-panel__sheet {
        width: 100%;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        border-left: 0;
    }

    .menu-panel__brand img {
        height: 38px;
    }
}
