/* ==========================================================
   NONINARQ · Estudio de arquitectura
   Hoja de estilos principal · Sprint Junio 2026
   -----------------------------------------------------------
   Sistema visual definido por el cliente:
   · Fondo blanco, textos en negro, toques en amarillo
   · Títulos / textos principales: Libre Baskerville (auto-hospedada, woff2)
   · Textos: Segoe UI (fuente de sistema; stack con equivalentes)
   · Logo y navegación: Cocomat (ficheros NONINARQ_*.ttf) — peso Light,
     un punto más gruesa que la UltraLight anterior, como pidió el cliente
   · Mobile-first · Tokens en :root · prefers-reduced-motion respetado
   ========================================================== */

/* ============ FONTS ============ */
/* Marca · Cocomat (los TTF se entregaron renombrados como NONINARQ_*) */
@font-face {
  font-family: 'Noninarq';
  src: url('../assets/fonts/NONINARQ_UltraLight.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noninarq';
  src: url('../assets/fonts/NONINARQ_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noninarq';
  src: url('../assets/fonts/NONINARQ_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Títulos · Libre Baskerville (OFL, auto-hospedada en woff2) */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  /* Paleta · Blanco + negro + amarillo (+ crema de apoyo) */
  --blanco: #FFFFFF;
  --ink: #141414;
  --gris: #6E6A60;
  --sol: #F4CE2A;        /* amarillo de marca: superficies, botones, subrayados */
  --ambar: var(--sol);   /* unificado al amarillo de marca (HABLEMOS) — antes #D9A32B */
  --crema: #FBF7EC;      /* superficie suave: tarjetas no·ni·ná y contacto */
  --linea: rgba(20, 20, 20, 0.14);

  /* Tipografía */
  --f-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --f-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-brand: 'Noninarq', 'Segoe UI', system-ui, sans-serif;

  /* Escala */
  --maxw: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Altura del nav fijo */
  --nav-h: 4rem;
}
@media (min-width: 720px) {
  :root { --nav-h: 4.25rem; }
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); font-weight: 400;
  background: var(--blanco); color: var(--ink);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  /* Sticky footer: en páginas cortas el footer queda siempre al fondo del viewport */
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
body > * { width: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; cursor: pointer; background: none; color: inherit; }
em {
  /* Énfasis de marca: sin cursiva, palabra en ámbar */
  font-style: normal;
  color: var(--ambar);
}
::selection { background: var(--sol); color: var(--ink); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--linea); }

.nav__logo {
  /* Cocomat Pro Regular (400): el peso más grueso de la familia, igualado al mockup del cliente */
  font-family: var(--f-brand); font-weight: 400;
  letter-spacing: 0.18em; color: var(--ink);
  display: flex; align-items: center; gap: 0.6rem;
  line-height: 1;
}
.nav__logo .mark { font-size: 1.5rem; display: inline; }
.nav__logo .word {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  display: none;
}
@media (min-width: 720px) {
  .nav__logo .mark { display: none; }
  .nav__logo .word { display: inline; }
}

.nav__menu { display: none; gap: 1.8rem; align-items: center; }
@media (min-width: 1000px) { .nav__menu { display: flex; gap: 2rem; } }
@media (min-width: 1200px) { .nav__menu { gap: 2.4rem; } }

.nav__link {
  font-family: var(--f-brand); font-weight: 400;
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}
.nav__link[aria-current="page"] { color: var(--ambar); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--sol);
  transition: right 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }

.nav__cta {
  font-family: var(--f-brand); font-weight: 400;
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); padding: 0.7rem 1.3rem; background: var(--sol);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(244, 206, 42, 0.6); }

.nav__ig {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: var(--ink); opacity: 0.75;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__ig svg { width: 17px; height: 17px; }
.nav__ig:hover { opacity: 1; color: var(--ambar); transform: translateY(-1px); }

.nav__burger {
  width: 30px; height: 20px; display: flex;
  flex-direction: column; justify-content: space-between; background: none;
}
@media (min-width: 1000px) { .nav__burger { display: none; } }
.nav__burger span {
  display: block; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; inset: 0; background: var(--blanco); z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter); transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__item {
  font-family: var(--f-brand); font-weight: 400;
  font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--ink);
  letter-spacing: 0.02em; padding: 0.55rem 0;
}
.mobile-menu__item--cta { color: var(--ambar); }
.mobile-menu__item .num {
  font-family: var(--f-body); font-weight: 400;
  font-size: 0.85rem; color: var(--gris);
  margin-right: 0.8rem; vertical-align: super;
  letter-spacing: 0.2em;
}
.mobile-menu__ig {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin-top: 2rem;
  font-family: var(--f-brand); font-weight: 300;
  font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gris);
  transition: color 0.3s var(--ease);
}
.mobile-menu__ig:hover { color: var(--ambar); }
.mobile-menu__ig svg { width: 20px; height: 20px; }

/* ============ SECTION LABEL ============ */
.section-label {
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ambar); margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.8rem;
}
.section-label--dash::before {
  content: ''; width: 1.8rem; height: 1px; background: var(--ambar);
}
/* Variante centrada con rayita debajo (mockup "Cómo trabajamos") */
.section-label--center {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center; margin-left: auto; margin-right: auto;
}
.section-label--center::after {
  content: ''; width: 3rem; height: 2px; background: var(--sol);
}

/* ============ HERO HOME · vídeo a pantalla completa ============ */
.hero {
  padding-top: var(--nav-h);
  width: 100%;
}
.hero__media {
  position: relative; overflow: hidden; background: var(--crema);
  width: 100%;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) 0.15s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ============ PAGE HEADER MINI (páginas interiores) ============ */
.page-header--mini {
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  max-width: var(--maxw); margin: 0 auto;
}
@media (min-width: 720px) {
  .page-header--mini { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 2.5rem; }
}
.page-header--mini .page-header__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}

/* ============ MANIFIESTO ============ */
.manifesto {
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  max-width: 1220px; margin: 0 auto;
  text-align: center;
}
.manifesto .section-label { margin-bottom: 2.5rem; }
.manifesto__quote {
  /* Escala calculada para que cada frase ocupe una sola línea en escritorio (mockup cliente) */
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.45rem, 3.5vw, 3.2rem); line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink); text-transform: uppercase;
  margin-bottom: 3rem;
}
.manifesto__quote .line { display: block; }
.manifesto__body p {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.85;
  color: var(--ink); margin-bottom: 1.6rem;
  max-width: 62ch; margin-left: auto; margin-right: auto;
}
.manifesto__body p:last-child { margin-bottom: 0; }

/* ============ NO NI NÁ · tarjeta crema ============ */
.nonina {
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.nonina__inner {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--crema);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid; gap: 4rem;
}
@media (min-width: 900px) {
  .nonina__inner { grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: stretch; }
}

.glosario { display: flex; flex-direction: column; }
.glosario__entry {
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: 2.5rem 0;
  flex: 1; /* el bloque crece para que la línea inferior llegue al fondo (igual que la columna derecha) */
  display: flex; flex-direction: column; justify-content: center;
}
.glosario__word {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 5.8rem); line-height: 0.95;
  letter-spacing: 0.01em; color: var(--ink);
  margin-bottom: 1rem;
}
.glosario__phon {
  font-family: var(--f-body); font-weight: 400;
  font-size: 0.95rem; color: var(--ambar); margin-bottom: 1.8rem;
  letter-spacing: 0.08em;
}
.glosario__phon .tag {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gris);
  margin-left: 1rem; border: 1px solid var(--linea);
  padding: 0.3rem 0.7rem; border-radius: 2px;
  vertical-align: middle;
}
.glosario__def {
  font-family: var(--f-body); font-weight: 400;
  font-size: 1.05rem; line-height: 1.8;
  color: var(--ink); max-width: 38ch;
  text-align: justify;
}
.glosario__def strong { font-weight: 600; }
.glosario__def em { color: var(--ambar); }

.afirmaciones { display: grid; gap: 1.8rem; align-content: space-between; }
.afirmaciones__intro {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.afirmacion { padding-bottom: 1.4rem; border-bottom: 2px solid var(--sol); }
.afirmacion__q {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem); line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.8rem;
  text-align: justify;
}
.afirmacion__a {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.1; color: var(--ambar);
}
.afirmacion__a .dash { color: var(--sol); margin-right: 0.6rem; font-size: 0.8em; }

/* ============ OBRA SELECTA ============ */
.featured {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--blanco);
}
.featured__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
}
.featured__header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--linea);
  padding-bottom: 1.5rem;
}
.featured__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--ink);
}
.featured__count {
  font-family: var(--f-body); font-weight: 400;
  color: var(--gris);
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
}

/* Piezas apiladas y centradas, como en el mockup del cliente */
.projects { display: grid; gap: 0; }
.project {
  display: grid; gap: 1.6rem;
  justify-items: center; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--linea);
}
.project:first-child { padding-top: 0; }
.project:last-child { border-bottom: none; padding-bottom: 0; }
.project__num {
  font-family: var(--f-body); font-weight: 400;
  font-size: 0.74rem; color: var(--gris);
  letter-spacing: 0.3em; text-transform: uppercase;
}
.project__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15;
  color: var(--ink); letter-spacing: 0.005em;
}
.project__meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 0;
  font-family: var(--f-body); font-size: 0.74rem;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.project__meta > div { display: flex; align-items: baseline; gap: 0.9rem; padding: 0 1.3rem; }
.project__meta > div + div { border-left: 1px solid var(--linea); }
.project__meta dt { color: var(--gris); font-weight: 400; }
.project__meta dd { color: var(--ink); font-weight: 600; }
.project__media {
  width: min(100%, 620px);
  aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--crema);
  margin-top: 0.6rem;
}
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }
.project__link {
  font-family: var(--f-body); font-size: 0.78rem;
  letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); display: inline-flex; align-items: center; gap: 0.8rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--sol);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.project__link:hover { gap: 1.3rem; color: var(--ambar); }
.project__link::after { content: '→'; }

/* ============ CÓMO TRABAJAMOS · tres principios ============ */
.philosophy {
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  background: var(--blanco);
}
.philosophy__inner { max-width: var(--maxw); margin: 0 auto; }
.philosophy__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.25;
  text-align: center; max-width: 24ch;
  margin: 0 auto clamp(3.5rem, 8vw, 6rem); color: var(--ink);
}
.pillars { display: grid; gap: 3rem; grid-template-columns: 1fr; max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 5vw, 5rem); } }
.pillar__num {
  font-family: var(--f-display); font-weight: 400;
  color: var(--ambar);
  font-size: 1.05rem; letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.pillar__num::after {
  content: ''; display: block;
  width: 2.2rem; height: 2px; background: var(--sol);
  margin-top: 0.8rem;
}
.pillar__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 1.4rem 0 1rem; color: var(--ink);
}
.pillar__body {
  font-family: var(--f-body); font-weight: 400;
  line-height: 1.8; color: var(--ink); font-size: 1rem;
}

/* ============ TODOS LOS PROYECTOS · índice en el inicio ============ */
.list {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.list__header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--linea);
  padding-bottom: 1.5rem;
}
.list__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--ink);
}
.list__count {
  font-family: var(--f-body); font-weight: 400;
  color: var(--gris);
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.list__row {
  display: grid;
  grid-template-columns: 2.5rem 1.7fr 1fr 1fr 0.5fr 1fr 1.5rem;
  gap: 1rem; padding: 1.3rem 0.2rem;
  border-bottom: 1px solid var(--linea);
  align-items: baseline;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
a.list__row:hover {
  background: linear-gradient(to right, rgba(244, 206, 42, 0.16), transparent 80%);
  padding-left: 1rem;
}
.list__num {
  font-family: var(--f-body); font-weight: 600;
  color: var(--gris); font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.list__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ink);
  line-height: 1.2;
}
.list__name small { display: none; }
.list__cell {
  font-family: var(--f-body); font-weight: 400;
  font-size: 0.85rem; color: var(--ink);
  letter-spacing: 0.04em;
}
.list__estado { color: var(--gris); }
.list__arrow {
  font-family: var(--f-body);
  color: var(--ambar); text-align: right;
  opacity: 0; transform: translateX(-0.4rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
a.list__row:hover .list__arrow { opacity: 1; transform: translateX(0); }
/* Proyectos en proceso sin ficha: fila informativa, sin enlace */
.list__row--soon .list__name,
.list__row--soon .list__cell { color: var(--gris); }
.list__row--soon .list__estado {
  color: var(--ambar); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
}
@media (max-width: 759px) {
  .list__row {
    grid-template-columns: 2rem 1fr 1.2rem;
    gap: 0.8rem;
  }
  .list__row .list__cell { display: none; }
  .list__name small {
    display: block; margin-top: 0.4rem;
    font-family: var(--f-body); font-weight: 400;
    font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gris);
  }
  .list__row--soon .list__name small { color: var(--ambar); }
}

/* ============ CTA · Hablemos de tu proyecto ============ */
.contact {
  background: var(--sol);
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
}
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 3rem;
}
@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: end; }
}
.contact__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  line-height: 1.1;
  color: var(--ink); margin-bottom: 2rem;
}
.contact__title em { color: var(--ink); }
.contact__lead {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6; color: var(--ink); max-width: 42ch;
}
.contact__yes {
  display: inline-block; margin-top: 2rem;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem); color: var(--ink);
  padding: 0.5rem 0;
  border-top: 1px solid rgba(20, 20, 20, 0.3);
  border-bottom: 1px solid rgba(20, 20, 20, 0.3);
}
.contact__yes::before { content: '— '; }
.contact__info { display: grid; gap: 1.5rem; }
.contact__info-block dt {
  font-family: var(--f-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink); opacity: 0.6; margin-bottom: 0.5rem;
}
.contact__info-block dd {
  font-family: var(--f-body); font-weight: 400;
  font-size: 1.1rem; color: var(--ink);
}
.contact__cta {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--f-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sol); background: var(--ink);
  padding: 1.2rem 2rem; border-radius: 2px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact__cta::after { content: '→'; font-size: 1.2rem; }
.contact__cta:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(20, 20, 20, 0.4); }

/* ============ PROYECTOS · filtros + grid ============ */
.filters {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center;
  border-bottom: 1px solid var(--linea);
}
.filters--top {
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem));
}
.filters { padding-bottom: 1.5rem; }
@media (max-width: 559px) {
  .filters {
    flex-wrap: nowrap; justify-content: flex-start;
    gap: 0.5rem; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; padding: 0.65rem 1.1rem; letter-spacing: 0.16em; }
}
.filter-btn {
  font-family: var(--f-body); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--linea);
  border-radius: 50px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active {
  background: var(--sol); color: var(--ink); border-color: var(--sol);
}

.grid {
  padding: 2.25rem var(--gutter) 6rem;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 3rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
/* 3 columnas (se respeta el mockup); imágenes ~10% mayores reduciendo el hueco
   entre columnas y ampliando el ancho máximo del grid */
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 1.2rem;
    max-width: calc(var(--maxw) + 120px);
  }
}

.grid-card { display: block; transition: opacity 0.4s var(--ease); }
.grid-card.hidden { display: none; }
.grid-card__media {
  aspect-ratio: 1 / 1; /* portadas 1:1 entregadas por el cliente */
  overflow: hidden; background: var(--crema);
}
.grid-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.grid-card:hover .grid-card__media img { transform: scale(1.05); }
.grid-card__media--empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--crema);
  border: 1px solid var(--linea);
  color: var(--gris);
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase;
}
.grid-card__info { padding: 0.6rem 0.1rem 0; }
.grid-card__type {
  font-family: var(--f-body); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--linea);
  display: flex; justify-content: space-between; gap: 1rem;
  white-space: nowrap;
}
.grid-card__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--ink);
  line-height: 1.15;
}

/* ============ FICHA DE PROYECTO ============ */
.proj-hero { padding-top: var(--nav-h); position: relative; }
.proj-hero__media {
  width: 100%; overflow: hidden;
  background: var(--crema);
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  position: relative;
}
.proj-hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Degradado inferior muy sutil: garantiza contraste del indicador
   sobre fotos claras sin ensuciar la imagen */
.proj-hero__media::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 34%; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.42), transparent);
  opacity: 1; transition: opacity 0.5s var(--ease);
}

/* Indicador de scroll · línea con punto de luz que desciende en bucle */
.scroll-hint {
  position: absolute; left: 50%; bottom: clamp(1.75rem, 4vh, 3rem);
  transform: translateX(-50%);
  z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  opacity: 1; transition: opacity 0.5s var(--ease);
}
.scroll-hint__track {
  position: relative;
  width: 2px; height: 60px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  border-radius: 2px;
}
.scroll-hint__dot {
  position: absolute; left: 50%; top: 0;
  width: 6px; height: 20px; margin-left: -3px;
  border-radius: 3px;
  background: var(--sol);
  box-shadow: 0 0 12px 2px rgba(244, 206, 42, 0.95);
  animation: scrollHintDrop 1.8s var(--ease) infinite;
}
.scroll-hint__chevron {
  width: 16px; height: 16px;
  border-right: 2px solid var(--sol);
  border-bottom: 2px solid var(--sol);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 5px rgba(244, 206, 42, 0.7));
  animation: scrollHintBob 1.8s var(--ease) infinite;
}
@keyframes scrollHintDrop {
  0%   { transform: translateY(-20px); opacity: 0; }
  35%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}
@keyframes scrollHintBob {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.7; }
  50%      { transform: translateY(5px) rotate(45deg); opacity: 1; }
}
/* Al hacer scroll, el indicador y el degradado se desvanecen */
.proj-hero.scrolled .scroll-hint { opacity: 0; }
.proj-hero.scrolled .proj-hero__media::after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__dot { animation: none; top: 50%; transform: translateY(-50%); opacity: 1; }
  .scroll-hint__chevron { animation: none; }
}

/* Cabecera centrada: título + meta en línea (mockup del cliente) */
.proj-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.proj-head__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2.2rem;
}
.proj-head__meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 0;
}
.proj-head__meta > div {
  padding: 0 clamp(1.2rem, 3vw, 2.6rem);
  display: grid; gap: 0.35rem; justify-items: center;
}
.proj-head__meta > div + div { border-left: 1px solid var(--linea); }
@media (max-width: 559px) {
  .proj-head__meta { flex-wrap: nowrap; gap: 0; }
  .proj-head__meta > div { padding: 0 0.7rem; }
  .proj-head__meta dt { font-size: 0.58rem; letter-spacing: 0.18em; }
  .proj-head__meta dd { font-size: 0.85rem; }
}
.proj-head__meta dt {
  font-family: var(--f-body); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gris);
}
.proj-head__meta dd {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(0.98rem, 1.5vw, 1.2rem); color: var(--ink);
}

.proj-body {
  max-width: 860px; margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}
.proj-body__lead {
  font-family: var(--f-body); font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65;
  color: var(--ink); text-align: center;
  margin-bottom: 2.2rem;
}
.proj-body p {
  font-family: var(--f-body);
  font-size: 1.05rem; line-height: 1.9;
  color: var(--ink); margin-bottom: 1.5rem;
  text-align: justify;
}
.proj-body p:last-child { margin-bottom: 0; }
.proj-body__credit {
  font-family: var(--f-body); font-weight: 400;
  font-size: 0.9rem; line-height: 1.6;
  color: var(--gris); text-align: center;
  margin-top: 2.4rem;
}

/* Galería: respeta la proporción natural de cada imagen del cliente */
.gallery {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 10vw, 7rem);
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.gallery__item { overflow: hidden; background: var(--crema); }
.gallery__item img { width: 100%; height: auto; display: block; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--plan { grid-column: 1 / -1; background: var(--blanco); }
.gallery__item--plan img { max-width: 980px; margin: 0 auto; }

/* Siguiente proyecto */
.next-proj {
  background: var(--ink); color: var(--blanco);
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  text-align: center;
}
.next-proj__label {
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sol); margin-bottom: 1.5rem;
}
.next-proj__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
  transition: color 0.3s var(--ease);
}
.next-proj__name em { color: var(--sol); }
.next-proj__link:hover .next-proj__name { color: var(--sol); }
.next-proj__arrow {
  font-size: 1.3rem; color: var(--sol);
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.next-proj__link:hover .next-proj__arrow { transform: translateX(0.5rem); }

/* Ficha en preparación (proyectos sin material gráfico aún) */
.proj-empty {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
}
.proj-empty__inner { text-align: center; max-width: 38rem; }
.proj-empty__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem); margin: 1.2rem 0 1.5rem;
  color: var(--ink);
}
.proj-empty__text {
  font-family: var(--f-body);
  color: var(--gris); font-size: 1.1rem; line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ============ ESTUDIO · Biografía ============ */
/* Apilado en una sola columna también en escritorio, como el mockup del cliente.
   La claridad se consigue con columna de lectura, justificado con guiones,
   labels de rol en ámbar y CV en lista con separadores finos. */
.bio {
  max-width: 820px; margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem)) var(--gutter) clamp(4rem, 10vw, 7rem);
}
/* Foto del equipo — placeholder amarillo hasta que el cliente entregue la foto */
.bio__photo {
  background: var(--sol);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.bio__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio__photo .mark {
  font-family: var(--f-brand); font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.24em; color: rgba(20, 20, 20, 0.25);
  user-select: none;
}
.bio__intro p {
  font-family: var(--f-body);
  font-size: 1.05rem; line-height: 1.9; color: var(--ink);
  text-align: justify;
  margin-bottom: 1.5rem;
}
.bio__intro p:last-child { margin-bottom: 0; }
.bio__divider {
  width: clamp(8rem, 30vw, 16rem); height: 2px;
  background: var(--sol); border: none;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
}
.bio__person { text-align: center; }
.bio__name {
  font-family: var(--f-body); font-weight: 700;
  font-size: 1.2rem; color: var(--ink);
  margin-bottom: 0.2rem;
}
.bio__birth {
  font-family: var(--f-body);
  font-size: 1rem; color: var(--gris);
  margin-bottom: 1.6rem;
  text-align: center;
}
.bio__person > p:not(.bio__birth) {
  font-family: var(--f-body);
  font-size: 1.02rem; line-height: 1.9; color: var(--ink);
  text-align: justify;
  margin-bottom: 1.8rem;
}
/* CV: lista limpia con separadores finos y año en ámbar alineado a la derecha */
.bio__cv {
  list-style: none;
  max-width: 640px; margin: 0 auto;
  text-align: left;
  border-bottom: 1px solid var(--linea);
}
.bio__cv li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 0.85rem 0.2rem;
  border-top: 1px solid var(--linea);
  font-family: var(--f-body);
  font-size: 0.95rem; line-height: 1.5; color: var(--ink);
}
.bio__cv .year {
  font-family: var(--f-body); font-weight: 600;
  color: var(--ambar);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ============ CONTACTO ============ */
.contact-page {
  max-width: none; width: 100%;
  margin: 0;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) var(--gutter) clamp(2rem, 5vw, 4rem);
  display: grid; gap: 3rem;
  /* La nav es fija (fuera de flujo): la sección ocupa el viewport completo (100svh),
     así el footer cae justo debajo del pliegue y solo se ve al hacer scroll.
     El padding superior reserva el espacio del nav; border-box lo incluye en la altura. */
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  justify-content: center;
}
/* El contenido interior conserva el ancho máximo de marca y se centra */
.contact-page > * { max-width: calc(var(--maxw) / 2); }
@media (min-width: 940px) {
  .contact-page {
    grid-template-columns: 1.15fr 1fr;
    column-gap: clamp(3rem, 6vw, 5rem);
    max-width: var(--maxw);
    margin: 0 auto;
  }
  .contact-page > * { max-width: none; }
}
@media (min-width: 940px) {
  .contact-page { align-items: center; }
}

/* Columna izquierda · tarjeta crema con CTA de WhatsApp */
.contact-card {
  background: var(--crema);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.contact-card .section-label { margin-bottom: 2.5rem; }
.contact-card__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.18;
  color: var(--ink); margin-bottom: 1.5rem;
  text-wrap: balance;
}
.contact-card__lead {
  font-family: var(--f-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65;
  color: var(--ink); max-width: 40ch;
  margin-bottom: 2.5rem;
}
.wa-btn {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.2rem 2rem;
  background: var(--sol);
  color: var(--ink);
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(244, 206, 42, 0.7);
}
.wa-btn__icon { width: 24px; height: 24px; flex-shrink: 0; }

/* Columna derecha · otras vías */
.contact-ways .section-label { margin-bottom: 2rem; }
.contact-ways__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2;
  color: var(--ink);
  padding-bottom: 1.5rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--linea);
}
.contact-ways__grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .contact-ways__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; } }
@media (min-width: 560px) {
  .contact-ways__grid > div:nth-child(-n+2) {
    padding-bottom: 2.5rem; border-bottom: 1px solid var(--linea);
  }
}
@media (max-width: 559px) {
  .contact-ways__grid > div { padding-bottom: 2rem; border-bottom: 1px solid var(--linea); }
  .contact-ways__grid > div:last-child { border-bottom: none; padding-bottom: 0; }
}
.contact-ways__grid dt {
  font-family: var(--f-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 0.9rem;
}
.contact-ways__grid dd {
  font-family: var(--f-body);
  font-size: 1.15rem; color: var(--ink); line-height: 1.55;
}
.contact-ways__grid dd a {
  transition: color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.contact-ways__grid dd a:hover { color: var(--ambar); border-bottom-color: var(--sol); }
.contact-ways__second { display: block; margin-top: 0.3rem; }
.contact-ways__muted {
  display: block; margin-top: 0.5rem;
  font-size: 0.78rem; font-weight: 600; color: var(--gris);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink); color: var(--blanco);
  padding: 4rem var(--gutter) 2rem;
  margin-top: auto; /* sticky footer: se va al fondo en páginas cortas */
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 3rem;
}
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__brand {
  font-family: var(--f-brand); font-weight: 400;
  font-size: 2.6rem; letter-spacing: 0.22em;
  color: var(--sol); line-height: 1;
}
.footer__tagline {
  margin-top: 1rem;
  font-family: var(--f-body);
  color: rgba(255, 255, 255, 0.75); max-width: 28ch;
  font-size: 0.95rem; line-height: 1.5;
}
.footer h4 {
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sol); margin-bottom: 1.2rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a {
  font-family: var(--f-body);
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s var(--ease);
}
.footer a:hover { color: var(--sol); }
.footer__bottom {
  max-width: var(--maxw); margin: 3rem auto 0;
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-family: var(--f-body); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ REVEAL & MOTION ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__media { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* Utility: oculto visualmente, accesible para lectores de pantalla */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   FONT FIX · La fuente de marca (Cocomat) no tiene números,
   + ni @ reales: los mapea a glifos decorativos. Con el nuevo
   sistema (Baskerville + Segoe en todo el contenido) el riesgo
   casi desaparece, pero se mantiene la clase .num-fix por si
   un dato cae en contexto de fuente de marca.
   ============================================================ */
.num-fix {
  font-family: var(--f-body) !important;
  font-weight: inherit;
}

/* ============================================================
   PÁGINAS LEGALES (aviso legal · privacidad · cookies)
   Prosa legible, alineada a la izquierda, mismas tipografías
   y colores de marca. Reutilizable en ambas páginas.
   ============================================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 720px) {
  .legal { padding-top: calc(var(--nav-h) + 3.5rem); }
}
.legal__header { margin-bottom: clamp(2rem, 5vw, 3rem); }
.legal__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12;
  color: var(--ink); margin-bottom: 0.7rem;
}
.legal__updated {
  font-family: var(--f-body); font-size: 0.85rem;
  letter-spacing: 0.02em; color: var(--gris);
}
.legal h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25;
  color: var(--ink); margin: 2.8rem 0 0.9rem;
}
.legal h3 {
  font-family: var(--f-body); font-weight: 600;
  font-size: 1rem; color: var(--ink); margin: 1.7rem 0 0.4rem;
}
.legal p,
.legal li {
  font-family: var(--f-body); font-weight: 400;
  font-size: 1rem; line-height: 1.85; color: var(--ink);
}
.legal p { margin-bottom: 1.1rem; }
.legal ul { margin: 0 0 1.2rem 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--sol);
  transition: color 0.2s var(--ease);
}
.legal a:hover { color: var(--ambar); }
.legal__data {
  background: var(--crema);
  padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.3rem, 3vw, 2rem);
  margin: 1.6rem 0 2rem;
}
.legal__data dt {
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 0.2rem;
}
.legal__data dd {
  font-family: var(--f-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); margin: 0 0 1rem;
}
.legal__data dd:last-child { margin-bottom: 0; }
