/* Funerales de la Fuente — diseño estático para Cloudflare Pages */
:root {
  color-scheme: light;
  --forest: #142b22;
  --forest-deep: #0f241c;
  --forest-mid: #234536;
  --olive: #657765;
  --gold: #cbb48a;
  --gold-light: #e0d0af;
  --ivory: #f7f5ef;
  --paper: #fffefa;
  --sand: #eeece3;
  --ink: #26372e;
  --muted: #697469;
  --hairline: rgba(30, 57, 42, .13);
  --serif: 'Palatino Linotype', 'Book Antiqua', 'Iowan Old Style', Georgia, serif;
  --sans: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 22px 60px rgba(22, 43, 32, .085);
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open, body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { width: 0; height: 0; position: absolute; overflow: hidden; }
.container { width: min(100% - 80px, 1220px); margin-inline: auto; }
::selection { background: #d5c09b; color: var(--forest); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 1000; left: 20px; top: -60px; padding: 12px 16px; background: var(--gold); color: var(--forest); border-radius: 6px; }
.skip-link:focus { top: 15px; }

/* Franja de contacto y navegación */
.topbar { height: 39px; background: var(--forest-deep); color: #ede9df; font-size: 12px; letter-spacing: .02em; }
.topbar-inner, .topbar-message, .topbar-phone { display: flex; align-items: center; }
.topbar-inner { justify-content: space-between; height: 100%; gap: 18px; }
.topbar-message, .topbar-phone { gap: 9px; }
.topbar .icon { width: 14px; height: 14px; stroke: var(--gold); }
.topbar-phone:hover { color: var(--gold-light); }
.site-header { background: rgba(250, 249, 244, .97); border-bottom: 1px solid rgba(39, 59, 42, .07); position: sticky; top: 0; z-index: 80; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 25px rgba(14, 33, 24, .1); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { min-width: max-content; display: inline-flex; align-items: center; gap: 11px; color: var(--forest); }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(126, 127, 98, .38); border-radius: 50%; }
.brand-mark .icon { width: 24px; height: 24px; color: var(--olive); stroke-width: 1.2; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text > span { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .095em; }
.brand-text strong { margin-top: 2px; font-family: var(--serif); font-size: 21px; font-style: italic; font-weight: 400; letter-spacing: .015em; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 29px); }
.main-nav a { position: relative; color: #4d5c50; padding: 35px 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 27px; height: 1px; background: #a7926c; transition: right .25s ease; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--forest); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { right: 0; }
.header-action { flex-shrink: 0; display: flex; align-items: center; gap: 10px; background: var(--forest); color: white; padding: 12px 18px; border: 1px solid var(--forest); border-radius: 3px; font-size: 12px; font-weight: 600; transition: background .25s ease, transform .25s ease; }
.header-action .icon { width: 17px; height: 17px; }
.header-action:hover { background: #305640; transform: translateY(-1px); }
.menu-toggle { display: none; border: 1px solid var(--hairline); background: transparent; color: var(--forest); border-radius: 4px; padding: 10px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon { display: none; }
.menu-toggle[aria-expanded="true"] .close-icon { display: block; }

/* Botones y tipografía */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; min-height: 54px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 650; line-height: 1.35; transition: transform .25s ease, background .25s ease, border .25s ease, box-shadow .25s ease; }
.btn .icon { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(4px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 8px 28px rgba(20, 30, 20, .15); }
.btn-outline-light { border-color: rgba(255, 255, 255, .43); color: white; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .8); }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 20px; color: #687d67; font-size: 11px; font-weight: 750; letter-spacing: .20em; text-transform: uppercase; }
.eyebrow-light { color: #d3c39f; }
.eyebrow-line { display: inline-block; width: 30px; height: 1px; flex-shrink: 0; background: currentColor; opacity: .76; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 em, h2 em, h3 em { font-weight: 400; }

/* Presentación principal */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 72% 20%, #325241 0%, #1f3a2d 27%, #142a21 62%, #10241b 100%); color: white; }
.hero::before { content: ''; position: absolute; left: -190px; bottom: -280px; width: 660px; height: 660px; border: 1px solid rgba(231, 226, 207, .09); border-radius: 50%; box-shadow: 0 0 0 95px rgba(255, 255, 255, .012), 0 0 0 190px rgba(255, 255, 255, .01); pointer-events: none; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 22, 13, .15), transparent 78%); }
.hero-grid { min-height: 642px; display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(45px, 5.5vw, 98px); align-items: center; padding-block: 70px 82px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 5px; }
.hero-copy h1 { max-width: 660px; margin: 0; font-size: clamp(45px, 4.7vw, 69px); line-height: 1.10; letter-spacing: -.035em; text-wrap: balance; }
.hero-copy h1 em { display: block; color: #e4d0a9; font-style: italic; }
.hero-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 27px 0 29px; color: #cdd8cc; font-size: 13px; letter-spacing: .02em; }
.dot-separator { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.hero-availability { display: flex; align-items: center; gap: 15px; margin-top: 42px; }
.availability-icon { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid rgba(225, 203, 157, .38); border-radius: 50%; color: var(--gold); }
.availability-icon .icon { width: 24px; height: 24px; }
.hero-availability div { display: flex; flex-direction: column; gap: 5px; }
.hero-availability strong { font-weight: 600; font-size: 13px; }
.hero-availability div span { color: #c4cec2; font-size: 12px; }
.hero-visual { width: 100%; justify-self: end; max-width: 555px; position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: 18px -16px -18px 16px; border: 1px solid rgba(220, 195, 145, .45); border-radius: 8px; z-index: -1; }
.hero-image-frame { position: relative; overflow: hidden; aspect-ratio: 777 / 643; border-radius: 8px; border: 1px solid rgba(231, 215, 182, .38); background: #1d3626; box-shadow: 0 22px 54px rgba(3, 15, 8, .31); }
.hero-image-frame img { height: 100%; width: 100%; object-fit: cover; }
.image-soft-edge::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 40px 10px rgba(18, 37, 28, .30); border: 1px solid rgba(218, 194, 150, .42); border-radius: inherit; }
.hero-caption { display: flex; align-items: center; gap: 12px; margin-top: 31px; color: #e1d3b1; font-size: 10px; letter-spacing: .18em; }
.caption-rule { width: 38px; height: 1px; background: var(--gold); }
.hero-bottom-line { height: 4px; background: linear-gradient(90deg, var(--forest), var(--gold), var(--forest)); }

/* Franja descriptiva */
.service-intro { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.intro-cell { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 119px; padding: 23px 20px; }
.intro-cell + .intro-cell { border-left: 1px solid var(--hairline); }
.intro-cell > .icon { width: 31px; height: 31px; color: #71816d; stroke-width: 1.2; }
.intro-cell div { display: flex; flex-direction: column; gap: 6px; }
.intro-cell strong { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.15; }
.intro-cell span { font-size: 12px; color: var(--muted); }

/* Secciones generales */
.section { padding-block: 114px 122px; }
.section-heading { margin-bottom: 51px; }
.heading-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.heading-center .eyebrow { justify-content: center; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 4vw, 59px); letter-spacing: -.035em; line-height: 1.13; }
.section-heading h2 em { color: #68816a; }
.heading-decoration { display: flex; align-items: center; gap: 14px; margin-top: 21px; color: #8f9e8b; }
.heading-decoration span { height: 1px; width: 58px; background: #c7c8b6; }
.heading-decoration .icon { width: 16px; height: 16px; stroke-width: 1.25; }

/* Servicios */
.services { background: var(--ivory); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.service-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 242px; overflow: hidden; padding: 27px 24px 22px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px; box-shadow: 0 6px 16px rgba(30, 47, 35, .025); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card::before { content: ''; position: absolute; right: -63px; top: -65px; width: 163px; height: 163px; border-radius: 50%; border: 1px solid rgba(143, 153, 124, .10); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(181, 157, 111, .55); }
.service-count { font-size: 11px; color: #9ba396; letter-spacing: .1em; }
.service-symbol { display: grid; place-items: center; margin-top: 22px; width: 56px; height: 56px; border: 1px solid rgba(128, 146, 113, .24); border-radius: 50%; background: #f6f7f1; color: #647966; }
.service-symbol .icon { width: 27px; height: 27px; stroke-width: 1.35; }
.service-card h3 { margin: 19px 0 22px; font-size: clamp(20px, 2vw, 25px); line-height: 1.2; }
.service-rule { display: block; margin-top: auto; width: 32px; height: 1px; background: #b3a077; }
.coffin-tiers { margin-top: -5px; margin-bottom: 18px; display: flex; gap: 5px; flex-wrap: wrap; }
.coffin-tiers span { border: 1px solid #dde0d4; border-radius: 2px; color: #57665a; font-size: 10px; padding: 5px 7px; white-space: nowrap; }
.service-card-coffins h3 { margin-bottom: 15px; }

/* Cobertura */
.coverage { background: #1d3a2c; color: #fff; position: relative; overflow: hidden; }
.coverage::after { content: ''; position: absolute; right: -110px; top: -180px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(228, 208, 169, .12); box-shadow: 0 0 0 72px rgba(228, 208, 169, .023), 0 0 0 144px rgba(228, 208, 169, .019); pointer-events: none; }
.coverage-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: 65px; padding-block: 99px; }
.coverage-left h2 { max-width: 680px; margin: 0 0 20px; font-size: clamp(41px, 4.2vw, 59px); letter-spacing: -.035em; line-height: 1.16; }
.coverage-left h2 em { color: #e2cb9f; }
.coverage-left > p:last-child { margin: 0; color: #d9e1d7; font-size: 14px; }
.coverage-right { display: flex; align-items: stretch; justify-content: space-around; gap: 14px; padding: 29px 15px; border: 1px solid rgba(218, 203, 170, .4); background: rgba(255, 255, 255, .045); backdrop-filter: blur(7px); border-radius: 4px; }
.coverage-item { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px 5px; text-align: center; }
.coverage-item .icon { height: 43px; width: 43px; color: #e2ceac; stroke-width: 1.1; }
.coverage-item span { font-family: var(--serif); font-size: 23px; }
.coverage-divider { width: 1px; background: rgba(219, 204, 172, .28); }

/* Fotografía original */
.identity { background: #ebeee7; overflow: hidden; }
.identity-layout { display: grid; grid-template-columns: .67fr 1.33fr; align-items: center; gap: clamp(40px, 6vw, 115px); }
.identity-copy { padding: 30px 0; }
.identity-copy h2 { font-size: clamp(49px, 5.3vw, 78px); letter-spacing: -.045em; line-height: 1.12; margin: 0; }
.identity-copy h2 em { color: #647e65; }
.identity-accent { display: block; margin-top: 29px; width: 62px; height: 2px; background: #bfa779; }
.identity-caption { margin-top: 22px; font-family: var(--serif); color: #647362; font-size: 19px; }
.identity-photo-wrap { width: 100%; position: relative; }
.identity-photo-wrap::before { content: ''; position: absolute; inset: 17px -16px -17px 17px; border: 1px solid rgba(123, 140, 111, .54); border-radius: 7px; pointer-events: none; }
.photo-expand { cursor: zoom-in; position: relative; overflow: hidden; width: 100%; display: block; padding: 0; text-align: left; background: #25432f; border: 1px solid #bdc9b9; border-radius: 8px; box-shadow: 0 25px 70px rgba(22, 49, 31, .16); }
.photo-expand img { width: 100%; height: auto; aspect-ratio: 777 / 643; object-fit: contain; transition: transform .5s ease; }
.photo-expand:hover img { transform: scale(1.016); }
.photo-zoom { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; bottom: 16px; right: 16px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(16, 34, 26, .86); color: white; border-radius: 3px; font-size: 12px; }
.photo-zoom .icon { width: 17px; height: 17px; }

/* Sucursales */
.locations { background: var(--paper); }
.locations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.location-card { min-width: 0; padding: 36px 38px 0; background: #f6f7f1; border: 1px solid #dfe2d8; border-radius: 5px; overflow: hidden; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.location-card:hover { border-color: #b5ab8f; transform: translateY(-3px); box-shadow: var(--shadow); }
.location-card-top { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.location-number { font-family: var(--serif); font-size: 54px; line-height: 1; color: #c9d0c3; }
.location-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: #596d5b; font-size: 11px; font-weight: 650; letter-spacing: .03em; border: 1px solid #d7ddcf; border-radius: 3px; }
.location-badge .icon { width: 15px; height: 15px; }
.location-content { padding: 34px 0 38px; }
.location-content h3 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 40px); line-height: 1.17; }
.location-content h3 em { color: #69816a; }
.location-content address { max-width: 390px; font-style: normal; font-size: 15px; line-height: 1.8; color: #606e60; }
.location-bottom { display: block; height: 3px; margin-inline: -38px; background: linear-gradient(90deg, #5b775e 0%, #cebb90 50%, #5b775e 100%); }

/* Horario */
.hours { background: var(--forest); color: white; overflow: hidden; }
.hours-inner { display: flex; align-items: center; gap: 29px; position: relative; min-height: 250px; padding-block: 52px; }
.hours-mark { display: grid; place-items: center; flex-shrink: 0; width: 85px; height: 85px; border-radius: 50%; border: 1px solid rgba(222, 199, 153, .6); color: #dfcaa1; }
.hours-mark .icon { width: 39px; height: 39px; stroke-width: 1.1; }
.hours-copy { position: relative; z-index: 1; }
.hours-copy .eyebrow { margin-bottom: 10px; }
.hours-copy h2 { margin: 0 0 3px; font-size: clamp(37px, 4vw, 55px); }
.hours-copy h2 em { color: #e0cba5; }
.hours-copy > p:last-child { margin: 0; color: #e0e7de; font-size: 14px; }
.hours-figure { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: clamp(110px, 14vw, 215px); letter-spacing: -.06em; line-height: 1; white-space: nowrap; color: rgba(238, 235, 218, .065); pointer-events: none; }
.hours-figure span { font-size: .43em; }

/* Contacto */
.contact { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.contact-card { display: flex; flex-direction: column; min-width: 0; min-height: 212px; padding: 27px 22px 22px; border: 1px solid #dae0d6; border-radius: 5px; background: white; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b7a37c; }
.contact-type { display: inline-flex; align-items: center; gap: 9px; color: #6a7e6c; font-size: 12px; font-weight: 700; }
.contact-type .icon { width: 18px; height: 18px; }
.contact-card strong { display: block; margin-top: 27px; font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 20px; color: #677c69; font-size: 12px; font-weight: 650; }
.contact-link .icon { width: 17px; height: 17px; }
.contact-card-featured { background: #274b38; color: white; border-color: #274b38; }
.contact-card-featured:hover { background: #315b44; border-color: #315b44; }
.contact-card-featured .contact-type, .contact-card-featured .contact-link { color: #e5d6b6; }

/* Cierre y pie */
.closing { color: white; background: radial-gradient(ellipse at 100% 0%, #365b43 0%, #1b3729 58%, #142b22 100%); border-top: 3px solid #c0aa7c; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-block: 75px; }
.closing h2 { margin: 0 0 14px; font-size: clamp(35px, 3.8vw, 53px); letter-spacing: -.025em; line-height: 1.17; }
.closing h2 em { color: #e4cfaa; }
.closing p:last-child { color: #d3dfd2; font-size: 13px; margin: 0; }
.closing .btn { flex-shrink: 0; }
.closing-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: max-content; max-width: 100%; }
.closing-actions .btn { width: 100%; min-width: 280px; }
.footer { background: #10221a; color: #e9e8de; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1.1fr .9fr 1fr; gap: 45px; padding-block: 62px 55px; }
.brand-footer { color: #f4eee1; }
.brand-footer .brand-mark { border-color: rgba(218, 196, 147, .45); }
.brand-footer .brand-mark .icon { color: var(--gold); }
.footer-about > p { margin: 25px 0 0; font-size: 12px; line-height: 1.75; color: #afc1b1; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; }
.footer-column h3 { margin: 3px 0 22px; color: #e3ceaa; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-column p, .footer-column a { margin: 0 0 11px; color: #afc1b1; font-size: 12px; line-height: 1.85; }
.footer-column a:hover { color: #f6e4bc; }
.footer-column p strong { color: #e8dec9; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 73px; font-size: 11px; color: #a5b6a7; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom a:hover { color: white; }
.footer-bottom .icon { width: 14px; height: 14px; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.20); border-radius: 40px; background: #2d5b3f; color: #fff; box-shadow: 0 9px 30px rgba(0,0,0,.22); font-size: 12px; font-weight: 700; transition: transform .25s ease, background .25s ease; }
.floating-whatsapp:hover { transform: translateY(-3px); background: #326e49; }
.floating-whatsapp .icon { width: 23px; height: 23px; }

/* Ampliación accesible de imagen */
.image-dialog[hidden] { display: none !important; }
.image-dialog { position: fixed; z-index: 250; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 24px 30px; background: rgba(8, 18, 12, .94); backdrop-filter: blur(12px); }
.image-dialog img { display: block; max-width: min(100%, 1100px); max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; border: 1px solid rgba(225, 203, 157, .5); border-radius: 5px; box-shadow: 0 18px 90px rgba(0,0,0,.35); }
.dialog-close { position: absolute; top: 20px; right: 24px; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: white; cursor: pointer; }
.dialog-close .icon { width: 24px; height: 24px; }
.dialog-close:hover { background: rgba(255,255,255,.18); }

/* Movimientos muy discretos; el contenido siempre es visible incluso sin JS */
@keyframes rise-in { from { opacity: .75; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { .reveal.is-visible { animation: rise-in .65s ease both; } }

@media (max-width: 1150px) {
  .container { width: min(100% - 56px, 1220px); }
  .header-inner { gap: 18px; }
  .brand-text > span { font-size: 16px; }
  .brand-text strong { font-size: 19px; }
  .brand-mark { width: 39px; height: 39px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 12px; }
  .header-action { padding: 11px 12px; }
  .hero-grid { gap: 40px; }
  .service-card { padding-inline: 19px; }
  .contact-card { padding-inline: 17px; }
  .contact-card strong { font-size: 23px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 920px) {
  html { scroll-padding-top: 78px; }
  .site-header .header-inner { min-height: 76px; }
  .main-nav { position: absolute; z-index: 85; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(28px, calc((100% - 1220px) / 2)) 21px; background: #fbfaf5; box-shadow: 0 16px 27px rgba(17,35,24,.15); border-top: 1px solid var(--hairline); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 15px 0; font-size: 14px; border-bottom: 1px solid rgba(30, 57, 42, .10); }
  .main-nav a::after { bottom: 0; }
  .header-action { margin-left: auto; }
  .menu-toggle { display: flex; }
  .hero-grid { min-height: 0; grid-template-columns: .96fr 1fr; gap: 24px; padding-block: 65px 75px; }
  .hero-copy h1 { font-size: clamp(37px, 5.8vw, 55px); }
  .hero-cta { gap: 9px; }
  .hero-cta .btn { width: 100%; max-width: 290px; }
  .hero-availability { margin-top: 31px; }
  .section { padding-block: 88px 92px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-card { min-height: 218px; }
  .coverage-layout { gap: 28px; padding-block: 76px; }
  .coverage-right { padding-inline: 7px; }
  .coverage-item span { font-size: 19px; }
  .identity-layout { grid-template-columns: .77fr 1.23fr; gap: 33px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card strong { font-size: 29px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 38px 50px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 36px, 1220px); }
  .topbar { height: auto; }
  .topbar-inner { justify-content: center; min-height: 35px; padding-block: 6px; }
  .topbar-message { font-size: 10px; text-align: center; }
  .topbar-phone { display: none; }
  .site-header .header-inner { min-height: 71px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-mark .icon { width: 20px; height: 20px; }
  .brand-text > span { font-size: 14px; }
  .brand-text strong { font-size: 17px; }
  .header-action { padding: 11px; border-radius: 3px; }
  .header-action span { display: none; }
  .header-action .icon { width: 20px; height: 20px; }
  .menu-toggle { padding: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; padding-block: 63px 65px; }
  .hero-copy h1 { max-width: 575px; font-size: clamp(43px, 8.3vw, 61px); }
  .hero-sub { margin-block: 22px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-cta .btn { width: 100%; max-width: none; min-height: 55px; padding: 13px; gap: 8px; font-size: 12px; }
  .hero-availability { margin-top: 30px; }
  .hero-visual { max-width: 610px; width: calc(100% - 15px); justify-self: start; }
  .hero-visual::before { inset: 13px -14px -13px 14px; }
  .hero-caption { margin-top: 23px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-cell { min-height: 87px; justify-content: flex-start; padding-inline: 8px; }
  .intro-cell + .intro-cell { border-left: 0; border-top: 1px solid var(--hairline); }
  .intro-cell > .icon { width: 27px; height: 27px; }
  .intro-cell strong { font-size: 18px; }
  .section { padding-block: 77px 80px; }
  .section-heading { margin-bottom: 37px; }
  .section-heading h2 { font-size: clamp(39px, 7.8vw, 53px); }
  .services-grid { gap: 11px; }
  .service-card { padding: 20px 17px 18px; min-height: 224px; }
  .service-symbol { width: 49px; height: 49px; margin-top: 18px; }
  .service-symbol .icon { width: 24px; height: 24px; }
  .service-card h3 { font-size: clamp(18px, 4.1vw, 23px); }
  .coffin-tiers span { font-size: 9px; }
  .coverage-layout { grid-template-columns: 1fr; gap: 36px; padding-block: 70px; }
  .coverage-left h2 { font-size: clamp(39px, 8vw, 55px); }
  .coverage-right { min-height: 180px; }
  .identity-layout { grid-template-columns: 1fr; gap: 22px; }
  .identity-copy { padding: 0; }
  .identity-copy h2 { font-size: clamp(47px, 9vw, 66px); }
  .identity-accent { margin-top: 20px; }
  .identity-caption { margin-top: 12px; }
  .identity-photo-wrap { width: calc(100% - 13px); }
  .identity-photo-wrap::before { inset: 12px -12px -12px 12px; }
  .locations-grid { grid-template-columns: 1fr; gap: 16px; }
  .location-card { padding-inline: 25px; }
  .location-content { padding-block: 25px 32px; }
  .location-content h3 { font-size: 35px; }
  .location-bottom { margin-inline: -25px; }
  .hours-inner { min-height: 216px; gap: 19px; padding-block: 40px; }
  .hours-mark { width: 62px; height: 62px; }
  .hours-mark .icon { width: 29px; height: 29px; }
  .hours-copy h2 { font-size: 40px; }
  .hours-figure { font-size: 127px; right: -27px; }
  .closing-inner { align-items: stretch; flex-direction: column; gap: 24px; padding-block: 58px; }
  .closing-inner .btn { align-self: flex-start; }
  .closing-actions { width: 100%; max-width: 340px; }
  .closing-actions .btn { min-width: 0; }
  .floating-whatsapp { padding: 13px; right: 15px; bottom: 15px; }
  .floating-whatsapp span { display: none; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 32px, 1220px); }
  .topbar-message { font-size: 9.5px; }
  .hero-grid { padding-top: 55px; }
  .hero-copy h1 { font-size: clamp(40px, 10.6vw, 51px); }
  .hero-cta { grid-template-columns: 1fr; }
  .hero-cta .btn { padding: 13px 16px; }
  .hero-sub { font-size: 12px; gap: 8px; }
  .hero-availability strong { font-size: 12px; }
  .hero-availability div span { font-size: 11px; }
  .service-card { min-height: 208px; padding: 19px 12px 16px; }
  .service-card h3 { font-size: clamp(17px, 4.45vw, 21px); }
  .service-symbol { width: 45px; height: 45px; margin-top: 14px; }
  .service-card h3 { margin-top: 17px; }
  .coffin-tiers { gap: 4px; }
  .coffin-tiers span { padding: 4px 5px; }
  .section-heading .eyebrow { font-size: 9.5px; }
  .section-heading .eyebrow-line { width: 20px; }
  .location-card-top { flex-wrap: wrap; }
  .location-content h3 { font-size: 31px; }
  .location-content address { font-size: 14px; }
  .hours-inner { gap: 12px; }
  .hours-mark { width: 54px; height: 54px; }
  .hours-mark .icon { width: 25px; height: 25px; }
  .hours-copy h2 { font-size: 34px; }
  .hours-copy .eyebrow { font-size: 9px; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { min-height: 171px; padding: 24px; }
  .contact-card strong { margin-top: 16px; font-size: 28px; }
  .contact-link { padding-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 47px; }
  .footer-column h3 { margin-bottom: 13px; }
  .footer-bottom { min-height: 65px; }
  .photo-zoom { font-size: 10px; padding: 8px; right: 8px; bottom: 8px; }
  .photo-zoom .icon { width: 15px; height: 15px; }
}
@media (max-width: 350px) {
  .brand-text > span { font-size: 12px; }
  .brand-text strong { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-header .header-inner { gap: 8px; }
  .hero-copy h1 { font-size: 39px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 177px; }
  .contact-card strong { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Ajustes de marca y galería */
.brand-logo-wrap { width: 88px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, rgba(10,16,13,.98), rgba(17,30,23,.92)); border: 1px solid rgba(194, 164, 94, .30); box-shadow: 0 10px 22px rgba(6, 14, 10, .12); }
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-logo-wrap { background: rgba(0,0,0,.18); border-color: rgba(225, 203, 157, .35); }
.hero-image-frame { aspect-ratio: 1284 / 727; }
.logo-layout { grid-template-columns: .7fr 1.3fr; }
.logo-showcase { background: radial-gradient(circle at top, rgba(32, 46, 38, .92), rgba(10, 13, 11, .98)); }
.logo-showcase img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; padding: clamp(20px, 4vw, 36px); background: transparent; }

.gallery-section { background: linear-gradient(180deg, #f9f7f1 0%, #f1ede1 100%); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-card { position: relative; }
.gallery-card-wide { grid-column: span 2; }
.gallery-card-tall { grid-row: span 2; }
.gallery-button { width: 100%; position: relative; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 44px rgba(17, 35, 24, .12); }
.gallery-button img { width: 100%; height: 100%; min-height: 280px; display: block; object-fit: cover; background: #203126; transition: transform .5s ease; }
.gallery-button:hover img { transform: scale(1.018); }
.gallery-card-wide .gallery-button img { min-height: 360px; }
.gallery-card-tall .gallery-button img { min-height: 582px; }
.gallery-overlay { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 20px 22px; background: linear-gradient(180deg, rgba(7, 13, 10, 0) 0%, rgba(7, 13, 10, .92) 100%); color: #f6f2e7; }
.gallery-title { display: block; font-size: 18px; font-family: var(--serif); letter-spacing: .01em; }
.gallery-action { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #e4cca1; white-space: nowrap; }
.gallery-action .icon { width: 16px; height: 16px; }

@media (max-width: 1150px) {
  .brand-logo-wrap { width: 79px; height: 54px; }
}
@media (max-width: 920px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card-wide, .gallery-card-tall { grid-column: auto; grid-row: auto; }
  .gallery-card-tall .gallery-button img, .gallery-card-wide .gallery-button img { min-height: 340px; }
  .logo-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .brand-logo-wrap { width: 68px; height: 48px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery-button img, .gallery-card-wide .gallery-button img, .gallery-card-tall .gallery-button img { min-height: 245px; }
  .gallery-overlay { padding: 16px 16px 17px; gap: 12px; }
  .gallery-title { font-size: 17px; }
}
@media (max-width: 480px) {
  .brand-logo-wrap { width: 62px; height: 44px; }
  .brand-text > span { font-size: 12px; }
  .brand-text strong { font-size: 15px; }
}


/* Revisión de identidad y fotografías: proporciones originales y presentación coherente. */
.brand-logo-wrap {
  width: 118px;
  height: 68px;
  background: #0a0f0d;
  border: 1px solid rgba(179,149,85,.55);
  border-radius: 5px;
  padding: 3px;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo-img { object-fit: contain; object-position: center; width: 100%; height: 100%; }
.brand { gap: 10px; }
.footer-logo-wrap { width: 124px; height: 72px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.gallery-card, .gallery-card-wide, .gallery-card-tall {
  min-width: 0;
  grid-column: auto;
  grid-row: auto;
}
.gallery-button {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(185, 153, 91, .65);
  border-radius: 11px;
  background: radial-gradient(circle at center, #25372b, #101a15);
  box-shadow: 0 12px 35px rgba(18,32,24,.16);
  position: relative;
}
.gallery-card:nth-child(n + 4) .gallery-button { aspect-ratio: 3 / 4; }
.gallery-button img,
.gallery-card-wide .gallery-button img,
.gallery-card-tall .gallery-button img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: transform .3s ease;
}
.gallery-button.image-soft-edge::after {
  border: 1px solid rgba(229, 202, 148, .35);
  box-shadow: inset 0 0 24px 7px rgba(17,30,21,.32);
}
.gallery-overlay { z-index: 1; padding: 21px 17px 16px; }
.gallery-title { font-size: 17px; }
.gallery-action { font-size: 10px; }
.logo-showcase img { object-fit: contain; }
@media (max-width: 1150px) {
  .brand-logo-wrap { width: 97px; height: 59px; }
  .header-inner { gap: 12px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 11.5px; }
}
@media (max-width: 920px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .gallery-card, .gallery-card-wide, .gallery-card-tall { grid-column: auto; grid-row: auto; }
}
@media (max-width: 700px) {
  .brand-logo-wrap { width: 88px; height: 54px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-card, .gallery-card-wide, .gallery-card-tall { grid-column: auto; grid-row: auto; }
  .gallery-card:nth-child(2) .gallery-button { aspect-ratio: 16 / 9; }
  .gallery-button img,
  .gallery-card-wide .gallery-button img,
  .gallery-card-tall .gallery-button img { min-height: 0; }
}
@media (max-width: 380px) {
  .header-inner .brand-text { display: none; }
  .brand-logo-wrap { width: 116px; height: 58px; }
}
/* Mantiene la retícula regular sin recortar fotografías. */
.gallery-button img,
.gallery-card-wide .gallery-button img,
.gallery-card-tall .gallery-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
