:root {
  --purple-950: #1d1025;
  --purple-900: #291333;
  --purple-800: #3b1b49;
  --purple-700: #50245f;
  --purple-600: #69337a;
  --purple-500: #824996;
  --purple-400: #9e69ae;
  --purple-300: #bd91c8;
  --purple-200: #d7bbde;
  --purple-100: #ede1f0;
  --purple-50: #f8f3f9;
  --warm-white: #fdfbfc;
  --text: #2e2632;
  --muted: #746b78;
  --gold: #d7b56d;
  --gradient: linear-gradient(135deg, #3b1b49 0%, #69337a 52%, #9e69ae 100%);
  --gradient-bright: linear-gradient(90deg, #47045f 0%, #cb6ce6 100%);
  --shadow-sm: 0 10px 30px rgba(45, 20, 55, .1);
  --shadow-lg: 0 28px 70px rgba(37, 15, 47, .2);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 94px;
  --benefits-card-height: 98px;
  --benefits-card-half: 49px;
  --benefits-content-gap: clamp(42px, 4vw, 66px);
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; min-width: 320px; overflow-x: clip; color: var(--text); background: var(--warm-white); font-family: "Montserrat", sans-serif; font-size: 16px; line-height: 1.65; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; line-height: .98; letter-spacing: -.025em; }
h2 { margin-bottom: 20px; font-size: clamp(2.65rem, 5.4vw, 5rem); color: var(--purple-800); }
h3 { margin-bottom: 12px; font-size: 1.25rem; line-height: 1.25; color: var(--purple-800); }
p { margin-bottom: 20px; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20000; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--purple-800); font-weight: 700; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.glass-panel { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.76); box-shadow: var(--shadow-sm); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
.eyebrow { margin-bottom: 12px; color: var(--purple-600); font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow--light { color: var(--purple-100); }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.02rem; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); align-items: end; gap: 55px; max-width: none; }
.section-heading--split > p { margin-bottom: 10px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 23px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; text-align: center; font-size: .88rem; font-weight: 700; line-height: 1.2; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button--primary { color: #fff; background: var(--gradient); box-shadow: 0 14px 28px rgba(80,36,95,.22); }
.button--primary:hover { box-shadow: 0 18px 34px rgba(80,36,95,.3); }
.button--outline { color: var(--purple-700); border-color: var(--purple-300); background: rgba(255,255,255,.7); }
.button--outline:hover { background: var(--purple-50); }
.button--light { color: var(--purple-800); background: #fff; box-shadow: 0 14px 30px rgba(20,7,25,.18); }
.button--glass { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.13); backdrop-filter: blur(12px); }
.button--full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--purple-700); font-size: .88rem; font-weight: 700; text-underline-offset: 4px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link--light { color: #fff; }

/* Opening shimmer */
.opening-sparkles { position: fixed; inset: 0; z-index: 30000; pointer-events: none; animation: sparkles-exit 2.3s ease forwards; }
.opening-sparkles i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #f5df9b; box-shadow: 0 0 8px #e7bd5d, 0 0 18px rgba(245,223,155,.8); animation: sparkle-fall 1.8s ease-out both; }
.opening-sparkles i:nth-child(1){left:10%;animation-delay:.1s}.opening-sparkles i:nth-child(2){left:29%;animation-delay:.3s}.opening-sparkles i:nth-child(3){left:52%;animation-delay:.05s}.opening-sparkles i:nth-child(4){left:74%;animation-delay:.5s}.opening-sparkles i:nth-child(5){left:91%;animation-delay:.2s}
@keyframes sparkle-fall { from { top: -5%; opacity: 0; transform: scale(.5) rotate(0); } 30% { opacity: .85; } to { top: 72%; opacity: 0; transform: scale(1.6) rotate(120deg); } }
@keyframes sparkles-exit { 80% { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* Header and folder navigation */
.site-header { position: fixed; top: 0; left: 0; z-index: 5000; width: 100%; padding: 12px 16px 0; pointer-events: none; }
.header-shell { width: min(1540px, 100%); min-height: 72px; margin-inline: auto; padding: 9px 11px 9px 20px; border-radius: 22px; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 14px; pointer-events: auto; }
.brand { display: block; width: 190px; }
.brand img { width: 100%; height: auto; transform: translateY(-2px); }
.folder-nav { min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 7px 5px 1px; isolation: isolate; }
.folder-tab { position: relative; z-index: 1; min-width: max-content; height: 43px; margin-left: -6px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid rgba(255,255,255,.46); border-radius: 18px 18px 12px 12px; color: #fff; background: linear-gradient(135deg, rgba(59,27,73,.92), rgba(130,73,150,.88)); box-shadow: 0 7px 18px rgba(45,19,55,.17), inset 0 1px rgba(255,255,255,.25); text-decoration: none; white-space: nowrap; font-size: .71rem; font-weight: 600; transition: padding .36s cubic-bezier(.2,.75,.2,1), transform .36s ease, margin .36s ease, box-shadow .36s ease, background .36s ease; }
.folder-tab:first-child { margin-left: 0; }
.folder-tab--open, .folder-tab.is-active { z-index: 3; padding-inline: 19px; margin-left: -3px; }
.folder-tab:first-child.folder-tab--open { margin-left: 0; }
.folder-tab:nth-child(even) { background: linear-gradient(135deg, rgba(92,36,108,.94), rgba(180,83,205,.84)); }
.folder-tab:hover { z-index: 20; margin-inline: 3px 7px; padding-inline: 23px; transform: translateY(-5px); box-shadow: 0 14px 26px rgba(55,21,68,.26), inset 0 1px rgba(255,255,255,.35); }
.folder-tab:focus-visible { z-index: 21; margin-inline: 3px 7px; padding-inline: 23px; transform: translateY(-5px); box-shadow: 0 0 0 3px rgba(215,181,109,.6), 0 14px 28px rgba(55,21,68,.3); }
.folder-tab:active { transform: translateY(-1px); box-shadow: 0 7px 15px rgba(55,21,68,.23); }
.folder-tab.is-active { background: linear-gradient(135deg, #351440, #652878); box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), inset 0 0 18px rgba(203,108,230,.19), 0 12px 27px rgba(48,16,60,.38); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-emergency { min-height: 43px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--purple-800); background: rgba(255,255,255,.68); cursor: pointer; font-size: .72rem; font-weight: 700; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #5e2170; box-shadow: 0 0 0 5px rgba(94,33,112,.12); }
.client-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; border-radius: 999px; color: #fff; background: var(--purple-800); text-decoration: none; font-size: .75rem; font-weight: 700; }
.client-button img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.mobile-menu-button, .mobile-navigation { display: none; }

/* Hero */
.hero { position: relative; z-index: 1; isolation: isolate; height: clamp(740px, 90vh, 900px); min-height: 740px; overflow: visible; color: #fff; background: var(--purple-900); }
.hero-media, .hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: 0; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; height: clamp(88px, 11vw, 150px); pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(80,36,95,.12) 45%, rgba(41,19,51,.42) 100%); }
.hero-image { opacity: 0; object-fit: cover; object-position: center 20%; transform: scale(1); transition: opacity .75s ease, transform 2.25s cubic-bezier(.2,.72,.2,1); }
.hero-image--1 { object-position: center 24%; }
.hero-image--2 { object-position: center 22%; }
.hero-image--3 { object-position: center 20%; }
.hero-image--4 { object-position: center 18%; }
.hero-image.is-active { opacity: 1; transform: scale(1.045); }
.hero-shade { z-index: 1; background: linear-gradient(90deg, rgba(23,10,29,.88) 0%, rgba(35,14,43,.68) 35%, rgba(30,10,37,.15) 58%, transparent 76%); }
.hero-content { position: relative; z-index: 2; height: 100%; padding-top: calc(var(--header-height) + 90px); padding-bottom: calc(var(--benefits-card-half) + 86px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero h1 { max-width: 620px; margin-bottom: 23px; font-size: clamp(4.5rem, 4.8vw, 5.7rem); color: #fff; line-height: .92; text-shadow: 0 3px 28px rgba(23,10,29,.25); }
.hero-copy { position: relative; width: min(560px, 46vw); min-height: 64px; margin-bottom: 27px; }
.hero-copy p { position: absolute; inset: 0; opacity: 0; margin: 0; font-size: clamp(1rem, 1.35vw, 1.17rem); line-height: 1.55; transition: opacity .75s ease; }
.hero-copy p.is-active { opacity: 1; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero .carousel-dots { margin-top: 38px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: transparent; cursor: pointer; transition: width .25s ease, background .25s ease, border-radius .25s ease; }
.carousel-dots button.is-active { width: 28px; border-radius: 99px; background: #fff; }

/* Trust: única tarjeta flotante entre el hero y la sección siguiente */
.trust-strip { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; margin: 0; padding: 0; transform: translateY(50%); background: none; }
.trust-strip::before { content: none; }
.trust-grid { width: min(1280px, calc(100% - 160px)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.78); border-radius: 24px; overflow: hidden; background: rgba(253,251,252,.96); box-shadow: 0 22px 50px rgba(58,24,70,.18), 0 4px 12px rgba(58,24,70,.08); backdrop-filter: blur(18px); }
.trust-grid article { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 19px 17px; border-right: 1px solid var(--purple-100); }
.trust-grid article:last-child { border-right: 0; }
.trust-grid img { width: 38px; height: 38px; object-fit: contain; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: var(--purple-800); font-size: .78rem; line-height: 1.25; }
.trust-grid span { margin-top: 3px; color: var(--muted); font-size: .64rem; line-height: 1.3; }

/* Needs */
.needs-section { z-index: 0; isolation: isolate; overflow: hidden; padding-top: calc(var(--benefits-card-half) + var(--benefits-content-gap)); background: linear-gradient(145deg, #fdfbfc 0%, #f4ebf6 52%, #eadbec 100%); }
.needs-section::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .27; background: url('../imgs/fondo-lavanda.webp') center / cover no-repeat; }
.needs-section::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(244,235,246,.58) 52%, rgba(225,207,230,.52)); }
.needs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.need-card { position: relative; min-height: 490px; padding: clamp(32px, 4vw, 54px); border: 1px solid var(--purple-100); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.need-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(189,145,200,.3), transparent 68%); }
.need-card > img { width: 84px; height: 84px; margin-bottom: 22px; object-fit: contain; }
.need-card h3 { max-width: 430px; font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 3.2vw, 3.25rem); }
.need-card > p:not(.card-kicker) { max-width: 540px; color: var(--muted); }
.need-card .button-row { position: relative; z-index: 1; margin-top: 30px; }
.card-kicker { margin-bottom: 5px; color: var(--purple-500); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.need-card--immediate { background: linear-gradient(140deg, #fff 30%, #f2e7f4 100%); }
.need-card--planning { color: #fff; border-color: transparent; background: var(--gradient); }
.need-card--planning h3, .need-card--planning .card-kicker, .need-card--planning .text-link { color: #fff; }
.need-card--planning > p:not(.card-kicker) { color: rgba(255,255,255,.82); }
.need-card--planning .button--primary { color: var(--purple-800); background: #fff; }
.need-card--planning .button--outline { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.need-card--planning > img { filter: brightness(0) invert(1); opacity: .92; }

/* Services */
.services-section { background: var(--warm-white) url('../imgs/fondo-pagina.webp') center / cover fixed; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { min-height: 350px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid rgba(215,187,222,.72); border-radius: 26px; color: var(--text); background: rgba(255,255,255,.86); box-shadow: 0 12px 32px rgba(59,27,73,.08); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover, .service-card:focus-visible { transform: translateY(-7px); border-color: var(--purple-300); box-shadow: 0 22px 45px rgba(59,27,73,.16); }
.service-card img { width: 92px; height: 92px; margin-bottom: 25px; object-fit: contain; }
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--muted); font-size: .9rem; }
.service-card span { margin-top: auto; color: var(--purple-700); font-size: .78rem; font-weight: 700; }
.service-card b { display: inline-block; transition: transform .2s ease; }
.service-card:hover b { transform: translateX(5px); }
.regional-note { width: fit-content; margin: 32px auto 0; padding: 10px 22px; border-radius: 999px; color: #fff; background: var(--gradient-bright); font-family: "Cormorant Garamond", serif; font-size: 1.1rem; }

/* Process */
.process-section { color: #fff; background: var(--purple-900); overflow: hidden; }
.process-section::before { content: ""; position: absolute; inset: 0; opacity: .1; background: url('../imgs/fondo-pagina.webp') center / cover; }
.process-layout { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.process-section h2 { color: #fff; }
.process-section .section-heading > p:last-child { color: var(--purple-200); }
.process-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.process-list li { display: flex; gap: 18px; padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.07); }
.process-list img { flex: 0 0 52px; width: 52px; height: 52px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.process-list span { color: var(--purple-300); font-size: .68rem; font-weight: 700; }
.process-list h3 { margin: 4px 0 7px; color: #fff; font-size: 1rem; }
.process-list p { margin: 0; color: var(--purple-200); font-size: .78rem; line-height: 1.5; }

/* Emotional stories */
.story-carousel { position: relative; min-height: 760px; overflow: hidden; color: #fff; background: var(--gradient-bright); }
.story-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; background: linear-gradient(90deg, rgba(71,4,95,.86), rgba(203,108,230,.76)), var(--story-background) center / cover; transition: opacity .85s ease, visibility .85s ease; }
.story-slide.is-active { opacity: 1; visibility: visible; }
.story-layout { height: 760px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(500px, .95fr); align-items: end; gap: 36px; }
.story-layout > img { align-self: end; justify-self: center; width: min(676px, 50vw); height: auto; max-height: 735px; opacity: .82; object-fit: contain; object-position: center top; transform: translateY(8px) scale(.975); transform-origin: center bottom; filter: drop-shadow(0 28px 30px rgba(28,8,35,.28)); transition: opacity .85s ease, transform 1.15s cubic-bezier(.2,.72,.2,1); }
.story-slide.is-active .story-layout > img { opacity: 1; transform: translateY(0) scale(1.035); }
.story-copy { align-self: center; max-width: 650px; padding: clamp(32px, 5vw, 58px); border-radius: var(--radius-lg); color: #fff; background: rgba(55,23,69,.43); }
.story-copy h3 { margin-bottom: 20px; color: #fff; font-family: "Cormorant Garamond", serif; font-size: clamp(2.6rem, 5vw, 4.7rem); font-weight: 600; line-height: .98; }
.story-copy p:not(.story-kicker) { color: rgba(255,255,255,.9); font-size: .92rem; }
.story-kicker { margin-bottom: 14px; font-family: "Cormorant Garamond", serif; font-size: 1.2rem; }
.story-controls { position: absolute; z-index: 5; right: 0; bottom: 27px; left: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.round-button { width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; }

/* History */
.history-section { padding-bottom: 0; background: #ead8ed; }
.history-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(48px, 8vw, 100px); align-items: stretch; }
.history-image { min-height: 660px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.history-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.history-copy { align-self: center; max-width: 580px; padding: 60px 0 110px; }
.history-copy p:not(.eyebrow) { color: #514758; font-size: 1rem; }

/* Branches */
.branches-section { background: var(--warm-white); }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-button { min-height: 42px; padding: 8px 18px; border: 1px solid var(--purple-200); border-radius: 999px; color: var(--purple-700); background: #fff; cursor: pointer; font-size: .78rem; font-weight: 600; }
.filter-button.is-active { color: #fff; border-color: var(--purple-700); background: var(--purple-700); }
.branch-scroller { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.branch-card { overflow: hidden; border: 1px solid var(--purple-100); border-radius: 26px; background: linear-gradient(140deg, #fff 30%, #f2e7f4 100%); box-shadow: var(--shadow-sm); transition: opacity .25s ease, transform .25s ease; }
.branch-card[hidden] { display: none; }
.branch-card > img { width: 100%; height: 225px; object-fit: cover; }
.branch-card > div { padding: 24px; }
.branch-card p { margin: 0 0 3px; color: var(--purple-500); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.branch-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.branch-card span { display: block; margin-bottom: 15px; color: var(--muted); font-size: .76rem; }
.branch-card > div > a { color: var(--purple-700); font-weight: 700; font-size: .84rem; }
.branch-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--purple-100); }
.branch-links a, .branch-links button { padding: 0; border: 0; color: var(--purple-700); background: none; cursor: pointer; font-size: .7rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.section-action { margin-top: 36px; }

/* Tours */
.tours-section { color: #fff; background: var(--purple-900); }
.tours-section h2 { color: #fff; }
.tours-section .section-heading > p:last-child { color: var(--purple-200); }
.tour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.tour-grid button { position: relative; min-height: 310px; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; color: #fff; background: var(--purple-800); text-align: left; }
.tour-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .5s ease; }
.tour-grid button:hover img { transform: scale(1.05); opacity: .76; }
.tour-grid span { position: absolute; right: 0; bottom: 0; left: 0; padding: 45px 20px 18px; background: linear-gradient(transparent, rgba(29,16,37,.92)); font-weight: 700; }
.tour-grid b { display: block; margin-top: 4px; color: var(--purple-200); font-size: .65rem; }
.tour-grid button:first-child { grid-column: span 2; }

/* Obituaries */
.obituaries-section { background: url('../imgs/fondo-pagina.webp') center / cover; }
.obituaries-layout { display: grid; grid-template-columns: 196px 1fr; align-items: center; gap: 52px; max-width: 1000px; }
.obituaries-icon { width: 196px; height: 196px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); box-shadow: var(--shadow-lg); }
.obituaries-icon img { width: 133px; height: 133px; object-fit: contain; }
.obituaries-layout > div:last-child > p:not(.eyebrow) { max-width: 700px; color: var(--muted); }

/* Resources */
.resources-section { background: var(--purple-50); }
.resource-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.resource-card { min-height: 270px; position: relative; overflow: hidden; border-radius: 26px; color: #fff; background: var(--purple-800); text-decoration: none; }
.resource-card--featured { grid-row: 1 / 3; min-height: 558px; }
.resource-card img { width: 100%; height: 100%; object-fit: cover; opacity: .69; transition: transform .5s ease, opacity .5s ease; }
.resource-card:hover img { transform: scale(1.04); opacity: .55; }
.resource-card > div { position: absolute; inset: auto 0 0; padding: 55px 25px 24px; background: linear-gradient(transparent, rgba(29,16,37,.96)); }
.resource-card span, .resource-card b { color: var(--purple-200); font-size: .67rem; }
.resource-card h3 { margin: 7px 0; color: #fff; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; }
.resource-card--featured h3 { font-size: clamp(2.3rem, 4vw, 3.7rem); }
.resource-card p { font-size: .78rem; }
.podcast-card { grid-column: 2 / 4; display: grid; grid-template-columns: 86px 1fr; align-content: center; gap: 0 25px; padding: 30px; border-radius: 26px; color: #fff; background: var(--gradient); }
.podcast-card img { grid-row: 1 / 5; align-self: center; width: 86px; height: 86px; filter: brightness(0) invert(1); }
.podcast-card p { margin: 0; font-size: .75rem; }
.podcast-card h3 { margin: 3px 0 7px; color: #fff; font-family: "Cormorant Garamond", serif; font-size: 2rem; }
.podcast-card span { width: fit-content; margin-top: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: .66rem; }

/* Payments */
.payments-section { background: var(--purple-50); }
.payment-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.payment-grid a, .payment-grid article { min-height: 175px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; border: 1px solid var(--purple-100); border-radius: 22px; color: var(--purple-800); background: #fff; text-align: center; text-decoration: none; font-size: .78rem; font-weight: 700; }
.payment-grid img { width: 76px; height: 76px; object-fit: contain; }
.payment-accordion { margin-top: 25px; border: 1px solid var(--purple-200); border-radius: 20px; overflow: hidden; background: #fff; }
.payment-accordion > button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border: 0; color: var(--purple-800); background: transparent; cursor: pointer; text-align: left; font-weight: 700; }
.payment-accordion > button span { font-size: 1.5rem; transition: transform .25s ease; }
.payment-accordion > button[aria-expanded="true"] span { transform: rotate(45deg); }
#payment-brands { padding: 10px 24px 26px; border-top: 1px solid var(--purple-100); }
#payment-brands > p { color: var(--muted); font-size: .78rem; }
.brand-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; align-items: center; }
.brand-grid img { width: 100%; height: 55px; object-fit: contain; }

/* Portal and final */
.portal-section { color: #fff; background: var(--gradient); }
.portal-layout { display: grid; grid-template-columns: 1fr 210px; gap: 55px; align-items: center; }
.portal-layout h2 { color: #fff; }
.portal-layout p:not(.eyebrow) { max-width: 680px; color: var(--purple-100); }
.portal-layout > img { width: 196px; height: 196px; filter: brightness(0) invert(1); opacity: .92; }
.community-section { isolation: isolate; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(237,225,240,.9)); }
.community-section::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .12; background: url('../imgs/fondo-lavanda.webp') center / cover no-repeat; }
.community-section::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.66), rgba(237,225,240,.55)); }
.community-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.community-video-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 28px; color: #fff; background: rgba(255,255,255,.62); box-shadow: 0 18px 42px rgba(59,27,73,.14); text-decoration: none; backdrop-filter: blur(14px); transition: transform .3s ease, box-shadow .3s ease; }
.community-video-card:hover, .community-video-card:focus-visible { transform: translateY(-6px) scale(1.015); box-shadow: 0 26px 54px rgba(59,27,73,.22); }
.community-video-media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--gradient); }
.community-video-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community-video-fallback { position: absolute; inset: 0; display: grid; place-items: center; background-image: linear-gradient(180deg, rgba(71,4,95,.04), rgba(41,19,51,.58)), var(--community-poster, url('../imgs/fondo-lavanda.webp')); background-position: center; background-size: cover; transition: opacity .35s ease; }
.community-video-media.has-preview .community-video-fallback { opacity: 0; pointer-events: none; }
.community-play { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,255,255,.2); box-shadow: 0 10px 30px rgba(29,16,37,.2); backdrop-filter: blur(12px); }
.community-play::before { content: ""; margin-left: 5px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; }
.community-video-copy { min-height: 116px; padding: 18px 18px 20px; color: var(--purple-800); }
.community-video-copy h3 { margin-bottom: 10px; font-family: "Cormorant Garamond", serif; font-size: 1.45rem; }
.community-video-copy span { color: var(--purple-600); font-size: .72rem; font-weight: 700; }
.community-note { max-width: 760px; margin: 30px auto 0; color: var(--muted); text-align: center; font-size: .86rem; }
.final-cta { isolation: isolate; overflow: hidden; background: linear-gradient(145deg, #fdfbfc, #f0e4f2); text-align: center; }
.final-cta::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .21; background: url('../imgs/fondo-lavanda.webp') center / cover no-repeat; }
.final-cta::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(237,225,240,.62)); }
.final-cta-inner { position: relative; z-index: 1; max-width: 850px; }
.final-cta-inner > p:not(.eyebrow) { color: var(--muted); }
.final-cta .button-row { justify-content: center; }

/* Footer */
.site-footer { padding: 75px 0 0; color: var(--purple-100); background: var(--purple-950); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr .8fr .55fr; gap: 60px; padding-bottom: 55px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--purple-200); font-family: "Cormorant Garamond", serif; font-size: 1.35rem; }
.site-footer h2 { margin-bottom: 17px; color: #fff; font-family: "Montserrat", sans-serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer address { margin-bottom: 15px; color: var(--purple-200); font-style: normal; font-size: .76rem; line-height: 1.7; }
.site-footer div > a { display: block; width: fit-content; margin-bottom: 8px; color: var(--purple-200); font-size: .75rem; text-underline-offset: 3px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 34px !important; height: 34px; display: grid !important; place-items: center; margin: 0 !important; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.social-links img { width: 18px; height: 18px; object-fit: contain; }
.footer-bottom { padding: 18px 0 90px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; color: var(--purple-300); font-size: .7rem; }

/* Floating actions */
.floating-actions { position: fixed; z-index: 4500; right: 18px; bottom: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 6px; border-radius: 20px; }
.floating-actions a, .floating-actions button { width: 48px; height: 48px; display: flex; align-items: center; gap: 9px; padding: 7px; border: 0; border-radius: 15px; overflow: hidden; color: var(--purple-800); background: transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: width .3s ease, background .3s ease; }
.floating-actions img { flex: 0 0 34px; width: 34px; height: 34px; object-fit: contain; }
.floating-actions span { opacity: 0; font-size: .7rem; font-weight: 700; transition: opacity .2s ease .08s; }
.floating-actions a:hover, .floating-actions a:focus-visible, .floating-actions button:hover, .floating-actions button:focus-visible { z-index: 2; width: 220px; min-width: 220px; background: #fff; }
.floating-actions a:hover span, .floating-actions a:focus-visible span, .floating-actions button:hover span, .floating-actions button:focus-visible span { opacity: 1; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18,7,23,.68); backdrop-filter: blur(8px); }
.modal-panel { position: relative; z-index: 1; width: min(620px, 100%); max-height: min(88vh, 850px); overflow-y: auto; padding: clamp(28px, 5vw, 46px); border: 1px solid rgba(255,255,255,.65); border-radius: 30px; background: rgba(253,251,252,.96); box-shadow: 0 35px 100px rgba(16,5,20,.38); }
.modal-close { position: absolute; z-index: 3; top: 14px; right: 16px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--purple-800); background: var(--purple-100); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.modal-heading { display: flex; align-items: center; gap: 18px; padding-right: 35px; }
.modal-heading > img { width: 72px; height: 72px; object-fit: contain; }
.modal-heading h2, .modal-panel--emergency h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.modal-panel > p:not(.eyebrow):not(.privacy-note) { color: var(--muted); font-size: .88rem; }
.whatsapp-inline { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px 0; padding: 10px 17px; border: 1px solid #b9e5c5; border-radius: 14px; color: #245e35; background: #f0fff3; text-decoration: none; font-size: .78rem; font-weight: 700; }
.whatsapp-inline img { width: 27px; height: 27px; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 5px; color: var(--purple-800); font-size: .73rem; font-weight: 700; }
.field input { width: 100%; min-height: 49px; padding: 10px 14px; border: 1px solid var(--purple-200); border-radius: 13px; color: var(--text); background: #fff; }
.field input:focus { border-color: var(--purple-500); outline: 3px solid rgba(130,73,150,.13); }
.form-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-submitting .form-spinner { display: block; }
.is-submitting.button { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--purple-700); font-size: .76rem; font-weight: 600; }
.form-status.is-error { color: #8e333b; }
.form-status.is-success { color: #28663a; }
.privacy-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: .66rem; }
.privacy-note img { width: 25px; height: 25px; }
.modal-panel--emergency { color: #fff; background: linear-gradient(145deg, rgba(41,19,51,.98), rgba(105,51,122,.97)); }
.modal-panel--emergency h2, .modal-panel--emergency .eyebrow { color: #fff; }
.modal-panel--emergency > p:not(.eyebrow) { color: var(--purple-100); }
.modal-panel--emergency .modal-close { color: #fff; background: rgba(255,255,255,.12); }
.emergency-number { display: flex; flex-direction: column; align-items: center; margin: 24px 0 16px; padding: 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.emergency-number small { color: var(--purple-200); }
.emergency-number strong { font-family: "Cormorant Garamond", serif; font-size: 2.8rem; line-height: 1.2; }
.emergency-number span { margin-top: 6px; font-size: .72rem; font-weight: 700; text-decoration: underline; }
.phone-list-toggle { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border: 0; border-radius: 14px; color: var(--purple-800); background: #fff; cursor: pointer; text-align: left; font-size: .76rem; font-weight: 700; }
.phone-list-toggle span { font-size: 1.4rem; transition: transform .25s ease; }
.phone-list-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.phone-list { margin: 12px 0 0; padding: 8px 16px; border-radius: 15px; color: var(--text); background: #fff; list-style: none; }
.phone-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--purple-100); font-size: .7rem; }
.phone-list li:last-child { border-bottom: 0; }
.phone-list a { color: var(--purple-700); font-weight: 700; }
.modal-panel--tour { width: min(1100px, 100%); height: min(82vh, 760px); max-height: 82vh; padding: 0; overflow: hidden; background: #fff; }
.tour-modal-header { height: 60px; display: flex; align-items: center; padding: 0 70px 0 22px; background: var(--purple-800); }
.tour-modal-header h2 { margin: 0; color: #fff; font-family: "Montserrat", sans-serif; font-size: 1rem; }
.modal-panel--tour .modal-close { top: 10px; color: #fff; background: rgba(255,255,255,.13); }
#tour-frame { position: relative; z-index: 1; width: 100%; height: calc(100% - 60px); border: 0; background: var(--purple-50); }
.tour-loader { position: absolute; inset: 60px 0 0; display: grid; place-items: center; color: var(--purple-700); background: var(--purple-50); }

@media (min-width: 1450px) {
  .folder-tab { padding-inline: 20px; font-size: .75rem; }
  .folder-tab--open, .folder-tab.is-active { padding-inline: 23px; }
  .folder-tab:hover, .folder-tab:focus-visible { padding-inline: 28px; }
}

@media (min-width: 1366px) and (max-width: 1599px) {
  .hero h1 { font-size: clamp(4.5rem, 4.7vw, 5rem); }
}

@media (min-width: 1180px) and (max-width: 1449px) {
  .header-shell { grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px; }
  .brand { width: 155px; }
  .folder-tab { margin-left: -4px; padding-inline: 12px; font-size: .66rem; }
  .folder-tab--open, .folder-tab.is-active { padding-inline: 15px; }
  .folder-tab:hover, .folder-tab:focus-visible { padding-inline: 18px; }
  .header-emergency { display: none; }
}

@media (min-width: 1180px) and (max-width: 1365px) {
  .hero h1 { font-size: clamp(4rem, 4.25vw, 4.6rem); }
}

/* Tablet */
@media (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-layout { grid-template-columns: 1fr; gap: 30px; }
  .process-layout .section-heading { max-width: 780px; }
  .branch-scroller { grid-template-columns: repeat(2, 1fr); }
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
  .tour-grid button:first-child { grid-column: auto; }
  .payment-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(5, 1fr); }
  .story-layout { grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); gap: 20px; }
  .story-layout > img { width: min(620px, 48vw); }
  .community-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1179px) {
  :root { --header-height: 82px; }
  .header-shell { min-height: 66px; grid-template-columns: 1fr auto auto; padding: 7px 8px 7px 15px; border-radius: 18px; }
  .brand { width: 170px; }
  .folder-nav { display: none; }
  .mobile-menu-button { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; padding: 0; border: 0; border-radius: 14px; color: var(--purple-800); background: var(--purple-100); cursor: pointer; }
  .mobile-menu-button span:not(.sr-only) { width: 20px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-navigation { position: fixed; top: 84px; right: 10px; width: min(360px, calc(100% - 20px)); max-height: calc(100vh - 100px); overflow-y: auto; padding: 15px; border-radius: 22px; pointer-events: auto; }
  .mobile-navigation:not([hidden]) { display: grid; }
  .mobile-navigation a { padding: 12px 14px; border-bottom: 1px solid var(--purple-100); color: var(--purple-800); text-decoration: none; font-size: .85rem; font-weight: 600; }
  .mobile-navigation a[aria-current="page"] { border-radius: 12px; color: #fff; background: var(--purple-700); }
}

@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .trust-grid article { grid-column: span 2; border-top: 0; border-right: 1px solid var(--purple-100); }
  .trust-grid article:nth-child(3) { border-right: 0; }
  .trust-grid article:nth-child(4),
  .trust-grid article:nth-child(5) { grid-column: span 3; border-top: 1px solid var(--purple-100); }
  .trust-grid article:nth-child(5) { border-right: 0; }
}

@media (min-width: 901px) and (max-width: 1179px) {
  .hero h1 { font-size: clamp(3rem, 4.8vw, 3.6rem); }
  .hero-copy { width: min(510px, 48vw); }
}

@media (max-width: 900px) {
  :root { --container: min(100% - 32px, 760px); }
  .site-header { padding: 9px 10px 0; }
  .hero { height: auto; min-height: clamp(850px, 112vw, 980px); color: #fff; background: var(--purple-900); }
  .hero-media { position: absolute; height: 100%; }
  .hero-image { object-position: center top; }
  .hero-shade { display: block; background: linear-gradient(180deg, rgba(29,16,37,.03) 0%, rgba(29,16,37,.16) 38%, rgba(29,16,37,.82) 63%, rgba(29,16,37,.95) 100%); }
  .hero-content { width: var(--container); height: auto; min-height: inherit; padding: clamp(390px, 52vw, 500px) 0 calc(var(--benefits-card-half) + 76px); justify-content: flex-end; color: #fff; background: none; }
  .hero h1 { max-width: 560px; font-size: clamp(3rem, 7vw, 3.6rem); }
  .hero-copy { width: min(100%, 600px); }
  .trust-grid { box-shadow: 0 16px 34px rgba(58,24,70,.14); }
  .needs-grid { grid-template-columns: 1fr; }
  .section-heading--split { grid-template-columns: 1fr; gap: 10px; }
  .story-carousel, .story-layout { min-height: 760px; height: 760px; }
  .story-layout { grid-template-columns: minmax(0, .8fr) minmax(390px, 1.2fr); gap: 12px; }
  .story-layout > img { width: min(540px, 47vw); }
  .story-copy { padding: 35px; }
  .story-copy h3 { font-size: clamp(2.4rem, 6vw, 4rem); }
  .history-layout { grid-template-columns: .9fr 1.1fr; gap: 45px; }
  .history-image { min-height: 580px; }
  .history-copy { padding-bottom: 80px; }
  .obituaries-layout { grid-template-columns: 150px 1fr; gap: 36px; }
  .obituaries-icon { width: 150px; height: 150px; }
  .obituaries-icon img { width: 102px; height: 102px; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .resource-card--featured { grid-row: auto; grid-column: 1 / 3; min-height: 460px; }
  .podcast-card { grid-column: 1 / 3; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 767px) {
  .trust-grid { width: calc(100% - 160px); grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
  .trust-grid article { grid-column: auto; border-top: 0; border-right: 0; }
  .trust-grid article:nth-child(4) { grid-column: auto; }
  .trust-grid article:nth-child(odd):not(:last-child) { border-right: 1px solid var(--purple-100); }
  .trust-grid article:nth-child(n+3) { border-top: 1px solid var(--purple-100); }
  .trust-grid article:last-child { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --container: calc(100% - 28px); --benefits-content-gap: 64px; }
  body { padding-bottom: 68px; font-size: 15px; }
  .section { padding-block: 74px; }
  h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .header-actions { display: none; }
  .header-shell { grid-template-columns: 1fr auto; }
  .brand { width: 150px; }
  .hero { min-height: clamp(900px, 235vw, 1020px); }
  .hero-media { height: 100%; min-height: 0; max-height: none; }
  .hero-image--1 { object-position: 70% top; }
  .hero-image--2 { object-position: 40% top; }
  .hero-image--3,
  .hero-image--4 { object-position: center top; }
  .hero-content { width: calc(100% - 40px); padding: clamp(340px, 95vw, 430px) 0 calc(var(--benefits-card-half) + 66px); }
  .hero h1 { max-width: 420px; font-size: clamp(2.4rem, 11.5vw, 3rem); line-height: .95; }
  .hero-copy { min-height: 92px; }
  .hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; }
  .trust-grid { width: calc(100% - 32px); border-color: rgba(255,255,255,.72); border-radius: 18px; box-shadow: 0 14px 28px rgba(58,24,70,.14); }
  .trust-grid article { gap: 10px; padding: 15px 13px; }
  .trust-grid img { width: 34px; height: 34px; }
  .needs-section { padding-top: calc(var(--benefits-card-half) + var(--benefits-content-gap)); }
  .need-card { min-height: 0; padding: 30px 24px; border-radius: 28px; }
  .need-card h3 { font-size: 2.45rem; }
  .need-card .button-row { align-items: stretch; flex-direction: column; }
  .need-card .button, .need-card .text-link { width: 100%; justify-content: center; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .regional-note { border-radius: 18px; text-align: center; line-height: 1.25; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { padding: 19px; }
  .story-carousel { height: auto; min-height: 0; }
  .story-slide { position: absolute; overflow: hidden; }
  .story-slide.is-active { position: relative; }
  .story-layout { height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 0; align-items: end; width: 100%; padding: 66px 0 86px; }
  .story-layout > img { width: min(440px, 100vw); max-height: none; margin-inline: auto; object-fit: contain; object-position: center top; }
  .story-copy { align-self: auto; width: calc(100% - 28px); max-width: none; margin: -8px auto 0; padding: 28px 24px; border-radius: 28px; overflow: visible; }
  .story-copy h3 { font-size: clamp(2.35rem, 11vw, 2.8rem); }
  .story-copy p:not(.story-kicker) { font-size: .82rem; }
  .story-copy .button { width: 100%; }
  .story-controls { justify-content: center; bottom: 22px; }
  .history-section { padding-top: 74px; }
  .history-layout { grid-template-columns: 1fr; }
  .history-image { min-height: 470px; border-radius: 28px; }
  .history-copy { padding: 0 0 75px; }
  .filter-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .filter-button { flex: 0 0 auto; }
  .branch-scroller { display: flex; gap: 15px; margin-right: -14px; overflow-x: auto; padding: 0 14px 14px 0; scroll-snap-type: x mandatory; }
  .branch-card { flex: 0 0 86%; scroll-snap-align: start; }
  .branch-card > img { height: 210px; }
  .tour-grid { display: flex; margin-right: -14px; overflow-x: auto; padding-right: 14px; scroll-snap-type: x mandatory; }
  .tour-grid button { flex: 0 0 80%; min-height: 350px; scroll-snap-align: start; }
  .obituaries-layout { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .obituaries-icon { width: 140px; height: 140px; margin-inline: auto; }
  .obituaries-icon img { width: 94px; height: 94px; }
  .obituaries-layout .button-row { justify-content: center; }
  .obituaries-layout .button-row > * { width: 100%; justify-content: center; }
  .resource-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .resource-card--featured, .podcast-card { grid-column: auto; }
  .resource-card--featured { min-height: 430px; }
  .podcast-card { grid-template-columns: 65px 1fr; padding: 25px; }
  .podcast-card img { width: 65px; height: 65px; }
  .payment-grid { grid-template-columns: 1fr 1fr; }
  .payment-grid a, .payment-grid article { min-height: 150px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-layout { grid-template-columns: 1fr; gap: 35px; }
  .portal-layout > img { width: 140px; height: 140px; grid-row: 1; }
  .community-video-grid { display: flex; gap: 16px; margin-right: -14px; overflow-x: auto; padding: 4px 14px 20px 0; scroll-snap-type: x mandatory; }
  .community-video-card { flex: 0 0 78%; scroll-snap-align: start; }
  .community-video-copy { min-height: 108px; }
  .final-cta .button-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { padding-bottom: 20px; }
  .floating-actions { right: 0; bottom: 0; left: 0; height: 68px; flex-direction: row; justify-content: space-around; padding: 5px 8px; border-width: 1px 0 0; border-radius: 0; background: rgba(255,255,255,.94); }
  .floating-actions a, .floating-actions button { width: 31%; height: 58px; flex-direction: column; justify-content: center; gap: 2px; padding: 3px; overflow: visible; }
  .floating-actions img { flex-basis: 30px; width: 30px; height: 30px; }
  .floating-actions span { opacity: 1; font-size: .58rem; }
  .floating-actions a:hover, .floating-actions a:focus-visible, .floating-actions button:hover, .floating-actions button:focus-visible { width: 31%; min-width: 0; }
  .modal { padding: 9px; }
  .modal-panel { max-height: 94vh; border-radius: 24px; }
  .modal-heading { align-items: flex-start; }
  .modal-heading > img { width: 52px; height: 52px; }
  .emergency-number strong { font-size: 2.35rem; }
  .phone-list li { align-items: flex-start; flex-direction: column; gap: 0; }
}

@media (max-width: 420px) {
  :root { --benefits-content-gap: 64px; }
  .hero { min-height: clamp(960px, 268vw, 1080px); }
  .hero-content { padding-top: clamp(330px, 92vw, 390px); padding-bottom: calc(var(--benefits-card-half) + 58px); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article,
  .trust-grid article:nth-child(4),
  .trust-grid article:nth-child(5),
  .trust-grid article:last-child { grid-column: 1; border-right: 0; }
  .trust-grid article:nth-child(n+2) { border-top: 1px solid var(--purple-100); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .opening-sparkles { display: none; }
  .hero-image { transform: none !important; }
  .services-section { background-attachment: scroll; }
}

/* Global data loading overlay */
.global-loading { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(29,16,37,.34); backdrop-filter: blur(9px); }
.global-loading[hidden] { display: none; }
.global-loading__panel { width: min(440px, calc(100vw - 34px)); display: grid; justify-items: center; padding: 28px 32px 32px; border: 1px solid rgba(255,255,255,.78); border-radius: 34px; color: var(--purple-900); background: rgba(255,255,255,.84); box-shadow: 0 30px 90px rgba(29,16,37,.3), inset 0 1px rgba(255,255,255,.9); text-align: center; backdrop-filter: blur(24px); }
.global-loading__panel img { width: clamp(170px, 28vw, 250px); height: clamp(170px, 28vw, 250px); display: block; object-fit: contain; }
.global-loading__panel strong { margin-top: -8px; font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1; }
.global-loading__panel span { max-width: 330px; margin-top: 10px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.is-loading-data { overflow: hidden; }

/* Shared card hover for services, branches and payment methods */
.service-card, .branch-card, .payment-grid > * { position: relative; isolation: isolate; overflow: hidden; transition: transform .34s cubic-bezier(.2,.8,.2,1), box-shadow .34s ease, border-color .34s ease; }
.service-card::before, .branch-card::before, .payment-grid > *::before { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(145deg, rgba(237,225,240,.04), rgba(158,105,174,.32) 58%, rgba(80,36,95,.25)); transform: translateY(102%); transition: transform .42s cubic-bezier(.2,.78,.2,1); }
.service-card::after, .branch-card::after, .payment-grid > *::after { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 16% 19%, #e7bd5d 0 2px, transparent 3px), radial-gradient(circle at 82% 21%, #f5df9b 0 2px, transparent 3px), radial-gradient(circle at 73% 82%, rgba(215,181,109,.78) 0 1.5px, transparent 2.5px); transform: scale(.84); transition: opacity .28s ease, transform .45s ease; }
.service-card > *, .branch-card > *, .payment-grid > * > * { position: relative; z-index: 1; }
.service-card:hover, .service-card:focus-visible, .service-card.is-tapped, .branch-card:hover, .branch-card:focus-within, .branch-card.is-tapped, .payment-grid > *:hover, .payment-grid > *:focus-visible, .payment-grid > *.is-tapped { transform: translateY(-8px) scale(1.012); border-color: var(--purple-300); box-shadow: 0 26px 58px rgba(59,27,73,.22); }
.service-card:hover::before, .service-card:focus-visible::before, .service-card.is-tapped::before, .branch-card:hover::before, .branch-card:focus-within::before, .branch-card.is-tapped::before, .payment-grid > *:hover::before, .payment-grid > *:focus-visible::before, .payment-grid > *.is-tapped::before { transform: translateY(0); }
.service-card:hover::after, .service-card:focus-visible::after, .service-card.is-tapped::after, .branch-card:hover::after, .branch-card:focus-within::after, .branch-card.is-tapped::after, .payment-grid > *:hover::after, .payment-grid > *:focus-visible::after, .payment-grid > *.is-tapped::after { opacity: 1; transform: scale(1); }

@media (prefers-contrast: more) {
  .glass-panel { background: #fff; backdrop-filter: none; }
  .folder-tab { border-color: #fff; background: var(--purple-800); }
}
