/* NÓRDEN Studio — estilos. Mobile-first. */
:root {
  --cal: #EEEBE5;        /* fondo principal */
  --lino: #E4DDD1;       /* fondo secundario */
  --carbon: #22201D;     /* texto */
  --piedra: #605C55;     /* texto secundario */
  --linea: #CFC8BC;      /* separadores */
  --arena: #9C7F5C;      /* acento decorativo */
  --arena-text: #765E42; /* acento para texto */
  --tierra: #2E2A25;     /* sección oscura */
  --error: #8E3A2C;
  --ok: #3E5A3A;

  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(88px, 12vw, 176px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cal); color: var(--carbon);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--carbon); color: var(--cal); }

:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; }
.philosophy :focus-visible { outline-color: var(--cal); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--carbon); color: var(--cal); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía base ---------- */
.h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 300; line-height: 1.02; letter-spacing: -0.03em; }
.section-intro { color: var(--piedra); max-width: 44ch; font-size: 17px; }
.demo-note { color: var(--piedra); font-size: 13px; line-height: 1.5; }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 104px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .section-head .h2 { grid-column: 1 / 7; }
  .section-head .section-intro { grid-column: 8 / 12; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border: 1px solid var(--carbon); border-radius: 2px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--carbon); color: var(--cal); }
.btn-line { background: transparent; color: var(--carbon); }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: #3A3631; }
  .btn-line:hover { background: var(--carbon); color: var(--cal); }
}
.text-btn { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--linea); border-radius: 2px; background: transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--carbon); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}
.header.is-scrolled { background: rgba(238, 235, 229, 0.92); border-color: var(--linea); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { font-size: 17px; font-weight: 600; letter-spacing: 0.12em; text-decoration: none; white-space: nowrap; }
.logo span { font-weight: 300; letter-spacing: 0.04em; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 28px; }
.nav a { position: relative; font-size: 15px; text-decoration: none; padding-block: 6px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out);
}
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.header-cta { display: none; min-height: 44px; padding: 10px 20px; }
.menu-btn {
  margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.menu-lines, .menu-lines::before { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--carbon); transition: transform 250ms var(--ease-out); }
.menu-lines { top: 18px; }
.menu-lines::before { content: ""; left: 0; right: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-lines { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(-7px) rotate(-90deg); }
@media (min-width: 1080px) {
  .nav, .header-cta { display: flex; }
  .header-cta { margin-left: 8px; }
  .menu-btn { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--cal);
  padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  border-top: 1px solid var(--linea);
  animation: menu-in 300ms var(--ease-out);
}
.mobile-menu li { border-bottom: 1px solid var(--linea); }
.mobile-menu nav a { display: block; padding: 16px 0; font-size: clamp(28px, 8vw, 40px); font-weight: 300; letter-spacing: -0.02em; text-decoration: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1080px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 80px)); }
.hero-grid { display: grid; gap: 32px; }
.hero-title {
  font-size: clamp(46px, 8vw, 136px); font-weight: 250; line-height: 0.96; letter-spacing: -0.045em;
  max-width: 11ch; text-wrap: balance;
}
.hero-text { color: var(--piedra); max-width: 40ch; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { margin-top: clamp(40px, 5vw, 72px); }
.hero-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--lino); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { margin-top: 12px; font-size: 13px; color: var(--piedra); }
@media (min-width: 700px) { .hero-frame { aspect-ratio: 16 / 9; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .hero-title { grid-column: 1 / 9; }
  .hero-side { grid-column: 9 / 13; padding-bottom: 10px; }
  .hero-frame { aspect-ratio: 21 / 9; }
}

/* Momento de entrada: la foto se descubre de abajo arriba */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-frame { animation: curtain 1100ms var(--ease-in-out) 150ms both; }
  .js .hero-frame img { animation: settle 1500ms var(--ease-out) 150ms both; }
  .js .hero-title, .js .hero-side { animation: rise 800ms var(--ease-out) both; }
  .js .hero-side { animation-delay: 120ms; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-title, .js .hero-side, .js .hero-frame { animation: fade 400ms ease both; }
}
@keyframes curtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Entradas al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 300ms ease; }
}

/* ---------- Imágenes que fallan ---------- */
.img-missing { position: relative; background: repeating-linear-gradient(135deg, var(--lino) 0 14px, #DDD5C8 14px 15px) !important; }
.img-missing img { opacity: 0; }
.img-missing::after {
  content: "Imagen no disponible"; position: absolute; left: 16px; bottom: 14px;
  font-size: 13px; color: var(--piedra);
}

/* ---------- Proyectos ---------- */
.proj-grid { display: grid; gap: 64px; }
.proj { min-width: 0; }
.proj-open {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.proj-media { display: block; overflow: hidden; background: var(--lino); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.proj-1 .proj-media, .proj-4 .proj-media { aspect-ratio: 4 / 5; }
.proj-2 .proj-media, .proj-5 .proj-media { aspect-ratio: 1 / 1; }
.proj-3 .proj-media, .proj-6 .proj-media { aspect-ratio: 16 / 10; }
.proj-name {
  display: inline-block; margin-top: 20px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 350; letter-spacing: -0.02em; line-height: 1.15;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent;
  transition: text-decoration-color 250ms ease;
}
.proj-open:active .proj-media img { transform: scale(0.99); transition-duration: 160ms; }
.proj-open:focus-visible { outline: none; }
.proj-open:focus-visible .proj-media { outline: 2px solid var(--carbon); outline-offset: 4px; }
.proj-open:focus-visible .proj-name { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .proj-open:hover .proj-media img { transform: scale(1.03); }
  .proj-open:hover .proj-name { text-decoration-color: currentColor; }
}
.meta { display: grid; grid-template-columns: 1.3fr 1.3fr 0.6fr; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linea); }
.meta dt { font-size: 12px; color: var(--piedra); letter-spacing: 0.02em; }
.meta dd { font-size: 14px; line-height: 1.4; }
.proj-desc { margin-top: 16px; color: var(--piedra); max-width: 46ch; font-size: 16px; }
@media (min-width: 900px) {
  .proj-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(96px, 10vw, 160px); align-items: start; }
  .proj-1 { grid-column: 1 / 7; grid-row: 1; }
  .proj-2 { grid-column: 8 / 12; grid-row: 1; margin-top: clamp(120px, 16vw, 260px); }
  .proj-3 { grid-column: 2 / 10; grid-row: 2; }
  .proj-4 { grid-column: 7 / 13; grid-row: 3; }
  .proj-5 { grid-column: 1 / 6; grid-row: 3; margin-top: clamp(140px, 18vw, 300px); }
  .proj-6 { grid-column: 4 / 13; grid-row: 4; }
}

/* ---------- Filosofía ---------- */
.philosophy { background: var(--tierra); color: var(--cal); padding-block: var(--section); }
.philo-grid { display: grid; gap: 40px; }
.philo-title { font-size: clamp(44px, 7vw, 116px); font-weight: 200; line-height: 0.98; letter-spacing: -0.045em; max-width: 9ch; }
.philo-body { display: grid; gap: 18px; color: #CFC8BC; max-width: 46ch; font-size: 18px; }
.philo-media { overflow: hidden; aspect-ratio: 4 / 5; background: #3A352F; }
.philo-media img { width: 100%; height: 100%; object-fit: cover; }
.principles { display: grid; gap: 0; margin-top: 24px; }
.principles li { padding: 28px 0; border-top: 1px solid rgba(238, 235, 229, 0.18); }
.principles h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 10px; }
.principles p { color: #BDB5A8; font-size: 16px; max-width: 38ch; }
@media (min-width: 1024px) {
  .philo-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
  .philo-title { grid-column: 1 / 8; grid-row: 1; }
  .philo-body { grid-column: 1 / 6; grid-row: 2; align-self: start; }
  .philo-media { grid-column: 8 / 13; grid-row: 1 / 3; aspect-ratio: 3 / 4; }
  .principles { grid-column: 1 / 13; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
  .principles li { padding: 32px 32px 0 0; }
  .principles li + li { padding-left: 32px; border-left: 1px solid rgba(238, 235, 229, 0.18); }
}

/* ---------- Servicios ---------- */
.serv-grid { display: grid; gap: 48px; }
.serv-head { display: grid; gap: 20px; align-content: start; }
.serv { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; row-gap: 8px; padding: 28px 0 32px; border-top: 1px solid var(--linea); }
.serv:last-child { border-bottom: 1px solid var(--linea); }
.serv::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--carbon);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out);
}
.serv-n { grid-row: 1 / 3; padding-top: 6px; font-size: 14px; color: var(--arena-text); font-variant-numeric: tabular-nums; }
.serv h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 350; letter-spacing: -0.02em; line-height: 1.2; }
.serv p { color: var(--piedra); max-width: 52ch; font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .serv:hover::before { transform: scaleX(1); } }
@media (min-width: 1024px) {
  .serv-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .serv-head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .serv-list { grid-column: 6 / 13; }
  .serv { grid-template-columns: 72px 1fr 1fr; column-gap: 24px; align-items: baseline; }
  .serv-n { grid-row: auto; padding-top: 0; }
}

/* ---------- Proceso ---------- */
.process { background: var(--lino); }
.proc-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #C4BCAE; }
.proc-tab {
  display: grid; gap: 6px; padding: 20px 16px 22px 0; border: 0; border-bottom: 1px solid #C4BCAE; background: none;
  text-align: left; cursor: pointer; color: var(--piedra); transition: color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.proc-tab[aria-selected="true"] { color: var(--carbon); box-shadow: inset 0 -2px 0 var(--carbon); }
.proc-n { font-size: 13px; font-variant-numeric: tabular-nums; }
.proc-name { font-size: clamp(20px, 2.4vw, 32px); font-weight: 350; letter-spacing: -0.02em; line-height: 1.15; }
.proc-bar { display: none; }
.proc-panels { padding-top: clamp(32px, 5vw, 64px); min-height: 260px; }
.proc-panel { display: grid; gap: 16px; max-width: 64ch; }
.proc-panel:focus-visible { outline-offset: 8px; }
.proc-panel p { color: var(--piedra); }
.proc-panel .proc-lead { color: var(--carbon); font-size: clamp(24px, 2.8vw, 38px); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; }
.proc-out strong { font-weight: 500; color: var(--carbon); }
@media (prefers-reduced-motion: no-preference) { .proc-panel:not([hidden]) { animation: fade 200ms ease; } }
.proc[data-instant] .proc-panel { animation: none !important; }
.proc[data-instant] .proc-bar { transition: none; }
@media (min-width: 900px) {
  .proc-tabs { grid-template-columns: repeat(4, 1fr); }
  .proc-tab[aria-selected="true"] { box-shadow: none; }
  .proc-bar {
    display: block; position: absolute; left: 0; bottom: -1px; width: 25%; height: 2px; background: var(--carbon);
    transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 300ms var(--ease-in-out);
  }
  .proc-panel { grid-template-columns: 1fr 1fr; column-gap: 48px; max-width: none; }
  .proc-panel .proc-lead { grid-column: 1; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) { .proc-bar { transition: none; } }

/* ---------- Galería ---------- */
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g { min-width: 0; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g > img, .g.img-missing { background: var(--lino); }
.g figcaption { margin-top: 10px; font-size: 13px; color: var(--piedra); }
.g1, .g5 { grid-column: 1 / -1; }
.g1 img { aspect-ratio: 4 / 5; }
.g2 img, .g3 img, .g4 img, .g6 img { aspect-ratio: 3 / 4; }
.g5 img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .gal-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
  .g1 { grid-column: 1 / 6; grid-row: 1 / 3; }
  .g1 img { aspect-ratio: 3 / 4; }
  .g2 { grid-column: 7 / 10; grid-row: 1; }
  .g2 img { aspect-ratio: 1 / 1; }
  .g3 { grid-column: 10 / 13; grid-row: 1 / 3; margin-top: 96px; }
  .g3 img { aspect-ratio: 2 / 3; }
  .g4 { grid-column: 7 / 10; grid-row: 2; }
  .g4 img { aspect-ratio: 3 / 4; }
  .g5 { grid-column: 2 / 8; grid-row: 3; }
  .g6 { grid-column: 9 / 13; grid-row: 3; margin-top: 64px; }
  .g6 img { aspect-ratio: 4 / 3; }
}

/* ---------- Estudio ---------- */
.about-grid { display: grid; gap: 48px; }
.about-media { overflow: hidden; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--lino); }
.about-media figcaption { margin-top: 10px; font-size: 13px; color: var(--piedra); }
.about-body { display: grid; gap: 22px; align-content: start; }
.about-lead { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.about-body > p:not(.about-lead):not(.demo-note) { color: var(--piedra); max-width: 50ch; }
.team { margin-top: 12px; border-top: 1px solid var(--linea); }
.team div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.team dt { font-weight: 500; }
.team dd { color: var(--piedra); font-size: 15px; }
@media (min-width: 640px) { .team div { grid-template-columns: 1fr 1.4fr; gap: 24px; } }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .about-media { grid-column: 1 / 6; }
  .about-body { grid-column: 7 / 12; }
}

/* ---------- Testimonios ---------- */
.voices { padding-top: 0; }
.voices-grid { display: grid; gap: 48px; }
.voice { display: grid; gap: 24px; padding-top: 28px; border-top: 1px solid var(--linea); }
.voice blockquote { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; }
.voice figcaption { font-weight: 500; font-size: 15px; }
.voice figcaption span { display: block; font-weight: 400; color: var(--piedra); font-size: 14px; }
@media (min-width: 900px) {
  .voices-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .voice:first-child { grid-column: 1 / 6; }
  .voice:last-child { grid-column: 7 / 12; margin-top: 80px; }
}

/* ---------- Contacto ---------- */
.contact { background: var(--lino); }
.contact-grid { display: grid; gap: 56px; }
.contact-head { display: grid; gap: 24px; align-content: start; }
.contact-title { font-size: clamp(40px, 6vw, 96px); font-weight: 250; line-height: 1; letter-spacing: -0.04em; max-width: 12ch; overflow-wrap: break-word; }
.contact-data { margin-top: 8px; border-top: 1px solid #C4BCAE; }
.contact-data div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #C4BCAE; }
.contact-data dt { color: var(--piedra); font-size: 14px; }
.contact-data dd { font-size: 15px; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .contact-head { grid-column: 1 / 6; }
  .form { grid-column: 7 / 13; }
}

.form { display: grid; gap: 28px 24px; align-content: start; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; color: var(--carbon); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #7D7569; border-radius: 0;
  background: transparent; font-size: 17px; line-height: 1.4; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322201D' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--carbon); box-shadow: 0 1px 0 0 var(--carbon); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.err { min-height: 0; font-size: 13px; color: var(--error); }
.err:empty { display: none; }
.has-error input:not([type="checkbox"]), .has-error select, .has-error textarea { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.check { grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--carbon); }
.check label { font-size: 15px; color: var(--piedra); line-height: 1.5; }
.check .err { grid-column: 2; }
.form-foot { display: grid; gap: 16px; justify-items: start; }
.form-status { font-size: 15px; max-width: 52ch; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.footer { padding-block: 64px 40px; border-top: 1px solid var(--linea); }
.footer-grid { display: grid; gap: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }
.footer-links a, .footer-social a { text-decoration: none; }
.footer-links .text-btn { font-size: 15px; text-decoration: none; }
.footer-social p { font-size: 13px; color: var(--piedra); margin-bottom: 8px; }
.footer-social ul { display: flex; gap: 20px; font-size: 15px; }
.footer-legal { font-size: 13px; color: var(--piedra); max-width: 70ch; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover, .footer-social a:hover, .footer-links .text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 2fr 1.3fr; align-items: start; }
  .footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--linea); }
}

/* ---------- Ficha de proyecto (panel que sube) ---------- */
.sheet {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--cal); color: var(--carbon); overflow: hidden;
}
.sheet::backdrop { background: rgba(34, 32, 29, 0.45); }
.sheet-inner { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); background: rgba(238, 235, 229, 0.95); border-bottom: 1px solid var(--linea);
}
.sheet-count { font-size: 14px; color: var(--piedra); font-variant-numeric: tabular-nums; }
.sheet-nav { display: flex; gap: 8px; }
.wrap-narrow { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.sheet-content { display: grid; gap: 32px; padding-block: 40px 72px; }
.sheet-title { font-size: clamp(40px, 6vw, 88px); font-weight: 250; line-height: 1; letter-spacing: -0.04em; }
.sheet-meta { margin-top: 0; }
.sheet-hero, .sheet-pair figure { overflow: hidden; background: var(--lino); }
.sheet-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sheet-cols { display: grid; gap: 32px; }
.sheet-cols h3 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.sheet-cols p { font-size: clamp(18px, 1.8vw, 22px); font-weight: 300; line-height: 1.5; max-width: 56ch; }
.materials li { padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 16px; }
.materials li:first-child { border-top: 1px solid var(--linea); }
.sheet-pair { display: grid; gap: 16px; }
.sheet-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
#ps-cta { justify-self: start; }
@media (min-width: 768px) {
  .sheet { height: calc(100% - 40px); }
  .sheet-cols { grid-template-columns: 1.5fr 1fr; gap: 64px; }
  .sheet-pair { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in 500ms var(--ease-drawer); }
  .sheet[open]::backdrop { animation: fade 400ms ease; }
  .sheet.is-closing { animation: sheet-out 260ms var(--ease-out) forwards; }
  .sheet.is-closing::backdrop { animation: fade-out 260ms ease forwards; }
  .sheet-content.is-swapping { animation: swap 300ms var(--ease-out); }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes swap { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }

/* ---------- Aviso de privacidad ---------- */
.modal { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; background: var(--cal); color: var(--carbon); }
.modal::backdrop { background: rgba(34, 32, 29, 0.45); }
.modal-inner { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); }
.modal h2 { font-size: 26px; font-weight: 350; letter-spacing: -0.015em; }
.modal p { color: var(--piedra); font-size: 16px; }
.modal .btn { justify-self: start; margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: pop 250ms var(--ease-out); }
  .modal[open]::backdrop { animation: fade 250ms ease; }
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

body.is-locked { overflow: hidden; }
