/* ==========================================================================
   LÍNEA SECA · Montadores de Pladur — Sistema de diseño
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta: grafito + yeso + naranja obra */
  --c-ink: #0f1115;
  --c-graphite: #16181d;
  --c-graphite-2: #1e2128;
  --c-graphite-3: #2a2e37;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-line-strong: rgba(255, 255, 255, 0.16);
  --c-plaster: #f4f1ec;
  --c-plaster-2: #e9e4dc;
  --c-steel: #9aa3b2;
  --c-muted: #6b7280;
  --c-text: #e8eaee;
  --c-text-dark: #1b1d22;
  --c-accent: #ff7a1a;
  --c-accent-2: #ffb15c;
  --c-accent-glow: rgba(255, 122, 26, 0.35);
  --c-wa: #25d366;

  --grad-accent: linear-gradient(135deg, #ff7a1a 0%, #ffb15c 100%);
  --grad-dark: linear-gradient(180deg, #16181d 0%, #0f1115 100%);

  /* Tipografía */
  --f-display: "Outfit", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  /* Espaciado y forma */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-graphite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; }

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

.section { padding-block: var(--section-y); position: relative; }

.section--light {
  background: var(--c-plaster);
  color: var(--c-text-dark);
}

.section--light .section__lead { color: #4b5160; }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section__lead { font-size: 1.125rem; color: var(--c-steel); }

.text-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Fondo "plano técnico" */
.blueprint {
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 3. Botones ---------- */
.btn {
  --btn-bg: var(--grad-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--btn-bg);
  color: #1a0e04;
  box-shadow: 0 10px 30px var(--c-accent-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--c-accent-glow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

.btn--wa { background: var(--c-wa); color: #04210f; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); }
.btn--wa:hover { box-shadow: 0 16px 40px rgba(37, 211, 102, 0.4); }

.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- 4. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(15, 17, 21, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--c-line);
  --header-h: 66px;
}

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--f-display); }
.logo__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad-accent);
  color: #1a0e04;
  box-shadow: 0 6px 20px var(--c-accent-glow);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.04em; }
.logo__tag { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-steel); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(232, 234, 238, 0.82);
  transition: color 0.25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-family: var(--f-display); transition: color 0.25s; }
.header__phone svg { width: 18px; height: 18px; color: var(--c-accent); }
.header__phone:hover { color: #fff; }
.header__email-link { font-size: 0.92rem; color: var(--c-steel); }
.header__email-link svg { color: var(--c-accent-2); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: #fff;
  border-radius: 2px; transform: translateX(-50%); transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; left: 0; transform: none; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,17,21,.96) 0%, rgba(15,17,21,.82) 38%, rgba(15,17,21,.25) 75%, rgba(15,17,21,.4) 100%),
    linear-gradient(0deg, rgba(15,17,21,1) 0%, rgba(15,17,21,0) 30%);
}

.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  backdrop-filter: blur(10px);
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.6rem;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-wa);
  box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.hero__title { margin-bottom: 1.4rem; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3c8d2; max-width: 560px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero__checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none; padding: 0; margin: 0; font-size: 0.95rem; color: #c3c8d2; }
.hero__checks li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__checks svg { width: 18px; height: 18px; color: var(--c-accent); }

/* Tarjeta flotante del hero */
.glass-card {
  background: rgba(22, 24, 29, 0.6);
  backdrop-filter: blur(18px) saturate(150%);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--c-line-strong), var(--shadow-lg);
  padding: 1.75rem;
}

.hero__card { justify-self: end; width: min(100%, 380px); animation: floatIn 1.2s 0.4s var(--ease) both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.rating { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.rating__score { font-family: var(--f-display); font-size: 3rem; font-weight: 800; line-height: 1; }
.stars { display: flex; gap: 2px; color: #ffc24b; }
.stars svg { width: 18px; height: 18px; }
.rating__meta { font-size: 0.85rem; color: var(--c-steel); }

.hero__card-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.85rem; }
.hero__card-list li { display: flex; align-items: center; gap: 0.85rem; font-size: 0.95rem; }
.icon-chip {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,122,26,.12);
  color: var(--c-accent);
}
.icon-chip svg { width: 20px; height: 20px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0);} 30% {opacity:1;} 100% { opacity: 0; transform: translateY(14px);} }

/* ---------- 6. Barra de confianza ---------- */
.trust { position: relative; z-index: 2; margin-top: -3.5rem; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  background: var(--c-graphite-2);
  box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-md);
  overflow: hidden;
}
.trust__item { padding: 2rem 1.5rem; text-align: center; position: relative; }
.trust__item + .trust__item::before {
  content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: var(--c-line-strong);
}
.trust__num { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; margin-bottom: 0.4rem; }
.trust__label { font-size: 0.9rem; color: var(--c-steel); }

/* ---------- 7. Servicios ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px rgba(20,22,28,.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--grad-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20,22,28,.12); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--c-graphite); color: var(--c-accent);
  margin-bottom: 1.4rem;
  transition: transform 0.45s var(--ease), background 0.3s;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { transform: rotate(-6deg) scale(1.05); }
.service-card h3 { color: var(--c-text-dark); }
.service-card p { color: #5a6070; font-size: 0.97rem; flex: 1; }

.service-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tag {
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: var(--r-pill);
  background: var(--c-plaster); color: #4b5160;
}

.service-card--featured { background: var(--c-graphite); color: var(--c-text); }
.service-card--featured h3 { color: #fff; }
.service-card--featured p { color: var(--c-steel); }
.service-card--featured .service-card__icon { background: var(--grad-accent); color: #1a0e04; }
.service-card--featured .tag { background: rgba(255,255,255,.08); color: #cfd4dc; }

/* ---------- 8. Antes / Después ---------- */
.ba__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.ba__points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.ba__points li { display: flex; gap: 1rem; }
.ba__points strong { display: block; font-family: var(--f-display); font-size: 1.05rem; color: #fff; }
.ba__points span { color: var(--c-steel); font-size: 0.95rem; }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--c-line);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,.4);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--grad-accent); color: #1a0e04;
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.compare__knob svg { width: 26px; height: 26px; }
.compare__label {
  position: absolute; top: 1rem; padding: 0.4rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(15,17,21,.7); backdrop-filter: blur(8px); pointer-events: none;
}
.compare__label--before { left: 1rem; }
.compare__label--after { right: 1rem; background: var(--c-accent); color: #1a0e04; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}

/* ---------- 9. Proceso ---------- */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.process__grid::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, #c9c2b6 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 0.5rem; }
.step__num {
  counter-increment: step;
  width: 68px; height: 68px; margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-graphite); color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 1.4rem;
  position: relative;
  box-shadow: 0 0 0 8px var(--c-plaster);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.step__num::before { content: "0" counter(step); }
.step:hover .step__num { background: var(--c-accent); color: #1a0e04; transform: scale(1.06); }
.step h3 { color: var(--c-text-dark); }
.step p { color: #5a6070; font-size: 0.95rem; }

/* ---------- 10. Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter {
  border: 0; cursor: pointer;
  padding: 0.6rem 1.2rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--c-line-strong);
  color: var(--c-steel); font-weight: 500; font-size: 0.92rem;
  transition: all 0.3s var(--ease);
}
.filter:hover { color: #fff; }
.filter.is-active { background: var(--c-accent); color: #1a0e04; box-shadow: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  cursor: zoom-in; background: var(--c-graphite-2);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0; padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(0deg, rgba(10,11,14,.9), transparent);
  transform: translateY(20%); opacity: 0; transition: all 0.45s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { transform: none; opacity: 1; }
.gallery__item figcaption strong { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.gallery__item figcaption span { font-size: 0.85rem; color: var(--c-steel); }
.gallery__item.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 2rem;
  background: rgba(8,9,12,.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 85vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; line-height: 1;
}

/* ---------- 11. Por qué pladur ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why__media { position: relative; }
.why__media img { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow-md); }
.why__float {
  position: absolute; right: -1.5rem; bottom: 2rem; width: 230px;
  background: #fff; color: var(--c-text-dark); border-radius: var(--r-md); padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-md);
}
.why__float strong { display: block; font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--c-accent); }
.why__float span { font-size: 0.88rem; color: #5a6070; }

.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1.5rem; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid #ddd6cb; }
.compare-table thead th { font-family: var(--f-display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #7a8090; }
.compare-table thead th:nth-child(2) { color: var(--c-accent); }
.compare-table td:nth-child(2) { font-weight: 600; color: var(--c-text-dark); }
.compare-table td:nth-child(3) { color: #8a8f9c; }
.compare-table td:first-child { color: #4b5160; }

/* ---------- 12. Reseñas ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review {
  padding: 2rem; border-radius: var(--r-lg);
  background: var(--c-graphite-2); box-shadow: inset 0 0 0 1px var(--c-line);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--c-line-strong), var(--shadow-md); }
.review blockquote { margin: 0; color: #d3d7de; font-size: 1rem; flex: 1; }
.review__author { display: flex; align-items: center; gap: 0.85rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; background: var(--c-graphite-3); color: var(--c-accent-2);
}
.review__author strong { display: block; font-size: 0.95rem; }
.review__author span { font-size: 0.82rem; color: var(--c-steel); }

/* ---------- 13. Zonas ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.zone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1rem; border-radius: var(--r-pill);
  background: #fff; color: var(--c-text-dark); font-weight: 500; font-size: 0.92rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 14px rgba(20,22,28,.05);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.zone svg { width: 15px; height: 15px; color: var(--c-accent); }
.zone:hover { transform: translateY(-2px); background: var(--c-graphite); color: #fff; }
.zones__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.map-card {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-graphite); box-shadow: var(--shadow-md);
}
.map-card svg { width: 100%; height: 100%; }
.map-ring { transform-origin: center; transform-box: fill-box; animation: ring 3s infinite var(--ease); }
.map-ring:nth-of-type(2) { animation-delay: 1s; }
.map-ring:nth-of-type(3) { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details {
  border-radius: var(--r-md); background: var(--c-graphite-2);
  box-shadow: inset 0 0 0 1px var(--c-line); transition: box-shadow 0.3s;
}
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(255,122,26,.45); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--c-accent);
  font-size: 1.3rem; transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.4rem; margin: 0; color: var(--c-steel); }

/* ---------- 15. Presupuesto ---------- */
.quote { background: var(--grad-dark); overflow: hidden; }
.quote::before {
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  right: -250px; top: -250px; background: radial-gradient(circle, rgba(255,122,26,.18), transparent 65%);
  pointer-events: none;
}
.quote__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; position: relative; }

.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 1rem; }
.contact-list strong { display: block; font-family: var(--f-display); }
.contact-list span { font-size: 0.9rem; color: var(--c-steel); }

.estimator {
  margin-top: 1rem; padding: 1.5rem; border-radius: var(--r-md);
  background: rgba(255,122,26,.08); box-shadow: inset 0 0 0 1px rgba(255,122,26,.25);
}
.estimator__label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent-2); font-weight: 600; }
.estimator__value { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 0.35rem 0; }
.estimator__note { font-size: 0.8rem; color: var(--c-steel); margin: 0; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-size: 0.85rem; font-weight: 600; color: #cfd4dc; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1rem; border: 0; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--c-line-strong);
  transition: box-shadow 0.25s, background 0.25s; outline: none;
}
.field select option { background: var(--c-graphite); }
.field input:focus, .field select:focus, .field textarea:focus {
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px var(--c-accent);
}
.field textarea { resize: vertical; min-height: 110px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 0.45rem; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: 0.6rem 1rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--c-line-strong);
  font-size: 0.9rem; cursor: pointer; transition: all 0.25s var(--ease);
}
.chip input:checked + span { background: var(--c-accent); color: #1a0e04; box-shadow: none; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--c-accent-2); outline-offset: 2px; }

.range-wrap { display: flex; align-items: center; gap: 1rem; }
.range-wrap output { min-width: 72px; font-family: var(--f-display); font-weight: 700; color: var(--c-accent-2); text-align: right; }
input[type="range"].range {
  -webkit-appearance: none; appearance: none; padding: 0; height: 6px; border-radius: 6px; box-shadow: none;
  background: linear-gradient(90deg, var(--c-accent) var(--fill, 20%), rgba(255,255,255,.12) var(--fill, 20%));
}
input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(255,122,26,.35); cursor: pointer;
}
input[type="range"].range::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(255,122,26,.35); cursor: pointer;
}

.file-drop {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem; border-radius: var(--r-sm);
  border: 1.5px dashed var(--c-line-strong); cursor: pointer; transition: border-color 0.25s, background 0.25s;
  font-size: 0.9rem; color: var(--c-steel);
}
.file-drop:hover { border-color: var(--c-accent); background: rgba(255,122,26,.05); }
.file-drop svg { width: 26px; height: 26px; color: var(--c-accent); flex-shrink: 0; }
.file-drop input { display: none; }

.form__legal { font-size: 0.8rem; color: var(--c-muted); display: flex; gap: 0.6rem; align-items: flex-start; }
.form__legal input { margin-top: 0.25rem; accent-color: var(--c-accent); }
.form__legal a { text-decoration: underline; }
.form__status { font-size: 0.92rem; min-height: 1.4em; color: var(--c-wa); }

/* ---------- 16. Footer ---------- */
.footer { background: var(--c-ink); padding: 4.5rem 0 2rem; font-size: 0.93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer h4 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-steel); margin-bottom: 1.2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: #c3c8d2; transition: color 0.25s; }
.footer a:hover { color: var(--c-accent); }
.footer__about p { color: var(--c-steel); margin-top: 1rem; max-width: 320px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 0.85rem;
}
.footer__bottom nav { display: flex; gap: 1.5rem; }

/* ---------- 17. Elementos flotantes ---------- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-wa); color: #fff;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform 0.35s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float__tip {
  position: absolute; right: 76px; white-space: nowrap; padding: 0.55rem 0.95rem; border-radius: var(--r-sm);
  background: #fff; color: var(--c-text-dark); font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(8px); transition: all 0.3s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }

.mobile-bar { display: none; }

/* ---------- 18. Animaciones on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__title .line > span { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .nav__list { gap: 1.25rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 2rem var(--gutter) 2.5rem; background: rgba(15,17,21,.97); backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    transform: translateY(-110%); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; pointer-events: none;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 0.9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--c-line); }
  .nav__link::after { display: none; }

  .hero__grid, .ba__grid, .why__grid, .quote__grid, .zones__grid { grid-template-columns: 1fr; }
  .hero__card { justify-self: start; }
  .services__grid, .reviews__grid { grid-template-columns: 1fr 1fr; }
  .process__grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .process__grid::before { display: none; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3)::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .why__float { right: 1rem; }
  .map-card { max-width: 460px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .services__grid, .reviews__grid, .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item figcaption { opacity: 1; transform: none; padding: 1rem .8rem .7rem; }
  .gallery__item figcaption span { display: none; }
  .hero__actions .btn { flex: 1; }
  .hero__card { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.75rem 0.5rem; }
  .wa-float { display: none; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.5rem;
    position: fixed; inset: auto 0 0; z-index: 95; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(15,17,21,.92); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--c-line);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.75rem 0.5rem; border-radius: 12px; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem;
    background: rgba(255,255,255,.07);
  }
  .mobile-bar a svg { width: 18px; height: 18px; }
  .mobile-bar .is-wa { background: var(--c-wa); color: #04210f; }
  .mobile-bar .is-quote { background: var(--grad-accent); color: #1a0e04; }
}
