/* =========================================================
   TOKENS — change --accent to rebrand the whole site
   ========================================================= */
:root {
  --bg: #f6f3ee;
  --bg-soft: #ece6dc;
  --surface: #ffffff;
  --ink: #1d1b18;
  --ink-2: #4a4640;
  --muted: #7a746b;
  --line: #ddd5c8;
  --dark: #1d1b18;
  --dark-2: #2a2723;
  --accent: #e8772e;
  --accent-dark: #c95f1a;
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(29, 27, 24, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 100%; height: 100%; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(232, 119, 46, 0.35); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--light { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, 0.24); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .3s, box-shadow .3s, color .3s; color: #fff; }
.header.is-solid { background: rgba(246, 243, 238, 0.94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; padding: 8px; }
.logo__mark svg { fill: #fff; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.logo__text small { font-size: 12px; opacity: .75; }
.menu { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.menu a { opacity: .85; transition: opacity .2s, color .2s; }
.menu a:hover { opacity: 1; color: var(--accent); }
.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; fill: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; padding: 130px 0 70px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 18, 15, .88) 0%, rgba(20, 18, 15, .6) 50%, rgba(20, 18, 15, .15) 100%), linear-gradient(0deg, rgba(20, 18, 15, .6), transparent 50%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { position: relative; z-index: 2; }
.hero__kicker { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(232, 119, 46, .9); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.hero__title { font-family: var(--head); font-weight: 900; font-size: clamp(34px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -0.03em; max-width: 17ch; margin-bottom: 22px; }
.hero__title span { color: #ffb27d; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); max-width: 52ch; opacity: .9; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 54px; }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22); }
.trust li { display: flex; flex-direction: column; }
.trust b { font-family: var(--head); font-size: 28px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.trust li > span { font-size: 14px; opacity: .8; }
.stars { font-style: normal; color: #ffc24b; font-size: .6em; letter-spacing: 1px; vertical-align: middle; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--dark { background: var(--dark); color: #f3efe8; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head--left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section__head h2, .contact h2 { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 17px; }
.section--dark .section__head p, .section--dark .contact p { color: #b8b0a4; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 0 var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:hover::after { transform: scaleX(1); }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: #fdebdc; padding: 13px; margin-bottom: 20px; }
.service__icon svg { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-family: var(--head); font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15.5px; }

/* ---------- before / after ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.compare__handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: 4px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; pointer-events: none; }
.compare__tag--before { left: 16px; background: rgba(20, 18, 15, .75); color: #fff; }
.compare__tag--after { right: 16px; background: var(--accent); color: #fff; }
.compare figcaption, .gallery figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 8px; background: rgba(20, 18, 15, .75); color: #fff; font-size: 13.5px; pointer-events: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.process__media { position: relative; border-radius: var(--radius); }
.process__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.process__badge { position: absolute; right: -20px; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--radius); background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.process__badge b { font-family: var(--head); font-size: 44px; font-weight: 900; line-height: 1; }
.process__badge span { font-size: 14px; font-weight: 600; line-height: 1.25; }
.steps { list-style: none; display: grid; gap: 10px; }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li > span { font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--accent); padding-top: 4px; min-width: 28px; }
.steps h3 { font-family: var(--head); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--surface); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 0 var(--line); }
.review .stars { font-size: 18px; }
.review p { font-size: 16.5px; color: var(--ink-2); flex: 1; }
.review footer { display: flex; flex-direction: column; font-size: 14.5px; }
.review footer span { color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; margin: 30px 0; display: grid; gap: 18px; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list small { color: #8f877b; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.contact__list a, .contact__list span { font-family: var(--head); font-size: 22px; font-weight: 700; }
.contact__list a:hover { color: var(--accent); }
.areas__title { font-weight: 600; margin-bottom: 12px; color: #f3efe8 !important; }
.areas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 6px 12px; border-radius: 999px; background: var(--dark-2); font-size: 14px; color: #d6cfc4; }

.form { background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font: 400 16px var(--body); color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 119, 46, .18); }
.form .is-invalid { border-color: #d64545; }
.form__consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: var(--muted) !important; }
.form__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.form__consent.is-invalid { color: #d64545 !important; }
.form__status { font-size: 14.5px; font-weight: 600; color: var(--accent-dark); min-height: 1.3em; }

/* ---------- footer ---------- */
.footer { background: #141210; color: #9d968b; font-size: 14px; padding: 28px 0 90px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__inner > div { display: flex; gap: 18px; flex-wrap: wrap; }
.footer b { color: #f3efe8; }

/* ---------- floating call + concept label ---------- */
.call-fab { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: none; place-items: center; padding: 16px; box-shadow: 0 10px 26px rgba(232, 119, 46, .5); animation: ring 3s infinite; }
.call-fab svg { fill: #fff; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-12deg); } 92% { transform: rotate(12deg); } 95% { transform: rotate(-8deg); } }
.concept-badge { position: fixed; left: 12px; bottom: 12px; z-index: 45; padding: 6px 12px; border-radius: 8px; background: rgba(20, 18, 15, .85); color: #fff; font-size: 12px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .menu { display: none; }
  .services, .reviews { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 760px) {
  .header__phone span, .header__cta .btn { display: none; }
  .header__phone { width: 42px; height: 42px; border-radius: 10px; background: var(--accent); justify-content: center; }
  .header__phone svg { fill: #fff; }
  .services, .reviews, .compare-grid, .gallery, .process, .contact, .form__row { grid-template-columns: 1fr; }
  .gallery figure:nth-child(n+2) { display: none; }
  .hero { padding-bottom: 48px; }
  .hero::before { background: linear-gradient(0deg, rgba(20, 18, 15, .92) 0%, rgba(20, 18, 15, .7) 55%, rgba(20, 18, 15, .35) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .trust { gap: 18px 28px; }
  .trust b { font-size: 24px; }
  .process__badge { right: 12px; }
  .call-fab { display: grid; }
  .concept-badge { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
