:root {
  --ink: #16496e;
  --deep: #15374e;
  --accent: #3285ae;
  --text: #4a5e70;
  --paper: #f5f9fc;
  --line: #dce6ed;
  --heading: Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font: 1rem/1.55 Arial, Helvetica, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1160px, 90%); margin-inline: auto; }
.skip { position: absolute; top: .6rem; left: .6rem; transform: translateY(-180%); }
.skip:focus { z-index: 2; padding: .5rem .75rem; background: white; transform: none; }
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .header nav, .brand {
  display: flex;
  align-items: center;
}
.header-inner { min-height: 76px; justify-content: space-between; gap: .8rem; }
.header nav { gap: clamp(.8rem, 3vw, 2rem); }
.brand { gap: .65rem; color: var(--ink); font-size: .75rem; line-height: 1.15; letter-spacing: .1em; font-weight: 700; text-decoration: none; }
.brand img { width: 48px; height: auto; }
.home { text-decoration: none; }
.home:hover, .jump-links a:hover { text-decoration: underline; }
.cta { display: inline-block; background: var(--ink); color: #fff; padding: .7rem 1.05rem; font-size: .92rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--deep); }
.hero { display: grid; grid-template-columns: 0.83fr 1.17fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; margin-block: clamp(1.8rem, 5vw, 4.5rem) 0; }
h1, h2 { margin: 0; font-family: var(--heading); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
h1 { font-size: clamp(4rem, 9vw, 8.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.intro p { color: var(--text); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 25em; margin: 1.35rem 0 1.45rem; }
.jump-links { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.4rem; font-size: .94rem; }
.jump-links a { font-weight: 700; text-decoration: none; color: var(--ink); }
.photo { --tone: none; --focus: center; margin: 0; min-width: 0; }
.baño-mampara { --tone: brightness(1.09) contrast(1.02) saturate(.95); --focus: 50% 55%; }
.ducha { --tone: brightness(1.13) contrast(1.02) saturate(.93); --focus: 50% 48%; }
.suelo { --tone: brightness(1.06) saturate(.92); --focus: 50% 34%; }
.cocina { --tone: brightness(1.15) contrast(1.04); --focus: 50% 47%; }
.alicatado { --tone: brightness(1.06) contrast(1.02); --focus: 47% 48%; }
.escalera { --tone: brightness(1.08) saturate(.92); --focus: 50% 48%; }
.colocación { --tone: brightness(1.12) saturate(.94); }
.photo-link { display: block; background: var(--line); aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.photo-link img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus); filter: var(--tone); }
.featured .photo-link { aspect-ratio: 5 / 5; }
figcaption { padding-top: .7rem; font-size: .97rem; font-weight: 700; }
.group { margin-top: clamp(2.75rem, 7vw, 5.75rem); }
.group h2 { margin-bottom: 1.35rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.process { padding-top: 2rem; border-top: 1px solid var(--line); }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding: clamp(1.35rem, 4vw, 2.75rem); margin-block: clamp(2.8rem, 7vw, 5rem) 2rem; background: #e5f1f8; }
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
footer { padding-block: 1rem 2rem; font-size: .9rem; color: var(--text); }
.viewer { padding: 0; border: 0; width: min(56rem, 92vw); max-height: 95vh; background: #101e29; color: #fff; }
.viewer::backdrop { background: rgb(12 25 36 / 85%); }
.viewer-inner { position: relative; padding: .8rem; }
.viewer figure { margin: 0; }
.viewer img { height: min(76vh, 56rem); width: 100%; object-fit: contain; filter: var(--tone, none); }
.viewer figcaption { text-align: center; padding: .55rem .25rem; }
.close { position: absolute; z-index: 1; top: .6rem; right: .6rem; width: 2.75rem; height: 2.75rem; background: #fff; color: var(--deep); border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  h1 br { display: none; }
  h1 { max-width: 8ch; font-size: clamp(3.65rem, 11vw, 5.25rem); }
  .featured .photo-link { aspect-ratio: 5 / 4; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .intro p { margin-block: 1rem; }
}
@media (max-width: 390px) {
  .home { display: none; }
  .header-inner { min-height: 65px; }
}
