/* Estilos de las paginas internas de estudiobielli.com.ar (ARQ-562).

   La home mantiene su CSS en linea a proposito: es la pagina que mas importa
   para el LCP y no conviene sumarle una peticion bloqueante. Lo unico que se
   repite entre los dos lados son las variables de color y la cabecera; el
   resto de este archivo es propio de las fichas y de las landings. */

:root {
  --crema: #f5f0eb;
  --arena: #ebe3d9;
  --tinta: #2d2a26;
  --tinta-75: rgba(45, 42, 38, .75);
  --tinta-50: rgba(45, 42, 38, .7);
  --topo: #7a7064;
  --topo-oscuro: #685f54;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 300;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.6;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.mayus { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 400; }
.oculto {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --- Cabecera y menu (mismos que la home) ------------------------------- */

.cabecera {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference;
}
.marca { font-size: 1.9rem; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.boton-menu {
  background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-content: center; gap: 7px;
}
.boton-menu span { display: block; width: 30px; height: 1.5px; background: currentColor; }

.menu {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(122, 112, 100, .94); backdrop-filter: blur(14px);
  color: #fff; padding: 90px var(--gutter) 40px;
  display: none; flex-direction: column; justify-content: space-between;
}
.menu.abierto { display: flex; }
.menu nav a {
  display: block; font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 200;
  text-transform: uppercase; line-height: 1.1;
}
.menu nav a:hover { opacity: .6; }
.menu .cerrar {
  position: absolute; top: 18px; right: var(--gutter);
  background: none; border: 0; color: #fff; font-size: 2.2rem; font-weight: 200;
  cursor: pointer; width: 44px; height: 44px;
}
.menu .redes { display: flex; gap: 24px; }

/* --- Estructura comun --------------------------------------------------- */

section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.numero { display: block; margin-bottom: 18px; color: var(--tinta-50); }
h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.8rem); font-weight: 200;
  text-transform: uppercase; line-height: 1.05; letter-spacing: .01em;
  margin-bottom: 24px;
}
h3 { font-weight: 400; font-size: 1.02rem; }

.migas {
  padding: 92px var(--gutter) 0;
  color: var(--tinta-50);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.migas a:hover { color: var(--tinta); text-decoration: underline; }
.migas [aria-current] { color: var(--tinta); }

.boton {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px; padding: 16px 28px; min-height: 48px;
  background: var(--tinta); color: var(--crema);
  text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 400;
  transition: opacity .2s;
}
.boton:hover { opacity: .85; }
.boton.claro { background: transparent; color: var(--tinta); border: 1px solid var(--tinta); }

.contacto { background: var(--arena); text-align: center; }
.contacto h2 { margin-inline: auto; max-width: 18ch; }
.contacto p { color: var(--tinta-75); }

/* --- Ficha de obra ------------------------------------------------------ */

.ficha-cab {
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .ficha-cab { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .ficha-cab .ficha-texto { position: sticky; top: 96px; }
}
.ficha-cab h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 200;
  text-transform: uppercase; line-height: 1.04; letter-spacing: .01em;
  margin-bottom: 26px;
}
.ficha-texto p { color: var(--tinta-75); max-width: 46ch; }
.ficha-texto p + p { margin-top: 16px; }
.ficha-portada { background: #d9d0c4; }

.galeria { padding-top: 0; }
.galeria figure { break-inside: avoid; margin-bottom: 10px; background: #d9d0c4; }
@media (min-width: 700px) { .galeria { columns: 2; column-gap: 10px; } }
@media (min-width: 1200px) { .galeria { columns: 3; } }

/* --- Listado de proyectos ----------------------------------------------- */

.listado-cab { padding-bottom: 0; }
.listado-cab h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 200;
  text-transform: uppercase; line-height: 1.04; margin-bottom: 20px;
}
.listado-cab p { color: var(--tinta-75); max-width: 52ch; }

.proyectos { background: var(--arena); }
.filtros { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--tinta-50); margin-bottom: 28px; }
.filtros button {
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
  padding: 8px 0; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
}
.filtros button[aria-pressed="true"] { color: var(--tinta); border-bottom: 1px solid var(--tinta); }

.grilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.obra { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d9d0c4; }
.obra a { display: block; width: 100%; height: 100%; }
.obra img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.obra:hover img { transform: scale(1.04); }
.obra figcaption {
  position: absolute; inset: 0; padding: 12px; color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent 46%);
  display: flex; flex-direction: column;
}
.obra figcaption small { opacity: .92; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

/* --- Otros proyectos (ficha y landing) ---------------------------------- */

.otras-obras { background: var(--arena); }
.otras-grilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .otras-grilla { grid-template-columns: repeat(3, 1fr); } }
.otra { display: block; }
.otra img {
  aspect-ratio: 4 / 5; object-fit: cover; background: #d9d0c4;
  transition: opacity .3s;
}
.otra:hover img { opacity: .85; }
.otra span { display: block; margin-top: 10px; }
.otra small { display: block; color: var(--tinta-50); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }

/* --- Landings ----------------------------------------------------------- */

.lp-portada { padding-top: clamp(28px, 4vw, 48px); }
.lp-portada h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.8rem); font-weight: 200;
  text-transform: uppercase; line-height: 1.05; letter-spacing: .01em;
  max-width: 18ch;
}
.lp-entrada {
  margin-top: 22px; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 200;
  max-width: 34ch; line-height: 1.38;
}
.lp-intro { padding-top: 0; }
.lp-intro p { color: var(--tinta-75); max-width: 60ch; }
.lp-intro p + p { margin-top: 16px; }

.lp-servicios { background: var(--arena); }
.servicios { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .servicios { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .servicios { grid-template-columns: repeat(3, 1fr); } }
.servicio { padding-top: 16px; border-top: 1px solid rgba(45, 42, 38, .18); }
.servicio p { margin-top: 8px; color: var(--tinta-75); font-size: .95rem; }

.faq { max-width: 64ch; }
.faq-item { border-top: 1px solid rgba(45, 42, 38, .18); }
.faq-item summary {
  cursor: pointer; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 200; color: var(--tinta-50); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { display: inline; font-weight: 400; }
.faq-item p { padding: 0 0 20px; color: var(--tinta-75); max-width: 58ch; }

.lp-cerca { background: var(--arena); }
.lp-cerca-links { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-cerca-links a {
  border: 1px solid var(--tinta-50); padding: 10px 18px; min-height: 44px;
  display: inline-flex; align-items: center; transition: all .2s;
}
.lp-cerca-links a:hover { background: var(--tinta); color: var(--crema); border-color: var(--tinta); }

/* --- Pie ---------------------------------------------------------------- */

footer {
  background: var(--topo-oscuro); color: #fff;
  padding: 48px var(--gutter) clamp(20px, 2.6vw, 36px);
  overflow: hidden;
}
.pie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 900px) { .pie { grid-template-columns: repeat(4, 1fr); } }
.pie a, .pie span { display: block; line-height: 1.9; }
.pie .tenue { opacity: .7; }

.pie-seo {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
}
.pie-seo a { opacity: .85; }
.pie-seo a:hover { opacity: 1; text-decoration: underline; }

.gigante {
  font-size: clamp(3rem, 15.2vw, 15rem); font-weight: 400; line-height: 1;
  letter-spacing: -.035em; margin-top: 48px; white-space: nowrap;
}
.gigante small { font-size: .3em; letter-spacing: .02em; font-weight: 200; margin-left: .3em; }

/* --- Flotantes ---------------------------------------------------------- */

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 15;
  width: 56px; height: 56px; border-radius: 50%; background: var(--tinta);
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0, 0, 0, .2);
}
.wa svg { width: 26px; height: 26px; fill: var(--crema); }

.saltar {
  position: absolute; left: var(--gutter); top: -60px; z-index: 40;
  background: var(--tinta); color: var(--crema); padding: 12px 18px; transition: top .2s;
}
.saltar:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
