/* =========================================================
   ESTUDIO ROIG — Clara Roig, arquitectura brutalista · Barcelona
   Sistema visual adaptado de Yllw (monografía Swiss-Bauhaus,
   tipografía monumental, lienzo putty, sin sombras)
   ========================================================= */

:root {
  /* Colores */
  --color-putty: #cac7b4;
  --color-yellow: #ffdd00;
  --color-ink: #000000;
  --color-paper: #ffffff;
  --color-carbon: #191919;
  --color-smoke: #cccccc;

  /* Tipografia — Big Shoulders (Google Fonts), condensada e industrial */
  --font-display:
    'Big Shoulders', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, sans-serif;

  --text-caption: 13px;
  --text-body: 16px;
  --text-subheading: 18px;
  --text-heading-sm: 20px;
  --text-heading: 26px;
  --text-heading-xl: 44px;
  --text-display-sm: clamp(40px, 8vw, 64px);
  --text-display: clamp(56px, 11vw, 97px);
  --text-display-lg: clamp(72px, 16vw, 166px);
  --text-display-xl: clamp(88px, 20vw, 216px);

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Espaciado */
  --spacing-8: 8px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-96: 96px;

  --page-max-width: 1400px;
  --radius-sm: 2px;
  --radius-md: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-putty);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Franja de aviso ---------- */
.banner {
  background: var(--color-yellow);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 24px;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-align: center;
  position: relative;
}
.banner.is-closed {
  display: none;
}
.banner__close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink);
}

/* ---------- Nav ---------- */
.nav {
  background: var(--color-putty);
  box-shadow: inset 0 -1px 0 0 var(--color-ink);
}
.nav__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  font-size: 20px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 24px;
  margin: 0 auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: var(--weight-medium);
}
.nav__links a:hover {
  text-decoration: underline;
}
.nav__cta {
  background: var(--color-putty);
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: var(--weight-medium);
}
button.nav__cta {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav__cta:hover {
  background: #b8b5a3;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--spacing-96) 24px var(--spacing-64);
  text-align: center;
}
.hero__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
}
.hero__eyebrow {
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
}
.hero__body {
  max-width: 640px;
  margin: 32px auto 0;
  font-size: var(--text-subheading);
  line-height: 1.5;
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Botones ---------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: var(--weight-medium);
  transition: background 0.2s ease;
}
.btn-primary {
  background: var(--color-putty);
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}
.btn-primary:hover {
  background: #b8b5a3;
}
.btn-secondary {
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}
.btn-secondary:hover {
  background: #eeeeee;
}

/* ---------- Section heading ---------- */
.section {
  padding: var(--spacing-64) 24px;
}
.section__head {
  max-width: var(--page-max-width);
  margin: 0 auto var(--spacing-40);
}
.section__eyebrow {
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  margin-bottom: 16px;
}
.section__title {
  font-size: var(--text-display-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.01em;
}
.section__body {
  max-width: 640px;
  font-size: var(--text-body);
  margin-top: 16px;
}

/* ---------- Estudio / bio ---------- */
.panorama {
  max-width: var(--page-max-width);
  margin: 0 auto var(--spacing-64);
}
.panorama img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--color-ink);
}

.bio {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.bio__quote {
  font-size: var(--text-heading-xl);
  font-weight: var(--weight-semibold);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.bio__text {
  font-size: var(--text-body);
  line-height: 1.6;
}
.bio__text p + p {
  margin-top: 16px;
}

/* ---------- Filas de proyecto (accordion-style) ---------- */
.project-row {
  max-width: var(--page-max-width);
  margin: 0 auto;
  background: var(--color-paper);
}
.project-row__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 24px;
  box-shadow: inset 0 -1px 0 0 var(--color-ink);
}
.project-row__preview {
  width: 150px;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.project-row__item:hover .project-row__preview {
  filter: grayscale(0) contrast(1.04);
}
.project-row__item:first-child {
  box-shadow:
    inset 0 1px 0 0 var(--color-ink),
    inset 0 -1px 0 0 var(--color-ink);
}
.project-row__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 260px;
}
.project-row__tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  opacity: 0.6;
}
.project-row__desc {
  font-size: 14px;
}
.project-row__name {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.project-row__arrow {
  font-size: 24px;
  flex-shrink: 0;
}

/* ---------- Equipo ---------- */
.team__grid {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}
.team-card {
  background: var(--color-putty);
  padding: 32px;
}
.team-card__name {
  font-size: 22px;
  font-weight: var(--weight-semibold);
}
.team-card__role {
  font-size: 14px;
  margin-top: 4px;
  opacity: 0.7;
}

.process {
  padding: 100px 24px;
  color: var(--color-paper);
  background: var(--color-carbon);
}
.process header {
  max-width: var(--page-max-width);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 0.6fr 1.4fr 0.8fr;
  gap: 40px;
  align-items: end;
}
.process header > p:first-child {
  align-self: start;
  font-size: 12px;
}
.process h2 {
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.82;
  text-transform: uppercase;
}
.process header > p:last-child {
  font-size: 17px;
  color: #bbb;
}
.process ol {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid #fff;
}
.process li {
  min-height: 330px;
  padding: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #666;
}
.process li span,
.process li small {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.process li strong {
  margin-top: 75px;
  font-size: 28px;
  text-transform: uppercase;
}
.process li p {
  margin-top: 12px;
  max-width: 27ch;
  color: #aaa;
  font-size: 14px;
}
.process li small {
  margin-top: auto;
  color: var(--color-yellow);
}

/* ---------- Placeholder de foto (hasta tener las reales) ---------- */
.photo-slot {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    135deg,
    var(--color-smoke),
    var(--color-smoke) 10px,
    var(--color-putty) 10px,
    var(--color-putty) 20px
  );
  box-shadow: inset 0 0 0 1px var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.photo-slot__label {
  background: var(--color-paper);
  box-shadow: inset 0 0 0 1px var(--color-ink);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--color-ink);
}

/* ---------- Sala/room block ---------- */
.room {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: var(--spacing-64) 0;
  box-shadow: inset 0 -1px 0 0 var(--color-ink);
}
.room:last-child {
  box-shadow: none;
}
.room:nth-child(even) .room__media {
  order: 2;
}
.room__tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
}
.room__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  margin-top: 8px;
}
.room__text {
  font-size: var(--text-body);
  margin-top: 16px;
  max-width: 46ch;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--color-carbon);
  color: var(--color-paper);
  text-align: center;
  padding: var(--spacing-96) 24px;
}
.cta__title {
  max-width: var(--page-max-width);
  margin: 0 auto;
  font-size: var(--text-display-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  line-height: 0.96;
}
.cta .btn-secondary {
  margin-top: 32px;
}
button.btn-secondary {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.project-form {
  width: min(760px, calc(100% - 24px));
  padding: clamp(35px, 6vw, 80px);
  border: 1px solid #000;
  background: var(--color-putty);
  color: #000;
}
.project-form::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.project-form__close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: 0;
  background: none;
  font: 30px var(--font-display);
  cursor: pointer;
}
.project-form > p {
  font-size: 12px;
}
.project-form h2 {
  margin: 20px 0 50px;
  font-size: clamp(55px, 8vw, 90px);
  line-height: 0.85;
  text-transform: uppercase;
}
.project-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}
.project-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
}
.project-form input,
.project-form select,
.project-form textarea {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
}
.project-form textarea {
  resize: vertical;
}
.project-form__wide {
  grid-column: 1 / -1;
}
.project-form form button {
  border: 0;
  cursor: pointer;
}
.project-form > small {
  display: block;
  margin-top: 20px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--color-putty);
  padding: var(--spacing-40) 24px;
  box-shadow: inset 0 1px 0 0 var(--color-ink);
}
.footer__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer__logo {
  font-size: 20px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 8px;
}
footer p {
  font-size: 14px;
  line-height: 1.6;
}
footer a:hover {
  text-decoration: underline;
}
.footer__bottom {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.2);
  font-size: 12px;
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bio {
    grid-template-columns: 1fr;
  }
  .team__grid {
    grid-template-columns: 1fr;
  }
  .room {
    grid-template-columns: 1fr;
  }
  .room:nth-child(even) .room__media {
    order: 0;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .process header {
    grid-template-columns: 1fr;
  }
  .process ol {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 20px;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-putty);
    box-shadow: inset 0 -1px 0 0 var(--color-ink);
    padding: 8px 24px 16px;
    z-index: 20;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 12px 0;
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.15);
  }
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav {
    position: relative;
  }
  .project-row__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .project-row__preview {
    width: 100%;
  }
  .process {
    padding-inline: 20px;
  }
  .process ol {
    grid-template-columns: 1fr;
  }
  .process li {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid #666;
  }
  .project-form form {
    grid-template-columns: 1fr;
  }
  .project-form__wide {
    grid-column: 1;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}
