@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fff;
  --navy: #102741;
  --ink: #172c40;
  --subtle: #4f5c65;
  --line: #d9d9d0;
  --rust: #a34315;
  --rust-dark: #7e3011;
  --amber: #f3ac75;
  --body: "DM Sans", Arial, sans-serif;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --edge: clamp(1.2rem, 4.8vw, 4.75rem);
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 1.25rem; }
body { color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
[hidden] { display: none !important; }
main:focus { outline: none; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
picture { display: block; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); font: 700 1em/1.02 var(--display); }
h2 { font-size: clamp(2.6rem, 6.5vw, 4.7rem); letter-spacing: -.027em; }
h3 { font-size: clamp(1.45rem, 3.3vw, 2.05rem); letter-spacing: -.014em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #186ca4; outline-offset: 4px; }
.wrap { max-width: calc(var(--max) + 2 * var(--edge)); margin-inline: auto; padding-inline: var(--edge); }
.section { padding-block: clamp(3.7rem, 8vw, 7.5rem); }
.skip {
  position: absolute;
  z-index: 5;
  top: .6rem;
  left: .8rem;
  padding: .6rem 1rem;
  transform: translateY(-180%);
  color: white;
  background: var(--navy);
}
.skip:focus { transform: translateY(0); }
.section-label {
  display: flex;
  align-items: center;
  gap: .68rem;
  margin-bottom: .8rem;
  color: var(--rust);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.45;
  text-transform: uppercase;
}
.section-label::before { content: ""; width: 1.4rem; height: 2px; background: currentColor; }
.section-head { display: grid; gap: 1.1rem; align-items: end; margin-bottom: clamp(1.8rem, 4vw, 3.25rem); }
.section-head > p { max-width: 36ch; color: var(--subtle); font-size: clamp(1rem, 1.6vw, 1.14rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.65rem; }
.button, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .72rem 1.22rem;
  border: 1px solid transparent;
  background: var(--rust);
  color: white;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button:hover { background: var(--rust-dark); }
.underlink { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; text-decoration-thickness: 1px; }
.underlink:hover { text-decoration-thickness: 2px; }

.header { position: relative; z-index: 2; background: white; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 .53rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: .48rem; text-decoration: none; }
.brand > span { color: var(--navy); font: 700 1.69rem/.95 var(--display); letter-spacing: -.035em; }
.brand > span > span { color: var(--rust); }
.brand img { width: 2.65rem; height: auto; }
.header-cta { min-height: 2.75rem; padding: .5rem .68rem; margin-left: auto; }
.header-cta span:last-child { display: none; }
.top-nav { display: flex; flex-basis: 100%; order: 3; gap: .2rem 1.25rem; flex-wrap: wrap; padding-block: .3rem .75rem; }
.top-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 650; text-decoration: none; }
.top-nav a:hover { color: var(--rust); text-decoration: underline; }
.menu-toggle {
  display: inline-flex;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .55rem .68rem;
  border-color: var(--line);
  background: white;
  color: var(--navy);
}
.menu-toggle:hover { border-color: var(--navy); }
.menu-toggle span { width: .95rem; height: .65rem; border-block: 2px solid currentColor; }
.header .brand { gap: .32rem; }
.header .brand > span { font-size: clamp(1.3rem, 5.8vw, 1.55rem); }
.header .brand img { width: 2.2rem; }
.topbar[data-enhanced] .top-nav { display: none; }
.topbar[data-menu-open] .top-nav { display: flex; order: 3; padding-bottom: .65rem; border-top: 1px solid var(--line); }

.hero { max-width: 90rem; margin-inline: auto; display: grid; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(2.65rem, 6.5vw, 6rem) var(--edge); align-self: center; }
.hero h1 { font-size: clamp(2.85rem, 10.4vw, 5.85rem); letter-spacing: -.043em; line-height: .99; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--rust); }
.hero-description {
  max-width: 42ch;
  margin-top: 1.2rem;
  color: var(--subtle);
  font-size: clamp(1.025rem, 1.7vw, 1.12rem);
}
.hero-slogan {
  max-width: 39ch;
  margin-top: .9rem;
  color: var(--navy);
  font-size: clamp(1.07rem, 1.8vw, 1.21rem);
  font-weight: 650;
}
.hero .actions { margin-top: 1.55rem; }
.hero-carousel { position: relative; min-width: 0; background: #805949; }
.carousel-viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 3; touch-action: pan-y pinch-zoom; }
.carousel-frame { position: absolute; inset: 0; }
.carousel-frame picture { height: 100%; }
.carousel-frame img { width: 100%; height: 100%; object-fit: cover; }
.carousel-frame img[src^="/img/portada-"] { object-position: 50% 24%; }
.carousel-bar {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  background: var(--navy);
  color: white;
}
.carousel-caption { grid-area: 1 / 1; line-height: 1.3; padding: .25rem .2rem; }
.carousel-caption a { font-weight: 700; text-decoration: none; }
.carousel-caption a:hover { text-decoration: underline; }
.carousel-caption span { display: block; margin-top: .16rem; color: #cdd9e4; font-size: .82rem; }
.carousel-controls { grid-area: 1 / 2; display: flex; gap: .23rem; }
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #677f95;
  background: transparent;
  color: white;
}
.carousel-controls button:hover { background: #304b64; border-color: #b7c9db; }
.carousel-controls svg { width: 1.2rem; height: 1.2rem; }
.carousel-bar :focus-visible { outline-color: var(--amber); outline-offset: 2px; }
.carousel-pause-icon, .hero-carousel[data-playing] .carousel-play-icon { display: none; }
.hero-carousel[data-playing] .carousel-pause-icon { display: block; }

.services { background: white; }
.service-featured { display: grid; gap: 2rem 1.65rem; }
.service-feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.service-feature > div { padding-block: 1.15rem .4rem; }
.service-feature h3 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.service-feature p, .service-row p { margin-top: .48rem; max-width: 53ch; }
.service-detail { color: var(--subtle); font-size: .94rem; }
.button.service-quote {
  min-height: 2.75rem;
  margin-top: .85rem;
  padding: .52rem .9rem;
  border-color: var(--rust);
  background: transparent;
  color: var(--rust);
}
.button.service-quote:hover { background: var(--rust); color: white; }
.service-list { display: grid; column-gap: clamp(1.8rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3.4rem); }
.service-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}
.service-row img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.service-row:last-child { border-bottom: 1px solid var(--line); }

.company { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.company-grid, .process-grid, .contact-grid { display: grid; gap: 1.6rem 3.2rem; }
.company-copy { max-width: 54ch; }
.company-copy p { margin-bottom: 1rem; font-size: clamp(1rem, 1.5vw, 1.1rem); }
.company-copy .company-location { display: grid; gap: .4rem; margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.company-location strong { color: var(--rust); font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; }
.process { background: white; }
.process h2 { max-width: 9ch; }
.process-grid > div > p:last-child { max-width: 30ch; margin-top: 1rem; color: var(--subtle); }
.phases { margin: .05rem 0 0; padding: 0; list-style: none; counter-reset: phase; }
.phases li {
  counter-increment: phase;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: .7rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.phases li:last-child { border-bottom: 1px solid var(--line); }
.phases li::before { content: counter(phase, decimal-leading-zero); color: var(--rust); font-weight: 700; }
.phases li p { margin-top: .38rem; color: var(--subtle); }
.gallery { border-top: 1px solid var(--line); }
.gallery-grid { display: grid; gap: 1.5rem; }
.gallery figure { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.gallery figure img { width: 100%; aspect-ratio: 4 / 3; height: 100%; object-fit: cover; background: var(--line); }
.gallery figcaption { padding-top: .65rem; }
.gallery figcaption span { display: block; color: var(--rust); font-size: .875rem; font-weight: 700; }
.gallery figcaption h3 { margin-top: .2rem; font-size: 1.65rem; }

.contact { background: var(--navy); color: white; }
.contact .section-label { color: var(--amber); }
.contact h2 { color: white; max-width: 11ch; }
.contact-intro { max-width: 36ch; margin-top: 1rem; color: #e3eaf1; font-size: 1.1rem; }
.contact :focus-visible, .footer :focus-visible { outline-color: var(--amber); }
.quote-checklist {
  margin: .9rem 0 1.25rem;
  padding-inline-start: 1.22rem;
  color: #e3eaf1;
}
.quote-checklist li { padding-inline-start: .2rem; }
.quote-checklist li + li { margin-top: .25rem; }
.quote-checklist li::marker { color: var(--amber); }
.quote-channels { gap: .4rem 1.35rem; }
.button-whatsapp, .whatsapp-float { background: #16663e; color: white; }
.button-whatsapp:hover, .whatsapp-float:hover { background: #104c2e; }
.button-whatsapp { gap: .55rem; }
.button-whatsapp svg { flex-shrink: 0; }
.quote-panel {
  align-self: center;
  padding: clamp(1.25rem, 3.6vw, 2.45rem);
  border-top: 3px solid #16663e;
  background: var(--paper);
  color: var(--ink);
}
.quote-panel h3 { font-size: clamp(1.9rem, 4.4vw, 2.65rem); }
.quote-panel > p { max-width: 39ch; margin-top: .65rem; color: var(--subtle); }
.quote-choice { margin-top: 1.18rem; }
.quote-choice label { display: block; font-weight: 650; }
.quote-choice label span { color: var(--subtle); font-weight: 400; }
.quote-panel .button { margin-top: 1.15rem; }
.whatsapp-float {
  display: grid;
  place-items: center;
  position: fixed;
  z-index: 3;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.4rem;
  height: 3.4rem;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(0 0 0 / .19);
  transition: background-color 160ms ease;
}
.whatsapp-float svg { width: 1.65rem; height: 1.65rem; }
.whatsapp-float:focus-visible { outline-color: #206ede; }

.contact-form { padding: clamp(1rem, 3vw, 2rem); background: white; color: var(--ink); }
.contact :is(.contact-form, .quote-panel) :focus-visible { outline-color: #186ca4; }
.form-heading { font: 700 1.8rem/1 var(--display); color: var(--navy); }
.form-help { margin-top: .4rem; color: var(--subtle); font-size: .92rem; }
.form-grid { display: grid; column-gap: 1rem; margin-top: .65rem; }
.contact-form label { display: block; margin-top: .75rem; font-size: .91rem; font-weight: 650; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea, .quote-choice select {
  width: 100%; padding: .6rem .62rem; margin-top: .25rem; border: 1px solid #77828b; border-radius: 0;
  color: var(--ink); background: white; font-size: 1rem;
}
.contact-form select, .quote-choice select {
  appearance: none;
  background: white url("/select-chevron.svg") no-repeat right .72rem center / .72rem;
  padding-right: 1.9rem;
}
.contact-form textarea { resize: vertical; }
.consent { display: flex; align-items: start; gap: .55rem; margin: .85rem 0 1rem; }
.consent input { width: 1.08rem; height: 1.08rem; margin: .2rem 0 0; flex-shrink: 0; accent-color: var(--rust); }
.consent label { margin: 0; font-weight: 500; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status:not(:empty) { border-left: 3px solid var(--rust); padding: .35rem .75rem; margin-top: .8rem; }
.contact-form button:disabled { opacity: .78; cursor: wait; }

.footer { background: #0c1d30; color: #d9e1e9; }
.footer-main { display: grid; gap: 1.25rem 2rem; padding-block: 2.1rem; }
.footer .brand > span { color: white; }
.footer .brand > span > span { color: var(--amber); }
.footer .brand img { border-radius: 50%; }
.footer-main > div > p { padding-top: .55rem; }
.footer-main nav, .footer-main address { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.footer-main nav a { text-decoration: none; font-weight: 600; }
.footer-main nav a:hover { text-decoration: underline; }
.footer address a { width: fit-content; overflow-wrap: anywhere; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid #3a4e60;
  font-size: .88rem;
}
.footer:has(+ .whatsapp-float) .footer-bottom { padding-inline-end: 3.2rem; }

.simple-page { background: white; min-height: 45vh; }
.simple-page h1 { font-size: clamp(2.65rem, 7vw, 5rem); }
.simple-page h2 { margin-top: 1.5rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.simple-page p:not(.section-label) { max-width: 63ch; margin-top: .75rem; }
.simple-page .actions, .simple-page .underlink { margin-top: 1rem; }

@media (max-width: 23rem) {
  .menu-toggle span { display: none; }
}
@media (min-width: 23rem) {
  .hero-slogan span { display: block; }
}
@media (min-width: 33rem) {
  .service-row { grid-template-columns: 132px minmax(0, 1fr); gap: 1.1rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 40rem) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid figure:first-child { grid-column: span 2; }
  .gallery-grid figure:first-child img { aspect-ratio: 16 / 8; }
}
@media (min-width: 46rem) {
  .service-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1.5fr 1fr; gap: 2rem; }
  .footer-main { grid-template-columns: 1.35fr 1fr 1fr; }
  .footer-main address { flex-direction: column; }
}
@media (width < 55rem) {
  .carousel-bar { position: static; padding: 0; }
  .carousel-controls { position: absolute; top: .6rem; left: .6rem; padding: .22rem; background: var(--navy); }
  .carousel-caption { position: absolute; inset: auto 0 0; padding: .55rem 4.6rem .55rem .85rem; background: var(--navy); }
}
@media (width < 55rem) and (scripting: enabled) {
  .topbar:not([data-enhanced]) .top-nav { display: none; }
  .menu-toggle[hidden] { display: inline-flex !important; visibility: hidden; }
}
@media (min-width: 55rem) {
  .topbar { min-height: 5rem; flex-wrap: nowrap; gap: 0 1rem; }
  .header .brand { gap: .48rem; }
  .header .brand > span { font-size: 1.69rem; }
  .header .brand img { width: 2.65rem; }
  .header-cta { min-height: 3.2rem; padding: .72rem 1.22rem; margin-left: 0; }
  .header-cta span:first-child { display: none; }
  .header-cta span:last-child { display: inline; }
  .menu-toggle { display: none; }
  .topbar .top-nav, .topbar[data-enhanced] .top-nav { display: flex; flex-basis: auto; justify-content: center; order: 0; padding: 0; border: 0; gap: clamp(.7rem, 2vw, 2rem); }
  .hero { grid-template-columns: 45fr 55fr; }
  .hero-copy { padding-right: .8rem; }
  .hero h1 { font-size: clamp(3.45rem, 6.1vw, 5.85rem); }
  .carousel-viewport { height: 100%; min-height: clamp(29rem, 41vw, 39rem); aspect-ratio: auto; }
  .carousel-bar { inset: auto .9rem .9rem; padding-inline: .8rem; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: minmax(115px, 27%) minmax(0, 1fr); }
  .service-row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .company-grid, .process-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .company-copy { margin-top: .18rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
@media (min-width: 64rem) {
  .gallery-grid { grid-template-columns: 1.55fr 1fr; gap: 1.35rem 1.5rem; }
  .gallery-grid figure:first-child { grid-column: auto; grid-row: span 2; }
  .gallery-grid figure:first-child img { aspect-ratio: auto; }
  .gallery-grid figure:not(:first-child) img { aspect-ratio: 16 / 8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
