/* Notaría Pública No. 17 — Ciudad Juárez, Chihuahua
   Paleta tomada del logo real: café profundo + crema + latón. Tipografía: Playfair Display + Source Sans 3. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/playfair.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/sourcesans3.woff2") format("woff2"); }

:root {
  --paper: #f4eddc;
  --paper-2: #fbf7ee;
  --ink: #261c18;
  --brown: #402820;
  --brown-d: #2b1a14;
  --brass: #b38d4c;
  --brass-text: #7d5f27;
  --muted: #554a43;
  --line: rgba(38, 28, 24, .14);
  --line-light: rgba(255, 255, 255, .22);
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.forms :focus-visible, .site-footer :focus-visible { outline-color: #e6c993; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--brown); color: #fff; padding: 12px 20px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: top .2s ease; }
.skip:focus { top: 16px; }

/* ------------------------------------------------ Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 245, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(38, 28, 24, .08); }
.site-header::before { content: ""; display: block; height: 4px; background: var(--brown); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 54px; height: 54px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink); padding: 6px 0; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brown); transition: right .3s ease; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { right: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: transform .25s ease, background .25s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------ Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 15px 30px; border: 1px solid var(--brown); border-radius: 2px; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.btn-solid { background: var(--brown); color: #fff; }
.btn-solid:hover { background: var(--brown-d); border-color: var(--brown-d); }
.btn-line { background: transparent; color: var(--brown); }
.btn-line:hover { background: var(--brown); color: #fff; }
.btn-light { background: var(--paper-2); color: var(--brown); border-color: var(--paper-2); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: .8rem; }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------ Portada (clara, centrada, con sello) */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(100px, 9vw, 124px) 0 clamp(112px, 11vw, 136px);
  background:
    linear-gradient(180deg, rgba(246,241,231,0) 60%, var(--paper) 100%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(64, 40, 32, .045) 39px 40px),
    var(--paper); }
/* Emblema: el logo real en el centro de un halo animado (rayos y anillo de texto) */
.hero-emblem { position: relative; width: 156px; height: 156px; margin: 0 auto 30px; }
.hero-logo { position: relative; display: block; width: 156px; height: 156px; filter: drop-shadow(0 12px 26px rgba(64, 40, 32, .22)); }
.hero-ring { position: absolute; left: 50%; top: 50%; max-width: none; width: 410px; height: 410px; transform: translate(-50%, -50%); color: var(--brown); opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 72%); mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 72%); }
.ring-rays, .ring-text { transform-box: view-box; transform-origin: 50% 50%; }
.ring-rays { animation: spin 220s linear infinite; }
.ring-text { animation: spin 160s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; max-width: 800px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 22px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--brass); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--brown); }
.hero-lead { max-width: 600px; margin: 26px auto 38px; font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: #43362f; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Tres accesos destacados, apoyados sobre el borde de la portada */
.highlights { position: relative; z-index: 2; margin-top: -76px; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper-2); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(38, 28, 24, .1); }
.highlight { display: block; text-decoration: none; color: inherit; padding: 30px 26px 32px; border-right: 1px solid var(--line); transition: background .25s ease; }
.highlight:hover { background: #fff; }
.highlight .more { display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.highlight:last-child { border-right: 0; }
.ico { width: 46px; height: 46px; display: grid; place-items: center; color: var(--brown); border: 1px solid rgba(64, 40, 32, .35); border-radius: 50%; margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }
.highlight h3 { font-size: 1.4rem; margin-bottom: 8px; }
.highlight p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ------------------------------------------------ Secciones */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.section h2 em { font-style: italic; color: var(--brown); }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 1.1rem; }

/* Servicios */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--brown); padding: clamp(26px, 3.4vw, 40px); transition: box-shadow .3s ease, transform .3s ease; }
.svc:hover { box-shadow: 0 16px 40px rgba(38, 28, 24, .09); transform: translateY(-3px); }
.svc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.svc-head .ico { margin: 0; flex: none; }
.svc h3 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.svc ul { list-style: none; margin: 0; padding: 0; }
.svc li { position: relative; padding: 7px 0 7px 22px; line-height: 1.45; }
.svc li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 1px; background: var(--brass); }

/* Formatos en línea (sección en vino) */
.forms { background: var(--brown); color: #fff; position: relative; overflow: hidden; }
.forms::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px); pointer-events: none; }
.forms .wrap { position: relative; }
.forms .eyebrow { color: #e6c993; }
.forms .eyebrow::before, .forms .eyebrow::after { background: #e6c993; }
.forms h2 em { color: #e6c993; }
.forms .section-head p { color: rgba(255,255,255,.78); }

/* Ubicación: mapa grande + barra de datos */
.map { border: 1px solid var(--line); border-bottom: 0; background: #e8e2d6; height: clamp(340px, 46vw, 480px); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-bar { display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; gap: 0; background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--brown); }
.loc-item { padding: 26px 28px; border-right: 1px solid var(--line); }
.loc-item .loc-title { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 8px; }
.loc-item address, .loc-item p { font-style: normal; margin: 0; font-size: 1.06rem; line-height: 1.55; }
.loc-item a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid var(--brass); word-break: break-word; }
.loc-item .loc-links { display: grid; justify-items: start; gap: 2px; }
.loc-item a:hover { color: var(--brown); border-color: var(--brown); }
.loc-go { display: flex; align-items: center; padding: 26px 28px; }

/* Contacto */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); text-align: center; }
.contact h2 { margin-bottom: 14px; }
.contact p.lead { max-width: 560px; margin: 0 auto 34px; color: var(--muted); font-size: 1.12rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-phones { margin: 30px 0 0; font-size: 1rem; color: var(--muted); }
.contact-phones strong { color: var(--ink); font-weight: 600; }

/* Pie */
.site-footer { background: #1d1512; color: rgba(255,255,255,.7); padding: 44px 0 30px; font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo { background: var(--paper-2); border-radius: 50%; padding: 3px; width: 60px; height: 60px; }
.site-footer .brand-sub { color: rgba(255,255,255,.6); }
.footer-info { margin: 0; line-height: 1.6; text-align: right; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; font-size: .86rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.28); }
.site-footer a:hover { color: #fff; border-color: #e6c993; }
.site-footer a.brand { border-bottom: 0; }

/* ------------------------------------------------ Botones flotantes: volver arriba + WhatsApp */
.float-actions { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.to-top { width: 52px; height: 52px; display: grid; place-items: center; background: var(--paper-2); color: var(--brown); border: 1px solid var(--brown); border-radius: 50%; box-shadow: 0 8px 24px rgba(38, 28, 24, .22); transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease, color .25s ease; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--brown); color: #fff; }
.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }
.wa-fab { display: inline-flex; align-items: center; height: 52px; overflow: hidden; text-decoration: none; background: var(--brown); color: #fff; border: 1px solid var(--brown-d); border-radius: 26px; box-shadow: 0 8px 24px rgba(38, 28, 24, .28); transition: background .25s ease; animation: waPulse 2.6s ease-out 2.5s 3; }
.wa-fab:hover, .wa-fab:focus-visible { background: var(--brown-d); }
.wa-fab svg { width: 24px; height: 24px; margin: 0 13px; flex: none; }
.wa-fab span { max-width: 0; opacity: 0; white-space: nowrap; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: max-width .35s ease, opacity .25s ease, padding .35s ease; }
.wa-fab:hover span, .wa-fab:focus-visible span { max-width: 170px; opacity: 1; padding-right: 20px; }
@keyframes waPulse { 0% { box-shadow: 0 8px 24px rgba(38,28,24,.28), 0 0 0 0 rgba(64,40,32,.5); } 100% { box-shadow: 0 8px 24px rgba(38,28,24,.28), 0 0 0 16px rgba(64,40,32,0); } }
.wa-bubble { position: fixed; right: 88px; bottom: 24px; z-index: 39; width: 318px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--paper-2); color: var(--ink); border-left: 3px solid var(--brown); box-shadow: 0 14px 40px rgba(38, 28, 24, .25); padding: 18px 40px 18px 18px; opacity: 0; transform: translateX(10px); transition: opacity .4s ease, transform .4s ease; }
.wa-bubble.is-open { opacity: 1; transform: none; }
.wa-bubble[hidden] { display: none; }
.wa-bubble strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.wa-bubble p { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.wa-bubble a { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brown); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.wa-bubble .wa-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.wa-bubble .wa-chips a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; text-align: center; font-size: .88rem; font-weight: 600; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--brown); background: transparent; border: 1px solid rgba(64, 40, 32, .3); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.wa-bubble .wa-chips a:hover, .wa-bubble .wa-chips a:focus-visible { background: var(--brown); color: #fff; border-color: var(--brown); }
.wa-bubble .wa-chips a.wide { grid-column: 1 / -1; }
.wa-bubble .wa-own { font-size: .76rem; }
.wa-bubble-close { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.wa-bubble-close:hover { color: var(--ink); }

/* ------------------------------------------------ Movimiento sutil */
.hero-inner > * { animation: rise .9s ease both; }
.hero-inner > *:nth-child(2) { animation-delay: .1s; }
.hero-inner > *:nth-child(3) { animation-delay: .2s; }
.hero-inner > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .hero-inner > * { opacity: 1; transform: none; transition: none; animation: none; }
  .wa-fab, .ring-rays, .ring-text { animation: none; }
  .to-top, .wa-bubble, .wa-fab span, .svc { transition: none; }
  .tramite[open], .tramite[open]::backdrop { animation: none; }
}

/* ------------------------------------------------ Página legal (aviso de privacidad) */
.legal { padding: clamp(56px, 7vw, 96px) 0; }
.legal-wrap { max-width: calc(780px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 12px; }
.legal-date { color: var(--muted); font-size: .95rem; margin-bottom: 40px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 42px 0 12px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--brown); text-underline-offset: 3px; }
.legal-back { margin-top: 52px; }
.legal .btn { text-decoration: none; }

/* ------------------------------------------------ Ventana de información de cada trámite */
html { scrollbar-gutter: stable; }
html.is-modal { overflow: hidden; }
.tramite { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(780px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: visible; }
.tramite::backdrop { background: rgba(38, 28, 24, .6); }
.tramite[open] { animation: tr-in .3s ease both; }
.tramite[open]::backdrop { animation: tr-fade .3s ease both; }
@keyframes tr-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tr-fade { from { opacity: 0; } to { opacity: 1; } }
.tr-box { position: relative; background: var(--paper-2); border-top: 4px solid var(--brown); box-shadow: 0 30px 80px rgba(38, 28, 24, .35); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4.5vw, 48px); }
.tr-close { position: absolute; top: 6px; right: 6px; width: 46px; height: 46px; border: 0; background: none; color: var(--muted); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.tr-close:hover { color: var(--ink); }
.tr-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); }
.tr-box h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 40px 14px 0; }
.tr-lead { margin: 0 0 28px; font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.tr-cols h3 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 0 0 14px; }
.tr-cols ul { list-style: none; padding: 0; margin: 0; }
.tr-cols li { position: relative; padding-left: 20px; margin: 0 0 .75em; font-size: 1rem; line-height: 1.55; }
.tr-cols li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--brass); }
.tr-note { margin: 8px 0 0; padding: 14px 18px; background: rgba(179, 141, 76, .13); border-left: 3px solid var(--brass); font-size: .95rem; color: var(--ink); }
.tr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ------------------------------------------------ Adaptable */
@media (max-width: 1100px) {
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .highlight:nth-child(2n) { border-right: 0; }
  .highlight:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .loc-bar { grid-template-columns: 1fr 1fr; }
  .loc-item { border-bottom: 1px solid var(--line); }
  .loc-item:nth-child(2n) { border-right: 0; }
  .loc-go { grid-column: 1 / -1; border-top: 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 24px; display: none; box-shadow: 0 18px 30px rgba(38,28,24,.1); }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .highlight { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding: 24px; }
  .highlight:last-child { border-bottom: 0; }
  .highlight .ico { grid-row: span 3; margin: 0; }
  .highlight h3 { margin: 0 0 4px; }
  .highlight .more { margin-top: 8px; }
  .footer-info { text-align: left; }
}
@media (max-width: 640px) {
  .tramite { width: 100%; margin: auto 0 0; max-height: 92vh; max-height: 92dvh; }
  .tr-box { max-height: 92vh; max-height: 92dvh; padding: 28px 20px 24px; border-top-width: 3px; }
  .tr-cols { grid-template-columns: 1fr; gap: 22px; }
  .tr-actions { position: sticky; bottom: -24px; margin: 18px -20px -24px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--paper-2); border-top: 1px solid var(--line); gap: 10px; flex-wrap: nowrap; }
  .tr-actions .btn { flex: 1 1 0; padding: 14px 10px; font-size: .8rem; letter-spacing: .04em; text-align: center; }
  .tr-actions .btn-solid { flex: 2 1 0; }
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.1rem; letter-spacing: .1em; }
  .hero-actions .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .loc-bar { grid-template-columns: 1fr; }
  .loc-item { border-right: 0; padding: 22px 24px; }
  .loc-go { padding: 22px 24px; }
  .loc-go .btn { width: 100%; }
  .hero-emblem, .hero-logo { width: 128px; height: 128px; }
  .hero-ring { width: min(340px, 94vw); height: min(340px, 94vw); }
  .hero { padding-top: 92px; }
  .float-actions { right: 16px; bottom: 16px; gap: 10px; }
  .to-top, .wa-fab { height: 46px; }
  .to-top { width: 46px; }
  .wa-fab svg { margin: 0 11px; }
  .wa-bubble { right: 72px; bottom: 16px; width: min(318px, calc(100vw - 92px)); max-height: calc(100vh - 32px); }
}

/* ------------------------------------------------ Versión para imprimir (al final del archivo, para que ninguna regla de pantalla la pise) */
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; }
  body { font-size: 11pt; line-height: 1.5; color: #000; }
  .site-header, .float-actions, .wa-bubble, .skip, .tramite, iframe { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a { color: inherit; text-decoration: none; }
  .highlights { margin-top: 0; }
  .highlight-grid, .service, .svc { break-inside: avoid; page-break-inside: avoid; }
}
