/* ============================================================
   PATRICIA GANLY — Diseño de Interiores
   Estilo editorial: serif clásica, mucho blanco, calma.
   ============================================================ */

:root {
  /* Paleta — ESTUDIO G · tres colores de marca */
  --bg:        #F1F1F1;  /* neutral */
  --paper:    #FEFEFE;  /* white */
  --beige:    #E2DCD3;  /* neutral tint */
  --beige-2:  #D8D2C8;  /* neutral tint mid */
  --olive:    #A49585;  /* taupe — SOLO líneas / formas gráficas */
  --olive-2:  #343F37;  /* deep olive — acento de texto (accesible) */
  --taupe:    #A49585;  /* taupe gráfico */
  --mustard:  #A49585;
  --teachest: #A49585;
  --ink:      #343F37;  /* deep olive — texto principal */
  --ink-soft: #545B4D;  /* oliva apagado — texto secundario (AA) */
  --rule:     rgba(164, 149, 133, 0.55);  /* taupe — hairlines gráficas */

  /* Tipos — New York → Newsreader · Montserrat · Alex Brush */
  --serif:  "Newsreader", "Cormorant Garamond", Georgia, serif;
  --sans:   "Montserrat", "Helvetica Neue", sans-serif;
  --script: "Alex Brush", cursive;

  /* Medidas */
  --max:     none;
  --gutter:  clamp(24px, 8vw, 96px);
  --section: clamp(80px, 12vw, 180px);
}

/* Reset ligero */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Tipografía editorial */
.serif    { font-family: var(--serif); font-weight: 400; }
.italic   { font-style: italic; }
.eyebrow  {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-2);
  font-weight: 500;
}
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--olive-2);
  font-weight: 400;
}
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  color: var(--olive-2);
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.h-xl { font-size: clamp(40px, 6vw, 88px); line-height: 1.02; }
.h-l  { font-size: clamp(32px, 4.4vw, 64px); }
.h-m  { font-size: clamp(24px, 2.6vw, 36px); }
.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink);
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* Layout */
.wrap     { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); width: 100%; }
.section  { padding-block: var(--section); }
.divider  { height: 1px; background: var(--rule); }

/* Header / navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  gap: 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .brand-name { font-size: 22px; }
.brand .brand-sub  {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive-2);
  margin-top: 6px;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color .25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--olive);
}
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  transition: background .25s ease, color .25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; }
.mobile-menu { display: none !important; }
.mobile-menu.is-open { display: flex !important; }

@media (max-width: 840px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .nav-toggle .bars {
    display: inline-block;
    width: 22px; height: 10px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 60;
    padding: 32px var(--gutter);
    display: none;
    flex-direction: column;
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu .close {
    align-self: flex-end;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .mobile-menu nav {
    margin-top: 60px;
    display: flex; flex-direction: column; gap: 20px;
  }
  .mobile-menu nav a {
    font-family: var(--serif);
    font-size: 40px;
    line-height: 1;
  }
}

/* Footer */
.site-footer {
  padding-block: 80px 40px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer-grid h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--olive-2);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid p, .footer-grid a, .footer-grid li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand .brand-name {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p {
  max-width: 320px;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 28px;
  border: 1px solid var(--ink);
  transition: background .25s ease, color .25s ease, gap .25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); gap: 22px; }
.btn--ghost {
  border-color: var(--rule);
  padding-inline: 0;
  border-width: 0;
  border-bottom: 1px solid var(--ink);
  padding-block: 8px 14px;
}
.btn--ghost:hover { background: transparent; color: var(--ink); }
.btn .arrow {
  width: 18px; height: 1px; background: currentColor; position: relative;
  transition: width .25s ease;
}
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 26px; }

/* Hero (home) */
.hero {
  position: relative;
  display: block;
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  min-height: 72vh;
  padding-bottom: clamp(28px, 4vw, 48px);
}
.hero-meta {
  align-self: end;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.hero-meta--right { text-align: right; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  text-align: center;
  font-size: clamp(56px, 13vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: #1A1A18;
}
.hero-title em {
  font-style: italic;
  color: var(--olive-2);
  font-weight: 400;
}
/* When the hero carries a phrase (not the wordmark), dial the scale down a touch */
.hero-title--phrase {
  font-size: clamp(38px, 8vw, 132px);
  line-height: 0.92;
}
.hero-image {
  position: relative;
  display: block;
  margin-bottom: clamp(40px, 8vw, 96px);
  height: clamp(440px, 64vh, 720px);
  overflow: hidden;
}
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 -120px 200px -80px rgba(31,29,23,0.18);
  pointer-events: none;
}
.hero-image img,
.hero-image .image-slot-mount {
  width: 100%; height: 100%; object-fit: cover;
}
/* Hero slider */
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
}
.hero-slides .slide.is-active { opacity: 1; }
.hero-slides .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px; top: 24px;
  display: flex; gap: 9px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background .3s ease, transform .3s ease;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }
.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(20,18,14,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .35s ease, background .25s ease;
}
.hero-image:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(20,18,14,0.42); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }
@media (hover: none) { .hero-arrow { opacity: 1; } }
.hero-caption {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-caption .caption-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  max-width: 340px;
}

/* Section header — eyebrow + título grande */
.section-head {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}
.section-head .eyebrow-row {
  display: flex; flex-direction: column; gap: 8px;
  text-align: right;
  align-items: flex-end;
}
.section-head h2 {
  text-wrap: balance;
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; margin-bottom: 40px; }
}

/* Intro / quote panel */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.intro-grid .left {
  position: sticky;
  top: 120px;
}
.intro-grid h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  font-style: italic;
}
.intro-grid p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 22px;
}
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .left { position: static; }
}

/* Proyectos destacados (home) — editorial asymmetric */
.featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 32px;
  row-gap: clamp(48px, 8vw, 120px);
}
.feat-card {
  position: relative;
  display: block;
}
.feat-card .img-wrap {
  overflow: hidden;
  position: relative;
}
.feat-card .img-wrap img,
.feat-card .img-wrap .image-slot-mount {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.feat-card:hover .img-wrap img,
.feat-card:hover .img-wrap .image-slot-mount {
  transform: scale(1.04);
}
.feat-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  gap: 16px;
}
.feat-card .meta h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}
.feat-card .meta .loc {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.feat-card .img-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity .25s ease;
}

/* Featured layout pattern */
.feat-1 { grid-column: 1 / span 7; }
.feat-1 .img-wrap { aspect-ratio: 4 / 5; }
.feat-2 { grid-column: 9 / span 4; align-self: end; padding-bottom: 60px; }
.feat-2 .img-wrap { aspect-ratio: 4 / 5; }
.feat-3 { grid-column: 1 / span 4; }
.feat-3 .img-wrap { aspect-ratio: 4 / 5; }
.feat-4 { grid-column: 6 / span 7; margin-top: 80px; }
.feat-4 .img-wrap { aspect-ratio: 4 / 5; }

@media (max-width: 880px) {
  .featured { grid-template-columns: 1fr; gap: 48px; }
  .feat-1, .feat-2, .feat-3, .feat-4 {
    grid-column: 1 / -1; margin: 0; padding: 0; align-self: auto;
  }
}

/* Proyectos page — index editorial */
.proj-index {
  border-top: 1px solid var(--ink);
}
.proj-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 1fr 1fr 80px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  position: relative;
  transition: background .3s ease, padding .3s ease;
}
.proj-row:hover { padding-inline: 24px; background: var(--paper); }
.proj-row .num-col {
  font-family: var(--serif);
  font-style: italic;
  color: var(--olive-2);
  font-size: 18px;
}
.proj-row .title-col {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
}
.proj-row .meta-col {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.proj-row .arrow-col { text-align: right; }
.proj-row .preview {
  position: absolute;
  right: 96px;
  top: 50%;
  width: 240px;
  height: 180px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(.96);
  transition: opacity .3s ease, transform .4s ease;
  overflow: hidden;
  z-index: 2;
}
.proj-row .preview img,
.proj-row .preview .image-slot-mount {
  width: 100%; height: 100%; object-fit: cover;
}
.proj-row:hover .preview { opacity: 1; transform: translateY(-50%) scale(1); }

@media (max-width: 880px) {
  .proj-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
  .proj-row .num-col { grid-row: 1 / span 2; }
  .proj-row .title-col { grid-column: 2; }
  .proj-row .meta-col { grid-column: 2; font-size: 10px; }
  .proj-row .meta-col + .meta-col { display: none; }
  .proj-row .arrow-col { display: none; }
  .proj-row .preview { display: none; }
}

/* Proyecto detalle */
.detail-hero {
  padding-top: 32px;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
  margin-block: 48px;
}
.detail-meta dt {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-2);
  margin-bottom: 6px;
}
.detail-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}
@media (max-width: 760px) {
  .detail-meta { grid-template-columns: 1fr 1fr; }
}

.detail-intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 8vw, 120px);
  margin-bottom: clamp(60px, 10vw, 120px);
}
.detail-intro h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 300;
  font-style: italic;
  color: var(--olive-2);
}
.detail-intro p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  margin: 0 0 22px;
}
@media (max-width: 880px) { .detail-intro { grid-template-columns: 1fr; } }

/* Galería editorial */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  row-gap: 32px;
}
.gallery > figure { margin: 0; cursor: zoom-in; }
.gallery img,
.gallery .image-slot-mount {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.gallery > figure { overflow: hidden; }
.gallery > figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
  padding-inline: 2px;
}

.g-full   { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.g-half-l { grid-column: 1 / span 6; aspect-ratio: 4 / 5; }
.g-half-r { grid-column: 7 / span 6; aspect-ratio: 4 / 5; }
.g-third-l{ grid-column: 1 / span 5; aspect-ratio: 4 / 5; align-self: end; }
.g-third-r{ grid-column: 7 / span 6; aspect-ratio: 5 / 4; }
.g-wide-l { grid-column: 1 / span 7; aspect-ratio: 5 / 4; }
.g-wide-r { grid-column: 8 / span 5; aspect-ratio: 4 / 5; align-self: center; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .gallery > figure { grid-column: 1 / -1 !important; aspect-ratio: 4 / 5 !important; }
  .g-full { aspect-ratio: 4 / 3 !important; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 18, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox .lb-close {
  position: absolute;
  top: 24px; right: 24px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: #fff;
  font-family: var(--serif);
  font-size: 28px;
  padding: 12px 18px;
}
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-caption {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.7;
}

/* Sobre página */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  padding-top: 64px;
  padding-bottom: clamp(60px, 10vw, 120px);
}
.about-hero .portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-hero .portrait img,
.about-hero .portrait .image-slot-mount {
  width: 100%; height: 100%; object-fit: cover;
}
.about-hero h1 {
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 0.98;
  margin-bottom: 32px;
}
.about-hero h1 em { font-style: italic; color: var(--olive-2); }
.about-hero p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  margin: 0 0 18px;
}
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; } }

/* Servicios */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
}
.service {
  border-top: 1px solid var(--rule);
  padding: 32px 0 8px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}
.service .n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--olive-2);
  font-size: 22px;
}
.service h3 {
  font-size: 28px;
  margin-bottom: 14px;
}
.service p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 760px) { .services { grid-template-columns: 1fr; gap: 24px; } }

/* Proceso */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.process-step {
  padding: 48px 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.process-step:last-child { border-right: 0; }
.process-step .n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--olive-2);
  font-size: 18px;
  margin-bottom: 48px;
}
.process-step h3 {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.process-step p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 880px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0; padding: 32px 0; }
  .process-step:last-child { border-bottom: 0; }
}

/* Testimonios */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
}
.testimonial {
  display: flex; flex-direction: column;
}
.testimonial blockquote {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--ink);
}
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-size: 60px;
  color: var(--olive-2);
  line-height: 0.5;
  margin-bottom: 24px;
  font-family: var(--serif);
}
.testimonial .who {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.testimonial .who .name {
  font-family: var(--serif);
  font-size: 18px;
  display: block;
}
.testimonial .who .role {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
  display: block;
}
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; gap: 48px; } }

/* Prensa */
.press {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  align-items: center;
}
.press .item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--olive-2);
  text-align: center;
  line-height: 1.1;
}
.press .item small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
@media (max-width: 880px) {
  .press { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Contacto */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  padding-top: 64px;
  padding-bottom: clamp(60px, 10vw, 120px);
}
.contact-hero h1 {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.contact-hero h1 em { font-style: italic; color: var(--olive-2); }
.contact-hero .lead {
  margin-top: 32px;
  max-width: 520px;
}
.contact-info {
  display: flex; flex-direction: column; gap: 28px;
  align-self: end;
}
.contact-info .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-block: 16px;
  border-top: 1px solid var(--rule);
}
.contact-info .row:last-child { border-bottom: 1px solid var(--rule); }
.contact-info .row .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-2);
  padding-top: 6px;
}
.contact-info .row .value {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
@media (max-width: 880px) { .contact-hero { grid-template-columns: 1fr; } }

/* Formulario */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 8vw, 120px);
  padding-block: clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--rule);
}
.form-wrap .form-intro h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
}
.form-wrap .form-intro p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 24px;
}
form.contact-form { display: grid; gap: 32px; }
form.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
form.contact-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-2);
  margin-bottom: 10px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease;
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus { border-color: var(--ink); }
form.contact-form input::placeholder,
form.contact-form textarea::placeholder { color: var(--ink-soft); opacity: 0.5; }
form.contact-form button {
  justify-self: start;
  margin-top: 12px;
}
@media (max-width: 880px) {
  .form-wrap { grid-template-columns: 1fr; }
  form.contact-form .row { grid-template-columns: 1fr; }
}

/* Animaciones de entrada */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in[data-delay="1"] { transition-delay: .12s; }
.fade-in[data-delay="2"] { transition-delay: .22s; }
.fade-in[data-delay="3"] { transition-delay: .34s; }

/* image-slot integration: dropzones inherit object-fit cover */
image-slot { display: block; width: 100%; height: 100%; }

/* Split section helper (home full-bleed image + pullquote) */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 80vh; }
@media (max-width: 880px) { .split-2 { grid-template-columns: 1fr; } }

/* CTA strip */
.cta-strip {
  text-align: center;
  padding-block: clamp(80px, 12vw, 160px);
  border-top: 1px solid var(--rule);
}
.cta-strip h2 {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 40px;
}
.cta-strip h2 em { font-style: italic; color: var(--olive-2); }

/* Tweaks panel (vanilla) */
.tweaks-fab {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 20px;
  z-index: 90;
  display: none;
  box-shadow: 0 8px 30px rgba(31,29,23,0.2);
}
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px;
  z-index: 100;
  font-family: var(--sans);
  display: none;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(31,29,23,0.18);
}
.tweaks-panel.is-open { display: flex; }
.tweaks-panel header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.tweaks-panel header h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}
.tweaks-panel .close {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.tweaks-panel label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-2);
  margin-bottom: 10px;
}
.tweaks-panel .swatches {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.tweaks-panel .swatch {
  height: 56px;
  border: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  display: flex;
  overflow: hidden;
}
.tweaks-panel .swatch.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.tweaks-panel .swatch span { display: block; flex: 1; }
.tweaks-panel .fonts {
  display: flex; flex-direction: column; gap: 6px;
}
.tweaks-panel .font-opt {
  text-align: left;
  border: 1px solid var(--rule);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.tweaks-panel .font-opt.is-active { border-color: var(--ink); background: var(--bg); }
.tweaks-panel .font-opt .name {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.tweaks-panel .font-opt .sample {
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 420px) {
  .tweaks-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}

/* ============================================================
   MOBILE REFINEMENTS — phones (≤ 680px / ≤ 600px)
   ============================================================ */

/* Hero (home) — stack the 3-col meta/title row, restack the caption */
@media (max-width: 680px) {
  .hero-top {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 16px;
    padding-block: 20px 28px;
    text-align: center;
  }
  .hero-meta { order: 2; text-align: center; white-space: normal; }
  .hero-meta--right { order: 3; text-align: center; }
  .hero-title--phrase {
    order: 1;
    font-size: clamp(52px, 16vw, 92px);
    line-height: 0.95;
  }
  .hero-image { height: clamp(380px, 72vh, 560px); margin-bottom: clamp(32px, 9vw, 56px); }
  .hero-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    bottom: 18px; left: 18px; right: 18px;
  }
  .hero-caption .caption-text { max-width: none; font-size: 15px; }
  .hero-arrow { width: 42px; height: 42px; }
  .hero-arrow--prev { left: 12px; }
  .hero-arrow--next { right: 12px; }
}

/* Estudio — philosophy (3-col) + team media split */
@media (max-width: 880px) {
  .phil-grid { grid-template-columns: 1fr !important; gap: 44px !important; }
  .media-split { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* Proyectos — archive header */
@media (max-width: 600px) {
  .arch-head { grid-template-columns: 1fr !important; gap: 20px !important; align-items: start !important; }
  .arch-head__count { text-align: left !important; }
}

/* Detail — next-project pairing */
@media (max-width: 760px) {
  .next-proj { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* Home split pullquote — give the image a defined box once stacked */
@media (max-width: 880px) {
  .split-2 { min-height: 0; }
  .split-2 > div:first-child { aspect-ratio: 4 / 3; }
  .split-2 > div:last-child { padding: clamp(40px, 12vw, 72px) var(--gutter) !important; }
}

/* Generic small-screen polish */
@media (max-width: 600px) {
  .section-head .num { font-size: 24px !important; }
  .cta-strip .lead { margin-bottom: 36px !important; }
  .btn { padding: 16px 22px; }
}

/* Producción: evita scroll horizontal por redondeo de subpíxel en mobile */
html, body { overflow-x: clip; }

/* Logo (assets/logo) */
.brand { flex-direction: row; align-items: center; }
.brand-logo { display: block; height: 38px; width: auto; }
.footer-logo { display: block; height: 104px; width: auto; margin-bottom: 20px; }
@media (max-width: 720px) {
  .brand-logo { height: 30px; }
  .footer-logo { height: 84px; }
}
