/* ============================================================
   LOBBY — DESIGN SYSTEM
   Referencia estética: studioilse.com
   Tipografía: Cormorant Garamond + DM Mono + DM Sans
   ============================================================ */

/* ── TOKENS ── */
:root {
  --papel:    #F5F2EE;
  --arena:    #D8D2CA;
  --tinta:    #1C1A17;
  --roble:    #8A8680;
  --bronce:   #A68B5B;
  --lima:     #C8D94A;
  --terracota:#B8613A;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', monospace;

  --ease:  cubic-bezier(0.25, 1, 0.5, 1);
  --slow:  0.8s var(--ease);
  --mid:   0.4s var(--ease);
  --fast:  0.2s var(--ease);

  --max-w: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; cursor: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
}

em { font-style: italic; }

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--roble);
  margin-bottom: 20px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.small { font-size: 10px; }
.year { font-size: 12px; color: var(--bronce); }

/* ── CURSOR CUSTOM ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--tinta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background var(--fast);
}

.cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--tinta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity var(--mid);
  opacity: 0.5;
}

body.cursor-hover .cursor { transform: translate(-50%, -50%) scale(2); background: var(--bronce); }
body.cursor-hover .cursor-follower { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 500;
  background: rgba(245, 242, 238, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid transparent;
  transition: border-color var(--mid);
}

.site-header.scrolled {
  border-bottom-color: var(--arena);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── WORDMARK COMPUESTO: texto + subtítulo ── */
.wordmark-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  cursor: none;
  line-height: 1;
}

.wordmark {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 200;
  letter-spacing: 0.38em;
  text-transform: lowercase;
  color: var(--tinta);
  display: block;
  line-height: 1;
}

/* ── LOGO IMAGEN ── */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--fast);
}

.logo-img--footer {
  height: 32px;
  opacity: 0.85;
}

.wordmark-block:hover .logo-img {
  opacity: 0.6;
}

/* "Oficina de diseño" debajo del wordmark */
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--roble);
  display: block;
  padding-left: 1px;
  transition: color var(--fast);
}

.wordmark-block:hover .wordmark-sub { color: var(--bronce); }

/* Nav */
.site-nav {
  display: flex;
  gap: 0;
}

.nav-item {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--roble);
  padding: 8px 20px;
  position: relative;
  transition: color var(--fast);
  cursor: none;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 20px;
  width: 0; height: 1px;
  background: var(--tinta);
  transition: width var(--mid);
}

.nav-item:hover,
.nav-item.active {
  color: var(--tinta);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: calc(100% - 40px);
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: none;
}

.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--tinta);
  transition: var(--mid);
}

/* ── PAGE SYSTEM ── */
.page {
  display: none;
  padding-top: 68px;
  min-height: 100vh;
}

.page.active { display: block; }

/* ── HERO ── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(60px, 8vh, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  color: var(--tinta);
  margin-bottom: 28px;
}

.hero-lead {
  font-size: 16px;
  color: var(--roble);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--tinta);
  text-transform: lowercase;
  position: relative;
  padding-bottom: 4px;
  cursor: none;
  background: none;
  border: none;
}

.link-arrow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0.5px;
  background: var(--arena);
  transition: background var(--fast);
}

.link-arrow:hover::after { background: var(--tinta); }

.link-arrow .arrow {
  display: inline-block;
  transition: transform var(--mid);
}

.link-arrow:hover .arrow { transform: translateX(5px); }

/* Hero image */
.hero-image { position: relative; }

.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--arena);
}

.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--slow);
  filter: saturate(0.9);
}

.img-frame:hover img { transform: scale(1.04); }

.img-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(245,242,238,0.9);
  padding: 8px 12px;
  cursor: none;
  transition: background var(--fast);
}

.img-caption:hover {
  background: rgba(245,242,238,1);
}

.img-caption .mono { font-size: 9px; color: var(--roble); transition: color var(--fast); }

.img-caption:hover .mono { color: var(--tinta); }

/* Imagen placeholder (cuando falla la carga) */
.img-placeholder,
.img-frame.img-placeholder {
  background: var(--arena) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.img-placeholder::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 0.5px solid var(--roble);
  opacity: 0.25;
}

.img-placeholder img,
.img-frame.img-placeholder img { display: none !important; }

/* ── STATEMENT ── */
.statement {
  border-top: 0.5px solid var(--arena);
  border-bottom: 0.5px solid var(--arena);
  margin: 0 var(--gutter);
}

.statement-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.statement-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--tinta);
  max-width: 780px;
  text-align: justify;
}

/* ── PROJECTS PREVIEW ── */
.projects-preview {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--gutter);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.project-item { cursor: none; }

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--arena);
}

.project-item.project-featured .project-thumb {
  aspect-ratio: 5/4;
}

.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1s var(--ease), filter 0.8s var(--ease);
}

.project-item:hover .project-thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}

.project-hover-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(transparent, rgba(28,26,23,0.3));
  opacity: 0;
  transition: opacity var(--mid);
}

.project-hover-info .mono { color: var(--papel); }

.project-item:hover .project-hover-info { opacity: 1; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0 0;
}

.project-name {
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--tinta);
  margin-bottom: 4px;
}

.project-sub {
  font-size: 13px;
  color: var(--roble);
}

/* ── AREAS ── */
.areas {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 100px);
}

.areas-header {
  border-top: 0.5px solid var(--arena);
  padding-top: 40px;
  margin-bottom: 0;
}

.areas-list {
  display: flex;
  flex-direction: column;
}

.area-row {
  display: grid;
  grid-template-columns: 48px 260px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--arena);
  transition: background var(--fast);
}

.area-row:hover {
  background: rgba(216,210,202,0.15);
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
}

.area-num { color: var(--bronce); font-size: 10px; }

.area-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--tinta);
}

.area-desc { font-size: 14px; color: var(--roble); line-height: 1.7; }

/* ── PAGE INTRO ── */
.page-intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(40px, 5vw, 60px);
}

.page-title {
  font-size: clamp(52px, 8vw, 100px);
  color: var(--tinta);
}

.page-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--roble);
  max-width: 720px;
  line-height: 1.8;
  margin-top: 28px;
  font-weight: 300;
}

.contact-lead {
  font-size: 17px;
  color: var(--roble);
  max-width: 480px;
  line-height: 1.75;
  margin-top: 24px;
}

/* ── PROJECTS INDEX ── */
.projects-index {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 120px);
}

.projects-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
}

.filter {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--roble);
  padding: 8px 18px;
  border: 0.5px solid var(--arena);
  border-radius: 999px;
  cursor: none;
  transition: all var(--fast);
}

.filter:hover, .filter.active {
  color: var(--tinta);
  border-color: var(--tinta);
}

.projects-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.index-item {
  cursor: none;
  transition: opacity var(--mid);
}

.index-item.hidden {
  display: none;
}

.index-thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--arena);
  margin-bottom: 16px;
}

.index-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
}

.index-item:hover .index-thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}

.index-meta { padding: 0 4px; }

.index-meta .mono { color: var(--roble); display: block; margin-bottom: 6px; }

.index-name {
  font-size: 20px;
  color: var(--tinta);
  margin-bottom: 4px;
}

.index-location { font-size: 12px; color: var(--roble); }

/* ── PROJECT DETAIL ── */
.page-project {
  padding-top: 68px;
}

.project-detail-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
}

.back-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--roble);
  text-transform: lowercase;
  cursor: none;
  transition: color var(--fast);
}

.back-btn:hover { color: var(--tinta); }

.project-detail-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--gutter) clamp(80px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

/* Galería */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--arena);
}

.gallery-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.9);
  transition: transform var(--slow);
}

.gallery-img-wrap:hover img { transform: scale(1.02); }

.gallery-plan { background: white; }
.gallery-plan img { filter: none; }

.gallery-fig-label {
  display: block;
  font-size: 9px;
  color: var(--roble);
  padding: 8px 12px;
  background: var(--papel);
  text-align: right;
}

/* Sidebar proyecto */
.project-sidebar {
  position: sticky;
  top: 100px;
}

.project-sidebar-inner { padding: 0; }

.project-title-large {
  font-size: clamp(52px, 5vw, 72px);
  color: var(--tinta);
  margin-bottom: 8px;
  margin-top: 8px;
}

.project-tagline {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--bronce);
  margin-bottom: 40px;
}

.project-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--arena);
  font-size: 14px;
}

.spec-row:first-child { border-top: 0.5px solid var(--arena); }

.spec-row dt { color: var(--roble); font-size: 10px; letter-spacing: 0.1em; }
.spec-row dd { color: var(--tinta); font-weight: 400; }

.project-divider {
  height: 0.5px;
  background: var(--arena);
  margin: 36px 0;
}

.project-description p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--tinta);
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

.project-description p:last-child { margin-bottom: 0; }

.btn-contact {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--tinta);
  padding-bottom: 4px;
  border-bottom: 0.5px solid var(--tinta);
  transition: color var(--fast), border-color var(--fast);
  cursor: none;
  margin-top: 8px;
}

.btn-contact:hover { color: var(--bronce); border-color: var(--bronce); }

/* ── OFICINA ── */
.oficina-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
}

.manifesto-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: var(--tinta);
  margin-bottom: 32px;
}

.manifesto-text:last-child { margin-bottom: 0; }

.criterios-title {
  font-size: 32px;
  color: var(--tinta);
  margin-bottom: 40px;
}

.criterio-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--arena);
}

.criterio-item:first-of-type {
  border-top: 0.5px solid var(--arena);
}

.criterio-num { color: var(--bronce); margin-top: 4px; }

.criterio-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--tinta);
  margin-bottom: 8px;
}

.criterio-desc { font-size: 14px; color: var(--roble); line-height: 1.75; }

/* ── OFICINA: intro top ── */
.page-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.metodo-anchor {
  margin-bottom: 0;
  color: var(--bronce);
  letter-spacing: 0.15em;
  transition: color var(--fast), letter-spacing var(--fast);
  cursor: none;
  text-decoration: none;
}

.metodo-anchor:hover {
  color: var(--tinta);
  letter-spacing: 0.22em;
}

/* ── EL MÉTODO ── */
.metodo-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  border-top: 0.5px solid var(--arena);
}

.metodo-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.metodo-title {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--tinta);
  line-height: 1.1;
}

.metodo-steps {
  display: flex;
  flex-direction: column;
}

.metodo-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: stretch;
}

.metodo-step-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 4px;
}

.metodo-step-num .mono {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--bronce);
  margin-bottom: 12px;
}

.metodo-num--accent {
  color: var(--tinta) !important;
  font-weight: 400 !important;
}

.metodo-line {
  width: 0.5px;
  flex: 1;
  background: var(--arena);
  min-height: 40px;
}

.metodo-line--hidden {
  background: transparent;
}

.metodo-step-content {
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 0.5px solid var(--arena);
  margin-bottom: 0;
}

.metodo-step--last .metodo-step-content {
  border-bottom: none;
  padding-bottom: 0;
}

.metodo-step-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  color: var(--tinta);
  margin-bottom: 6px;
  line-height: 1.1;
}

.metodo-name--accent {
  color: var(--bronce);
}

.metodo-step-tag {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--roble);
  margin-bottom: 16px;
}

.metodo-step-desc {
  font-size: 15px;
  color: var(--roble);
  line-height: 1.8;
  max-width: 620px;
}

@media (max-width: 768px) {
  .metodo-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .metodo-step {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }
}

/* ── CONTACTO ── */
.contacto-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(60px, 8vw, 120px);
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.channel { display: flex; flex-direction: column; gap: 6px; }

.channel-label { color: var(--roble); font-size: 9px; letter-spacing: 0.2em; }

.channel-value {
  font-size: 18px;
  color: var(--tinta);
}

.channel-value a {
  transition: color var(--fast);
}

.channel-value a:hover { color: var(--bronce); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-label { color: var(--roble); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }

.form-input {
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--arena);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--tinta);
  transition: border-color var(--fast);
  outline: none;
  width: 100%;
  resize: none;
}

.form-input:focus { border-bottom-color: var(--tinta); }
.form-input::placeholder { color: var(--arena); }

.btn-submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--papel);
  background: var(--tinta);
  padding: 14px 36px;
  border: 1px solid var(--tinta);
  cursor: none;
  transition: background var(--fast), color var(--fast);
  text-transform: lowercase;
}

.btn-submit:hover {
  background: transparent;
  color: var(--tinta);
}

/* Form success */
.form-success {
  padding: 40px 0;
}

.form-success-title {
  font-size: 36px;
  color: var(--tinta);
  margin-bottom: 12px;
}

.form-success-text {
  font-size: 15px;
  color: var(--roble);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 0.5px solid var(--arena);
  background: var(--papel);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-wordmark-block {
  margin-bottom: 16px;
}
.footer-wordmark-block .wordmark-sub {
  margin-top: 2px;
}

.footer-tagline { font-size: 13px; color: var(--roble); line-height: 1.7; }

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 13px;
  color: var(--roble);
  text-transform: lowercase;
  cursor: none;
  transition: color var(--fast);
  text-align: left;
}

.footer-link:hover { color: var(--tinta); }

.footer-link-ext {
  font-size: 13px;
  color: var(--roble);
  transition: color var(--fast);
}

.footer-link-ext:hover { color: var(--tinta); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 0.5px solid var(--arena);
  display: flex;
  justify-content: space-between;
}

/* ── BOTÓN ACENTO (Inteligencia Emocional) ── */
.link-arrow--accent {
  color: var(--bronce);
}

.link-arrow--accent::after {
  background: var(--bronce);
  opacity: 0.4;
}

.link-arrow--accent:hover::after {
  background: var(--bronce);
  opacity: 1;
}

/* ── PANEL: INTELIGENCIA EMOCIONAL ── */
.ie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.55);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ie-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ie-panel {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--papel);
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 0.5px solid var(--arena);
  max-height: 85vh;
  overflow-y: auto;
}

.ie-panel.open {
  transform: translateY(0);
}

.ie-panel-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px var(--gutter) 80px;
}

.ie-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.ie-panel-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--tinta);
  line-height: 1.1;
}

.ie-panel-header h2 em {
  color: var(--bronce);
}

.ie-close {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--roble);
  cursor: none;
  padding: 8px 0;
  transition: color var(--fast);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 8px;
}

.ie-close:hover { color: var(--tinta); }

.ie-intro {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  color: var(--tinta);
  max-width: 720px;
  margin-bottom: 48px;
}

.ie-divider {
  height: 0.5px;
  background: var(--arena);
  margin: 48px 0;
}

.ie-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.ie-pillar {
  border-top: 0.5px solid var(--arena);
  padding-top: 24px;
}

.ie-pillar-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--bronce);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.ie-pillar-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--tinta);
  margin-bottom: 10px;
  line-height: 1.2;
}

.ie-pillar-desc {
  font-size: 13px;
  color: var(--roble);
  line-height: 1.75;
}

.ie-cta {
  display: flex;
  align-items: center;
  gap: 40px;
}

.ie-cta p {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--tinta);
  line-height: 1.6;
  max-width: 480px;
}

@media (max-width: 768px) {
  .ie-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ie-panel-header {
    flex-direction: column;
    gap: 20px;
  }

  .ie-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay para hijos */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-group.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-group.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-group.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.reveal-group.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.reveal-group.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }

/* ── TRANSICIÓN ENTRE PÁGINAS ── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--papel);
  z-index: 9000;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}

.page-transition-overlay.enter {
  animation: page-in 0.5s var(--ease) forwards;
}

.page-transition-overlay.exit {
  animation: page-out 0.5s var(--ease) forwards;
}

@keyframes page-in {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes page-out {
  from { transform: scaleY(1); transform-origin: top; }
  to   { transform: scaleY(0); transform-origin: top; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    order: -1;
  }

  .img-frame { aspect-ratio: 16/9; }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projects-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
    order: -1;
  }

  .oficina-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contacto-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .area-row {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
  }

  .area-desc {
    grid-column: 2;
  }

  .statement-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--papel);
    border-bottom: 0.5px solid var(--arena);
    padding: 20px var(--gutter) 32px;
    gap: 0;
  }

  .nav-item {
    padding: 14px 0;
    border-bottom: 0.5px solid var(--arena);
    font-size: 16px;
  }

  .nav-item::after { display: none; }

  .burger { display: flex; }

  .projects-grid,
  .projects-index-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }

  .area-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .area-num { display: none; }
}
