/* Deliberately scoped to the institutional homepage, never the social modules. */
.church-home { --church-accent: #be1e2d; }
.church-home .church-welcome-photo { max-width: 850px; margin: 36px auto 0; border-radius: 28px; }
.church-home .church-welcome-photo img { width: 100%; height: auto; display: block; }
.church-home .church-prayer-photo { max-width: 650px; margin: 0 auto 32px; border-radius: 24px; }
.church-home .church-prayer-photo img { width: 100%; height: auto; display: block; }
.church-home .church-hero > img { object-position: center 55%; }
@media (max-width: 640px) {
 .church-home .church-hero > img { position: relative; width: 100%; height: auto; z-index: 0; animation: none; }
 .church-home .church-hero > div.absolute { display: none; }
 .church-home .church-hero > .container-site { min-height: auto !important; padding-top: 32px !important; }
}
.church-home .church-ministry-slide { min-width: 0; scroll-snap-align: start; }
.church-home .church-ministry-slide > a { height: 100%; border-radius: 24px; border-color: #e8e2df; box-shadow: 0 12px 25px -20px #192b3c77; }
.church-home .church-ministry-slide:focus-within { outline: 2px solid #be1e2d; outline-offset: -2px; border-radius: 24px; }
.church-home .church-hero > .container-site > div > * { animation: church-enter .85s both; }
.church-home .church-hero h1 { animation-delay: .12s !important; }
.church-home .church-hero h1 + p { animation-delay: .24s !important; }
.church-home .church-hero .mt-9 { animation-delay: .36s !important; }
.church-home .church-hero-discover { animation-delay: .48s !important; }
.church-home .church-hero img { animation: church-cinema 4s ease-out both; }
.church-home .church-hero::after { content: ''; position: absolute; bottom: 0; right: 0; width: 35%; height: 5px; background: #be1e2d; }
.church-home section:not(.church-hero) h2::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 20px; border-radius: 3px; background: #be1e2d; }
.church-home .text-center h2::after { margin-inline: auto; }
.church-home a { transition: transform .25s, box-shadow .25s, background-color .25s; }
.church-home a:active { transform: scale(.98); }
.church-home figure { overflow: hidden; }
.church-home figure img { transition: transform .7s ease; }
.church-home .church-carousel-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; padding-top: 20px; }
.church-home .church-carousel-dots[hidden] { display: none; }
.church-home .church-carousel-dots button { cursor: pointer; padding: 10px 4px; }
.church-home .church-carousel-dots button::after { content: ''; display: block; width: 8px; height: 8px; border-radius: 8px; background: #adb5bf; transition: width .3s, background .3s; }
.church-home .church-carousel-dots button[aria-current="true"]::after { width: 32px; background: #be1e2d; }
@keyframes church-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes church-cinema { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (hover: hover) {
 .church-home figure:hover img { transform: scale(1.035); }
 .church-home a.inline-flex:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -12px #101f3077; }
 .church-home [data-service-card]:hover .church-service-art img { transform: scale(1.08); }
}
.church-home .church-hero { min-height: 650px; }
.church-home .church-hero > .container-site { min-height: 650px; padding-top: 88px; padding-bottom: 110px; }
.church-home .church-hero h1 { max-width: 800px; letter-spacing: -.045em; text-wrap: balance; }
.church-home .church-hero > div.absolute { background: linear-gradient(90deg, #101f30f5 0%, #172b3ddb 44%, #172b3d33 100%); }
.church-home .church-hero-discover { display: inline-flex; gap: 24px; align-items: center; margin-top: 38px; font-size: 12px; font-weight: 700; color: #fff; }
.church-home .church-hero-discover span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff66; border-radius: 50%; }
.church-home #servicios { background: radial-gradient(ellipse at top left, #f9e7e9, transparent 48%), #faf8f5; }
.church-home h2 { letter-spacing: -.035em; text-wrap: balance; }
.church-home .church-carousel { margin-top: 40px; }
.church-home .church-carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.church-home .church-carousel-toolbar p { color: #596574; font-size: 14px; max-width: 460px; }
.church-home .church-carousel-controls:not([hidden]) { display: flex; gap: 10px; flex-shrink: 0; }
.church-home .church-carousel-controls button { width: 48px; height: 48px; border-radius: 50%; background: #1c2b39; color: white; font-size: 24px; cursor: pointer; transition: background .2s; }
.church-home .church-carousel-controls button:hover { background: #be1e2d; }
.church-home .church-carousel-controls button:disabled { opacity: .25; cursor: default; }
.church-home .church-services-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 8px 2px 24px; scrollbar-width: thin; scrollbar-color: #be1e2d #e5e7eb; }
.church-home [data-service-card] { scroll-snap-align: start; display: flex; flex-direction: column; background: white; border: 1px solid #e8e2df; box-shadow: 0 12px 25px -20px #192b3c77; padding: 26px; min-width: 0; }
.church-home [data-service-card] > span.absolute { display: none; }
.church-home .church-service-art { position: relative; overflow: hidden; display: flex; align-items: end; justify-content: space-between; height: 200px; margin: -26px -26px 24px; padding: 20px 26px; background: #1c2b39; color: #fff; }
.church-home .church-service-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.church-home .church-service-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #101f30eb, #101f3000 85%); }
.church-home .church-service-art span { position: relative; z-index: 1; font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.church-home .church-service-art small { position: relative; z-index: 1; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; max-width: 115px; text-align: right; }
.church-home [data-service-card]:nth-child(3n + 2) .church-service-art { background: linear-gradient(125deg, #8d1629, #d3454d); }
.church-home [data-service-card]:nth-child(3n + 3) .church-service-art { background: linear-gradient(125deg, #36564f, #65887c); }
.church-home [data-service-card] h3 { min-height: 56px; line-height: 1.4; }
.church-home .church-service-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 28px; font-size: 13px; font-weight: 800; color: #be1e2d; }
.church-home .church-carousel-status { margin-top: 12px; font-size: 12px; font-weight: 600; color: #596574; min-height: 18px; }
.church-home #planifica-tu-visita { background: #fff; }
.church-home #planifica-tu-visita .grid > article, .church-home #planifica-tu-visita .grid > div { border-radius: 20px; border-color: #eee8e2; box-shadow: 0 8px 30px -22px #1c2b3955; }
.church-home #ministerios, .church-home #involucrate, .church-home #blog { background: #f6f3ef; }
.church-home #en-vivo { background: radial-gradient(ellipse at bottom right, #3b5266, transparent 70%), #142230; }
.church-home #sermon-reciente { background: #172635; }
.church-home #oracion > .container-site { border-radius: 32px; padding-top: 55px; padding-bottom: 55px; background: radial-gradient(ellipse at top, #fbe9eb, transparent 75%), #faf8f5; }
.church-home #involucrate figure { transform: rotate(-2deg); border: 8px solid white; }
@media (min-width: 1500px) { .church-home .church-hero > .container-site { min-height: 740px; } }
@media (max-width: 1000px) { .church-home .church-services-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
 .church-home .church-hero, .church-home .church-hero > .container-site { min-height: 610px; }
 .church-home .church-hero > .container-site { padding-top: 62px; padding-bottom: 85px; }
 .church-home .church-hero h1 { font-size: clamp(36px, 10vw, 48px); }
 .church-home .church-services-track { grid-auto-columns: 88%; gap: 16px; }
 .church-home .church-carousel-toolbar p { font-size: 12px; }
 .church-home .church-carousel-controls button { width: 42px; height: 42px; }
 .church-home #involucrate figure { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
 .church-home *, .church-home *::before, .church-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
