/* =============================================================
   HIERROS CAJA SECA · Luis Álvarez
   Estilo claro tipo SaaS (inspirado en landearly.com),
   adaptado a herrería y orientado a captar clientes.

   1. Tokens — 2. Reset — 3. Utilidades — 4. Tipografía
   5. Componentes — 6. Secciones — 7. Efectos — 8. Responsive
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f8f7;
  --bg-ink:    #0f1512;

  --ink:       #0f1512;
  --ink-2:     #434c47;
  --ink-3:     #6d7873;

  --accent:      #c2461c;   /* hierro al rojo */
  --accent-2:    #a53a15;
  --accent-soft: #fdf1ec;
  --accent-line: #f3d8cd;

  --ok:        #12824a;     /* WhatsApp / confirmaciones */
  --ok-soft:   #eaf6ef;

  --line:      #e5e8e6;
  --line-2:    #eef1ef;

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.1rem, 5vw, 3.5rem);
  --maxw: 1200px;
  --nav-h: 72px;

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;

  --sh-1: 0 1px 2px rgba(15, 21, 18, 0.05);
  --sh-2: 0 10px 30px -14px rgba(15, 21, 18, 0.18);
  --sh-3: 0 26px 60px -28px rgba(15, 21, 18, 0.32);
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow.is-plain::before { display: none; }

.lead {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--ink-3);
  max-width: 56ch;
}

/* =============================================================
   5. COMPONENTES
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out),
              color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--sh-2);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--sh-3); }

.btn-wa { background: var(--ok); color: #fff; box-shadow: var(--sh-2); }
.btn-wa:hover { background: #0d6b3c; transform: translateY(-2px); box-shadow: var(--sh-3); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-plain { color: var(--ink); font-weight: 700; padding-inline: 0.4rem; }
.btn-plain:hover { color: var(--accent); }

/* chips de confianza */
.trust {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.5rem;
}
.trust li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-3);
}
.trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.2rem;
  padding-inline: var(--gutter);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.is-stuck { border-bottom-color: var(--line-2); box-shadow: var(--sh-1); }

.nav-brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.nav-brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav-brand-text {
  display: flex; flex-direction: column;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.nav-brand-text em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav-links { display: none; gap: 1.4rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--accent); }

.nav-tel {
  display: none; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 700; color: var(--ink);
}
.nav-tel svg { width: 16px; height: 16px; color: var(--accent); }
.nav-cta { display: none; padding: 0.65rem 1.2rem; font-size: 0.88rem; }

.nav-burger { display: grid; gap: 5px; padding: 0.5rem; margin-left: auto; }
.nav-burger span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out);
}
.nav.is-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav.is-open {
  height: auto; flex-wrap: wrap; padding-bottom: 1.1rem;
  background: #fff;
  border-bottom-color: var(--line);
}
.nav.is-open .nav-links {
  display: grid; width: 100%; gap: 0;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line-2);
}
.nav.is-open .nav-links a {
  padding-block: 0.8rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--line-2);
}
.nav.is-open .nav-cta { display: inline-flex; width: 100%; margin-top: 0.9rem; }

/* =============================================================
   6. SECCIONES
   ============================================================= */
.section { padding-block: clamp(3.4rem, 8vh, 6.5rem); }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 46ch; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  margin-top: 0.8rem;
}
.section-head .lead { margin-top: 0.9rem; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lead { margin-inline: auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
  overflow: hidden;
}
.hero:not(.hero-foto)::before {
  content: "";
  position: absolute; inset: -30% -20% auto -20%; height: 70%;
  background: radial-gradient(45% 55% at 20% 40%, rgba(194, 70, 28, 0.09), transparent 70%);
  pointer-events: none;
}

/* ---------- CABECERA CON FOTO ---------- */
.hero-foto {
  background: var(--bg-ink);
  padding-bottom: clamp(3rem, 9vh, 5.5rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,10,0.68) 0%, rgba(8,12,10,0.34) 45%, rgba(8,12,10,0.86) 100%),
    linear-gradient(90deg, rgba(8,12,10,0.74) 0%, rgba(8,12,10,0.22) 58%, rgba(8,12,10,0) 100%);
}
.hero-foto .hero-grid { z-index: 1; }
.hero-foto .eyebrow { color: #ff9b73; }
.hero-foto .eyebrow::before { background: #ff9b73; }
.hero-foto .hero-title {
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.hero-foto .hero-title em { color: #ff9b73; }
.hero-foto .hero-sub {
  color: #d9e0dc;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}
.hero-foto .trust li { color: #c7d0cb; }
.hero-foto .trust svg { color: #5fd59a; }
.hero-foto .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-foto .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* banda de datos, ya fuera de la cabecera */
.stats-strip { background: var(--bg); }
.stats-strip .stats { margin-top: 0; transform: translateY(-50%); margin-bottom: -2.2rem; box-shadow: var(--sh-2); }
.hero-grid { position: relative; display: grid; gap: 2.6rem; align-items: center; }

.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  line-height: 1.02;
  margin-top: 1.1rem;
  max-width: 18ch;
}
.hero-sub { margin-top: 1.2rem; font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--ink-3); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* tarjeta "así va tu presupuesto" */
.flow {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-3);
}
.flow-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-2);
}
.flow-title { font-size: 0.95rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.flow-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flow-badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  animation: blip 2.2s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.flow-item {
  position: relative;
  display: grid; grid-template-columns: 28px 1fr;
  gap: 0.8rem;
  padding: 0.9rem 0 0.9rem 0;
  border-bottom: 1px solid var(--line-2);
}
.flow-item:last-of-type { border-bottom: 0; padding-bottom: 0.2rem; }
.flow-mark {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
}
.flow-mark svg { width: 15px; height: 15px; }
.flow-item.is-now .flow-mark { background: var(--accent-soft); color: var(--accent); }
.flow-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.flow-item h3 { font-size: 0.93rem; font-weight: 700; letter-spacing: -0.02em; }
.flow-time { font-size: 0.72rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.flow-item p { font-size: 0.84rem; color: var(--ink-3); margin-top: 0.15rem; }

.flow-foot {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.flow-foot-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: #fff;
  font-size: 0.66rem; font-weight: 800;
}
.flow-foot b { display: block; font-size: 0.86rem; color: var(--ink); letter-spacing: -0.02em; }
.flow-foot span { font-size: 0.76rem; color: var(--ink-3); }

/* ---------- BANDA DE DATOS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
}
.stats div { background: #fff; padding: 1.1rem 1.2rem; }
.stats dt { font-size: 0.74rem; font-weight: 600; color: var(--ink-3); }
.stats dd {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-top: 0.15rem;
}

/* ---------- MARQUESINA DE SERVICIOS ---------- */
.marquee-wrap {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.marquee {
  display: flex; gap: 2.4rem;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee span {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #c3cbc7;
  white-space: nowrap;
}
.marquee span::after { content: "·"; margin-left: 2.4rem; color: #dde3e0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- PASOS ---------- */
.steps {
  display: grid;
  gap: 1rem;
  margin-top: 2.6rem;
}
.step {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #d9dedb; }
.step-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}
.step h3 { font-size: 1.12rem; margin: 0.85rem 0 0.45rem; }
.step p { font-size: 0.92rem; color: var(--ink-3); }
.step-tag {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- TARJETAS DE PRODUCTO ---------- */
.cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: #d9dedb; }
.card-media { overflow: hidden; background: var(--bg-soft); }
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  align-self: flex-start;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-title { font-size: 1.08rem; margin: 0.65rem 0 0.4rem; }
.card-body p { font-size: 0.9rem; color: var(--ink-3); }
.card-link {
  margin-top: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease-out); }
.card:hover .card-link svg { transform: translateX(3px); }

/* tarjetas anchas: portones y rejas */
.cards-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards-wide .card-media img { aspect-ratio: 16 / 10; }

.cards-sub {
  margin-top: 2.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cards-sub + .cards { margin-top: 1rem; }

/* ---------- BANDA CON FOTO DE FONDO ---------- */
.showcase {
  position: relative;
  min-height: 62vw;
  display: flex; align-items: flex-end;
  padding: clamp(2.2rem, 7vw, 5rem) 0;
  background: var(--bg-ink);
  overflow: hidden;
}
.showcase-bg { position: absolute; inset: 0; }
.showcase-bg img { width: 100%; height: 100%; object-fit: cover; }
.showcase-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,12,0.55) 0%, rgba(10,14,12,0.25) 40%, rgba(10,14,12,0.92) 100%);
}
.showcase-inner { position: relative; width: 100%; }
.showcase .eyebrow { color: #ff9b73; }
.showcase .eyebrow::before { background: #ff9b73; }
.showcase h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin-top: 0.8rem;
  max-width: 20ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.showcase p {
  color: #d6ded9;
  margin-top: 0.9rem;
  max-width: 48ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.showcase .btn { margin-top: 1.6rem; }

/* ---------- CHIPS "TAMBIÉN SE HACE" ---------- */
.tambien { margin-top: 2.4rem; }
.tambien-head { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.tambien-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.tambien-list li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.tambien-list li:hover { border-color: var(--accent); color: var(--accent); }
.tambien-note { margin-top: 0.9rem; font-size: 0.84rem; color: var(--ink-3); }

/* ---------- ESTRUCTURAS Y TECHOS ---------- */
.svcs {
  display: grid;
  gap: 1rem;
  margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.svc {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #d9dedb; }
.svc-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.svc-ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.08rem; margin: 0.9rem 0 0.4rem; }
.svc p { font-size: 0.9rem; color: var(--ink-3); }

.svc-cta {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.svc-cta-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; }
.svc-cta p + p { margin-top: 0.3rem; font-size: 0.92rem; color: var(--ink-2); }
.svc-cta .btn { justify-self: start; }

/* ---------- GALERÍA ---------- */
.gallery {
  display: grid;
  gap: 1rem;
  margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line-2);
}

/* ---------- COMPARATIVA ---------- */
.compare {
  margin-top: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 0.9rem 0.9rem;
  text-align: left;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.compare thead th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-soft);
}
.compare thead th.is-us { color: var(--accent); background: var(--accent-soft); }
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare td.is-us { font-weight: 700; color: var(--ink); background: #fffaf8; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.4rem; display: grid; gap: 0.7rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.faq-q i {
  position: relative;
  width: 16px; height: 16px; flex: none;
}
.faq-q i::before, .faq-q i::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; border-radius: 2px; background: var(--accent);
  transition: transform 0.35s var(--ease-out);
}
.faq-q i::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q i::after { transform: rotate(0deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.faq-a p { padding: 0 1.1rem 1.1rem; font-size: 0.92rem; color: var(--ink-3); }

/* ---------- CTA / FORMULARIO ---------- */
.cta { position: relative; }
.cta-box {
  display: grid;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  border-radius: var(--r-lg);
  background: var(--bg-ink);
  color: #c9d2cd;
  overflow: hidden;
  position: relative;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,12,0.9) 0%, rgba(10,14,12,0.82) 100%),
    radial-gradient(45% 60% at 25% 45%, rgba(194, 70, 28, 0.4), transparent 70%);
}
.cta-copy { position: relative; }
.cta-copy .eyebrow { color: #ff9b73; }
.cta-copy .eyebrow::before { background: #ff9b73; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 0.8rem; }
.cta-copy h2 em { color: #ff9b73; }
.cta-copy .lead { color: #9fada7; margin-top: 0.9rem; }

.cta-data { display: grid; gap: 0.9rem; margin-top: 1.8rem; }
.cta-data li { display: grid; gap: 0.1rem; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.12); }
.cta-data .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7d8a84; }
.cta-data .value { color: #fff; font-weight: 700; letter-spacing: -0.02em; }
.cta-data a.value:hover { color: #ff9b73; }

.form {
  position: relative;
  display: grid; gap: 0.9rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: var(--r);
  background: #fff;
  align-content: start;
}
.form-head { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; }
.form-head + p { font-size: 0.86rem; color: var(--ink-3); margin-top: -0.4rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa5a0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { appearance: none; }

.btn-submit { position: relative; margin-top: 0.3rem; overflow: hidden; }
.btn-check {
  position: absolute; width: 24px; height: 24px;
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-bounce);
}
.btn-check path { stroke-dasharray: 32; stroke-dashoffset: 32; }
.form.is-sent .btn-label { opacity: 0; }
.form.is-sent .btn-check { opacity: 1; transform: scale(1); }
.form.is-sent .btn-check path { animation: drawCheck 0.6s 0.1s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form.is-sending .btn-submit { pointer-events: none; opacity: 0.8; }
.form.is-sending .btn-submit:hover { transform: none; }

.form-note { font-size: 0.78rem; line-height: 1.6; color: var(--ink-3); }
.form-note.is-ok { color: var(--ok); font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer {
  padding-block: clamp(2.4rem, 6vh, 3.6rem) 6rem;
  border-top: 1px solid var(--line-2);
}
.footer-grid { display: grid; gap: 1.8rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; }
.footer-links a { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: 0.82rem; color: var(--ink-3); line-height: 1.8; }

/* ---------- BARRA FIJA DE CONTACTO (móvil) ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 700;
  display: flex; gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(130%);
  transition: transform 0.5s var(--ease-out);
}
.bar.is-in { transform: translateY(0); }
.bar .btn { flex: 1; padding-block: 0.8rem; }
.bar .btn-ghost { flex: 0 0 auto; }

/* =============================================================
   7. EFECTOS
   ============================================================= */
.reveal { opacity: 1; transform: none; }
html.has-js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.has-js .reveal.is-revealed { opacity: 1; transform: none; }

/* =============================================================
   8. RESPONSIVE (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .bar { display: none; }
  .footer { padding-bottom: clamp(2.4rem, 6vh, 3.6rem); }
}

@media (min-width: 960px) {
  .nav-links, .nav-cta, .nav-tel { display: flex; }
  .nav-burger { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.2rem; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-box { grid-template-columns: 1fr 1fr; gap: 2.8rem; align-items: start; }
  .flow { padding: 1.5rem; }
  .cards-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.8rem 2rem;
  }
  .svc-cta .btn { justify-self: end; }
}

@media (min-width: 1280px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase { min-height: 560px; }
}

/* En celular la foto de la fachada va arriba del todo, visible,
   y el texto debajo sobre fondo oscuro. Así se ve el trabajo al entrar. */
@media (max-width: 719px) {
  .hero-foto { padding-top: var(--nav-h); padding-bottom: 2.6rem; }
  .hero-foto .hero-bg {
    position: relative; inset: auto;
    width: 100%; height: 58vw; min-height: 200px; max-height: 320px;
  }
  .hero-foto .hero-bg img { object-position: center 58%; }
  .hero-foto .hero-bg-tint {
    background: linear-gradient(180deg,
      rgba(8,12,10,0.12) 0%, rgba(8,12,10,0.04) 50%, rgba(8,12,10,0.82) 100%);
  }
  .hero-foto .hero-grid { padding-top: 1.5rem; }
  .hero-foto .hero-title { margin-top: 0.8rem; }
  .stats-strip .stats { transform: none; margin-bottom: 0; margin-top: 1.6rem; }
}

/* =============================================================
   9. REDUCED-MOTION — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .flow-badge i { animation: none; }
}
