/* ===========================================================
   DL HANDYMAN — modern, clean (blue + neutrals)
   =========================================================== */

html { overflow-x: hidden; }

:root {
  /* Brand blues */
  --blue-900: #0e2f57;
  --blue-800: #12406f;
  --blue-700: #16518c;
  --blue-600: #1c66ad;
  --blue-500: #2a7fd1;
  --blue-300: #8fc0ef;
  --blue-100: #e8f1fb;
  --blue-050: #f3f8fd;

  /* Accent (from logo) */
  --yellow: #f4c328;
  --yellow-600: #d9a90f;

  /* Neutrals — cool slate */
  --ink: #141a22;
  --slate-800: #232c38;
  --slate-700: #3a4654;
  --slate-500: #647183;
  --slate-400: #8a95a4;
  --line: #e3e8ef;
  --line-soft: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20,26,34,.06), 0 2px 6px rgba(20,26,34,.05);
  --shadow-md: 0 4px 14px rgba(20,26,34,.08), 0 12px 32px rgba(20,26,34,.07);
  --shadow-lg: 0 12px 40px rgba(14,47,87,.16);

  --maxw: 1180px;
  --gutter: 24px;

  --font-head: "Barlow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* section rhythm */
section { padding-block: clamp(56px, 8vw, 104px); }
/* el header es fijo: deja aire para que el título no quede tapado al navegar */
:where(main, section)[id] { scroll-margin-top: 88px; }

/* ============ Reveal on scroll (animaciones de aparición) ============ */
/* El estado oculto solo aplica cuando JS activó .js-anim, así sin JS
   (o con "reduce motion") todo el contenido se ve normal, sin riesgo. */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lead { color: var(--slate-700); font-size: clamp(17px, 1.6vw, 19px); max-width: 56ch; text-wrap: pretty; }

/* ============ Buttons ============ */
.btn {
  --bg: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(28,102,173,.32); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(28,102,173,.4); }
.btn-yellow { background: var(--yellow); color: var(--blue-900); box-shadow: 0 6px 18px rgba(217,169,15,.3); }
.btn-yellow:hover { background: #ffd23f; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue-300); transform: translateY(-2px); }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--slate-700);
  position: relative; padding-block: 6px;
}
.nav a:hover { color: var(--blue-700); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--yellow);
  transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }

/* Logo (text only) */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b {
  font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.logo-text span {
  font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--slate-400); margin-top: 3px; white-space: nowrap;
}

/* Lang toggle */
.lang {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  background: #fff;
}
.lang button {
  border: 0; background: transparent; cursor: pointer; color: var(--slate-500);
  padding: 7px 13px; font: inherit; transition: background .15s, color .15s;
}
.lang button.active { background: var(--blue-600); color: #fff; }

/* Mobile menu button */
.menu-btn { display: none; background: #fff; border: 1.5px solid var(--line); border-radius: 11px; width: 44px; height: 44px; cursor: pointer; place-items: center; color: var(--slate-700); }
.menu-btn svg { width: 22px; height: 22px; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue-050), #fff 70%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(42,127,209,.10), transparent 70%),
    radial-gradient(40% 40% at 5% 20%, rgba(244,195,40,.10), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.025em; color: var(--ink);
  text-wrap: balance; margin-bottom: 20px;
}
.hero h1 .hl { color: var(--blue-600); position: relative; white-space: nowrap; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--slate-700);
}
.badge svg { width: 19px; height: 19px; color: var(--blue-600); }

/* Hero figure */
.hero-figure { position: relative; }
.hero-figure .ph { aspect-ratio: 4/5; border-radius: var(--radius-lg); }
.free-tag {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--yellow); color: var(--blue-900);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; line-height: .98;
  padding: 16px 20px; border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
}
.free-tag b { display: block; font-size: 30px; }
.free-tag span { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.call-chip {
  position: absolute; right: -14px; top: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.call-chip .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.call-chip .ico svg { width: 20px; height: 20px; }
.call-chip small { display: block; font-size: 11.5px; color: var(--slate-500); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.call-chip b { font-family: var(--font-head); font-size: 18px; color: var(--ink); }

/* ============ Placeholder visuals ============ */
.ph {
  position: relative; width: 100%;
  border-radius: var(--radius);
  background-color: var(--blue-050);
  background-image: repeating-linear-gradient(135deg, rgba(28,102,173,.07) 0 12px, rgba(28,102,173,0) 12px 24px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: "Public Sans", monospace;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--slate-400);
  background: rgba(255,255,255,.78);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  display: none;
}
/* Foto real dentro del recuadro: cubre todo el espacio del .ph */
.ph > img, .ph > picture img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ============ Trust strip ============ */
.trust { background: var(--blue-900); color: #fff; padding-block: 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.trust-item:last-child { border-right: 0; }
.trust-item .ti-ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--yellow); flex: none; }
.trust-item .ti-ico svg { width: 21px; height: 21px; }
.trust-item b { font-family: var(--font-head); font-weight: 700; font-size: 16px; display: block; }
.trust-item span { font-size: 13.5px; color: rgba(255,255,255,.66); }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about-fig { position: relative; }
.about-fig .ph { aspect-ratio: 1/1; border-radius: var(--radius-lg); }
.about-fig .dots { position: absolute; right: -16px; top: -16px; width: 120px; height: 120px; z-index: -1;
  background-image: radial-gradient(var(--blue-300) 2px, transparent 2px); background-size: 16px 16px; opacity: .5; border-radius: 12px; }
.about-list { display: grid; gap: 16px; margin-top: 26px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; list-style: none; }
.about-list .chk { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; margin-top: 2px; }
.about-list .chk svg { width: 15px; height: 15px; }
.about-list b { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; }
.about-list p { margin: 2px 0 0; color: var(--slate-500); font-size: 15px; }
ul { padding: 0; margin: 0; }

/* ============ Services ============ */
.services { background: var(--bg-soft); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.svc-ico {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(150deg, var(--blue-100), var(--blue-050));
  color: var(--blue-700); display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid var(--blue-100);
}
.svc-ico svg { width: 25px; height: 25px; }
.svc-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 5px; }
.svc-card p { margin: 0; font-size: 14.5px; color: var(--slate-500); line-height: 1.5; }
.svc-card.more { grid-column: 1 / -1; }
.svc-card.more {
  background: linear-gradient(155deg, var(--blue-700), var(--blue-900));
  border-color: transparent; color: #fff;
}
.svc-card.more .svc-ico { background: rgba(255,255,255,.12); border-color: transparent; color: var(--yellow); }
.svc-card.more h3 { color: #fff; }
.svc-card.more p { color: rgba(255,255,255,.72); }

/* ============ Gallery ============ */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal-item { border-radius: var(--radius); overflow: hidden; position: relative; }
.gal-item .ph { aspect-ratio: 4/3; border-radius: var(--radius); }
.gal-item.tall .ph { aspect-ratio: 4/5; }
.gal-cap {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--slate-700);
  padding: 7px 13px; border-radius: 999px;
}
.gal-note { text-align: center; margin-top: 26px; color: var(--slate-500); font-size: 15px; }

/* ============ Areas ============ */
.areas { background: var(--bg-soft); }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.area-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}
.area-chip svg { width: 16px; height: 16px; color: var(--blue-600); }
.areas-map { position: relative; }
.areas-map iframe {
  width: 100%; height: 460px; display: block;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.cc {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.cc:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.cc .cc-ico { width: 50px; height: 50px; border-radius: 13px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex: none; }
.cc.yellow .cc-ico { background: #fdf2cf; color: var(--yellow-600); }
.cc .cc-ico svg { width: 23px; height: 23px; }
.cc small { display: block; font-size: 12.5px; color: var(--slate-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cc b { font-family: var(--font-head); font-size: clamp(16px, 4.4vw, 20px); color: var(--ink); overflow-wrap: anywhere; }
.cc > span:last-child { min-width: 0; }

/* Form */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.form-card .fc-sub { color: var(--slate-500); font-size: 15px; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--slate-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e0563b; box-shadow: 0 0 0 4px rgba(224,86,59,.12); }
.field .err { display: none; color: #c8432a; font-size: 13px; margin-top: 6px; font-weight: 600; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--slate-400); margin: 14px 0 0; text-align: center; }
.form-success {
  display: none; text-align: center; padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ed; color: #1f9d57; display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .ok svg { width: 32px; height: 32px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--slate-500); margin: 0 auto; max-width: 38ch; }

.form-error {
  display: none; text-align: center; padding: 20px 0;
}
.form-error.show { display: block; }
.form-error .warn { width: 64px; height: 64px; border-radius: 50%; background: #fdecec; color: #d0402a; display: grid; place-items: center; margin: 0 auto 16px; }
.form-error .warn svg { width: 32px; height: 32px; }
.form-error h3 { margin-bottom: 8px; }
.form-error p { color: var(--slate-500); margin: 0 auto 18px; max-width: 38ch; }

/* ── Botón: estado "Enviando…" ───────────────────────────────── */
.btn-loading { display: none; align-items: center; gap: 10px; }
.btn.is-loading { pointer-events: none; opacity: .95; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; }
.spinner {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Aparición de éxito / error ──────────────────────────────── */
.form-success.show, .form-error.show { animation: formReveal .4s ease both; }
@keyframes formReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Palomita que se dibuja ──────────────────────────────────── */
.form-success .ok { transform: scale(.5); opacity: 0; }
.form-success.show .ok { animation: okPop .5s .05s cubic-bezier(.18,.7,.3,1.35) both; }
@keyframes okPop { to { transform: scale(1); opacity: 1; } }
.ok-mark { width: 34px; height: 34px; }
.ok-mark path {
  fill: none; stroke: currentColor; stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 32; stroke-dashoffset: 32;
}
.form-success.show .ok-mark path { animation: okDraw .45s .32s ease forwards; }
@keyframes okDraw { to { stroke-dashoffset: 0; } }

/* ── Menos movimiento: sin animaciones, pero sí feedback ─────── */
@media (prefers-reduced-motion: reduce) {
  .form-success.show, .form-error.show,
  .form-success.show .ok, .form-success.show .ok-mark path { animation: none; }
  .form-success .ok { transform: none; opacity: 1; }
  .ok-mark path { stroke-dashoffset: 0; }
}

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo-text b { color: #fff; }
.site-footer .logo-text span { color: rgba(255,255,255,.5); }
.footer-about { margin-top: 18px; font-size: 14.5px; max-width: 38ch; }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { list-style: none; }
.footer-col a, .footer-col span { font-size: 14.5px; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-bottom .es { color: var(--yellow); font-weight: 600; }

/* honeypot — fuera de pantalla, invisible para usuarios */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Floating mobile call bar ============ */
.callbar { display: none; }
.callbar.callbar--visible { transform: translateY(0); }

/* ============ Responsive ============ */

/* ── Tablet landscape + narrow desktop (< 980px) ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 32px 36px; }
  .hero-figure { margin-top: 24px; }
  .hero-figure .ph {
    display: block;
    aspect-ratio: auto;
    height: 210px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(14,47,87,.12);
  }
  .hero-figure .ph img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 40%;
    display: block;
  }
  .call-chip { display: none; }
  .free-tag {
    left: 12px; bottom: 14px;
    padding: 10px 14px; border-radius: 12px;
    transform: rotate(-3deg);
  }
  .free-tag b { font-size: 20px; }
  .free-tag span { font-size: 11px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .about-grid, .areas-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-fig, .areas-map { max-width: 480px; }
  .about-fig .dots { display: none; }
  .about-fig .ph { aspect-ratio: 4/3; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet portrait + mobile: hamburger + callbar (< 860px) ── */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 8px var(--gutter) 16px; margin: 0;
  }
  .nav.open a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav.open a::after { display: none; }
  .menu-btn { display: grid; }
  .header-actions .btn-desktop { display: none; }
  .header-actions { margin-left: auto; }
  .header-inner { gap: 12px; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(20,26,34,.08);
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .callbar .btn { display: flex; padding-block: 15px; font-size: 15px; border-radius: 14px; justify-content: center; }
}

/* ── Mobile (< 760px) ── */
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Small mobile (< 460px) ── */
@media (max-width: 460px) {
  .wrap { padding-inline: 18px; }
  .svc-grid, .gal-grid, .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .trust-item:last-child { border-bottom: 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-badges { gap: 8px 16px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards .cc { padding: 15px 16px; gap: 13px; }
  .cc .cc-ico { width: 44px; height: 44px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ============ Reviews (sección en la página principal) ============ */
.reviews { background: var(--bg-soft); }

/* resumen: promedio + estrellas + total */
.rev-summary {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px 14px; margin: -14px 0 36px;
}
.rs-avg { font-family: var(--font-head); font-weight: 800; font-size: 42px; line-height: 1; color: var(--ink); }
.rev-summary .rev-stars svg { width: 22px; height: 22px; }
.rs-count { color: var(--slate-500); font-size: 15px; }

/* mosaico: columnas CSS aguantan reseñas de distinto largo */
.rev-grid { columns: 3; column-gap: 18px; }
.rev-card {
  break-inside: avoid; margin: 0 0 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.rev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rev-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.rev-who { min-width: 0; }
.rev-who b { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; display: block; }
.rev-who span { font-size: 13px; color: var(--slate-500); }
.rev-src {
  margin-left: auto; flex: none;
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px; color: var(--slate-500);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.rev-stars { display: inline-flex; gap: 3px; }
.rev-stars svg { width: 18px; height: 18px; stroke-width: 1.5; }
.rev-stars .s-on svg { fill: var(--yellow); stroke: var(--yellow-600); }
.rev-stars .s-off svg { fill: none; stroke: var(--slate-400); }
.rev-card blockquote { margin: 10px 0 0; color: var(--slate-700); font-size: 15.5px; line-height: 1.6; }
.rev-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

@media (max-width: 980px) { .rev-grid { columns: 2; } }
@media (max-width: 760px) {
  .rev-grid { columns: 1; }
  .rs-avg { font-size: 34px; }
}

/* ============ Página de reseña (review.html) ============ */
.header-inner--bare .header-actions { margin-left: auto; }
.review-body { padding-bottom: 0 !important; } /* sin callbar móvil en esta página */
.review-main {
  max-width: 720px; margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(36px, 6vw, 64px);
}
.review-hero { text-align: center; margin-bottom: 30px; }
.review-hero .eyebrow { justify-content: center; }
.review-hero h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.review-hero .lead { margin-inline: auto; }

.gcard {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.gcard-txt b { font-family: var(--font-head); font-weight: 700; font-size: 17px; display: block; }
.gcard-txt p { margin: 3px 0 0; color: var(--slate-500); font-size: 14.5px; }
.or-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--slate-400); font-size: 14px; margin-block: 22px;
}
.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
/* El display:flex de arriba anula el atributo `hidden`; esto lo restablece.
   Mientras GOOGLE_REVIEW_URL esté vacío en review.js, la tarjeta y el
   separador quedan ocultos. Al configurar el enlace, review.js les quita
   `hidden` y vuelven a mostrarse automáticamente. */
.gcard[hidden], .or-divider[hidden], .rev-summary[hidden] { display: none; }

fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.field legend {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--slate-700); margin-bottom: 7px; padding: 0;
}
.stars-input { display: inline-flex; gap: 6px; }
.stars-input label { cursor: pointer; color: var(--slate-400); transition: transform .12s ease, color .12s ease; }
.stars-input label svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; display: block; }
.stars-input label:hover { transform: scale(1.1); }
.stars-input label.on { color: var(--yellow); }
.stars-input label.on svg { fill: var(--yellow); stroke: var(--yellow-600); }
.stars-input input:focus-visible + label { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.review-back { text-align: center; margin: 28px 0 0; font-size: 14.5px; }
.review-back a { color: var(--blue-600); font-weight: 600; }
.review-back a:hover { text-decoration: underline; }
.footer-bottom--bare { border-top: 0; margin-top: 0; padding-top: 0; justify-content: center; }

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