/* =============================================================================
   GK Luxury Remodeling — hoja de estilos única
   Dirección "Atelier oscuro". Sin framework, sin build de CSS.

   Refinamiento 2026-10-05 con taste-skill (redesign-existing-projects):
   fuentes autoalojadas, menos volantas, servicios en mosaico, banda de renta
   corta en dos paneles, pasos en lista, revelado suave al hacer scroll.

   Compatibilidad con la exportación a GHL (scripts/build-ghl-draft.mjs): el
   scoper divide los selectores por coma y rechaza las reglas keyframes,
   import, supports y layer, y también el anidamiento. Por eso aquí solo hay
   transiciones (nada de keyframes) y ningún :is()/:where() con comas. html,
   body y :root pasan a ser #gk-ghl, así que los estados globales viven en
   atributos de body.
   ============================================================================= */

/* Fuentes autoalojadas (OFL, licencias en /fonts). Variables: Bodoni Moda con
   eje óptico 6..96 y pesos 400..700; Archivo 400..700. El subconjunto latin
   cubre ES y PT-BR; latin-ext solo baja si aparece un carácter que lo pida. */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/BodoniModa-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/BodoniModa-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/Archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/Archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* superficie */
  --bg:            #0E0D0C;
  --bg-raise:      #151312;
  --scrim:         rgba(14, 13, 12, 0.86);

  /* texto */
  --fg:            #F2EFEA;
  --fg-muted:      rgba(242, 239, 234, 0.62);
  --fg-subtle:     rgba(242, 239, 234, 0.45);
  --fg-faint:      rgba(242, 239, 234, 0.30);

  /* marca: un solo acento. El rojo solo marca error de formulario. */
  --gold:          #E0A32E;
  --gold-hover:    #F2BC55;
  --rule:          rgba(224, 163, 46, 0.22);
  --rule-strong:   rgba(224, 163, 46, 0.42);
  --error:         #D98C7A;

  --display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* escala fluida: el mismo valor sirve de 360px a 1440px */
  --h1:    clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);
  --h2:    clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --h3:    clamp(1.25rem, 1.05rem + 0.8vw, 1.5625rem);
  --body-size: clamp(0.975rem, 0.93rem + 0.18vw, 1rem);
  --lead:  clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);

  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3.5rem);
  --section-y: clamp(3.25rem, 2rem + 4.4vw, 5.5rem);
  --gap: clamp(0.875rem, 0.4rem + 1.4vw, 1.375rem);
  --max: 1240px;

  /* movimiento: una sola curva para todo el sitio */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* capas: nav 50 · menú móvil 60 · grano 70 · enlace de salto 80 */
}

*, *::before, *::after { box-sizing: border-box; }

/* El menú lateral cerrado vive fuera de pantalla con translateX(100%). Sin este
   clip sigue sumando al scrollWidth del documento y aparece scroll horizontal
   en móvil. `clip` no crea contenedor de scroll, a diferencia de `hidden`.
   scroll-padding evita que las anclas (#work, #estimate) queden bajo la barra
   fija. */
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--body-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Grano fino sobre todo el sitio: rompe la planitud del negro sin tocar las
   fotos. Fijo, sin eventos de puntero y en una sola capa compuesta. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Las fotos llevan width/height en el HTML para reservar espacio. Sin este
   height:auto el atributo height se aplica tal cual y una foto de 768x1024
   mide 1024px de alto en cualquier pantalla. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 { font-size: var(--h1); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: var(--h3); line-height: 1.15; text-wrap: pretty; }
p  { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-top-rule { border-top: 1px solid var(--rule); }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }
.lead { font-size: var(--lead); line-height: 1.68; color: var(--fg-muted); }
.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;
}

/* Enlace de salto para teclado: invisible hasta que recibe foco. */
.skip {
  position: absolute; left: var(--gutter); top: -100%; z-index: 80;
  background: var(--gold); color: var(--bg); padding: 0.8rem 1.1rem;
  font-size: 0.875rem; font-weight: 600;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

/* volanta con filete dorado: ahora solo en el hero, la banda de renta corta y
   el cierre, para que siga leyéndose como un gesto y no como plantilla */
.eyebrow {
  display: flex; align-items: center; gap: 0.875rem;
  font-size: 0.6875rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); flex: 0 0 auto; }

.label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ---------- botones: 44px de alto mínimo en todos los tamaños -------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.9rem 1.5rem;
  font-family: var(--body); font-size: 0.875rem; font-weight: 600;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.3s var(--ease), box-shadow 0.3s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
/* pulsación: el botón baja un píxel, como algo físico */
.btn:active { transform: translateY(1px); transition-duration: 0.06s; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hover); color: var(--bg); box-shadow: 0 14px 30px -12px rgba(224, 163, 46, 0.55); }
.btn-ghost { border-color: var(--rule-strong); color: var(--gold); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); background: rgba(224,163,46,0.08); color: var(--gold-hover); }
.btn-sm { min-height: 44px; padding: 0.6rem 1.05rem; font-size: 0.78125rem; }
.btn-block { width: 100%; }

.link-under {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--fg); border-bottom: 1px solid rgba(242,239,234,0.35);
  font-size: 0.875rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-under:hover { color: var(--gold); border-color: var(--gold); }
.link-under:active { color: var(--gold-hover); }

/* =============================== NAV ====================================== */
.nav {
  border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 12, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--max); margin-inline: auto; padding: 0.875rem var(--gutter);
  display: flex; align-items: center; gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--fg); flex: 0 0 auto; }
.brand:hover { color: var(--fg); }
.brand svg { flex: 0 0 auto; }
/* El wordmark sigue el logo real: "GK" en dorado y "LUXURY" en blanco, en la
   sans bold del sitio — no en la serif de los titulares, que fue un supuesto
   mío antes de ver el logo. */
.brand-name {
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.15em; line-height: 1; white-space: nowrap;
}
.brand-name b { color: var(--gold); font-weight: 700; }
.brand-sub {
  font-size: 0.5rem; letter-spacing: 0.3em; color: rgba(242,239,234,0.55);
  line-height: 1; margin-top: 4px; white-space: nowrap;
}
.brand-mark { flex: 0 0 auto; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  position: relative; padding-block: 0.35rem;
  font-size: 0.78125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(242,239,234,0.72);
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--gold); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }

.lang { display: flex; align-items: center; gap: 0.5rem; }
.lang a {
  min-width: 40px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--fg-faint);
  transition: color 0.2s ease;
}
.lang a:hover { color: var(--fg-muted); }
.lang a[aria-current] { color: var(--gold); }

.nav-cta { flex: 0 0 auto; }

.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--rule); color: var(--fg); cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.burger:hover { border-color: var(--gold); }
.burger:active { transform: scale(0.96); }

/* =============================== HERO ===================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); align-items: stretch; }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 1.75rem;
  padding: clamp(2.75rem, 1.25rem + 4.5vw, 4.75rem) var(--gutter);
  max-width: calc(var(--max) * 0.66); margin-left: auto; width: 100%;
}
/* 17ch a 68px deja el titular en tres líneas en los tres idiomas */
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.25rem; }
.hero-media { position: relative; overflow: hidden; min-height: 320px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,13,12,0.85) 0%, rgba(14,13,12,0) 34%);
}

/* Entrada del hero: el JS marca data-hero (oculta) y, tras forzar estilos,
   data-ready (muestra en cascada). La foto no se anima para no retrasar el
   LCP. Sin JS (o con movimiento reducido) nada de esto existe y todo se ve
   de inmediato. */
body[data-hero] .hero-copy > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
body[data-hero] .hero-copy > :nth-child(2) { transition-delay: 0.08s; }
body[data-hero] .hero-copy > :nth-child(3) { transition-delay: 0.16s; }
body[data-hero] .hero-copy > :nth-child(4) { transition-delay: 0.24s; }
body[data-ready] .hero-copy > * { opacity: 1; transform: none; }

/* Revelado al hacer scroll: solo opacidad y transform, con escalonado por
   posición entre hermanos. Lo activa IntersectionObserver (main.js). */
body[data-js] .rv { opacity: 0; transform: translateY(16px); }
body[data-js] .rv:nth-child(2) { transition-delay: 0.07s; }
body[data-js] .rv:nth-child(3) { transition-delay: 0.14s; }
body[data-js] .rv:nth-child(4) { transition-delay: 0.21s; }
body[data-js] .rv:nth-child(5) { transition-delay: 0.28s; }
body[data-js] .rv:nth-child(6) { transition-delay: 0.35s; }
/* La transición vive solo en el estado visible: entrar anima, ocultar (cuando
   data-js llega en la primera entrega del observer) es instantáneo. */
body[data-js] .rv[data-in] {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ============================== TRUST BAR ================================= */
.trust {
  border-block: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem clamp(1rem, 0.4rem + 2vw, 2.5rem);
  padding: 1.05rem var(--gutter);
  font-size: 0.71875rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(242,239,234,0.55); text-align: center;
}
.trust .dot { width: 3px; height: 3px; background: var(--gold); flex: 0 0 auto; }

/* ============================== SECCIONES ================================= */
/* Encabezado de sección apilado: título y una sola bajada, nunca título a la
   izquierda con un párrafo flotando a la derecha. */
.section-head { display: flex; flex-direction: column; gap: 1rem; max-width: 62ch; }
.section-head .aside { max-width: 52ch; font-size: 1rem; line-height: 1.65; color: var(--fg-muted); }
/* La variante en fila se usa solo cuando a la derecha hay un control real
   (los filtros del portafolio). */
.section-head-row {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: clamp(1rem, 0.5rem + 2vw, 2rem); max-width: none;
}

.grid { display: grid; gap: var(--gap); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ============================ SERVICIOS: MOSAICO =========================== */
/* Baños, el servicio principal, ocupa dos filas; cocinas y pisos completan la
   primera y pintura cierra la segunda. En móvil pasa a una lista con
   miniatura, mucho más corta que cuatro tarjetas apiladas. */
.svc-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.svc { position: relative; overflow: hidden; display: block; color: var(--fg); background: var(--bg-raise); min-height: 200px; }
.svc-media { position: absolute; inset: 0; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.04); }
.svc::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(14,13,12,0.9) 0%, rgba(14,13,12,0.08) 58%);
}
.svc-body {
  position: absolute; inset: auto 1.4rem 1.3rem; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.svc h3 { transition: color 0.25s ease; }
.svc:hover { color: var(--fg); }
.svc:hover h3 { color: var(--gold); }
.svc-arrow {
  font-family: var(--body); font-size: 1.375rem; line-height: 1; color: var(--gold);
  padding-bottom: 0.15rem; transition: transform 0.4s var(--ease);
}
.svc:hover .svc-arrow { transform: translateX(6px); }
.svc-feat { grid-column: 1; grid-row: 1 / span 2; }
.svc-feat h3 { font-size: var(--h2); }
.svc-a { grid-column: 2; grid-row: 1; aspect-ratio: 5 / 4; }
.svc-b { grid-column: 3; grid-row: 1; aspect-ratio: 5 / 4; }
.svc-c { grid-column: 2 / span 2; grid-row: 2; aspect-ratio: 2.4 / 1; }

/* ===================== SLIDER ANTES / DESPUÉS ============================= */
/* Un <input type="range"> transparente encima resuelve mouse, touch y teclado
   de una sola vez, y queda accesible sin trabajo extra. */
.ba { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-raise); }
.ba-tall { aspect-ratio: 1 / 1; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { will-change: clip-path; }
.ba-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; width: 44px; height: 44px;
  margin-left: -22px; margin-top: -22px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  pointer-events: none; box-shadow: 0 2px 14px rgba(0,0,0,0.45);
  transition: transform 0.3s var(--ease);
}
.ba:hover .ba-handle { transform: scale(1.06); }
.ba-tag {
  position: absolute; top: 0.9rem; z-index: 2; padding: 0.4rem 0.8rem;
  font-size: 0.625rem; letter-spacing: 0.2em; pointer-events: none;
}
.ba-tag-before { left: 0.9rem; background: var(--scrim); color: rgba(242,239,234,0.9); }
.ba-tag-after  { right: 0.9rem; background: var(--gold); color: var(--bg); font-weight: 600; }
.ba-input {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3;
  margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none;
}
.ba-input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100px; }
.ba-input::-moz-range-thumb { width: 44px; height: 100px; border: 0; opacity: 0; }

.pf-item { display: flex; flex-direction: column; gap: 0.75rem; }
.pf-title { font-family: var(--display); font-size: 1.1875rem; line-height: 1.2; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters a {
  min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid rgba(242,239,234,0.2); color: var(--fg-muted);
  padding: 0.45rem 1rem; font-size: 0.71875rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.filters a:hover { color: var(--fg); border-color: rgba(242,239,234,0.45); }
.filters a:active { transform: scale(0.97); }
.filters a[aria-current] { border-color: var(--gold); color: var(--gold); }

/* ============================ BANDA DE NICHO ============================== */
/* Dos paneles: texto sobre superficie sólida un tono más clara y la foto
   entera al lado, en vez de texto sobre un degradado que tapaba la foto. */
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
  background: var(--bg-raise); border-block: 1px solid var(--rule);
}
.band-copy {
  display: flex; flex-direction: column; gap: 1.75rem;
  padding: clamp(3rem, 1.5rem + 5vw, 5.5rem) var(--gutter);
  max-width: calc(var(--max) * 0.56); margin-left: auto; width: 100%;
}
.band-copy h2 { max-width: 22ch; }
.band-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.band-point { border-top: 1px solid var(--rule-strong); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.band-point h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; }
.band-point p { font-size: 0.9rem; color: var(--fg-muted); }
.band-media { position: relative; overflow: hidden; min-height: 360px; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* el velo solo funde el borde con el panel; no es decoración */
.band-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-raise) 0%, rgba(21,19,18,0) 28%);
}

/* ============================== PASOS ===================================== */
/* Dos columnas: título y nota de permisos a la izquierda, los cuatro pasos
   como lista numerada con filetes a la derecha. */
.steps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.steps-intro { display: flex; flex-direction: column; gap: 1.5rem; }
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.tl-item {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.tl-n {
  grid-row: 1 / span 2; font-family: var(--display); font-size: 2.125rem; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.tl-item h3 { font-family: var(--body); font-size: 1.0625rem; font-weight: 600; }
.tl-item p { grid-column: 2; font-size: 0.9rem; color: var(--fg-muted); }

/* .step se mantiene para las páginas de renta corta (puntos y retorno) */
.step { display: flex; flex-direction: column; gap: 0.875rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.step-n { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--body); font-size: 1.0625rem; font-weight: 600; }

.note {
  display: flex; align-items: flex-start; gap: 1.1rem;
  border: 1px solid var(--rule-strong); padding: 1.4rem 1.6rem;
}
.note svg { flex: 0 0 auto; margin-top: 2px; }

/* ============================== OFICIO ==================================== */
.craft-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.craft-item { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; }
.craft-item img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
.craft-cap { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.90625rem; color: rgba(242,239,234,0.8); }
.craft-cap .n { font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--gold); flex: 0 0 auto; }

/* =============================== FAQ ====================================== */
.faq-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 1rem + 3vw, 3.75rem); align-items: start; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.35rem 0; min-height: 44px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--gold-hover); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: 0 0 auto; width: 16px; height: 16px;
  background: currentColor; color: var(--fg-subtle);
  clip-path: polygon(46% 0, 54% 0, 54% 46%, 100% 46%, 100% 54%, 54% 54%, 54% 100%, 46% 100%, 46% 54%, 0 54%, 0 46%, 46% 46%);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary { color: var(--gold); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 1.35rem; max-width: 60ch; color: var(--fg-muted); line-height: 1.7; }

/* ============================ FORMULARIO ================================== */
.cta { display: grid; grid-template-columns: 1fr minmax(340px, 42%); border-top: 1px solid var(--rule); }
.cta-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  padding: clamp(3rem, 1.5rem + 4vw, 4.75rem) var(--gutter);
  max-width: calc(var(--max) * 0.6); margin-left: auto; width: 100%;
}
.cta-copy h2 { max-width: 16ch; }
.form {
  border-left: 1px solid var(--rule);
  padding: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem) var(--gutter);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field > label { font-size: 0.71875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0;
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid rgba(242,239,234,0.22);
  font-family: var(--body); font-size: 1rem; border-radius: 0;
  transition: border-color 0.2s ease;
}
.field select { padding-right: 1.5rem; }
.field option { background: var(--bg-raise); color: var(--fg); }
.field input::placeholder { color: var(--fg-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--gold);
}
/* error en línea solo después de que la persona tocó el campo */
.field input:user-invalid { border-bottom-color: var(--error); }
.drop {
  border: 1px dashed var(--rule-strong); padding: 1.6rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-align: center; cursor: pointer; color: var(--fg-muted); font-size: 0.84375rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.drop:hover { border-color: var(--gold); color: var(--fg); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label {
  min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid rgba(242,239,234,0.2); color: var(--fg-muted);
  padding: 0.5rem 1.05rem; font-size: 0.78125rem; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.chips label:hover { border-color: rgba(242,239,234,0.45); color: var(--fg); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips input:checked + span, .chips label:has(input:checked) { color: var(--gold); }
.chips label:has(input:checked) { border-color: var(--gold); }
.form-note { font-size: 0.78125rem; color: var(--fg-subtle); line-height: 1.6; }

/* ============================== FOOTER ==================================== */
.footer { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.5rem) 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: clamp(2rem, 1rem + 3vw, 3.75rem); justify-content: space-between; }
.footer-col { display: flex; flex-direction: column; gap: 0.875rem; min-width: 180px; }
/* Los enlaces del footer también son objetivos táctiles. */
.footer-col a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.city-list span { display: inline-flex; align-items: center; min-height: 36px; }
.footer-col h2 { font-family: var(--body); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2.125rem; font-size: 0.875rem; color: var(--fg-muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(224,163,46,0.15); margin-top: clamp(2rem, 1rem + 2vw, 2.75rem); padding-top: 1.5rem;
  font-size: 0.75rem; color: var(--fg-faint);
}
.footer-bottom nav { display: flex; gap: 1.375rem; }

/* ============================ PÁGINAS INTERIORES ========================== */
.page-hero { position: relative; overflow: hidden; min-height: clamp(320px, 40vh, 460px); display: grid; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,13,12,0.97) 14%, rgba(14,13,12,0.82) 52%, rgba(14,13,12,0.5) 100%);
}
.page-hero-inner { position: relative; z-index: 1; align-self: end; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); display: flex; flex-direction: column; gap: 1rem; }
.crumb { font-size: 0.71875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); }
.crumb a { color: var(--fg-subtle); }
.crumb a:hover { color: var(--gold); }

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1.15rem; }
.prose p { color: var(--fg-muted); line-height: 1.75; }
.prose h3 { margin-top: 0.75rem; }

.checklist { display: grid; gap: 0.875rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--fg-muted); line-height: 1.6; }
.checklist svg { flex: 0 0 auto; margin-top: 4px; }
ul.checklist { list-style: none; padding: 0; margin: 0; }

.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.spec > div { background: var(--bg); padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.spec h3 { font-family: var(--body); font-size: 0.65625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.spec p { font-size: 0.8125rem; line-height: 1.5; color: var(--fg-muted); }

/* =============================== BREAKPOINTS ============================== */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }

  /* mosaico en dos columnas: baños arriba a lo ancho, pintura abajo a lo ancho */
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .svc-feat { grid-column: 1 / span 2; grid-row: 1; aspect-ratio: 16 / 8; }
  .svc-a { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; }
  .svc-b { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 3; }
  .svc-c { grid-column: 1 / span 2; grid-row: 3; aspect-ratio: 16 / 6; }
}

@media (max-width: 879px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .lang { margin-left: auto; }

  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; margin-left: 0; order: 2; padding-block: 1.75rem 2.75rem; gap: 1.4rem; }
  /* La foto no puede comerse el viewport: titular, bajada y botón tienen que
     entrar sin scroll en un celular de 844px de alto. Altura fija en vez de
     aspect-ratio — con aspect-ratio el max-height encoge también el ancho y
     deja una franja negra al costado. */
  .hero-media { order: 1; aspect-ratio: auto; height: 36vh; min-height: 220px; max-height: 340px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(14,13,12,0.75) 0%, rgba(14,13,12,0) 55%); }
  .hero h1, .hero .lead { max-width: none; }

  .cta { grid-template-columns: 1fr; }
  .cta-copy { max-width: none; margin-left: 0; }
  .form { border-left: 0; border-top: 1px solid var(--rule); }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .band { grid-template-columns: 1fr; }
  .band-media { order: -1; min-height: 0; height: 42vw; max-height: 340px; }
  .band-media::after { background: linear-gradient(0deg, var(--bg-raise) 0%, rgba(21,19,18,0) 45%); }
  .band-copy { max-width: none; margin-left: 0; }
  .band-points { grid-template-columns: 1fr; gap: 1rem; }

  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: 1fr; }
  .ba { aspect-ratio: 3 / 4; }
  .ba-tall { aspect-ratio: 3 / 4; }
  .hero-media { height: 34vh; min-height: 200px; max-height: 300px; }
  .hero-actions .btn { width: 100%; }
  .trust { font-size: 0.6875rem; letter-spacing: 0.12em; }
  .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* servicios como lista con miniatura */
  .svc-grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
  .svc-grid .svc {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center;
    aspect-ratio: auto; min-height: 0; background: transparent;
    border-bottom: 1px solid var(--rule); padding: 0.9rem 0;
  }
  .svc-grid .svc-media { position: relative; inset: auto; aspect-ratio: 1 / 1; overflow: hidden; }
  .svc-grid .svc::after { display: none; }
  .svc-grid .svc-body { position: static; inset: auto; }
  .svc-grid .svc-feat h3 { font-size: var(--h3); }

  /* oficio: franja horizontal con snap en vez de tres fotos apiladas */
  .craft-row {
    display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .craft-row::-webkit-scrollbar { display: none; }
  .craft-item { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Bajo 480px la fila del header va justa: logo + tres idiomas + hamburguesa.
   Se aprieta el conjunto en vez de esconder el selector de idioma, que en este
   sitio es un argumento comercial y no un extra. */
@media (max-width: 479px) {
  .nav-inner { gap: 0.5rem; padding-inline: 1rem; }
  .brand { gap: 0.5rem; }
  .brand-name { font-size: 0.875rem; letter-spacing: 0.14em; }
  .lang { gap: 0; }
  .lang a { min-width: 32px; }
  .burger { width: 44px; height: 44px; }
}

@media (max-width: 400px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* A 320px el conjunto logo + idiomas + hamburguesa no cabe en una fila:
   se encoge todo un poco más en vez de ocultar algo. */
@media (max-width: 359px) {
  .nav-inner { gap: 0.35rem; padding-inline: 0.75rem; }
  .brand-name { font-size: 0.8125rem; letter-spacing: 0.1em; }
  .brand-sub { letter-spacing: 0.22em; }
  .lang a { min-width: 28px; font-size: 0.625rem; }
  .burger { width: 40px; height: 40px; }
}

/* ------- menú móvil ------- */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; padding: var(--gutter);
  transform: translateX(100%); transition: transform 0.35s var(--ease); visibility: hidden;
}
.drawer[data-open] { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer nav { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer nav a {
  font-family: var(--display); font-size: 1.75rem; color: var(--fg);
  padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, padding-left 0.3s var(--ease);
}
.drawer nav a:hover, .drawer nav a[aria-current] { color: var(--gold); }
.drawer nav a:hover { padding-left: 0.5rem; }
.drawer .btn { margin-top: 2rem; }
body[data-locked] { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .nav, .drawer, .ba-input, .form, .skip { display: none; }
  body::before { display: none; }
  body { background: #fff; color: #000; }
}
