:root { --header-height: 80px; }
html { scroll-padding-top: var(--header-height); }
.site-header { background: #fff; }
.header-inner { padding-block: 0; }
.site-header .brand { flex-shrink: 0; }
.site-header .brand img { width: 210px; height: auto; }
.site-header .header-inner { min-height: max(var(--header-height), 80px); }
.site-footer .brand img { width: 210px; height: auto; }
.header-action .button { min-height: 44px; padding: 8px 13px; }
.nav-list a { padding-block: 14px; }
main > .section, body[data-page=home] main > .section,
body[data-trade=electricidad] main > .section { padding-block: clamp(28px, 4vh, 48px); }
main .section-heading { margin-bottom: 22px; }
main .section-heading h2 { margin-bottom: 10px; }
main .section-heading > p:last-child { margin-bottom: 0; }
.centered-block, main > .cta { display: grid; align-items: center; }
.centered-block > .wrap { text-align: center; }
.home-hero.home-hero--panoramic {
  background-image: linear-gradient(#ffffff73, #ffffff73), var(--home-hero-image);
  height: clamp(360px, 53vh, 480px);
}
.home-hero.home-hero--panoramic h1 { font-size: clamp(34px, 3vw, 42px); }
.home-hero--panoramic .home-hero-content { width: min(100%, 420px); }
.experience [data-experience] { font-size: .73em; }
.counter-note { margin: 10px 16px 0; text-align: center; font-size: 12px; }
.compact-catalog { gap: 12px; }
.compact-catalog .service-card > img { height: clamp(70px, 13vh, 120px); }
.compact-catalog .card-body { padding: 12px 14px; }
.compact-catalog h3 { font-size: 17px; margin-bottom: 5px; }
.compact-catalog p { font-size: 14px; line-height: 1.4; margin-bottom: 5px; }
.compact-catalog .service-number, .process .step-number { display: none; }
.compact-catalog .card-link { padding-top: 4px; margin-top: 0; }
.compact-catalog .card-link + h3 { margin-top: 8px; }
.final-trade { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
.work-slides { position: relative; aspect-ratio: 1672 / 941; }
.work-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; transition: opacity .65s ease; }
.work-slides img[aria-hidden=true] { opacity: 0; }
.slide-toggle { padding: 6px 12px; min-height: 44px; color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 8px; }
#contacto .contact-details { gap: 6px; margin-block: 10px; }
#contacto .detail { padding: 7px 10px; }
#contacto .detail svg { width: 18px; height: 18px; }
#contacto .map-slot { min-height: 0; }
#contacto .map-slot iframe { height: 135px; }
#contacto .form-card { padding: 14px 18px; }
#contacto .form-card h3, #contacto .form-notice { margin-bottom: 8px; }
#contacto .contact-form label { margin-top: 6px; }
#contacto .contact-form .consent { margin-block: 10px; }
#contacto .contact-form textarea { min-height: 66px; height: 66px; }
@media (min-width: 1000px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  main > section { scroll-snap-align: start; }
  html:has(#contacto:focus-within) { scroll-snap-type: none; }
  main > .cta, .centered-block { min-height: min(480px, calc(100svh - var(--header-height))); }
}
@media (max-width: 1100px) {
  .home-hero.home-hero--panoramic { height: auto; background: #fff; }
  .home-hero--panoramic::before { background-image: linear-gradient(#ffffff73, #ffffff73), var(--home-hero-image); }
}
@media (max-width: 940px) {
  .site-header .brand img { width: 190px; }
  .menu-toggle { width: 44px; height: 44px; }
  .final-trade { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .work-slides img { transition: none; }
}
.split .work-slides img { height: 100%; object-fit: contain; border-radius: 0; }
.experience strong[data-experience] { font-size: clamp(17px, 1.9vw, 25px); }
#contacto .contact-grid { gap: 20px; }
#contacto .contact-form input:not([type=checkbox]) { min-height: 44px; }
html { scroll-padding-top: calc(var(--header-height) + 1px); }
@media (min-width: 1000px) {
  main > #servicios:has(.compact-catalog) { padding-block: 19px; }
}
