/* =========================================================
   Kochepo Constructora — estilos
   Paleta tomada de la presentación: rojo, negro y gris.
   ========================================================= */
:root {
  --red: #c8282d;
  --red-dark: #9e1c21;
  --black: #000;
  --ink: #141414;
  --gray-900: #1c1c1c;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #b8b8b8;
  --gray-100: #f3f3f3;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.accent { color: var(--red); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }

.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: .2s ease;
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--black); color: #fff; }
.btn--outline-white { border-color: #fff; color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--red); }

/* ---------- Topbar ---------- */
.topbar { background: var(--red); color: #fff; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__right { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar__item svg { width: 14px; height: 14px; fill: currentColor; }
a.topbar__item:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .2s;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* El logo PNG es cuadrado con fondo negro: se recorta a la franja del logotipo */
.nav__logo img { width: 210px; height: 50px; object-fit: cover; object-position: center; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) {
  color: #e6e6e6; text-decoration: none; font-weight: 500; font-size: .93rem; position: relative; padding: 6px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .2s;
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-current::after { width: 100%; }
.nav__links a.is-current { color: #fff; }
.nav__cta { padding: 10px 18px; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Diamantes decorativos (identidad de la presentación) ---------- */
.diamonds { position: absolute; pointer-events: none; }
.d { position: absolute; display: block; width: 150px; height: 150px; transform: rotate(45deg); }
.d--red { background: var(--red); }
.d--gray { background: var(--gray-300); }
.d--black { background: var(--black); }
.d--sm { width: 70px; height: 70px; }

.diamonds--hero { top: -60px; right: -60px; width: 420px; height: 320px; opacity: .9; }
.diamonds--hero .d:nth-child(1) { right: 150px; top: 20px; }
.diamonds--hero .d:nth-child(2) { right: 40px; top: 80px; opacity: .25; }
.diamonds--hero .d:nth-child(3) { right: 95px; top: 130px; border: 1px solid rgba(255,255,255,.1); }
.diamonds--hero .d:nth-child(4) { right: 260px; top: -10px; }

.diamonds--side { left: -70px; bottom: -40px; width: 260px; height: 260px; opacity: .5; }
.diamonds--side .d:nth-child(1) { left: 0; bottom: 0; }
.diamonds--side .d:nth-child(2) { left: 90px; bottom: 70px; width: 90px; height: 90px; opacity: .4; }

.diamonds--cta { right: -40px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%); opacity: .35; }
.diamonds--cta .d:nth-child(1) { right: 40px; top: 40px; }
.diamonds--cta .d:nth-child(2) { right: 150px; top: 100px; width: 90px; height: 90px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: #0b0b0b; padding: 90px 0 110px; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(10,10,10,.96) 0%, rgba(40,8,10,.88) 45%, rgba(130,20,25,.55) 100%),
    url("../img/servicios/instalaciones-sanitarias-electricas.jpg") center / cover no-repeat;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: 22px; }
.lead { font-size: 1.12rem; color: #d7d7d7; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #cfcfcf; font-size: .92rem; }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks li::before {
  content: ""; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg);
}

/* Formulario de cotización */
.quote {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4); border-top: 5px solid var(--red);
}
.quote__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.quote__sub { color: var(--gray-500); font-size: .9rem; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 12px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid #dcdcdc; border-radius: 6px;
  background: #fafafa; color: var(--ink); width: 100%; transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field .is-invalid { border-color: var(--red); background: #fff5f5; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quote__status { margin: 12px 0 0; font-size: .88rem; min-height: 1.2em; }
.quote__status.ok { color: #1b7a3a; }
.quote__status.err { color: var(--red); }

/* ---------- Cifras ---------- */
.stats { background: var(--black); color: #fff; padding: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; border-left: 1px solid rgba(255,255,255,.08); text-align: center; }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat span { color: #bdbdbd; font-size: .9rem; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 100px 0; overflow: hidden; }
.section--gray { background: var(--gray-100); }
.section--dark { background: radial-gradient(circle at 80% 0%, #3a0b0e 0%, #111 55%); color: #fff; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__intro { color: var(--gray-700); font-size: 1.05rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
.about__media::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px;
  background: var(--red); z-index: -1; border-radius: 6px;
}
.about__badge {
  position: absolute; right: -16px; bottom: -22px; background: var(--black); color: #fff;
  padding: 18px 22px; border-radius: 10px; border-left: 4px solid var(--red); max-width: 270px;
}
.about__badge strong { display: block; font-family: var(--font-head); }
.about__badge span { font-size: .82rem; color: #bbb; }
.about__text p { color: var(--gray-700); }
.tabs { display: flex; gap: 8px; margin: 26px 0 0; border-bottom: 2px solid #eee; }
.tab {
  font: 700 .95rem var(--font-head); background: none; border: 0; padding: 10px 16px; cursor: pointer;
  color: var(--gray-500); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab.is-active { color: var(--ink); border-color: var(--red); }
.tabpanel { padding-top: 16px; }

/* ---------- Servicios ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font: 600 .9rem var(--font-body); padding: 9px 18px; border-radius: 999px; border: 1px solid #d4d4d4;
  background: #fff; cursor: pointer; color: var(--gray-700); transition: .15s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #000;
  aspect-ratio: 4 / 3; cursor: zoom-in; box-shadow: var(--shadow);
  transition: transform .25s ease, opacity .25s ease;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.25;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0));
}
.card figcaption span {
  display: block; font: 600 .7rem var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: #ff8a8d; margin-bottom: 4px;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 4px; background: var(--red); transition: width .3s;
}
.card:hover img { transform: scale(1.06); opacity: .85; }
.card:hover::after { width: 100%; }
.card.is-hidden { display: none; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.extra { background: #fff; padding: 28px; border-radius: var(--radius); border-top: 4px solid var(--black); box-shadow: var(--shadow); }
.extra b { font-family: var(--font-head); color: var(--red); font-size: 1.1rem; }
.extra h3 { font-size: 1.2rem; margin: 8px 0; }
.extra p { color: var(--gray-700); margin: 0; font-size: .95rem; }

/* ---------- Metodología ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 26px 22px; position: relative; transition: border-color .2s, background .2s;
}
.step:hover { border-color: var(--red); background: rgba(200,40,45,.08); }
.step b { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: var(--red); display: block; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; }
.step p { color: #bdbdbd; font-size: .92rem; margin: 0; }

/* ---------- Por qué ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why__item { padding: 30px 26px; border: 1px solid #ececec; border-radius: var(--radius); transition: .2s; }
.why__item:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow); }
.why__item svg { width: 44px; height: 44px; fill: var(--red); margin-bottom: 16px; }
.why__item h3 { font-size: 1.15rem; }
.why__item p { color: var(--gray-700); margin: 0; font-size: .95rem; }

/* ---------- Cobertura ---------- */
.coverage { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.coverage__text p { color: var(--gray-700); margin-bottom: 24px; }
.coverage__list {
  list-style: none; margin: 0; padding: 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  columns: 3; column-gap: 24px;
}
.coverage__list li { padding: 6px 0 6px 18px; position: relative; break-inside: avoid; font-size: .95rem; }
.coverage__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; background: var(--red);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: 70px 0; }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.cta p { color: #ffe3e4; margin: 0; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact__list li { padding: 14px 0; border-bottom: 1px solid #eee; color: var(--gray-700); }
.contact__list b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact__list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--red); }
.contact__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.3); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #bdbdbd; padding: 60px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { width: 230px; height: 56px; object-fit: cover; margin-bottom: 10px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem;
}

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Aviso de cookies (solo aparece si hay medición activa) ---------- */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 420px;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); border-top: 4px solid var(--red); font-size: .9rem;
}
.consent p { margin: 0 0 12px; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { padding: 9px 16px; font-size: .88rem; }
.btn--ghost-dark { border-color: #cfcfcf; color: var(--ink); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--ink); }
@media (max-width: 640px) { .consent { left: 12px; right: 84px; bottom: 12px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1000px, 100%); max-height: 78vh; border-radius: 10px; object-fit: contain; }
.lightbox__cap { color: #fff; font-family: var(--font-head); font-weight: 700; margin-top: 14px; text-align: center; }
.lightbox__close {
  position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 86vw); background: #0c0c0c;
    flex-direction: column; align-items: stretch; gap: 0; padding: 90px 26px 26px;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s;
  }
  .nav__links.is-open {
    transform: none; visibility: visible; transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.5);
  }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 20px; }
  .nav__toggle { position: relative; z-index: 2; }

  .hero { padding: 60px 0 80px; }
  .hero__inner, .about, .coverage, .contact { grid-template-columns: 1fr; gap: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .extras { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__badge { right: 12px; }
}
@media (max-width: 640px) {
  .topbar__inner > .topbar__item { display: none; }
  .topbar__right { width: 100%; justify-content: space-between; gap: 10px; }
  .nav__inner { height: 66px; }
  .nav__logo img { width: 170px; height: 42px; }
  .section { padding: 70px 0; }
  .grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote { padding: 24px 20px; }
  .steps, .why { grid-template-columns: 1fr; }
  .coverage__list { columns: 2; padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .diamonds--hero { opacity: .18; top: -110px; right: -140px; }
  .diamonds--cta { right: -150px; opacity: .2; }
  .stat strong { font-size: 2.1rem; }
}

/* =========================================================
   Ajustes responsivos (24-11-2026)
   Tablet (≤960 px) y celular (≤640 px / ≤380 px)
   ========================================================= */
.nowrap { white-space: nowrap; }
/* 16 px en los campos evita que iPhone haga zoom al tocarlos */
.field input, .field select, .field textarea { font-size: 1rem; }
.wa { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
body.menu-open { overflow: hidden; }
.btn { min-height: 44px; }

@media (max-width: 960px) {
  .nav__links { overflow-y: auto; }
  body.menu-open::after {
    content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55);
  }
  .hero__text { max-width: 640px; }
  .about__media { max-width: 640px; }
  .about__media img { aspect-ratio: 16 / 10; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 28px 12px; }
  .stat:nth-child(3) { border-left: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(n+3) { border-top: 0; }
  .stat strong { font-size: 2.2rem; }
  .extras { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .contact__map, .contact__map iframe { min-height: 320px; }
}

@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 28px; }
  .section__intro { font-size: 1rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .12em; gap: 10px; }
  .eyebrow::before { width: 24px; }

  /* Hero: botones a lo ancho, más fáciles de tocar */
  .hero { padding: 44px 0 60px; }
  .hero__inner { gap: 34px; }
  .lead { font-size: 1.02rem; }
  .hero__actions { margin: 24px 0 22px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__checks { flex-direction: column; gap: 8px; }

  /* Cifras 2 × 2 */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 10px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .stat strong { font-size: 2rem; }
  .stat span { font-size: .82rem; }

  /* Nosotros */
  .about { gap: 40px; }
  .about__media::before { left: -10px; top: -10px; width: 80px; height: 80px; }
  .about__badge { position: relative; right: auto; bottom: auto; margin: -34px 14px 0 auto; max-width: 260px; padding: 14px 18px; }
  .tab { padding: 10px 12px; }

  /* Filtros en una fila deslizable en vez de 3 filas */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 22px; padding: 2px 18px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }

  /* Servicios en 2 columnas: la página se acorta a la mitad */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { aspect-ratio: 3 / 4; border-radius: 10px; }
  .card figcaption { padding: 40px 12px 12px; font-size: .9rem; line-height: 1.22; }
  .card figcaption span { font-size: .58rem; letter-spacing: .1em; margin-bottom: 3px; }
  .extras { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .extra { padding: 20px 22px; }

  /* Metodología: número a la izquierda, tarjetas compactas */
  .steps { gap: 12px; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 18px; }
  .step b { grid-row: span 2; font-size: 1.9rem; margin: 0; }
  .step h3 { margin-bottom: .3em; }

  /* Por qué: ícono a la izquierda */
  .why { gap: 12px; }
  .why__item { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 20px; }
  .why__item svg { grid-row: span 2; width: 36px; height: 36px; margin: 0; }
  .why__item h3 { margin-bottom: .3em; }
  .why__item:hover { transform: none; }

  /* Cobertura, CTA y contacto */
  .coverage { gap: 30px; }
  .coverage__text .btn { width: 100%; }
  .cta { padding: 54px 0; }
  .cta__inner { gap: 26px; }
  .cta__actions { width: 100%; flex-direction: column; gap: 10px; }
  .cta__actions .btn { width: 100%; }
  .contact { gap: 34px; }
  .contact .btn { width: 100%; }
  .contact__map, .contact__map iframe { min-height: 280px; }

  /* Footer con enlaces más fáciles de tocar */
  .footer { padding-top: 46px; }
  .footer__grid { gap: 28px; padding-bottom: 30px; }
  .footer li { padding: 7px 0; }
  .footer__bottom { flex-direction: column; gap: 8px; padding-bottom: 90px; }

  .wa { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .lightbox__close { top: 8px; right: 12px; }
}

@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .filters { margin: 0 -14px 22px; padding: 2px 14px 6px; }
  .nav__logo img { width: 150px; height: 38px; }
  .topbar { font-size: .76rem; }
  .card figcaption { font-size: .84rem; }
  .coverage__list { padding: 18px; column-gap: 14px; }
  .stat strong { font-size: 1.8rem; }
}

/* ---------- Página legal (privacidad.html) ---------- */
.legal { padding: 56px 0 72px; background: var(--white); }
.legal__inner { max-width: 820px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 1.25rem; margin: 2em 0 .6em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--red); }
.legal__date { color: var(--gray-500); font-size: .9rem; margin-bottom: 1.6em; }
.legal__note { display: inline-block; margin-left: 10px; color: var(--gray-700); font-size: .9rem; }
.legal__back { padding: 10px 18px; font-size: .9rem; }
.legal + .footer { padding-top: 0; }
.quote__legal { margin: 10px 0 0; font-size: .78rem; opacity: .8; text-align: center; }
.quote__legal a { color: inherit; }
.consent a { color: var(--red); }
@media (max-width: 640px) {
  .legal { padding: 36px 0 56px; }
  .legal__back { padding: 8px 12px; font-size: .82rem; }
  .legal__note { display: block; margin: 8px 0 0; }
}
