/* Portada del Cielo: the approved composition, with its own horizontal identity. */
.site-header .brand{width:265px;height:82px}
.site-header .brand img{width:265px;max-height:82px;height:auto;object-fit:contain}
.welcome-inner{width:min(660px,86vw);margin-top:-64px}
.welcome-inner img{width:100%;height:auto;mix-blend-mode:normal}
.welcome-inner p{margin-top:36px}
.welcome-inner .welcome-motto{margin-top:16px}
.footer-identity .footer-brand,.footer-identity .footer-brand img{width:235px}
.footer-identity p{white-space:normal}
.footer-columns{grid-template-columns:1.15fr 1fr 1.1fr 1.15fr;gap:40px}
.coverage-soat{--coverage-image:url('assets/servicios/arce-21.webp')}
.service-visual>img[src*="portada-"]{object-position:center 32%}

/* The new service photographs keep their proportions, with complete originals
   available from each image. The capillas are montages, not claimed premises. */
.collection-section{background:var(--paper)}
.collection-coffins{background:#eae6dc}
.collection-section .section-heading>p{max-width:400px}
.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,58px)}
.collection-photo{min-width:0;margin:0}
.detail-photo-link{position:relative;display:block;overflow:hidden;background:#282b24;aspect-ratio:4/3}
.detail-photo-link>img{width:100%;height:100%;object-fit:cover;object-position:center 50%;transition:transform .8s var(--ease)}
.collection-photo.portrait-service .detail-photo-link>img{object-position:center 22%}
.collection-expand{position:absolute;bottom:18px;right:18px;display:flex;align-items:center;gap:8px;padding:10px 13px;color:#fffdf4;background:#18271fd9;font-size:11px;line-height:1.4}
.collection-expand svg{width:16px;height:16px}
.collection-photo figcaption{padding-top:23px}
.collection-photo figcaption h3{font-family:var(--serif);font-size:clamp(27px,2.5vw,34px);font-weight:400;line-height:1.2;margin-bottom:12px}
.collection-photo figcaption p{font-size:15px;line-height:1.8;max-width:520px;color:var(--muted)}
.collection-footer{display:flex;justify-content:space-between;align-items:center;gap:40px;margin-top:46px;padding-top:24px;border-top:1px solid var(--line)}
.collection-footer p{font-size:13px;color:var(--muted);max-width:650px}
.collection-footer .text-link{flex-shrink:0;font-size:13px}
.gallery-card.portrait-service .gallery-image{background:#252b23}
.gallery-card.portrait-service .gallery-image>img{object-fit:contain;object-position:center}
.gallery-card:not(.portrait-service) .gallery-image>img[src*="portada-"]{object-position:center 55%}
.photo-dialog .detail-full{object-fit:contain}
.photo-dialog #detail-photo-title{font-family:var(--sans);font-size:15px;line-height:1.4;font-weight:500}
.photo-dialog #detail-photo-counter{display:block;margin-top:6px;font-size:12px;color:#d7ddce}
@media(hover:hover) and (pointer:fine){.detail-photo-link:hover>img{transform:scale(1.035)}.detail-photo-link:hover .collection-expand{background:#18271f}}
@media(max-width:1200px){.site-header .brand,.site-header .brand img{width:240px}.desktop-nav{gap:18px}.footer-identity .footer-brand,.footer-identity .footer-brand img{width:210px}}
@media(max-width:1050px){.site-header .brand,.site-header .brand img{width:270px}.footer-columns{gap:35px}}
@media(max-width:850px){.footer-columns{grid-template-columns:1fr 1fr;gap:40px 50px}.collection-grid{gap:28px}.collection-footer{align-items:flex-start;flex-direction:column;gap:16px}}
@media(max-width:650px){
  .site-header .brand{width:min(220px,65vw);height:70px}
  .site-header .brand img{width:100%;max-height:70px}
  .site-header .nav-cta{display:none}
  .nav-wrap{gap:20px}
  .welcome-inner{width:88vw;margin-top:-80px}
  .welcome-inner p{font-size:9px;letter-spacing:.14em;margin-top:26px}
  .welcome-inner .welcome-motto{font-size:24px;margin-top:14px}
  .collection-grid{grid-template-columns:1fr;gap:38px}
  .collection-section .section-heading{gap:22px}
  .collection-photo figcaption{padding-top:20px}
  .collection-photo figcaption h3{font-size:31px}
  .collection-photo figcaption p{font-size:15px}
  .collection-expand{bottom:12px;right:12px;font-size:10px}
  .collection-footer{margin-top:32px;gap:12px}
  .collection-footer p,.collection-footer .text-link{font-size:13px}
  .footer-columns{gap:35px 25px}
  .footer-identity{display:block}
  .footer-identity .footer-brand,.footer-identity .footer-brand img{width:235px}
  .footer-identity p{margin-top:19px;font-size:22px}
  .footer-identity .social-icons{margin-top:19px}
  .photo-dialog #detail-photo-title{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.detail-photo-link>img{transition:none}.detail-photo-link:hover>img{transform:none}}

/* Portada del Cielo — an open arch, midnight blue and warm daylight.
   This layer is intentionally local to this brand; Arce remains unchanged. */
:root{
  --paper:#f5f1e9;--cream:#fcf9f2;--ink:#1b3045;--muted:#5e6c78;
  --forest:#152d46;--gold:#8b6736;--pale-gold:#d9bd86;--line:#d7d9da;
  --sky:#e7eef2;--navy:#112a43;
}
::selection{background:#dbc397;color:#112a43}
.site-header{background:#112a43f2;border-bottom-color:#d9bd8629}
.site-header.is-scrolled{background:#f5f1e9f7;color:var(--ink);border-bottom-color:#18344c1f}
.header-top{border-color:#d9bd8626}
.site-header:not(.is-scrolled) .nav-cta,.button-cream{background:var(--pale-gold);color:#172c40;border-color:var(--pale-gold)}
.button-dark{background:var(--navy);color:var(--cream)}
.button{transition:background .2s ease,color .2s ease,transform 160ms var(--ease)}
.button:active{transform:scale(.98)}
.mobile-nav{background:var(--paper);color:var(--ink)}
.reading-progress span{background:var(--pale-gold)}

/* Large photographic portal. The wrapper owns the mask; its inner layer keeps
   the existing parallax and the alternating three-second image transitions. */
.hero{background:var(--navy);min-height:max(810px,100svh);isolation:isolate;justify-content:center}
.hero-portal{position:absolute;left:49%;right:3.5%;top:170px;bottom:-38px;overflow:hidden;border-radius:50% 50% 0 0 / 38% 38% 0 0;z-index:1;background:#27435b}
.hero-pan{inset:-3%;transform:scale(1.04)}
.hero-image{object-position:57% center}
.hero-portal:after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(0deg,#112a438c,transparent 36%)}
.portal-outline{position:absolute;left:calc(49% - 18px);right:calc(3.5% - 18px);top:150px;bottom:-55px;border:1px solid #d9bd8680;border-radius:50% 50% 0 0 / 38% 38% 0 0;z-index:2;pointer-events:none}
.hero-shade{background:none}
.hero-content{padding-top:200px;padding-bottom:140px;pointer-events:none}
.hero-content>*{max-width:48%;pointer-events:auto}
.hero-content .eyebrow{font-size:11px;letter-spacing:.23em;margin-bottom:30px}
.hero h1{font-size:clamp(64px,6vw,94px);line-height:.99;letter-spacing:-.035em;max-width:53%}
.hero h1 em{color:var(--pale-gold);white-space:nowrap}
.hero-description{color:#d6e1e9;font-size:15px;line-height:1.85;margin-top:30px}
.hero-actions{align-items:flex-start;gap:24px;flex-direction:column;margin-top:32px}
.hero-actions .text-link{font-size:12px;min-height:36px}
.hero-bottom{bottom:28px}
.hero-scenes button{color:#fff8e8;text-shadow:0 1px 8px #112a43}
.hero-scenes .scene-toggle{background:#112a439c;border-color:#f4e3c385}
.hero-bottom svg{border-color:#d9bd8670}
.hero-bottom>a{color:#e5d3b3}
.care-strip{background:#e7eef2;border-bottom-color:#cbd5dd}
.care-strip .container{padding-block:26px}
.care-strip span{color:#304a60}
.care-strip svg{color:#876435}

/* Editorial rhythm: light blue alternates with ivory and the arch returns
   in the real chapel photographs, which remain expandable at full framing. */
.intro{position:relative;padding-block:clamp(100px,10vw,160px)}
.intro-heading h2 em,.section-heading h2 em{color:#416781}
.intro-copy .lead{font-size:33px;line-height:1.22}
.intro-copy{border-left:1px solid #b79a65;padding-left:38px}
.services{background:var(--sky)}
.service-visual{border-radius:150px 150px 3px 3px;isolation:isolate}
.service-visual figcaption{background:linear-gradient(transparent,#0e243df2)}
.service-item{border-color:#bdcbd5}
.service-item[open] summary{color:#254f70}
.service-detail{color:#506777}
.transport{background:#142d46}
.transport-copy p,.journey-editorial>p:not(.eyebrow),.journey-caption,.transport-bottom p{color:#d0dde6}
.journey-frames,.motion-enabled .journey-frames{background:#10243a}
.collection-section{background:var(--paper)}
.collection-section .collection-grid{gap:clamp(30px,6vw,90px);align-items:start}
.collection-section .portrait-service .detail-photo-link{aspect-ratio:5/4;border-radius:160px 160px 2px 2px}
.collection-section .collection-photo:nth-child(2){padding-top:64px}
.collection-expand{background:#112a43e0;color:var(--cream);border:1px solid #d9bd864a}
.collection-photo figcaption h3{color:var(--navy)}
.collection-photo figcaption{border-bottom:1px solid var(--line);padding-bottom:24px}
.collection-coffins{background:#e7eef2}
.collection-coffins .detail-photo-link{border-radius:3px}
.collection-coffins .collection-photo:nth-child(2){padding-top:42px}
.gallery{background:#f8f5ef;position:relative}
.gallery-heading h2 em{color:#416781}
.gallery-heading .eyebrow{color:#8b6736}
.arc-caption h3{color:var(--navy)}
.gallery-image:after,.arc-enabled .gallery-image:after{background:linear-gradient(transparent 65%,#10243a66)}
.gallery-expand{background:#112a43b8;color:var(--cream)}
.process{background:var(--paper)}
.remembrance{background:#f5f1e9}
.remembrance-copy em{color:#416781}
.coverage{background:#1d3853}
.coverage-card{background:#132d47;border-color:#d4b9823d}
.coverage-card summary{background:linear-gradient(90deg,#102a43ed,#102a4370),var(--coverage-image) center/cover}
.coverage-info{color:#dae5ed}
.coverage-info a{color:#e3c891}
.contact{background:#132d47;position:relative}
.contact-direct{background:#213c57;border-color:#d9bd864d;border-radius:3px}
.contact-direct p,.contact-copy>p,.consultation label,.consultation legend{color:#d5e2ed}
.consultation input[type=text],.consultation input[type=tel],.consultation select,.consultation textarea{background:#0c2238;border-color:#879bae5c;color:#f5f3ee}
.consultation input::placeholder,.consultation textarea::placeholder{color:#a8b8c7}
.consultation .choice-row label>span{border-color:#91a5b65c;color:#dae5ed}
.consultation .choice-row input:checked+span{background:#385675;border-color:#d8bc83;color:#fff7e6}
.consultation-result>p:not(.eyebrow),.consultation-result .copy-status{color:#d5e2ed}
.site-footer{background:#213e58;border-top-color:#b49a69}
.footer-contact{border-color:#d9bd8640}
.footer-column h3{color:#dfc590}
.footer-bottom{background:var(--paper);color:#526779}
.floating-contact{background:#163f59;border-color:#94b0c3;color:#fff7ea}
.floating-contact small{color:#d6e4ec}
.photo-dialog{background:#10273d;border-color:#9aaebb66}
.photo-dialog::backdrop{background:#071729f2}
.photo-prev,.photo-next,.detail-photo-prev,.detail-photo-next{background:#203c55;color:#f5f1e9}
.welcome{background:#f5f1e9}
.welcome-inner p{color:#536c80}
.welcome-inner .welcome-motto{color:#18384f}
.welcome-skip{color:#35546e;border-color:#a68a58}

/* One opening sequence and once-only scroll reveals. Every photograph remains
   accessible without scripts; motion never controls whether content exists. */
.welcome-complete .hero-portal{animation:portal-open 1.2s var(--ease) both}
.welcome-complete .portal-outline{animation:portal-line 1.4s var(--ease) both}
.welcome-complete .hero-content>*{animation:portada-arrive .9s var(--ease) both}
.welcome-complete .hero-content h1{animation-delay:70ms}
.welcome-complete .hero-description{animation-delay:130ms}
.welcome-complete .hero-actions{animation-delay:180ms}
@keyframes portal-open{from{clip-path:inset(14% 0 0 0);opacity:.1;transform:translateY(42px)}to{clip-path:inset(0);opacity:1;transform:translateY(0)}}
@keyframes portal-line{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
@keyframes portada-arrive{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
.section-heading h2,.intro-heading h2{position:relative;padding-bottom:24px}
.section-heading h2:after,.intro-heading h2:after{content:'';display:block;position:absolute;bottom:0;left:0;width:92px;height:1px;background:#ab8b54;transform-origin:left;transition:transform .9s var(--ease)}
.will-reveal h2:after{transform:scaleX(0)}
.collection-photo .detail-photo-link{clip-path:inset(0);transition:clip-path 1.1s var(--ease)}
.js .collection-photo.will-reveal .detail-photo-link{clip-path:inset(18% 0 0 0)}
.js .collection-photo.will-reveal .detail-photo-link>img{transform:scale(1.07)}
.collection-photo .detail-photo-link>img{transition:transform 1.1s var(--ease)}

@media(hover:hover) and (pointer:fine){
  .button-cream:hover,.site-header:not(.is-scrolled) .nav-cta:hover{background:#ead6af;color:#112a43}
  .button-dark:hover{background:#284b66}
  .floating-contact:hover{background:#245571}
  .detail-photo-link:hover .collection-expand{background:#1c405d}
  .hero-scenes .scene-toggle:hover{background:#254762}
  .photo-prev:hover,.photo-next:hover{background:#385773}
}
@media(min-width:1600px){.hero-content{padding-block:230px 160px}.hero-portal{top:185px}.portal-outline{top:165px}}
@media(max-width:1200px){
  .hero h1{font-size:clamp(60px,6.5vw,78px)}
  .hero-portal{left:50%;right:3%;top:175px}.portal-outline{left:calc(50% - 14px);right:calc(3% - 14px);top:159px}
  .hero-content{padding-top:190px}.hero-content>*{max-width:48%}
  .hero-description{font-size:14px}.hero-actions{gap:16px}
}
@media(max-width:850px){
  .hero{min-height:810px}
  .hero h1{font-size:64px;max-width:59%}
  .hero-portal{left:51%;right:2%;top:190px}.portal-outline{left:calc(51% - 12px);right:calc(2% - 12px);top:176px}
  .hero-description{max-width:46%;font-size:14px}
  .hero-description br{display:none}
  .hero-content{padding-top:180px;padding-bottom:160px}
  .hero-scenes{gap:16px}.hero-scenes button{min-width:68px;font-size:10px}
  .intro-copy{padding-left:25px}.intro-copy .lead{font-size:29px}
  .collection-section .portrait-service .detail-photo-link{border-radius:100px 100px 2px 2px}
  .collection-section .collection-photo:nth-child(2){padding-top:44px}
}
@media(max-width:650px){
  .hero{min-height:1040px;justify-content:flex-start}
  .hero-content{padding-top:155px;padding-bottom:0}
  .hero-content>*{max-width:100%}
  .hero-content .eyebrow{font-size:9px;margin-bottom:23px;letter-spacing:.21em}
  .hero h1{font-size:clamp(48px,12.2vw,72px);max-width:100%;line-height:1.01}
  .hero-description{font-size:14px;max-width:360px;margin-top:24px;line-height:1.75}
  .hero-description br{display:none}
  .hero-actions{flex-direction:row;align-items:center;gap:18px;margin-top:25px}
  .hero-actions .button{font-size:12px;padding:14px 17px;min-height:50px}
  .hero-actions .text-link{font-size:10px;max-width:110px;line-height:1.5}
  .hero-portal{left:var(--gutter);right:var(--gutter);top:570px;bottom:82px;border-radius:50% 50% 0 0 / 43% 43% 0 0}
  .portal-outline{left:calc(var(--gutter) - 10px);right:calc(var(--gutter) - 10px);top:558px;bottom:71px;border-radius:50% 50% 0 0 / 43% 43% 0 0}
  .hero-image{object-position:56% center}
  .hero-bottom{bottom:16px;align-items:center;gap:14px}
  .hero-bottom>a{font-size:10px;gap:9px}.hero-bottom>a svg{width:27px;height:27px;padding:6px}
  .hero-scenes{gap:12px}.hero-scenes button{min-width:50px;font-size:9px}
  .hero-scenes .scene-toggle{bottom:73px;right:2px;background:#112a43a8}
  .care-strip .container{padding-block:22px}
  .intro{padding-block:84px;gap:40px}
  .intro-copy{padding-left:22px}.intro-copy .lead{font-size:30px}
  .service-visual{border-radius:100px 100px 2px 2px;height:420px}
  .section-heading h2,.intro-heading h2{padding-bottom:22px}
  .collection-section .collection-grid{gap:38px}
  .collection-section .collection-photo:nth-child(2){padding-top:0}
  .collection-section .portrait-service .detail-photo-link{border-radius:120px 120px 2px 2px;aspect-ratio:5/4}
  .collection-photo figcaption{padding-bottom:20px}
}
@media(max-width:370px){
  .hero{min-height:1010px}.hero h1{font-size:46px}
  .hero-actions{gap:12px}.hero-actions .button{padding-inline:12px;font-size:11px}
  .hero-actions .text-link{max-width:90px}
  .hero-portal{top:565px}.portal-outline{top:553px}
  .hero-bottom>a span{display:none}.hero-scenes{gap:14px}
}
@media(prefers-reduced-motion:reduce){
  .welcome-complete .hero-portal,.welcome-complete .portal-outline,.welcome-complete .hero-content>*{animation:none}
  .section-heading h2:after,.intro-heading h2:after,.collection-photo .detail-photo-link,.collection-photo .detail-photo-link>img{transition:none}
  .will-reveal h2:after{transform:none}
  .js .collection-photo.will-reveal .detail-photo-link{clip-path:none}
  .js .collection-photo.will-reveal .detail-photo-link>img{transform:none}
  .button:active{transform:none}
}
