/* ==========================================================================
   Daiana Bruno — Arquitectura  (demo realizada por Cenit)
   Concepto: la web como una lámina de proyecto. Fondo hormigón claro,
   tipografía liviana y grande, fotos a todo el ancho y datos de obra.
   ========================================================================== */

:root {
  --concrete: #E7E5E0;   /* fondo: hormigón claro */
  --paper: #F4F3EF;      /* superficies */
  --ink: #171716;        /* texto y fondo oscuro */
  --stone: #6E6B65;      /* texto secundario */
  --line: rgba(23, 23, 22, .16);
  --moss: #46513F;       /* acento: verde patina, uso mínimo */

  --f: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22, .7, .2, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--concrete); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-left: max(var(--gutter), 3vw); padding-right: max(var(--gutter-r), 3vw); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 12px; }

/* ---------- Tipografía ---------- */
.display { font-weight: 300; font-size: clamp(52px, 9vw, 148px); line-height: .92; letter-spacing: -.05em; }
.h2 { font-weight: 300; font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--stone); max-width: 32em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink);
  font: 500 16px/1 var(--f); text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--moss); border-color: var(--moss); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: transparent; color: var(--paper); }

/* ==========================================================================
   BARRA SUPERIOR
   Sobre la portada es transparente y blanca; al bajar pasa a hormigón.
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink); background: rgba(231, 229, 224, .9);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.bar.is-over { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar.is-hidden { transform: translateY(-100%); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand__mark {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border: 1px solid currentColor; font-size: 13px; font-weight: 500; letter-spacing: .04em;
}
.brand__txt { display: grid; line-height: 1.15; }
.brand__txt b { font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.brand__txt span { font-size: 13px; opacity: .7; }

.bar__right { display: flex; align-items: center; gap: 28px; }
.bar__cta { font-size: 15px; text-decoration: none; position: relative; padding-block: 4px; }
.bar__cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.35); transform-origin: left; transition: transform .45s var(--slow); }
.bar__cta:hover::after { transform: scaleX(1); }

.burger {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 4px;
  background: none; border: 0; color: inherit; font: 500 15px var(--f); cursor: pointer;
}
.burger__lines { position: relative; width: 26px; height: 10px; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--slow), top .45s var(--slow); }
.burger__lines i:first-child { top: 0; }
.burger__lines i:last-child { top: 8.5px; }
.burger:hover .burger__lines i:last-child { transform: scaleX(.6); transform-origin: right; }
.burger--close .burger__lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.burger--close .burger__lines i:last-child { top: 4.25px; transform: rotate(-45deg); }
.burger--close:hover .burger__lines i:last-child { transform: rotate(-45deg); }

@media (max-width: 640px) {
  .bar__cta { display: none; }
  .bar__in { height: 70px; }
  .brand__mark { width: 36px; height: 36px; font-size: 12px; }
}

/* ---------- Menú a pantalla completa ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; overflow-y: auto;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--slow);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 84px; flex: none; }
.brand--menu { color: var(--paper); }
.menu__body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 24px 48px; }
.menu__nav { display: grid; }
.menu__nav a {
  display: block; overflow: hidden; text-decoration: none;
  font-weight: 300; font-size: clamp(44px, 7.4vw, 104px); line-height: 1.08; letter-spacing: -.05em;
  color: rgba(244, 243, 239, .38); transition: color .35s var(--ease);
}
.menu__nav a span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--slow); }
.menu.is-open .menu__nav a span { transform: none; }
.menu.is-open .menu__nav a:nth-child(2) span { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) span { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) span { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(5) span { transition-delay: .2s; }
.menu__nav a:hover, .menu__nav a:focus-visible, .menu__nav a.is-current { color: var(--paper); }
.menu__side { display: grid; gap: 28px; align-content: center; }
.menu__pic { aspect-ratio: 4 / 3; overflow: hidden; background: #2A2A28; }
.menu__pic img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform 1.2s var(--slow); }
.menu__pic img.is-swap { opacity: 0; transform: scale(1.04); }
.menu__info { display: grid; margin: 0; border-top: 1px solid rgba(244,243,239,.18); }
.menu__info div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(244,243,239,.18); font-size: 15px; }
.menu__info dt { color: #A8A59F; }
.menu__info dd { margin: 0; }
@media (max-width: 820px) {
  .menu__body { grid-template-columns: 1fr; align-items: start; padding-top: 8px; }
  .menu__pic { display: none; }
  .menu__top { height: 70px; }
}

/* ==========================================================================
   PORTADA
   ========================================================================== */
.hero { position: relative; min-height: clamp(560px, 92vh, 980px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #3B3A36; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: settle 2.4s var(--slow) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.55) 100%); }
.hero__in { position: relative; padding-bottom: clamp(32px, 5vw, 64px); padding-top: 140px; }
.hero .display { text-shadow: 0 2px 40px rgba(0,0,0,.18); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.35); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 28em; }
.hero__cap { display: grid; text-align: right; font-size: 14px; line-height: 1.45; }
.hero__cap b { font-weight: 500; }
.hero__cap span { opacity: .8; }
@media (max-width: 640px) { .hero__cap { text-align: left; } }

/* ---------- Presentación ---------- */
.intro { padding-block: clamp(88px, 11vw, 160px) 0; }
.intro__txt { font-weight: 300; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.18; letter-spacing: -.035em; max-width: 22em; text-wrap: pretty; }
.intro__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.sec { padding-block: clamp(96px, 12vw, 168px); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.sec__head .lead { justify-self: end; }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; gap: 20px; } .sec__head .lead { justify-self: start; } }

/* ---------- Estudio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.studio__fig { margin: 0; display: grid; gap: 12px; }
.studio__img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; width: 100%; }
.studio__fig figcaption { font-size: 13px; color: var(--stone); }
.studio__body { display: grid; gap: 26px; }
.studio__body p { color: var(--stone); max-width: 34em; }
.studio__body p.big { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.32; letter-spacing: -.025em; font-weight: 300; max-width: 22em; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.values h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.values p { font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } .studio__img { aspect-ratio: 4 / 3; } .values { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Servicios ---------- */
.services { background: var(--paper); }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc__item { position: relative; padding: 36px 32px 44px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.svc__item:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.svc__item h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.svc__item p { color: var(--stone); font-size: 16px; line-height: 1.55; max-width: 26em; }
.svc__item--cta { background: var(--ink); color: var(--paper); padding: 36px 32px 40px !important; align-content: space-between; }
.svc__item--cta p { color: #B9B6AF; margin-top: 12px; }
.svc__item--cta .btn { justify-self: start; margin-top: 24px; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc__item, .svc__item:not(:nth-child(3n+1)) { padding: 30px 24px 32px 0; border-left: 0; }
  .svc__item:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr; }
  .svc__item, .svc__item:nth-child(2n) { padding: 26px 0 28px; border-left: 0; }
  .svc__item--cta { margin-top: 24px; padding: 28px 24px !important; }
}

/* ---------- Proyectos (galería) ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 2.4vw, 32px); }
.proj { display: grid; gap: 18px; align-content: start; min-width: 0; }
.proj--a { grid-column: 1 / span 7; }
.proj--b { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 180px); }
.proj--c { grid-column: 2 / span 4; }
.proj--d { grid-column: 7 / span 6; margin-top: clamp(60px, 8vw, 120px); }
.proj__media { overflow: hidden; background: #D5D2CB; }
.proj--a .proj__media, .proj--d .proj__media { aspect-ratio: 4 / 3; }
.proj--b .proj__media, .proj--c .proj__media { aspect-ratio: 4 / 5; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--slow); }
.proj--b .proj__media img { object-position: 40% 50%; }
.proj--c .proj__media img { object-position: 25% 50%; }
.proj:hover .proj__media img { transform: scale(1.04); }
.proj__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; }
.proj__meta h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 300; letter-spacing: -.035em; line-height: 1.15; }
.proj__meta p { grid-column: 1; font-size: 15px; color: var(--stone); font-variant-numeric: tabular-nums; }
.proj__meta .state { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.state { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.state--work { background: var(--moss); border-color: var(--moss); color: var(--paper); }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; gap: 48px; }
  .proj--a, .proj--b, .proj--c, .proj--d { grid-column: auto; margin-top: 0; }
  .proj--b .proj__media, .proj--c .proj__media { aspect-ratio: 4 / 3; }
}

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .lead { color: #B9B6AF; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__info { display: grid; gap: 32px; }
.contact__list { display: grid; margin: 0; border-top: 1px solid rgba(244,243,239,.18); }
.contact__list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(244,243,239,.18); }
.contact__list dt { color: #B9B6AF; font-size: 15px; }
.contact__list dd { margin: 0; font-size: 17px; text-align: right; }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: #B9B6AF; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--paper); border: 0; border-bottom: 1px solid rgba(244,243,239,.35);
  padding: 10px 0 12px; font: 300 22px/1.3 var(--f); letter-spacing: -.01em; border-radius: 0; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #B9B6AF 50%), linear-gradient(135deg, #B9B6AF 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,243,239,.35); }
.form__err { color: #E8B4A0; font-size: 14px; min-height: 1.2em; }
.form .btn { justify-self: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.foot { background: var(--ink); color: #8F8C86; font-size: 13px; padding-block: 0 32px; }
.foot a { color: inherit; }
.foot__in { border-top: 1px solid rgba(244,243,239,.14); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Aviso de demo ---------- */
.demo {
  position: fixed; z-index: 70; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 16px; border-radius: 999px;
  background: rgba(23,23,22,.88); color: var(--paper); font-size: 13px; line-height: 1.2;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.demo a { color: #F0B23F; text-decoration: none; font-weight: 600; }
.demo button { background: none; border: 0; color: #8F8C86; font-size: 16px; cursor: pointer; padding: 0 0 0 4px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; }
  .menu { transition: none; }
  .menu__nav a span { transform: none; transition: none; }
}
