/* SOROZNO · Hoja de estilos principal
   Concepto: estudio de arquitectura europeo. Papel cálido y piedra, tinta verde bosque,
   acento de madera de alerce. El sistema constructivo se presenta como láminas técnicas
   sobre un tablero oscuro con retícula milimétrica. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  /* Color */
  --paper: #f5f4ef;      /* fondo general, piedra caliza */
  --paper-2: #eae7df;    /* bandas secundarias */
  --white: #ffffff;
  --ink: #1b211d;        /* texto, verde casi negro */
  --ink-2: #4b524c;      /* texto secundario */
  --line: #d8d4c9;       /* filetes */
  --wood: #9c6334;       /* acento: alerce */
  --wood-soft: #d9b386;  /* acento sobre fondos oscuros */
  --forest: #1c2621;     /* tablero técnico y bloques oscuros */
  --forest-2: #26332c;
  --on-dark: #eeebe3;
  --on-dark-2: #b9bdb3;
  --ok: #2f6b45; --error: #a3322a;
  /* zonas climáticas */
  --z-n: #8aa7b8; --z-o: #5f8b78; --z-c: #b59b6a; --z-a: #e2ddd2; --z-m: #c7764a;
  /* Tipografía */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-xs: .78rem; --t-sm: .9rem; --t-base: 1.0625rem; --t-lg: 1.25rem;
  --t-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --t-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --t-h1: clamp(2.5rem, 1.6rem + 4.4vw, 5.2rem);
  /* Espacio */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --sec: clamp(4.5rem, 3rem + 6vw, 9rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--t-base); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 560; line-height: 1.06; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 40px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: var(--sec); }
.eyebrow { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--wood); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--wood-soft); }
.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: 500 .95rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none; padding: 1rem 1.5rem; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: .7rem 1.05rem; font-size: .88rem; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--wood); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--wood-soft); }
.btn-ghost-light { color: var(--on-dark); border-color: rgba(238,235,227,.5); }
.btn-ghost-light:hover { border-color: var(--on-dark); background: rgba(238,235,227,.08); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Cabecera */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--forest); }
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; color: var(--on-dark); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-solid { background: rgba(245,244,239,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 650; letter-spacing: .2em; font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; }
.nav ul a { text-decoration: none; font-size: .93rem; position: relative; padding-block: .4rem; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s var(--ease); }
.nav ul a:hover::after, .nav ul a.is-active::after { right: 0; }
.lang { display: flex; gap: .55rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; }
.lang a { text-decoration: none; font-weight: 500; }
.lang span { opacity: .45; cursor: default; }
.site-header:not(.is-solid) .nav-cta { background: var(--paper); color: var(--ink); }
.site-header:not(.is-solid) .nav-cta:hover { background: var(--wood-soft); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: inherit; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 11px; width: 22px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.bars { top: 21px; } .bars::before { content: ""; left: 0; top: -7px; } .bars::after { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Fotografías y su estado de reserva (si aún no se ha importado el archivo) */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing { background:
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(156,99,52,.09) 14px 15px), linear-gradient(160deg, #e7e1d4, #d6ccb9); }
.photo.is-missing img { visibility: hidden; }
.photo.is-missing::after { content: "Fotografía · " attr(data-label); position: absolute; left: 16px; bottom: 14px; right: 16px; font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #6f5a43; }

/* Portada */
.hero { position: relative; min-height: clamp(600px, 92vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark); background: var(--forest); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--forest); }
.hero-media img { animation: heroIn 1.8s var(--ease) both; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,26,22,.62) 0%, rgba(20,26,22,.3) 45%, rgba(20,26,22,0) 75%), linear-gradient(180deg, rgba(20,26,22,.5) 0%, rgba(20,26,22,.1) 30%, rgba(20,26,22,.3) 60%, rgba(20,26,22,.88) 100%); }
.hero-media.is-missing { background: radial-gradient(120% 90% at 70% 30%, #3a4a40, var(--forest)); }
.hero-media.is-missing::after { color: var(--on-dark-2); bottom: auto; top: 96px; z-index: 2; }
@keyframes heroIn { from { transform: scale(1.06); } to { transform: none; } }
.hero-in { padding-top: 140px; padding-bottom: 3.5rem; }
.hero h1 { font-size: var(--t-h1); max-width: 15ch; font-weight: 520; }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); max-width: 46ch; color: var(--on-dark); opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero-facts { border-top: 1px solid rgba(238,235,227,.22); background: rgba(20,26,22,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.facts-in dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in dl > div { padding: 1.15rem 1.25rem 1.25rem 0; border-right: 1px solid rgba(238,235,227,.16); min-width: 0; }
.facts-in dl > div + div { padding-left: 1.25rem; }
.facts-in dl > div:last-child { border-right: 0; }
.facts-in dt { font: 400 .7rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.facts-in dd { margin: .3rem 0 0; font-family: var(--f-display); font-stretch: 110%; font-size: 1.05rem; font-weight: 500; }

/* Declaración */
.statement { background: var(--paper); padding-block: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.statement-text { font-family: var(--f-display); font-stretch: 108%; font-weight: 480; font-size: clamp(1.6rem, 1.1rem + 2.3vw, 3rem); line-height: 1.15; letter-spacing: -.015em; max-width: 26ch; text-wrap: balance; }
.statement-text span { color: var(--ink-2); font-weight: 380; }

/* Empresa */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.about-text { min-width: 0; }
.about-text h2 { max-width: 18ch; margin-bottom: 1.5rem; }
.about-text p + p { margin-top: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.about-media { aspect-ratio: 1446 / 1163; }
.about-media figcaption, .gallery figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: .55rem .85rem; font: 400 .74rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.about-media.is-missing figcaption { display: none; }
.pillars { margin-top: clamp(3.5rem, 6vw, 6rem); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillars li { padding: 2rem 2rem 2.25rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pillars li:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.pillars svg { width: 32px; height: 32px; fill: none; stroke: var(--wood); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 1.1rem; }
.pillars h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.pillars p { color: var(--ink-2); font-size: .97rem; max-width: 38ch; }

/* Sistema constructivo */
.system { background-color: var(--forest); color: var(--on-dark); padding-block: var(--sec);
  background-image: linear-gradient(rgba(238,235,227,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(238,235,227,.035) 1px, transparent 1px), linear-gradient(rgba(238,235,227,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(238,235,227,.06) 1px, transparent 1px);
  background-size: 12px 12px, 12px 12px, 120px 120px, 120px 120px; }
.system-head { display: grid; grid-template-columns: 1fr; max-width: 820px; }
.system-head h2 { margin-bottom: 1.4rem; }
.system .lead { color: var(--on-dark-2); }
.system-index { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.system-index a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; border: 1px solid rgba(238,235,227,.25); padding: .55rem .9rem .55rem .55rem; font-size: .92rem; transition: border-color .25s, background .25s; }
.system-index a:hover { border-color: var(--wood-soft); background: rgba(217,179,134,.08); }
.code { font: 500 .75rem/1 var(--f-mono); width: 24px; height: 24px; display: inline-grid; place-items: center; background: var(--wood-soft); color: var(--forest); }
.principles { counter-reset: p; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid rgba(238,235,227,.18); }
.principles li { counter-increment: p; padding: 1.6rem 1.5rem 0 0; min-width: 0; }
.principles li + li { padding-left: 1.5rem; border-left: 1px solid rgba(238,235,227,.12); }
.principles li::before { content: "0" counter(p); display: block; font: 400 .72rem/1 var(--f-mono); color: var(--wood-soft); margin-bottom: .9rem; letter-spacing: .1em; }
.principles h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.principles p { font-size: .93rem; color: var(--on-dark-2); }

.detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 4.5vw, 5rem); align-items: start; margin-top: clamp(4.5rem, 8vw, 8rem); }
.detail-rev .sheet { order: 2; }
.sheet { position: sticky; top: 100px; background: var(--white); padding: clamp(10px, 1.6vw, 18px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); min-width: 0; }
.sheet-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.sheet-zoom img { width: 100%; transition: transform .6s var(--ease); }
.sheet-zoom:hover img { transform: scale(1.015); }
.zoom-hint { position: absolute; right: 8px; top: 8px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--forest); color: var(--on-dark); padding: .45rem .6rem; opacity: 0; transition: opacity .25s; }
.sheet-zoom:hover .zoom-hint, .sheet-zoom:focus-visible .zoom-hint { opacity: 1; }
.sheet-block { display: grid; grid-template-columns: auto 1fr auto; border: 1px solid var(--ink); margin-top: clamp(10px, 1.6vw, 18px); font: 400 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sheet-block span { padding: .65rem .75rem; }
.sheet-block span + span { border-left: 1px solid var(--ink); }
.detail-text { min-width: 0; }
.code-lg { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; font-size: 4.5rem; line-height: .8; color: var(--wood-soft); margin-bottom: 1.25rem; }
.detail-text h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 1.1rem; }
.detail-text > p { color: var(--on-dark-2); max-width: 58ch; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 2rem 0; background: rgba(238,235,227,.18); border: 1px solid rgba(238,235,227,.18); }
.kpis li { background: var(--forest); padding: 1.1rem 1.15rem; }
.kpis strong { display: block; font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.kpis span { font-size: .85rem; color: var(--on-dark-2); }
.layers-scroll { overflow-x: auto; }
.layers { width: 100%; border-collapse: collapse; font-size: .93rem; }
.layers th { text-align: left; font: 400 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); padding: 0 .6rem .7rem 0; border-bottom: 1px solid rgba(238,235,227,.3); }
.layers td { padding: .62rem .6rem .62rem 0; border-bottom: 1px solid rgba(238,235,227,.1); vertical-align: top; }
.layers td:first-child { font-family: var(--f-mono); font-size: .78rem; color: var(--wood-soft); width: 2.6rem; padding-top: .78rem; }
.layers td:last-child { font-family: var(--f-mono); font-size: .8rem; white-space: nowrap; text-align: right; padding-right: 0; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.layers th:last-child { text-align: right; padding-right: 0; }
.layers tr.hl td:nth-child(2) { color: var(--wood-soft); }
.notes { margin-top: 1.75rem; display: grid; gap: .85rem; }
.notes li { font-size: .95rem; color: var(--on-dark-2); padding-left: 1.1rem; position: relative; max-width: 60ch; }
.notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--wood-soft); }
.notes strong { color: var(--on-dark); font-weight: 600; }

/* Viviendas */
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { font: 500 .88rem/1 var(--f-body); padding: .65rem 1rem; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 24vw, 330px); gap: 12px; grid-auto-flow: dense; }
.g-item { min-width: 0; }
.g-item.g-wide { grid-column: span 2; }
.g-item.g-full { grid-column: 1 / -1; }
.g-item[data-tags~="naturaleza"]:nth-child(2) { grid-row: span 2; }
.g-item .photo { height: 100%; }
.g-item img { transition: transform .9s var(--ease); }
.g-item:hover img { transform: scale(1.035); }
.gallery figcaption { display: flex; flex-direction: column; gap: .2rem; text-transform: none; letter-spacing: 0; font: 400 .9rem/1.3 var(--f-body); color: var(--ink); padding: .7rem 1rem .75rem; max-width: calc(100% - 24px); }
.gallery figcaption span { font: 400 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.photo.is-missing figcaption { background: transparent; padding: 0; position: absolute; left: 16px; top: 14px; bottom: auto; }
.g-item[hidden] { display: none; }


/* Europa */
.europe { background: var(--paper-2); padding-block: var(--sec); }
.europe-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.europe-text { min-width: 0; }
.europe-text h2 { margin-bottom: 1.4rem; max-width: 16ch; }
.europe-text > p + p { margin-top: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.zones { margin-top: 2rem; border-top: 1px solid var(--line); }
.zones li { display: grid; grid-template-columns: 14px 8.5rem 1fr; gap: .75rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; cursor: default; transition: background .2s; }
.zones li > span:last-child { color: var(--ink-2); }
.zones .dot { width: 10px; height: 10px; border-radius: 50%; align-self: center; box-shadow: inset 0 0 0 1px rgba(27,33,29,.15); }
.zones [data-zone="n"] .dot { background: var(--z-n); } .zones [data-zone="o"] .dot { background: var(--z-o); }
.zones [data-zone="c"] .dot { background: var(--z-c); } .zones [data-zone="a"] .dot { background: var(--z-a); }
.zones [data-zone="m"] .dot { background: var(--z-m); }
.europe-map { margin: 0; min-width: 0; }
.eumap { width: 100%; height: auto; display: block; }
.eumap .z { transition: opacity .3s var(--ease); }
.eumap .z-n { fill: var(--z-n); } .eumap .z-o { fill: var(--z-o); } .eumap .z-c { fill: var(--z-c); } .eumap .z-a { fill: #fbfaf6; } .eumap .z-m { fill: var(--z-m); }
.eumap.is-focus .z { opacity: .18; }
.eumap.is-focus .z.on { opacity: 1; }
.europe-map figcaption { font: 400 .72rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: .75rem; }

/* Solicitud */
.request { background: var(--forest); color: var(--on-dark); padding-block: var(--sec); }
.request-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.request-text { position: sticky; top: 110px; min-width: 0; }
.request-text h2 { margin-bottom: 1.3rem; }
.request .lead { color: var(--on-dark-2); }
.request-points { margin-top: 2rem; display: grid; gap: .6rem; }
.request-points li { padding-left: 1.4rem; position: relative; color: var(--on-dark-2); font-size: .97rem; }
.request-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--wood-soft); }
.form { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3.5vw, 3rem); display: grid; gap: 1.2rem; min-width: 0; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-narrow { max-width: 260px; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: .85rem .9rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(156,99,52,.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.unit { position: relative; }
.unit input { padding-right: 3rem; }
.unit span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: .85rem; color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--ink-2); }
.err { font-size: .82rem; color: var(--error); min-height: 0; }
.err:empty { display: none; }
.check { grid-template-columns: auto 1fr; align-items: start; column-gap: .7rem; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--ink); }
.check label { font-weight: 400; font-size: .93rem; }
.check .err { grid-column: 1 / -1; }
.legal-mini { font-size: .76rem; line-height: 1.5; color: var(--ink-2); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 1rem 1.1rem; font-size: .95rem; border-left: 3px solid var(--ink-2); background: var(--white); }
.status.is-ok { border-color: var(--ok); }
.status.is-ok strong { color: var(--ok); }
.status.is-error { border-color: var(--error); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pie */
.site-footer { background: #141b17; color: var(--on-dark-2); padding-top: 4rem; font-size: .92rem; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand-word { color: var(--on-dark); font-size: 1.2rem; }
.footer-brand p { margin-top: 1rem; max-width: 40ch; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a, .site-footer .linklike { text-decoration: none; color: var(--on-dark-2); transition: color .2s; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--on-dark); }
.footer-base { border-top: 1px solid rgba(238,235,227,.1); padding-block: 1.25rem; font: 400 .74rem/1.4 var(--f-mono); letter-spacing: .06em; }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: min(1312px, 96vw); max-height: 94vh; background: var(--white); overflow: auto; }
.lightbox::backdrop { background: rgba(14,19,16,.88); }
.lightbox img { width: 100%; height: auto; }
.lb-close { position: sticky; float: right; top: 8px; margin: 8px; z-index: 2; width: 40px; height: 40px; border: 0; background: var(--forest); color: var(--on-dark); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* Consentimiento de cookies */
.cc { position: fixed; z-index: 80; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); padding: 1.4rem 1.5rem; font-size: .9rem; }
.cc h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.cc p { color: var(--ink-2); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cc-actions .btn { padding: .7rem 1rem; font-size: .85rem; flex: 1 1 auto; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.cc-cats { margin-top: 1rem; display: grid; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cc-cat { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; }
.cc-cat p { grid-column: 1 / -1; font-size: .82rem; }
.cc-cat input { width: 20px; height: 20px; accent-color: var(--ink); }

/* Páginas legales */
.legal-page { padding-top: 130px; padding-bottom: var(--sec); }
.legal-page .site-header { background: var(--paper); }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.35rem; margin: 2.5rem 0 .8rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .35rem; margin-top: .6rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 1rem; }
.legal th, .legal td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .tbl { overflow-x: auto; }
.legal .meta { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wood); }
.ph { background: #f6e7c8; padding: 0 .25em; }

/* Movimiento sutil al entrar en pantalla (desplazamiento, sin ocultar contenido) */
.js .rv { transform: translateY(18px); transition: transform 1s var(--ease); }
.js .rv.in { transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav ul { gap: 1.2rem; }
  .lang { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0; background: var(--paper); color: var(--ink); flex-direction: column; align-items: stretch; gap: 1.25rem; padding: 1.5rem var(--gutter-r) 2rem var(--gutter); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav ul a::after { display: none; }
  .lang { display: flex; }
  .site-header .nav-cta, .site-header:not(.is-solid) .nav-cta { background: var(--ink); color: var(--paper); }
  .site-header.menu-open { background: var(--paper); color: var(--ink); }
  .about, .europe-in, .request-in { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail-rev .sheet { order: 0; }
  .sheet, .request-text { position: static; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li { padding-bottom: 1.5rem; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li, .pillars li:not(:nth-child(3n+1)) { padding: 1.75rem 1.5rem 1.9rem 0; border-left: 0; }
  .pillars li:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .facts-in dl { grid-template-columns: 1fr 1fr; }
  .facts-in dl > div:nth-child(2) { border-right: 0; }
  .facts-in dl > div:nth-child(3) { padding-left: 0; }
  .facts-in dl > div:nth-child(n+3) { border-top: 1px solid rgba(238,235,227,.16); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(200px, 38vw, 320px); }
  .g-item[data-tags~="naturaleza"]:nth-child(2) { grid-row: span 1; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-in { padding-top: 120px; }
  .hero-media.is-missing::after { display: none; }
  .hero-actions .btn { width: 100%; }
  .pillars, .principles, .gallery, .field-row { grid-template-columns: 1fr; }
  .pillars li:nth-child(2n), .pillars li { padding: 1.5rem 0; border-left: 0; }
  .principles li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(238,235,227,.12); padding-top: 1.25rem; }
  .g-item.g-wide { grid-column: auto; }
  .g-item[data-tags~="naturaleza"]:nth-child(2) { grid-row: span 1; }
  .gallery { grid-auto-rows: 64vw; }
  .zones li { grid-template-columns: 14px 1fr; }
  .zones li > span:last-child { grid-column: 2; }
  .field-narrow { max-width: none; }
  .footer-in { grid-template-columns: 1fr; }
  .kpis strong { font-size: 1.5rem; }
  .code-lg { font-size: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .rv { transform: none; }
}
