/* ============================================================
   Marquez Painting & Construction LLC — hoja de estilos
   Paleta: azul marino profundo, blanco hueso, acento cobre.
   ============================================================ */

:root {
  --navy-900: #101c2e;
  --navy-800: #16283f;
  --navy-700: #1e3550;
  --navy-100: #eaf0f6;
  --copper-500: #c9803a;
  --copper-600: #b06d2c;
  --copper-100: #f8ecdf;
  --ink: #22303f;
  --muted: #5b6b7b;
  --bg: #fbfaf7;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(16, 28, 46, 0.07);
  --shadow-md: 0 12px 32px rgba(16, 28, 46, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 28, 46, 0.18);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy-800); }

h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

a { color: inherit; }

.ic { width: 1em; height: 1em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--copper-500); color: #fff; box-shadow: 0 8px 22px rgba(201, 128, 58, .35); }
.btn-primary:hover { background: var(--copper-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201, 128, 58, .45); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-800); color: #dbe5ef; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 24px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item .ic { color: var(--copper-500); }
.topbar-phone { text-decoration: none; font-weight: 600; color: #fff; transition: color .15s; }
.topbar-phone:hover { color: var(--copper-500); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); border-color: rgba(16,28,46,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-800); }
.brand-mark { width: 56px; height: 56px; color: var(--navy-800); flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 4px rgba(15,36,56,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.14rem; letter-spacing: .06em; }
.brand-text small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ink); position: relative; transition: color .15s; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--copper-500); transition: width .2s; }
.nav-links a:not(.btn):hover { color: var(--navy-800); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--navy-800); transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero.jpg') center 30% / cover no-repeat;
  transform: scale(1.04); animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.09) translateY(-12px); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(13, 23, 38, .88) 0%, rgba(13, 23, 38, .62) 45%, rgba(13, 23, 38, .18) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 72px; color: #fff; max-width: 1140px; width: 100%; }
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #f0c896; background: rgba(201, 128, 58, .18); border: 1px solid rgba(240, 200, 150, .35);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-sub { max-width: 540px; font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d9e2ec; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-trust { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: #e8eef5; }
.hero-trust .ic { color: var(--copper-500); font-size: 1.1rem; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--navy-100); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper-600); margin-bottom: 12px;
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(16,28,46,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
  background: var(--copper-100); color: var(--copper-600);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Collage de trabajos (diagonal) ---------- */
.section-work { background: var(--navy-800); overflow: hidden; }
.section-work .section-head h2 { color: #fff; }
.section-work .section-sub { color: #b7c6d6; }
.work-diagonal {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10px 0 110px;
}
.work-tile {
  --drop: calc(var(--i) * 54px);
  position: relative; width: 255px; height: 330px; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
  isolation: isolate;
  transform: translateY(var(--drop)) rotate(-4deg);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), box-shadow .38s;
}
.work-diagonal > .reveal + .reveal { margin-left: -56px; }
.work-tile:hover {
  transform: translateY(calc(var(--drop) - 16px)) rotate(-1deg);
  box-shadow: 0 28px 56px rgba(0, 0, 0, .5);
  z-index: 5;
}
.work-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.work-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(13, 23, 38, .82) 0%, rgba(13, 23, 38, .25) 42%, transparent 68%);
}
.work-tile:hover img { transform: scale(1.09); }
.work-label { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; }
.work-label strong { display: block; font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -0.01em; }
.work-label span {
  display: block; font-size: .82rem; color: #d3dee9; margin-top: 2px;
  max-height: 3em; opacity: 1; overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease;
}
.work-label::before {
  content: ''; display: block; width: 30px; height: 3px; border-radius: 2px;
  background: var(--copper-500); margin-bottom: 8px;
  transition: width .3s ease;
}
.work-tile:hover .work-label::before { width: 52px; }

/* Tarjetas seleccionables (visor) */
.work-tile { cursor: pointer; }
.work-tile:focus-visible { outline: 3px solid var(--copper-500); outline-offset: 4px; }

/* Comparador antes/después (dentro de cada tarjeta y del visor) */
.wt-before { position: absolute; inset: 0; z-index: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.wt-before img { filter: saturate(.38) sepia(.34) brightness(.82) contrast(.94); }
/* Pares reales: no aplicar filtro "antiguo" sobre la foto de antes */
.wt-real .wt-before img, .wt-real > .wt-before img { filter: none; }
#lbCmp.wt-real .wt-before img { filter: none; }
.wt-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 2;
  width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, .4); pointer-events: none;
}
.wt-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.lb-handle .wt-grip { width: 46px; height: 46px; }
.wt-tag {
  position: absolute; top: 12px; z-index: 3; padding: 5px 11px;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; border-radius: 999px; pointer-events: none;
  background: rgba(13, 23, 38, .72); backdrop-filter: blur(4px);
}
.wt-tag-b { left: 12px; }
.wt-tag-a { right: 12px; background: rgba(201, 128, 58, .92); }
.work-tile { touch-action: pan-y; cursor: ew-resize; }
.work-hint { text-align: center; color: #8fa3b8; font-size: .85rem; margin-top: 120px; }

/* ---------- Visor ampliado (lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { visibility: visible; opacity: 1; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 18, 30, .78); backdrop-filter: blur(8px);
}
.lightbox-card {
  position: relative; z-index: 2; margin: 0;
  display: grid; grid-template-columns: 1.25fr 1fr;
  width: min(920px, 100%); max-height: min(88vh, 640px);
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(26px) scale(.96);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.lightbox.open .lightbox-card { transform: translateY(0) scale(1); }
.lightbox-img-wrap { position: relative; min-height: 280px; touch-action: pan-y; }
.lightbox-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-text {
  padding: 38px 34px; display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; overflow-y: auto;
}
.lightbox-text h3 { font-size: 1.5rem; }
.lightbox-text p:not(.eyebrow) { color: var(--muted); font-size: .98rem; }
.lightbox-text .btn { margin-top: auto; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(16, 28, 46, .55); color: #fff; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: background .2s, transform .2s;
}
.lightbox-close:hover { background: var(--copper-500); transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(16, 28, 46, .55); color: #fff; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s, opacity .2s;
}
.lb-nav:hover { background: var(--copper-500); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-nav[hidden] { display: none; }
.lb-count {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 4;
  background: rgba(16, 28, 46, .6); color: #fff; backdrop-filter: blur(4px);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px; pointer-events: none;
}
.lb-count[hidden] { display: none; }

/* Galería del proyecto dentro del visor */
.lb-gallery {
  grid-column: 1 / -1; display: flex; gap: 8px; padding: 10px 14px;
  overflow-x: auto; background: #f4f2ee; border-top: 1px solid rgba(16,28,46,.08);
  scrollbar-width: thin;
}
.lb-thumb {
  position: relative; flex: 0 0 auto; width: 66px; height: 50px; padding: 0;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: none; opacity: .7;
  transition: opacity .18s, border-color .18s, transform .18s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: 1; transform: translateY(-1px); }
.lb-thumb.active { border-color: var(--copper-500); opacity: 1; }
.lb-thumb:focus-visible { outline: 2px solid var(--copper-500); outline-offset: 2px; }
.lb-thumb-badge {
  position: absolute; right: 3px; bottom: 3px; z-index: 1;
  background: rgba(16,28,46,.72); color: #fff; border-radius: 4px;
  font-size: .58rem; font-weight: 700; letter-spacing: .04em; padding: 1px 4px;
  pointer-events: none;
}
/* modo foto: imagen única sin comparador */
.lightbox-img-wrap.lb-photo .wt-before,
.lightbox-img-wrap.lb-photo .wt-handle,
.lightbox-img-wrap.lb-photo .wt-tag { display: none; }
body.lb-open { overflow: hidden; }

/* ---------- Por qué nosotros ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 64px; }
.why-item { position: relative; padding-top: 8px; }
.why-num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 128, 58, .55); display: block; margin-bottom: 12px; line-height: 1;
}
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: var(--muted); font-size: .97rem; }

/* ---------- Estimador ---------- */
.estimator {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(16,28,46,.06);
}
.estimator-form { padding: 44px 40px; display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-weight: 700; font-size: .98rem; color: var(--navy-800); }
.field-label { display: flex; justify-content: space-between; align-items: baseline; }
.field-label output { font-family: var(--font-head); font-weight: 700; color: var(--copper-600); }

input[type="text"], input[type="tel"], select, textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid #d7dee6; border-radius: var(--radius-sm);
  background: var(--bg); width: 100%; transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--copper-500); box-shadow: 0 0 0 4px rgba(201,128,58,.15); }
textarea { resize: vertical; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* Slider */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--copper-500) var(--fill, 30%), #e3e9ef var(--fill, 30%));
  cursor: pointer; margin-top: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--copper-500); box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--copper-500);
}
.range-bounds { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }

/* Resultado */
.estimator-result {
  background: var(--navy-800); color: #fff; padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center;
}
.est-label { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9fb2c6; }
.est-label span { letter-spacing: 0; text-transform: none; font-weight: 500; }
.est-price {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; min-height: 1.2em;
}
.est-price.updating { animation: pricePulse .45s ease; }
@keyframes pricePulse { 0% { opacity: .35; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
.est-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.est-bar span { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--copper-500), #f0c896); transition: width .5s cubic-bezier(.22,1,.36,1); }
.est-note { font-size: .76rem; color: #8fa3b8; line-height: 1.55; }

/* ---------- Banner CTA ---------- */
.cta-banner {
  background:
    radial-gradient(1100px 300px at 15% 0%, rgba(201,128,58,.28), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 72px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #c4d2e0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-phone {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--copper-600);
  text-decoration: none; margin: 18px 0; letter-spacing: -0.01em;
}
.contact-phone:hover { text-decoration: underline; }
.contact-meta { color: var(--muted); }
.contact-form {
  background: var(--white); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(16,28,46,.06);
  display: flex; flex-direction: column; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #93a6ba; padding: 44px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand .brand-mark { width: 48px; height: 48px; color: #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.footer-brand strong { font-family: var(--font-head); letter-spacing: .06em; display: block; line-height: 1.1; }
.footer-brand small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #7e93a9; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #b9c8d8; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--copper-500); }
.footer-copy { width: 100%; text-align: center; margin: 18px 0 0; }
.footer-copy a { color: #b9c8d8; text-decoration: none; white-space: nowrap; }
.footer-copy a:hover { color: var(--copper-500); }

/* ---------- Testimonios ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--copper-500); display: flex; flex-direction: column; gap: 16px; transition: box-shadow .2s ease, transform .2s ease; }
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.review-stars { color: var(--copper-500); letter-spacing: 3px; font-size: 1rem; }
.review-card blockquote { font-size: .95rem; line-height: 1.65; color: var(--ink); flex: 1; }
.review-card figcaption strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy-900); }
.review-card figcaption span { font-size: .8rem; color: var(--muted); }

/* ---------- Botón flotante de llamada (solo móvil) ---------- */
.call-fab { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60; align-items: center; justify-content: center; background: var(--copper-500); color: var(--white); border-radius: 999px; padding: 16px; box-shadow: var(--shadow-lg); text-decoration: none; transition: transform .15s ease, background .15s ease; }
.call-fab:hover { background: var(--copper-600); transform: scale(1.05); }
.call-fab-label { display: none; }
body.lb-open .call-fab { display: none !important; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: #25D366; color: var(--white); border-radius: 999px; box-shadow: var(--shadow-lg); text-decoration: none; transition: transform .15s ease; }
.wa-fab:hover { transform: scale(1.06); }
body.lb-open .wa-fab { display: none !important; }

/* ---------- Areas We Serve ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--copper-500); }
.area-card h3 { font-family: var(--font-head); font-size: 1.08rem; margin: 0 0 8px; color: var(--navy-800); }
.area-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 980px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid #e6e9ed; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 24px; font-weight: 600; font-family: var(--font-head); color: var(--navy-800); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--copper-500); transition: transform .2s; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 24px 20px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ---------- Botones de contacto: SMS y WhatsApp ---------- */
.contact-actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sms { display: inline-flex; align-items: center; gap: 10px; background: #0A84FF; color: #fff; }
.btn-sms:hover { background: #0074e8; color: #fff; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fb457; color: #fff; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; align-items: flex-start; }
.contact-photos { font-size: .86rem; color: var(--muted); margin: 0 0 22px; max-width: 340px; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .work-tile { width: 225px; height: 300px; }
  .work-diagonal > .reveal + .reveal { margin-left: -62px; }
}
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .estimator { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-tile { --drop: calc(var(--i) * 36px); width: 190px; height: 260px; }
  .work-diagonal > .reveal + .reveal { margin-left: -52px; }
  .work-diagonal { padding-bottom: 80px; }
  .work-label strong { font-size: .86rem; }
  .work-label span { font-size: .74rem; }
  .work-hint { margin-top: 90px; }
}
@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .work-diagonal { flex-direction: column; align-items: stretch; gap: 16px; padding: 6px 0 20px; }
  .work-hint { margin-top: 20px; }
  .work-tile { --drop: 0px; width: 100%; height: 250px; transform: none; }
  .work-diagonal > .reveal + .reveal { margin-left: 0; }
  .work-tile:hover { transform: translateY(-6px); }
  .lightbox { padding: 12px; }
  .lightbox-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .lightbox-img-wrap { min-height: 0; height: 230px; }
  .lightbox-text { padding: 24px 20px; }
  .lb-gallery { padding: 8px 10px; }
  .lb-thumb { width: 58px; height: 44px; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: rgba(251,250,247,.98); backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .28s ease;
    border-bottom: 1px solid rgba(16,28,46,.08); z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(16,28,46,.07); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { min-height: 78vh; }
  .hero-trust { gap: 16px; }
  .estimator-form, .estimator-result { padding: 32px 24px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer { padding-bottom: 110px; }
  .call-fab { display: flex; }
  .wa-fab { bottom: 86px; }
}
