/* ==========================================================================
   Chrome: lead strip, top bar, header + mega menu, callback popover, drawer,
   mobile quick bar, floating WhatsApp, footer, inquiry modal, cookie bar,
   image zoom, video lightbox. Public pages only (body.site).
   z-index scale: header 70 · mega 80 · fab 85 · popover/mobile bar 90 · cookie 100
                  scrim 110 · drawer 120 · modal 130 · zoom 200 · video 210
   ========================================================================== */

/* Lead strip (hook: .lead-banner > form.lead-banner__inner[data-ajax-form]) ---------------------------*/
.lead-banner { position: relative; z-index: 60; background: var(--c-forest-deep); color: var(--c-on-dark-muted); border-bottom: 1px solid var(--c-dark-line); }
.lead-banner__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; min-height: var(--lead-h); padding-block: 7px; }
.lead-banner__text { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .875rem; font-weight: 550; color: var(--c-on-dark); }
.lead-banner__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--c-accent); color: var(--c-on-accent); }
.lead-banner__ic .icon { width: 15px; height: 15px; }
.lead-banner__field { margin: 0; width: min(330px, 100%); }
.lead-banner .identity__box { min-height: 38px; border-color: transparent; box-shadow: none; }
.lead-banner .identity__input { padding: .4rem .8rem; font-size: .9rem; }
.lead-banner .identity__cc { font-size: .85rem; padding-inline: 10px 8px; }
.lead-banner__btn { min-height: 38px; }
.lead-banner .form-success, .lead-banner .form-error { margin: 0; padding: 6px 12px; font-size: .85rem; border-radius: var(--radius-pill); }
.lead-banner .form-success { background: color-mix(in srgb, var(--c-accent) 18%, transparent); color: var(--c-on-dark); border-color: transparent; }
.lead-banner .form-success::before { background: var(--c-accent); }
.lead-banner .form-error { background: color-mix(in srgb, var(--c-danger) 30%, transparent); color: var(--c-on-dark); }

/* Top bar (desktop only, when contact details are set) -------------------------------------------------*/
.topbar { background: var(--c-forest-deep); color: var(--c-on-dark-muted); font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.topbar ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar li { margin: 0; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; color: var(--c-on-dark-muted); }
.topbar a:hover { color: var(--c-accent); text-decoration: none; }
.topbar .icon { width: 14px; height: 14px; color: var(--c-accent); }
.topbar__social { gap: 6px !important; }
.topbar__social a { width: 28px; height: 28px; justify-content: center; border-radius: 50%; }
.topbar__social a:hover { background: var(--c-dark-fill); }
.topbar__social .icon { color: currentColor; }

/* Header -------------------------------------------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 70; background: color-mix(in srgb, var(--c-surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 80%, transparent);
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: hdr-raise linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  @keyframes hdr-raise { to { box-shadow: 0 10px 30px color-mix(in srgb, var(--c-footer-bg) 9%, transparent); background: color-mix(in srgb, var(--c-surface) 97%, transparent); } }
}
.site-header:has(.popover:not([hidden])) { z-index: 95; }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 0; color: var(--c-text); text-decoration: none !important; }
.brand:hover { color: var(--c-text); }
.brand__mark, .footer-logo .brand__mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-badge); color: var(--c-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-on-primary) 14%, transparent), 0 6px 14px color-mix(in srgb, var(--c-primary-dark) 22%, transparent);
}
.brand__mark .icon { width: 21px; height: 21px; }
.brand__name { font-size: 1.1875rem; font-weight: 800; line-height: 1; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__accent { color: var(--c-primary); }
.brand__logo { display: block; width: auto; height: 46px; max-width: 220px; object-fit: contain; object-position: left center; }

.nav-main { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: var(--radius-pill);
  color: var(--c-ink-soft); font-size: .9375rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--c-text); background: var(--c-paper); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--c-primary-dark); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; border-radius: 3px; background: var(--c-primary); translate: -50% 0; }
.nav-caret { width: 15px; height: 15px; opacity: .65; transition: transform var(--dur) var(--ease); }
.nav-item { position: relative; }
.nav-item--dd:hover .nav-caret, .nav-item--dd:focus-within .nav-caret { transform: rotate(180deg); }

/* Mega menu (CSS only: hover / focus-within) */
.nav-dd {
  position: absolute; top: 100%; left: 50%; z-index: 80; width: 700px; padding-top: 12px;
  visibility: hidden; opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility 0s linear .2s;
}
.nav-item--dd:hover > .nav-dd, .nav-item--dd:focus-within > .nav-dd { visibility: visible; opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition-delay: .06s, .06s, 0s; }
.nav-dd__card { display: grid; grid-template-columns: minmax(0, 1fr) 236px; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.nav-dd__main { padding: 18px 16px 12px; }
.nav-dd__title { margin: 2px 8px 10px; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.nav-dd__list { display: grid; gap: 2px; list-style: none; margin: 0 0 8px; padding: 0; }
.nav-dd__list li { margin: 0; }
.nav-dd__link { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; color: var(--c-text); transition: background-color var(--dur) var(--ease); }
.nav-dd__link:hover, .nav-dd__link[aria-current="page"] { background: var(--c-paper); text-decoration: none; color: var(--c-text); }
.nav-dd__thumb { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: var(--c-tint); color: var(--c-primary); }
.nav-dd__thumb img { width: 100%; height: 100%; padding: 5px; object-fit: contain; mix-blend-mode: multiply; }
.nav-dd__thumb .icon { width: 22px; height: 22px; }
.nav-dd__name { display: block; font-weight: 700; line-height: 1.3; }
.nav-dd__meta { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: .75rem; color: var(--c-muted); }
.nav-dd__go { width: 18px; height: 18px; color: var(--c-primary); opacity: 0; transform: translateX(-6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.nav-dd__link:hover .nav-dd__go { opacity: 1; transform: none; }
.nav-dd__all { display: flex; justify-content: space-between; margin: 0 8px; padding: 12px 0 6px; border-top: 1px solid var(--c-line); font-size: .9rem; }
.nav-dd__promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 22px 20px; background: var(--grad-forest); color: var(--c-on-dark-muted); isolation: isolate; }
.nav-dd__promo::before { content: ""; position: absolute; inset: -30% -40% auto auto; width: 280px; height: 280px; z-index: -1; background: color-mix(in srgb, var(--c-accent) 26%, transparent); -webkit-mask: var(--mask-contours) center / cover no-repeat; mask: var(--mask-contours) center / cover no-repeat; opacity: .7; }
.nav-dd__promo .tag { align-self: flex-start; margin-bottom: auto; }
.nav-dd__promo-title { margin: 18px 0 0; color: var(--c-on-dark); font-size: 1.15rem; font-weight: 750; line-height: 1.25; letter-spacing: var(--track-head); }
.nav-dd__promo-text { margin: 0 0 6px; font-size: .84rem; line-height: 1.55; }

/* Header actions + callback popover */
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-btn { flex: none; }
.hdr-callback { position: relative; }
.hdr-btn--callback[aria-expanded="true"] { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-dark); }
.popover {
  position: absolute; right: -6px; top: calc(100% + 14px); z-index: 90; width: 372px; padding: 22px; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  animation: pop-in .22s var(--ease-out);
}
.popover::before { content: ""; position: absolute; top: -8px; right: 46px; width: 15px; height: 15px; background: var(--c-surface); border-left: 1px solid var(--c-line); border-top: 1px solid var(--c-line); transform: rotate(45deg); border-radius: 3px 0 0 0; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.popover__close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); }
.popover__close:hover { background: var(--c-paper); color: var(--c-text); }
.popover__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding-right: 34px; }
.popover__title { margin: 0 0 3px; font-size: 1.0625rem; font-weight: 750; letter-spacing: -.012em; line-height: 1.3; }
.popover__sub { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--c-muted); }
.popover .form-row { margin-bottom: 12px; }
.popover__foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: .75rem; color: var(--c-muted); }
.popover__foot .icon { width: 13px; height: 13px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; flex: none;
  border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-text);
}
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; width: 70%; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1240px) {
  .site-header__inner { gap: 14px; }
  .nav-link { padding-inline: 11px; }
  .hdr-btn--callback, .hdr-btn--inquiry, .hdr-btn--account { width: 40px; padding: 0; }
  .hdr-btn--callback .label, .hdr-btn--inquiry .label, .hdr-btn--account .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Drawer + scrim (hooks: #sidebar.is-open, #scrim.is-open, [data-sidebar-close]) ------------------------------*/
.scrim { position: fixed; inset: 0; z-index: 110; background: var(--c-overlay); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; display: flex; flex-direction: column; width: min(390px, 90vw);
  background: var(--c-surface); box-shadow: var(--shadow-lg); transform: translateX(104%); visibility: hidden;
  transition: transform .38s var(--ease-out), visibility 0s linear .38s;
}
.sidebar.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; height: var(--header-h); padding: 0 12px 0 20px; border-bottom: 1px solid var(--c-line); }
.sidebar__close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-text); }
.sidebar__close:hover { background: var(--c-paper); }
.sidebar__body { display: flex; flex-direction: column; gap: 18px; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px calc(18px + var(--safe-bottom)); }
.sidebar__nav { display: grid; gap: 2px; }
.sidebar__link { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 10px 12px; border-radius: 14px; color: var(--c-text); font-size: 1rem; font-weight: 650; }
.sidebar__link .icon { width: 20px; height: 20px; color: var(--c-muted); }
.sidebar__link:hover { background: var(--c-paper); text-decoration: none; color: var(--c-text); }
.sidebar__link[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.sidebar__link[aria-current="page"] .icon { color: var(--c-primary); }
.sidebar__sub { display: grid; gap: 2px; list-style: none; margin: 0 0 6px 22px; padding: 0 0 0 14px; border-left: 1.5px solid var(--c-line); }
.sidebar__sub li { margin: 0; }
.sidebar__sublink { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: 12px; color: var(--c-ink-soft); font-size: .9375rem; font-weight: 600; }
.sidebar__sublink:hover, .sidebar__sublink[aria-current="page"] { background: var(--c-paper); color: var(--c-text); text-decoration: none; }
.sidebar__thumb { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: var(--c-tint); color: var(--c-primary); }
.sidebar__thumb img { width: 100%; height: 100%; padding: 3px; object-fit: contain; mix-blend-mode: multiply; }
.sidebar__count { min-width: 26px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--c-paper); font-family: var(--font-mono); font-size: .72rem; text-align: center; color: var(--c-muted); }
.sidebar__actions { display: grid; gap: 10px; margin-top: auto; padding: 16px; border-radius: var(--radius-lg); background: var(--c-paper); }
.sidebar__label { margin: 0 0 2px; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }

/* Mobile quick bar (Req 5.1) + floating WhatsApp (Req 15.1) ----------------------------------------------*/
.mobile-bar { display: none; }
.fab-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 85; display: inline-flex; align-items: center; height: 58px; padding: 0 17px;
  border-radius: var(--radius-pill); background: var(--c-whatsapp); color: var(--c-on-wa); font-weight: 700; font-size: .9375rem;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--c-whatsapp) 40%, transparent), 0 2px 6px color-mix(in srgb, var(--c-footer-bg) 18%, transparent);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fab-wa .icon { width: 24px; height: 24px; }
.fab-wa__label { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s var(--ease-out), opacity .25s var(--ease), margin .35s var(--ease-out); }
.fab-wa:hover, .fab-wa:focus-visible { color: var(--c-on-wa); text-decoration: none; transform: translateY(-2px); }
.fab-wa:hover .fab-wa__label, .fab-wa:focus-visible .fab-wa__label { max-width: 140px; opacity: 1; margin-left: 10px; }

/* Footer -------------------------------------------------------------------------------------------*/
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--c-footer-bg); color: var(--c-footer-text); padding-top: clamp(56px, 6vw, 92px); }
.site-footer::before {
  content: ""; position: absolute; z-index: -1; right: -12%; bottom: -18%; width: min(980px, 110vw); aspect-ratio: 1; pointer-events: none;
  background: color-mix(in srgb, var(--c-accent) 11%, transparent); -webkit-mask: var(--mask-contours) center / cover no-repeat; mask: var(--mask-contours) center / cover no-repeat;
}
.site-footer::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: var(--c-on-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: clamp(36px, 4vw, 56px); }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 18px; color: var(--c-on-dark); text-decoration: none !important; }
.footer-logo img { display: block; width: auto; height: 48px; max-width: 220px; object-fit: contain; }
.footer-logo__name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.035em; color: var(--c-on-dark); }
.footer-logo__accent { color: var(--c-accent); }
.footer-about { max-width: 38ch; margin: 0; font-size: .9375rem; line-height: 1.7; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.footer-trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 11px; border-radius: var(--radius-pill); border: 1px solid var(--c-dark-line); background: var(--c-dark-fill); font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-on-dark); }
.footer-trust .icon { width: 14px; height: 14px; color: var(--c-accent); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.footer-social li { margin: 0; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-dark-line); background: var(--c-dark-fill); color: var(--c-on-dark); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.footer-social a:hover { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-title { margin: 0 0 18px; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--c-on-dark); }
.footer-title--sub { margin-top: 28px; }
.footer-acc > summary { list-style: none; }
.footer-acc > summary::-webkit-details-marker { display: none; }
.footer-acc__chev { display: none; }
.footer-links, .footer-contact { display: grid; gap: 11px; list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin: 0; }
.footer-links a { font-size: .9375rem; line-height: 1.45; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: .9375rem; line-height: 1.5; }
.footer-contact__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--c-dark-fill); border: 1px solid var(--c-dark-line); color: var(--c-accent); }
.footer-contact__ic .icon { width: 15px; height: 15px; }
.footer-contact li > a, .footer-contact li > span:last-child, .footer-contact__btn { padding-top: 4px; }
.footer-contact__btn { padding: 4px 0 0; border: 0; background: none; color: var(--c-footer-text); font: inherit; text-align: left; cursor: pointer; }
.footer-contact__btn:hover { color: var(--c-on-dark); text-decoration: underline; }
.footer-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center; gap: 22px 44px; margin-bottom: 36px; padding: 28px 32px; border-radius: var(--radius-xl); border: 1px solid var(--c-dark-line); background: var(--c-dark-fill); }
.footer-news__intro { display: flex; align-items: center; gap: 16px; }
.footer-news__title { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.25; color: var(--c-on-dark); }
.footer-news__text { margin: 0; font-size: .9rem; line-height: 1.55; }
.footer-news__form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.footer-news__form .form-row { flex: 1 1 260px; margin: 0; }
.footer-news__form > .btn { min-height: 48px; }
.footer-news .form-success { flex-basis: 100%; margin: 0; background: color-mix(in srgb, var(--c-accent) 14%, transparent); color: var(--c-on-dark); border-color: color-mix(in srgb, var(--c-accent) 32%, transparent); }
.footer-news .form-success::before { background: var(--c-accent); }
.site-footer .form-error { color: color-mix(in srgb, var(--c-danger) 38%, #fff); }
.site-footer .identity__box { background: color-mix(in srgb, var(--c-on-primary) 7%, transparent); border-color: color-mix(in srgb, var(--c-on-primary) 26%, transparent); box-shadow: none; }
.site-footer .identity__box:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 20%, transparent); }
.site-footer .identity__input, .site-footer .identity__cc { color: var(--c-on-dark); }
.site-footer .identity__input::placeholder { color: var(--c-on-dark-muted); }
.site-footer .identity__cc { border-right-color: var(--c-dark-line); }
.site-footer .identity__cc:hover { background: var(--c-dark-fill); }
.site-footer .identity__list { top: auto; bottom: calc(100% + 6px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid var(--c-dark-line); font-size: .8125rem; }
.footer-bottom p { margin: 0; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom__links li { margin: 0; }
@media (min-width: 961px) {
  .footer-acc > summary { pointer-events: none; }
  .footer-acc::details-content { content-visibility: visible; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; }
  .footer-brand .footer-trust, .footer-brand .footer-social { grid-column: 1; }
}

/* Inquiry modal (hooks: #inquiry-modal.is-open, .steps span.is-done, .step-label, [data-step]) -------------------*/
.modal { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 20px; background: var(--c-overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; animation: fade-in .22s var(--ease); }
.modal__dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 30px; background: var(--c-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: modal-in .36s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal__close { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--c-paper); color: var(--c-muted); }
.modal__close:hover { background: var(--c-line); color: var(--c-text); }
.modal__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-right: 48px; }
.modal__titles { min-width: 0; }
.modal__kicker { margin: 0 0 2px; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); }
.modal__title { margin: 0; font-size: 1.375rem; line-height: 1.22; overflow-wrap: anywhere; }
.step-label { margin-top: 4px; font-family: var(--font-mono); font-size: .75rem; color: var(--c-muted); }
.step-label:empty { display: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 42px; }
.steps span { position: relative; display: block; height: 4px; border-radius: 4px; background: var(--c-line); transition: background-color var(--dur-slow) var(--ease); }
.steps span::after { content: attr(data-label); position: absolute; top: 11px; left: 0; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); white-space: nowrap; }
.steps span.is-done { background: var(--c-primary); }
.steps span.is-done::after { color: var(--c-primary-dark); }
.steps span:first-child:not(.is-done), .steps span.is-done + span:not(.is-done) { background: linear-gradient(90deg, var(--c-primary) 0 42%, var(--c-line) 42% 100%); }
.steps span:first-child:not(.is-done)::after, .steps span.is-done + span:not(.is-done)::after { color: var(--c-text); font-weight: 600; }
.modal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.modal__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.modal__note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--c-paper); font-size: .875rem; line-height: 1.5; }
.modal__note .icon { margin-top: 2px; color: var(--c-primary); }
.modal__note--ok { background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 600; }
.modal__assure { display: grid; gap: 7px; list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--c-line); font-size: .8125rem; color: var(--c-muted); }
.modal__assure li { display: flex; align-items: center; gap: 9px; margin: 0; }
.modal__assure .icon { width: 15px; height: 15px; color: var(--c-primary); }
.modal__done { padding: 6px 0 4px; text-align: center; }
.modal__done-ic { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 16px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-primary-soft) 55%, transparent); animation: done-pop .5s var(--ease-out); }
.modal__done-ic .icon { width: 34px; height: 34px; stroke-width: 2.4; }
@keyframes done-pop { from { transform: scale(.6); opacity: 0; } }
.modal__done-title { margin: 0 0 6px; font-size: 1.4rem; font-weight: 780; letter-spacing: var(--track-head); color: var(--c-text); }
.modal__done-text { max-width: 40ch; margin: 0 auto 20px; color: var(--c-muted); }
.modal__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.modal .identity__list { position: static; width: 100%; margin-top: 6px; box-shadow: var(--shadow); }

/* Cookie bar ----------------------------------------------------------------------------------------*/
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 100; display: none; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; width: min(440px, calc(100vw - 32px));
  padding: 18px; border-radius: var(--radius-xl); border: 1px solid var(--c-dark-line); background: var(--c-forest-deep); color: var(--c-on-dark-muted); box-shadow: var(--shadow-lg);
}
.cookie.is-open { display: grid; animation: modal-in .4s var(--ease-out); }
.cookie__ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-dark-fill); border: 1px solid var(--c-dark-line); color: var(--c-accent); }
.cookie__text { margin: 0; font-size: .84rem; line-height: 1.55; }
.cookie__text a { color: var(--c-accent); text-decoration: underline; }
.cookie__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* Image zoom (hooks: #zoom.is-open > img) + video lightbox (classes built by site.js) -----------------------------*/
.zoom { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--c-forest-deep) 94%, transparent); cursor: zoom-out; }
.zoom.is-open { display: flex; animation: fade-in .2s var(--ease); }
.zoom::after { content: "Click anywhere to close"; position: absolute; top: 18px; right: 22px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--c-on-dark-muted); }
.zoom img { max-width: min(1100px, 100%); max-height: 100%; padding: clamp(12px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--c-surface); object-fit: contain; box-shadow: var(--shadow-lg); }
.video-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, var(--c-forest-deep) 90%, transparent); opacity: 0; transition: opacity .25s var(--ease); }
.video-modal.is-open { opacity: 1; }
.video-modal__guard { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.video-modal__dialog { width: min(1060px, 100%); overflow: hidden; border-radius: var(--radius-xl); background: var(--c-forest-deep); border: 1px solid var(--c-dark-line); box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.98); transition: transform .35s var(--ease-out); }
.video-modal.is-open .video-modal__dialog { transform: none; }
.video-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; }
.video-modal__title { margin: 0; font-size: 1rem; font-weight: 650; color: var(--c-on-dark); }
.video-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--c-glass-border); border-radius: 50%; background: var(--c-glass); color: var(--c-on-dark); }
.video-modal__close:hover { background: color-mix(in srgb, var(--c-on-primary) 20%, transparent); }
.video-modal__frame { aspect-ratio: 16 / 9; background: var(--c-forest-deep); }
.video-modal__frame iframe, .video-modal__frame video { display: block; width: 100%; height: 100%; border: 0; }

/* Tablet + mobile (960px switch is shared with site.js) ----------------------------------------------*/
@media (max-width: 960px) {
  .topbar, .fab-wa { display: none; }
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { gap: 10px; justify-content: space-between; }
  .header-actions { gap: 6px; }
  .hdr-btn { width: 40px; min-height: 40px; padding: 0; }
  .hdr-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark .icon { width: 19px; height: 19px; }
  .brand__name { font-size: 1.0625rem; }
  .brand__logo { height: 36px; max-width: 170px; }
  .popover { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 10px); width: auto; max-height: calc(100dvh - var(--header-h) - var(--mobile-bar-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
  .popover::before { display: none; }
  .popover .identity__list { position: static; width: 100%; margin-top: 6px; }

  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding-bottom: var(--safe-bottom);
    background: color-mix(in srgb, var(--c-surface) 95%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px color-mix(in srgb, var(--c-footer-bg) 8%, transparent);
  }
  .mobile-bar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--mobile-bar-h); }
  .mobile-bar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--c-muted); font-size: .6875rem; font-weight: 650; text-decoration: none !important; }
  .mobile-bar__item > .icon { width: 22px; height: 22px; }
  .mobile-bar__item[aria-current="page"] { color: var(--c-primary-dark); }
  .mobile-bar__item[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-primary); translate: -50% 0; }
  .mobile-bar__bubble { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
  .mobile-bar__bubble .icon { width: 17px; height: 17px; }
  .mobile-bar__item.wa { color: var(--c-text); }
  .mobile-bar__item.wa .mobile-bar__bubble { background: var(--c-whatsapp); color: var(--c-on-wa); }
  .mobile-bar__item.call { color: var(--c-text); }
  .mobile-bar__item.call .mobile-bar__bubble { background: var(--c-primary-dark); color: var(--c-on-primary); }

  /* The footer bottom sits fully above the quick bar (Req 5.3) */
  .site-footer { padding-bottom: calc(var(--mobile-bar-h) + var(--safe-bottom)); }
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 28px; }
  .footer-brand { padding-bottom: 26px; }
  .footer-acc { border-top: 1px solid var(--c-dark-line); }
  .footer-acc:last-child { border-bottom: 1px solid var(--c-dark-line); }
  .footer-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; }
  .footer-acc .footer-title { margin: 0; }
  .footer-acc__chev { display: block; width: 18px; height: 18px; color: var(--c-on-dark-muted); transition: transform var(--dur) var(--ease); }
  .footer-acc[open] .footer-acc__chev { transform: rotate(180deg); }
  .footer-acc > ul { padding-bottom: 20px; }
  .footer-acc > .footer-title--sub { margin: 4px 0 14px; }
  .footer-news { grid-template-columns: 1fr; padding: 22px 20px; }
  .footer-bottom { padding-bottom: 22px; }

  .cookie { left: 12px; right: 12px; width: auto; bottom: calc(var(--mobile-bar-h) + var(--safe-bottom) + 12px); }
}
@media (max-width: 640px) {
  .lead-banner__inner { gap: 8px; padding-block: 10px; }
  .lead-banner__text { flex-basis: 100%; justify-content: center; font-size: .8125rem; text-align: left; }
  .lead-banner__field { flex: 1 1 0; width: auto; min-width: 0; }
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { width: 100%; max-height: 94dvh; padding: 24px 18px calc(22px + var(--safe-bottom)); border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation: sheet-in .4s var(--ease-out); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
  .modal__head { gap: 12px; }
  .modal__head .icon-badge { --ib: 44px; }
  .modal__title { font-size: 1.2rem; }
  .modal__grid { grid-template-columns: 1fr; }
  .steps span::after { font-size: .625rem; letter-spacing: .03em; }
  .footer-news__intro { align-items: flex-start; }
  .footer-news__form > .btn { width: 100%; }
}
@media (max-width: 380px) {
  .brand__name { font-size: .98rem; }
  .brand { gap: 8px; }
  .hdr-btn, .nav-toggle { width: 38px; min-height: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; }
}
