/* Reformas Generales Traian · Sabadell
   Arquetipo G (una columna) · Fraunces + Work Sans
   Paleta: terracota de ladrillo, yeso y ocre de mortero */

:root {
  --marca: #9c3f24;
  --marca-osc: #7d321c;
  --tinta: #231a15;
  --papel: #f5f0e8;
  --banda: #ebe2d4;
  --ocre: #c08a2e;
  --arena: #f0d9a8;
  --linea: #e2d8ca;
  --linea-fuerte: #cdbfab;
  --gris: #6b5d52;
  --hoy: #f4e5c8;
  --wa: #25d366;
  --wa-tinta: #0f2a19;

  --f-disp: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --col: 760px;
  --hd: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hd) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--f-disp);
  font-optical-sizing: auto;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
h3 { line-height: 1.15; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--tinta);
  color: var(--papel);
  padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--marca); outline-offset: 3px; }

.col {
  max-width: calc(var(--col) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }
.lead strong { font-weight: 600; }
.muted { color: var(--gris); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa); color: var(--wa-tinta); }
.btn--wa:hover { background: #1fbd5a; }
.btn--paper { background: var(--papel); color: var(--marca-osc); }
.btn--paper:hover { background: #fff; }
.btn--line { border-color: rgba(245, 240, 232, .75); color: var(--papel); }
.btn--line:hover { background: rgba(245, 240, 232, .12); }
.btn--brand { background: var(--marca); color: var(--papel); }
.btn--brand:hover { background: var(--marca-osc); }
.btn--line-ink { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn--line-ink:hover { background: var(--tinta); color: var(--papel); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--marca);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.link svg { width: 18px; height: 18px; }
.link:hover { color: var(--marca-osc); }

/* ---------- Cabecera sin menú ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.hd__in {
  max-width: 1360px;
  margin: 0 auto;
  min-height: var(--hd);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.logo__name {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--marca);
}
.logo__sub {
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris);
}
.hd__right { display: flex; align-items: center; gap: 26px; }
.lang { display: flex; gap: 2px; }
.lang button {
  border: 0;
  background: none;
  padding: 8px 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gris);
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  color: var(--marca);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.hd__tel {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.hd__tel-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris);
}
.hd__tel-num {
  font-family: var(--f-disp);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hd__tel:hover .hd__tel-num { color: var(--marca); }
.hd__wa { min-height: 46px; }

/* ---------- Portada partida 50/50 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(calc(100svh - var(--hd)), 880px);
}
.hero__text {
  background: var(--marca);
  color: var(--papel);
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5.5vw, 88px) clamp(36px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--arena);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(44px, 5.2vw, 82px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--arena); }
.hero__lead {
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.55;
  max-width: 33em;
  margin: 30px 0 36px;
  color: rgba(245, 240, 232, .94);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__where {
  margin: 56px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 217, 168, .35);
  font-size: 14.5px;
  color: rgba(245, 240, 232, .9);
}
.hero__status { color: var(--arena); font-weight: 600; }
.hero__status:not(:empty)::before { content: "·"; margin: 0 8px 0 4px; color: rgba(245, 240, 232, .6); font-weight: 400; }
.hero__photo { position: relative; min-height: 420px; background: #c9b8a2; }
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}

/* ---------- Lo que hacemos ---------- */
.wide {
  max-width: 1088px;
  margin: 56px auto 24px;
  padding: 0 24px;
}
.wide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 62%;
}
.serv { list-style: none; margin: 0; padding: 0; }
.serv li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px 32px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--linea);
}
.serv h3 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.01em;
}
.serv p { margin: 0; color: var(--gris); }

/* ---------- Firma: Cuéntanos tu obra ---------- */
.obra { background: var(--banda); }
.form { margin-top: 44px; }
.form fieldset { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.form legend {
  font-family: var(--f-disp);
  font-size: clamp(24px, 2.4vw, 30px);
  margin-bottom: 16px;
  padding: 0;
}
.tipos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--linea-fuerte);
  border-left: 1px solid var(--linea-fuerte);
}
.tipo {
  position: relative;
  display: block;
  border-right: 1px solid var(--linea-fuerte);
  border-bottom: 1px solid var(--linea-fuerte);
  background: var(--papel);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.tipo input, .radio input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.tipo span {
  display: block;
  padding: 18px 18px 18px 58px;
  font-family: var(--f-disp);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.25;
}
.tipo span::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 1.5px solid var(--tinta);
  background: transparent;
}
.tipo:hover { background: #fffaf2; }
.tipo input:checked + span { background: var(--marca); color: var(--papel); }
.tipo input:checked + span::before {
  border-color: var(--arena);
  background: var(--arena)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%237d321c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.tipo input:focus-visible + span,
.radio input:focus-visible + span { outline: 2px solid var(--marca); outline-offset: -4px; }

.cuando { display: flex; flex-wrap: wrap; gap: 10px; }
.cuando legend { width: 100%; }
.radio { position: relative; cursor: pointer; }
.radio span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--linea-fuerte);
  background: var(--papel);
  font-weight: 500;
}
.radio span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--tinta);
  flex: none;
}
.radio input:checked + span { border-color: var(--marca); box-shadow: inset 0 0 0 1px var(--marca); }
.radio input:checked + span::before { border: 4px solid var(--marca); }

.field { display: block; margin-bottom: 22px; }
.field > span { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--linea-fuerte);
  border-radius: 2px;
  background: var(--papel);
  padding: 14px 16px;
  font-size: 17px;
  line-height: 1.45;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--marca); outline-offset: 0; border-color: var(--marca); }
.field textarea { resize: vertical; min-height: 120px; }
.form__row { max-width: 520px; }
.form__error { color: #8f2a12; font-weight: 600; margin: 4px 0 0; }
.form__send { margin-top: 18px; min-height: 56px; padding: 14px 28px; font-size: 17px; }
.form__note { margin-top: 14px; font-size: 14.5px; color: var(--gris); }

/* ---------- También en altura ---------- */
.tall {
  max-width: 568px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }
.altura { padding-bottom: clamp(40px, 5vw, 64px); }
.altura p:not(.lead) { color: var(--gris); }
#proceso { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- Cómo trabajamos ---------- */
.pasos { list-style: none; margin: 8px 0 0; padding: 0; }
.pasos li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--linea);
}
.pasos li:last-child { border-bottom: 1px solid var(--linea); }
.pasos__n {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: 76px;
  line-height: .85;
  color: var(--ocre);
}
.pasos h3 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 8px; }
.pasos p { margin: 0; color: var(--gris); }

/* ---------- Opiniones ---------- */
.opin { background: #fffaf2; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.opin__big {
  font-family: var(--f-disp);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.opin p:not(.opin__big) { color: var(--gris); max-width: 36em; }
.opin__cta { margin-top: 28px; }

/* ---------- Contacto ---------- */
.contacto__tel {
  display: inline-block;
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(54px, 11vw, 128px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--marca);
  text-decoration: none;
  white-space: nowrap;
}
.contacto__tel:hover { color: var(--marca-osc); }
.contacto__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 28px 0 72px;
}
.contacto__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contacto__mail svg { width: 20px; height: 20px; flex: none; color: var(--marca); }

.horario { border-top: 1px solid var(--tinta); padding-top: 26px; }
.horario__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 12px;
}
.horario h3, .donde h3 { font-size: clamp(26px, 2.6vw, 32px); }
.estado { margin: 0; font-weight: 600; font-size: 15.5px; }
.estado.is-open { color: #2c6a35; }
.estado.is-closed { color: var(--marca); }
.horario__tabla { width: 100%; border-collapse: collapse; }
.horario__tabla td { padding: 11px 12px; border-bottom: 1px solid var(--linea); }
.horario__tabla td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.horario__tabla tr.is-closed td:last-child { color: var(--gris); }
.horario__tabla tr.is-today td { background: var(--hoy); font-weight: 600; }
.horario__tabla tr.is-today td:first-child { box-shadow: inset 3px 0 0 var(--marca); }
.horario__nota { margin-top: 14px; font-size: 14.5px; color: var(--gris); font-style: italic; }

.donde { margin-top: 64px; border-top: 1px solid var(--tinta); padding-top: 26px; }
.donde h3 { margin-bottom: 12px; }
.mapa {
  margin-top: 20px;
  min-height: 320px;
  border: 1px solid var(--linea-fuerte);
  background: var(--banda);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 24px;
}
.mapa__nota { margin: 12px 0 0; font-size: 14px; color: var(--gris); }
.mapa.is-loaded { padding: 0; display: block; }
.mapa iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Pie ---------- */
.ft {
  background: var(--tinta);
  color: rgba(245, 240, 232, .86);
  padding: 72px 0 40px;
  font-size: 15.5px;
}
.ft a { color: var(--papel); text-underline-offset: 4px; }
.ft__name {
  font-family: var(--f-disp);
  font-size: 30px;
  line-height: 1.15;
  color: var(--papel);
  margin-bottom: 8px;
}
.ft__about { max-width: 30em; }
.ft__fb { display: inline-flex; align-items: center; gap: 6px; }
.ft__fb svg { width: 20px; height: 20px; }
.ft__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 240, 232, .16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 14px;
}
.ft__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- WhatsApp flotante y barra móvil ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(35, 26, 21, .25);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #1fbd5a; }

.mbar { display: none; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1080px) {
  .hd__tel-label { display: none; }
  .hd__right { gap: 16px; }
}

@media (max-width: 860px) {
  :root { --hd: 64px; }
  .hd__in { padding: 8px 20px; }
  .hd__tel, .hd__wa { display: none; }
  .logo__name { font-size: 28px; }
  .logo__sub { font-size: 10.5px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { min-height: 0; aspect-ratio: 5 / 4; }
  .hero__where { margin-top: 40px; }

  .serv li { grid-template-columns: 1fr; padding: 24px 0; }

  body { padding-bottom: 64px; }
  .wa-float { display: none; }
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--tinta);
  }
  .mbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
  }
  .mbar svg { width: 22px; height: 22px; }
  .mbar__call { background: var(--marca); color: var(--papel); }
  .mbar__wa { background: var(--wa); color: var(--wa-tinta); }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .col { padding: 0 20px; }
  .wide, .tall { padding: 0 20px; }
  .hero__text { padding: 44px 20px 32px; }
  .hero__cta .btn { width: 100%; }
  .tipo span { padding: 15px 10px 15px 42px; font-size: 18px; }
  .tipo span::before { left: 12px; width: 18px; height: 18px; margin-top: -9px; }
  .cuando .radio { width: 100%; }
  .radio span { width: 100%; }
  .form__send { width: 100%; }
  .pasos li { grid-template-columns: 60px minmax(0, 1fr); }
  .pasos__n { font-size: 56px; }
  .horario__tabla td { padding: 10px 8px; }
  .mapa iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
