/* MAZ Arquitectura
   Motivo: el "+" (MAZ = más) marca el inicio de cada sección, como cruce de ejes en un plano.
   Acento: verde tomado de la fachada del estudio. */

:root {
  --paper: #f4f2ee;
  --ink: #11110f;
  --warm: #6f6a62;      /* gris cálido, texto secundario */
  --warm-2: #938c82;    /* gris cálido, solo títulos grandes */
  --line: #d3cec5;
  --accent: #3f6f5d;
  --gutter: 20px;
  --gap: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --gap: 112px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --gap: 168px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
ul { list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; filter: grayscale(1); background: var(--line); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; top: 0; left: 0; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--paper); transform: translateY(-110%); }
.skip:focus { transform: none; }

/* ── Cabecera ── */
.top {
  position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.top__brand { position: relative; z-index: 2; padding: 12px 12px 12px 0; font-size: 18px; letter-spacing: -.02em; }
.top__brand b { font-weight: 800; }
.top__toggle { position: relative; z-index: 2; border: 0; background: none; padding: 12px 0 12px 20px; font: inherit; color: inherit; cursor: pointer; }
.top__nav {
  position: fixed; inset: 0; z-index: 1; padding: 88px var(--gutter) 32px; background: var(--paper);
  display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
}
.top__nav.is-open { visibility: visible; opacity: 1; }
.top__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 36px; letter-spacing: -.04em; line-height: 1.15; }
.menu-open { overflow: hidden; }
html:not(.js) .top__toggle { display: none; }
@media (min-width: 768px) {
  .top__toggle { display: none; }
  .top__nav { position: static; visibility: visible; opacity: 1; padding: 0; flex-direction: row; gap: 28px; }
  .top__nav a { padding: 4px 0; border: 0; font-size: 14px; letter-spacing: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
  .top__nav a:hover { background-size: 100% 1px; }
}

/* ── Hero ── */
.hero__name { display: block; padding: 20px var(--gutter) 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }
.hero__lema {
  display: block; padding: 56px var(--gutter) 40px;
  font-size: 18.3vw; line-height: .9; letter-spacing: -.045em; font-weight: 400; color: var(--warm-2);
}
.hero__lema b { font-weight: 800; color: var(--ink); letter-spacing: -.035em; }
.hero__lema .d { display: none; }
.hero__row { display: grid; gap: 4px; padding: 0 var(--gutter) 32px; }
.hero__meta { color: var(--warm); }
.hero__row .btn { margin-top: 24px; justify-self: start; }
.hero__img img { height: 120vw; max-height: 78vh; object-fit: cover; }
figcaption { font-size: 13px; color: var(--warm); }
.hero__img figcaption { padding: 10px var(--gutter) 0; }
@media (min-width: 768px) {
  .hero__lema { padding-block: 72px 56px; font-size: 14vw; line-height: .86; }
  .hero__lema .m { display: none; }
  .hero__lema .d { display: inline; }
  .hero__row { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding-bottom: 40px; }
  .hero__meta { grid-column: span 3; }
  .hero__text { grid-column: span 5; }
  .hero__row .btn { grid-column: span 4; justify-self: end; margin: 0; }
  .hero__img img { height: 56.25vw; max-height: 92vh; }
}
@media (min-width: 1200px) { .hero__lema { padding-block: 64px 64px; } }

/* ── Botón y enlaces ── */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 0 22px;
  background: var(--ink); color: var(--paper); font-size: 15px; transition: background-color .25s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { background: var(--accent); }
.btn:hover span { transform: translateX(5px); }
/* con WhatsApp activo, el teléfono pasa a segundo plano */
[data-wa-only]:not([hidden]) + .btn--tel { background: none; color: inherit; box-shadow: inset 0 0 0 1px var(--ink); }
[data-wa-only]:not([hidden]) + .btn--tel:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.link, .u { border-bottom: 1px solid currentColor; transition: color .25s; }
.link:hover, .u:hover { color: var(--accent); }
.link { display: inline-block; padding: 6px 0 3px; }

/* ── Secciones ── */
.sec { position: relative; margin-top: var(--gap); padding: 0 var(--gutter); }
.sec__head {
  position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: baseline;
  padding: 16px 0 40px; border-top: 1px solid var(--line);
}
/* el "+" sobre el cruce de ejes */
.sec__head::before, .sec__head::after { content: ""; position: absolute; background: var(--accent); }
.sec__head::before { width: 15px; height: 1px; left: 37px; top: -1px; }
.sec__head::after { width: 1px; height: 15px; left: 44px; top: -8px; }
.sec__num { font-size: 15px; color: var(--warm); font-variant-numeric: tabular-nums; }
.sec h2 { font-size: 15px; }
@media (min-width: 1024px) {
  .sec:not(.sec--wide) { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .sec__head { grid-column: 1 / -1; grid-template-columns: calc((100% + 24px) / 4) 1fr; }
  .sec__head::before { left: calc((100% + 24px) / 4 - 7px); }
  .sec__head::after { left: calc((100% + 24px) / 4); }
  .sec__body { grid-column: 4 / -1; }
}

.lead { font-size: clamp(27px, 4.1vw, 58px); line-height: 1.08; letter-spacing: -.04em; text-wrap: pretty; }

/* ── Estudio ── */
.estudio { display: grid; gap: 32px; margin-top: 56px; }
.estudio__img figcaption { padding-top: 10px; }
.estudio__txt > p { max-width: 42ch; font-size: 16px; }
.estudio__txt > p + p { margin-top: 1em; }
.datos { margin-top: 40px; }
.datos div { display: flex; flex-direction: column-reverse; padding: 16px 0; border-top: 1px solid var(--line); }
.datos dt { font-size: 14px; color: var(--warm); }
.datos dd { font-size: clamp(32px, 4vw, 54px); line-height: 1.1; letter-spacing: -.045em; }
@media (min-width: 768px) {
  .estudio { grid-template-columns: 5fr 4fr; gap: 24px; margin-top: 88px; }
  .estudio__txt { display: flex; flex-direction: column; padding-left: 24px; }
  .datos { margin-top: auto; padding-top: 40px; }
}

/* ── Servicios ── */
.serv li { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.serv li:first-child { border-top: 0; padding-top: 0; }
.serv h3 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; transition: transform .45s var(--ease); }
.serv p { color: var(--warm); max-width: 36ch; }
@media (min-width: 768px) {
  .serv li { grid-template-columns: 5fr 4fr; gap: 24px; align-items: baseline; }
  .serv p { padding-left: 24px; }
}
@media (hover: hover) { .serv li:hover h3 { transform: translateX(12px); } }

/* ── Proyectos: a sangre, grilla 7/5 alternada ── */
.proy { display: grid; row-gap: 36px; margin: 0 calc(var(--gutter) * -1); }
.proy__img { overflow: hidden; aspect-ratio: 5 / 4; background: var(--line); }
.proy__img img { height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proy figure:hover img { transform: scale(1.025); }
.proy figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) 0; }
.proy figcaption b { font-size: 15px; font-weight: 400; color: var(--ink); }
@media (min-width: 768px) {
  .proy { grid-template-columns: repeat(12, 1fr); column-gap: 2px; row-gap: 56px; }
  .proy figure:nth-child(4n + 1), .proy figure:nth-child(4n + 4) { grid-column: span 7; }
  .proy figure:nth-child(4n + 2), .proy figure:nth-child(4n + 3) { grid-column: span 5; }
  .proy__img { aspect-ratio: auto; height: clamp(320px, 46vw, 820px); }
  .proy figcaption { padding-inline: 16px; }
}
@media (min-width: 1200px) { .proy figcaption { padding-inline: var(--gutter); } }

/* ── Reseñas ── */
.rating { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); }
.rating__n { font-size: clamp(110px, 21vw, 320px); line-height: .74; letter-spacing: -.05em; margin-left: -.04em; }
.rating__t span { color: var(--warm); }
.rating__t { line-height: 1.4; }
.quote { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.quote p { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; text-indent: -.42em; padding-left: .42em; }
.quote footer { margin-top: 18px; }
.nota { margin-top: 64px; padding-bottom: 14px; color: var(--warm); }
.res li { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); }
.res p { font-size: 17px; line-height: 1.45; max-width: 38ch; }
.res span { color: var(--warm); }
.sec .sec__body > .link { margin-top: 24px; }
@media (min-width: 768px) {
  .quote, .nota { margin-top: 96px; }
  .res { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .res li { align-content: space-between; min-height: 168px; }
}

/* ── Contacto ── */
.cta { font-size: clamp(44px, 8.4vw, 124px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 40px; }
.info { display: grid; gap: 0; margin-top: 64px; }
.info div { padding: 16px 0 22px; border-top: 1px solid var(--line); }
.info dt { color: var(--warm); font-size: 14px; margin-bottom: 6px; }
@media (min-width: 560px) { .info { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (min-width: 1200px) { .info { grid-template-columns: repeat(4, 1fr); margin-top: 104px; } }
.mapa { margin: 40px calc(var(--gutter) * -1) 0; height: 420px; background: var(--line); }
.mapa iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); }
@media (min-width: 1024px) { .mapa { grid-column: 1 / -1; height: 560px; margin-top: 72px; } }

/* ── Footer ── */
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 28px var(--gutter) 32px; font-size: 14px; }
.foot .u { justify-self: start; }
@media (min-width: 768px) { .foot { grid-template-columns: repeat(4, 1fr); } .foot > :last-child { justify-self: end; } }

/* ── WhatsApp flotante (solo mobile) ── */
.float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); transition: opacity .25s, visibility .25s;
}
.float.is-hidden, .menu-open .float { opacity: 0; visibility: hidden; }
@media (min-width: 768px) { .float { display: none; } }

/* ── Movimiento ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .js .reveal { opacity: 1; transform: none; } .float { display: none; } }
