/* Renueva y Colorea MG SL. Hoja de estilos única. */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores tomados del logo y de las paredes estucadas por el propio equipo */
  --noche: #0B1530;      /* fondo del logo, cabecera y contacto */
  --noche-2: #070E22;    /* pie */
  --azul: #12306B;       /* azul del logo */
  --tinta: #13213F;      /* texto sobre claro */
  --gris: #4A5470;       /* texto secundario sobre claro */
  --yeso: #F2F2EE;       /* fondo claro, pared recién pintada */
  --blanco: #FFFFFF;
  --oro: #E2A00E;        /* dorado del logo: acciones */
  --oro-claro: #F0B935;
  --salvia: #5E6E63;     /* estuco verde del salón */
  --rosa: #D5C2C4;       /* estuco rosa del pasillo, aclarado */

  --gutter: clamp(16px, 4vw, 48px);
  --fs-display: clamp(2.125rem, 1rem + 4.4vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-small: 0.9375rem;
  --section: clamp(80px, 9vw, 150px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--azul) var(--yeso);
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--yeso);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3 {
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

::selection { background: var(--oro); color: var(--noche); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
:where(.site-header, .hero, .single, .contact, .site-footer, .mobile-bar) :focus-visible { outline-color: var(--oro); }
.finishes :focus-visible { outline-color: #fff; }

[id] { scroll-margin-top: 16px; }

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

.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--oro);
  color: var(--noche);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 34em; text-wrap: pretty; }

/* Iconos y botones */
.icon { width: 1.25em; height: 1.25em; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.4em;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--oro); color: var(--noche); }
.btn-gold:hover { background: var(--oro-claro); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, 0.06); }
.btn-light { background: #fff; color: var(--noche); }
.btn-light:hover { background: var(--yeso); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.site-header { position: relative; z-index: 20; background: var(--noche); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-block: 8px; }
.brand { display: block; flex: none; }
.brand img { width: 132px; }
.main-nav { display: none; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { text-decoration: underline; }
.header-cta { display: none; }

/* Portada */
.hero { background: var(--noche); color: #fff; padding-block: 28px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; }
.hero .lead { margin-top: 24px; color: #D9DEEA; }
.hero .actions { margin-top: 32px; }
.hero-note { margin-top: 24px; max-width: 34em; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.74); }
.hero-figure { margin-inline: calc(-1 * var(--gutter)); }
.hero-figure figcaption {
  padding: 12px var(--gutter) 28px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.74);
}

/* Comparador antes / después */
.ba {
  --pos: 50%;
  --r: 0.75;
  --h: min(76svh, 820px);
  position: relative;
  width: calc(var(--h) * var(--r));
  max-width: 100%;
  aspect-ratio: var(--r);
  overflow: hidden;
  background: #1A2340;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.js .ba[data-intro] { --pos: 0%; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--oro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1530' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.ba-tag {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(11, 21, 48, 0.78);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
.ba { margin-inline: auto; }
.ba-hero { width: 100%; max-height: 80svh; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.ba { cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--azul); outline-offset: 4px; }
.hero .ba:has(.ba-range:focus-visible) { outline-color: var(--oro); }

/* Secciones */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: 36em; color: var(--gris); }

/* Antes y después */
.projects-list { display: none; }
.js .projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tab {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 6px 14px 6px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color 0.2s ease;
}
.project-tab img { width: 44px; height: 44px; object-fit: cover; border-radius: 9px; flex: none; }
.project-tab strong {
  display: block;
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.2;
  white-space: nowrap;
}
.project-tab > span > span { display: none; }
.project-tab { background: rgba(255, 255, 255, 0.45); }
.project-tab:hover { background: rgba(255, 255, 255, 0.8); }
.project-tab[aria-selected="true"] { background: var(--blanco); }
.projects-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.project-panel + .project-panel { margin-top: 48px; }
.js .project-panel + .project-panel { margin-top: 0; }
.js .project-panel[hidden] { display: none; }
.project figcaption { max-width: 40em; }
.project figcaption strong { font-weight: 700; }

/* Un solo responsable */
.single { background: var(--azul); color: #fff; }
.single-grid { display: grid; gap: 56px; }
.single .lead { margin-top: 24px; color: #E3E8F4; }
.single-copy p + p { margin-top: 20px; max-width: 36em; color: rgba(255, 255, 255, 0.86); }
.agenda-intro { margin-bottom: 12px; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.78); }
.agenda-list li {
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.6);
}
.agenda-list s { position: relative; display: inline-block; text-decoration: none; }
.agenda-list s::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 54%;
  height: max(3px, 0.07em);
  background: var(--oro);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}
.agenda.is-armed s::after { transform: scaleX(0); }
.agenda.is-armed li.is-struck s::after { transform: scaleX(1); }
.agenda-one {
  margin-top: 20px;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.2;
}
.agenda-label { display: block; }
.agenda-one a { color: var(--oro); text-decoration: none; }
.agenda-one a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Qué hacemos */
.service-row { display: grid; gap: 32px; align-items: center; }
.service-row + .service-row { margin-top: clamp(72px, 8vw, 128px); }
.service-text { order: -1; }
.service-text p { margin-top: 16px; max-width: 34em; }
.list-cols { display: grid; gap: 10px 32px; margin-top: 24px; }
.list-cols li { position: relative; padding-left: 22px; line-height: 1.4; }
.list-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oro);
}
.list-note { margin-top: 20px; max-width: 34em; color: var(--gris); }
.media-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: end; }
.media-pair img { width: 100%; object-fit: cover; }
.media-pair .m-tall { aspect-ratio: 4 / 5; }
.media-pair .m-wide { aspect-ratio: 4 / 3; margin-bottom: 18%; }
.media-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.media-trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.media-trio img:nth-child(2) { transform: translateY(14%); }

/* Pintura y acabados */
.finishes { background: var(--salvia); color: #fff; }
.finishes-grid { display: grid; gap: 48px; align-items: center; }
.finishes .lead { margin-top: 24px; color: #EEF2EF; }
.finish-list li::before { background: #fff; }
.swatches { display: grid; gap: 20px; }
.swatch img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.swatch figcaption, .swatch-note { margin-top: 8px; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.88); }

/* Cómo trabajamos */
.process h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.steps { display: grid; gap: 36px; counter-reset: paso; }
.steps li { counter-increment: paso; }
.steps li::before {
  content: counter(paso);
  display: block;
  font-family: "Young Serif", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--azul);
}
.steps h3 { margin-top: 14px; }
.steps p { margin-top: 10px; max-width: 30em; }
.process-photo { margin-top: clamp(48px, 6vw, 88px); }
.process-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.process-photo figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--gris); }

/* Opiniones */
.reviews { background: var(--rosa); }
.reviews h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.reviews-grid { display: grid; gap: 40px; }
.quote-main p {
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(1.625rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.22;
  text-wrap: pretty;
}
.quote-main footer { margin-top: 20px; font-size: var(--fs-small); }
.quotes { display: grid; gap: 28px; }
.quotes p { font-size: 1.125rem; line-height: 1.5; }
.quotes footer { margin-top: 8px; font-size: var(--fs-small); }
.reviews-source { margin-top: clamp(40px, 5vw, 64px); max-width: 52em; font-size: var(--fs-small); }

/* Zona */
.zone-grid { display: grid; gap: 40px; align-items: center; }
.zone-copy h2 + p { margin-top: 16px; }
.towns { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-block: 20px; }
.towns li { padding: 6px 16px; border-radius: 999px; background: var(--blanco); font-weight: 600; }
.map { background: #E6E7E1; }
.map svg { display: block; width: 100%; height: auto; }
.map .ring { fill: none; stroke: rgba(18, 48, 107, 0.28); stroke-width: 2; stroke-dasharray: 6 9; }
.map .ring-label { font: 600 24px "Figtree", sans-serif; fill: rgba(18, 48, 107, 0.62); text-anchor: middle; }
.map .town circle { fill: var(--azul); }
.map .town text { font: 650 32px "Figtree", sans-serif; fill: var(--tinta); text-anchor: middle; }
.map .town-home circle { fill: var(--oro); stroke: var(--azul); stroke-width: 5; }
.map .town-home text { font: 400 42px "Young Serif", Georgia, serif; }
@media (max-width: 639px) {
  .map .town text { font-size: 44px; }
  .map .town-home text { font-size: 56px; }
  .map .ring-label { font-size: 34px; }
  .map .town-below text { transform: translateY(14px); }
}

/* Preguntas */
.faq { background: var(--blanco); }
.faq-wrap { display: grid; gap: 32px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--yeso); }
.faq summary {
  position: relative;
  padding: 20px 60px 20px 22px;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--azul), var(--azul)) center / 16px 2.5px no-repeat,
    linear-gradient(var(--azul), var(--azul)) center / 2.5px 16px no-repeat;
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; max-width: 46em; }

/* Contacto */
.contact { background: var(--noche); color: #fff; }
.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact .lead { margin-top: 20px; color: #D9DEEA; }
.contact .actions { margin-top: 28px; }
.contact-data { display: grid; gap: 16px; margin-top: 40px; }
.contact-data dt { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.74); }
.contact-data dd { font-weight: 650; overflow-wrap: anywhere; }
.contact-data a { color: #fff; }
.contact-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 40px);
  border-radius: 18px;
  background: #15234D;
}
.form-intro { font-family: "Young Serif", Georgia, serif; font-size: var(--fs-h3); line-height: 1.2; }
.field label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 0.9375rem; }
.optional { font-weight: 400; color: rgba(255, 255, 255, 0.74); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312306B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--oro); outline: none; }
.field [aria-invalid="true"] { border-color: #FF9E80; }
.field-row { display: grid; gap: 18px; }
.field-check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; }
.field-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--oro); }
.field-check input[aria-invalid="true"] { outline: 2px solid #FF9E80; outline-offset: 2px; }
.field-check + .field-error { margin-top: -8px; }
.field-check a { color: var(--oro); }
.field-error { margin-top: 6px; color: #FFD58A; font-weight: 650; font-size: 0.9375rem; }
.form-legal { font-size: 0.8125rem; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.form-legal a { color: var(--oro); }
.btn-submit { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pie */
.site-footer { background: var(--noche-2); color: rgba(255, 255, 255, 0.84); padding-block: 64px 120px; }
.footer-name {
  margin-bottom: 48px;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(2.75rem, 8.2vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer-cols { display: grid; gap: 32px; }
.footer-cols img { width: 140px; margin-bottom: 12px; }
.footer-title { margin-bottom: 8px; font-weight: 700; color: #fff; }
.footer-cols a { color: rgba(255, 255, 255, 0.88); }
.footer-cols a:hover { color: #fff; }
.copy { margin-top: 48px; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.64); }

/* Barra fija en móvil */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 21, 48, 0.97);
}
.mobile-bar .btn { min-height: 50px; }

/* Aviso de cookies (solo se muestra si se activa la analítica) */
.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 84px;
  z-index: 40;
  max-width: 560px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  color: var(--tinta);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.consent p { font-size: 0.9375rem; }
.consent .actions { margin-top: 14px; }
.consent .btn { min-height: 44px; }
.consent .btn-outline { background: var(--yeso); color: var(--tinta); }

/* Páginas legales y auxiliares */
.page-simple { background: var(--yeso); }
.page-simple main { padding-block: clamp(48px, 7vw, 96px); }
.legal { max-width: 46em; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 24px; }
.legal h2 { font-size: var(--fs-h3); margin: 40px 0 12px; }
.legal p, .legal li { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.4em; }
.legal .pending { background: #FFE9B3; padding: 0 4px; border-radius: 4px; }
.legal .updated { color: var(--gris); font-size: var(--fs-small); }
.back-link { display: inline-block; margin-top: 32px; font-weight: 650; }
.thanks h1 { font-size: var(--fs-display); max-width: 14ch; }
.thanks .lead { margin-top: 24px; }
.thanks .actions { margin-top: 32px; }

/* ≥ 640 px */
@media (min-width: 640px) {
  .list-cols { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ≥ 768 px */
@media (min-width: 768px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .process-photo img { aspect-ratio: 21 / 9; }
  .quotes { grid-template-columns: 1fr; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatch-note { grid-column: 1 / -1; }
}

/* ≥ 1024 px */
@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
  [id] { scroll-margin-top: 24px; }
  .header-inner { min-height: 108px; gap: 32px; }
  .brand img { width: 168px; }
  .header-cta { display: inline-flex; min-height: 46px; white-space: nowrap; }
  .site-footer { padding-block: 80px 48px; }
  .footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .mobile-bar { display: none; }
  .consent { left: 24px; bottom: 24px; }
  .ba-hero { width: calc(var(--h) * var(--r)); max-height: none; }

  .hero { padding-block: clamp(40px, 5vh, 72px) clamp(56px, 8vh, 104px); }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(40px, 4vw, 72px);
  }
  .hero h1 { font-size: clamp(3rem, 4.4vw, 4.75rem); }
  .hero-figure { margin-inline: 0; }
  .hero-figure figcaption { padding: 12px 0 0; }
  .ba-hero { --h: min(66svh, 720px); max-width: 40vw; }

  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }

  .projects-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
  .js .projects-list {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 24px;
  }
  .js .projects-list { flex-wrap: nowrap; }
  .project-tab { padding: 10px; min-height: 0; background: transparent; }
  .project-tab img { width: 68px; height: 68px; }
  .project-tab strong { font-size: 1.25rem; }
  .project-tab > span > span { display: block; margin-top: 2px; font-size: 0.9375rem; line-height: 1.35; color: var(--gris); }
  .project .ba { --h: min(76svh, 640px); margin-inline: 0; }

  .single-grid { grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 120px); align-items: center; }

  .service-row { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 96px); }
  .service-row .service-text { order: 0; }
  .service-row-alt { grid-template-columns: 5fr 7fr; }

  .finishes-grid { grid-template-columns: 7fr 5fr; gap: clamp(56px, 7vw, 120px); }

  .steps { grid-template-columns: repeat(4, 1fr); }

  .reviews-grid { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 104px); align-items: start; }

  .zone-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 104px); }

  .faq-wrap { grid-template-columns: 4fr 8fr; gap: clamp(48px, 6vw, 104px); align-items: start; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 104px); }
}


/* ≥ 1200 px: menú completo */
@media (min-width: 1200px) {
  .main-nav { display: block; margin-left: auto; }
  .main-nav ul { display: flex; gap: 28px; }
  .main-nav a { color: rgba(255, 255, 255, 0.86); font-weight: 550; font-size: 1rem; text-decoration: none; white-space: nowrap; }
  .main-nav a:hover { color: #fff; text-decoration: underline; }
  .header-call { margin-left: 0; }
}

/* ≥ 1280 px: el texto de cada obra va al lado de la foto */
@media (min-width: 1280px) {
  .project { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 32px; }
  .project.is-wide { grid-template-columns: minmax(0, 1fr); }
  .project figcaption { padding-bottom: 8px; }
}

@media (max-width: 380px) {
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ba[data-intro] { --pos: 50%; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Portada: 4:5 en móvil, 3:4 en escritorio */
.ba-hero { --r: 0.8; }
@media (min-width: 1024px) { .ba-hero { --r: 0.75; } }

/* Pie simple de páginas auxiliares */
.page-simple { min-height: 100svh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; }
.page-simple .header-call { margin-left: auto; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer-simple { padding-block: 40px; }
.site-footer-simple p { font-size: var(--fs-small); }
.site-footer-simple a { color: rgba(255, 255, 255, 0.88); }
.site-footer-simple .copy { margin-top: 12px; }
.page-simple .btn-light { box-shadow: inset 0 0 0 2px var(--tinta); background: transparent; color: var(--tinta); }
.page-simple .btn-light:hover { background: #fff; }
