/* Emizna: hoja de estilos principal */

/* ---------- Tipografías autoalojadas (SIL OFL) ---------- */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
/* Sistema de formas: todo en ángulo recto (radio 0), como la tesela del logotipo. */
:root {
  color-scheme: light only;
  --paper: #F4F5F3;
  --tint: #E8EBEC;
  --white: #FDFDFC;
  --ink: #12151C;
  --text: #363B47;
  --muted: #5E6472;
  --line: #D3D7D8;
  --field: #8A90A0;
  --cobalt: #2042B0;
  --cobalt-dark: #172F82;
  --cobalt-tint: #E4E9F8;
  --error: #B3261E;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --section: clamp(64px, 9vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* capas: 50 subnavegación, 100 cabecera, 150 aviso de cookies, 200 enlace de salto */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
picture > img { width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.2; letter-spacing: -.015em; }
h4 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0 0 1.1em; }
a { color: var(--cobalt); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-dark); text-decoration-thickness: 2px; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
::selection { background: var(--cobalt); color: #fff; }
mark.pending { background: #FFEFA8; color: #4D3A00; padding: 0 .25em; font-size: .95em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--sm { padding-block: clamp(48px, 6vw, 84px); }
.section--tint { background: var(--tint); }
.section--white { background: var(--white); }

.eyebrow { font: 600 .8125rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 18px; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }
.icon { flex: none; }

/* Cabecera de sección: título y texto apilados, alineados a la izquierda */
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: .45em; }
.section-head p:last-child { margin-bottom: 0; }
.section-action { margin: clamp(36px, 5vw, 56px) 0 0; }

/* ---------- Botones y enlaces ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border: 1.5px solid transparent; border-radius: 0; font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.button:active { transform: translateY(1px); }
.button--sm { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.button--primary { background: var(--cobalt); color: #fff; }
.button--primary:hover { background: var(--cobalt-dark); color: #fff; }
.button--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--outline:hover { background: var(--ink); color: #fff; }
.button--invert { background: var(--white); color: var(--ink); }
.button--invert:hover { background: var(--cobalt-tint); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; padding-inline: 10px; }
.button--ghost:hover { color: var(--cobalt); }
.button .icon { transition: transform .3s var(--ease); }
.button:hover .icon { transform: translateX(4px); }

.link-dot { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0 6px; border-bottom: 2px solid var(--cobalt); font-weight: 600; color: var(--ink); text-decoration: none; }
.link-dot::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease); }
.link-dot:hover { color: var(--cobalt); }
.link-dot:hover::after { transform: translateX(4px); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: var(--tint); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: inline-block; flex: none; }
.brand img { width: 168px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 12px; font-weight: 500; font-size: .9688rem; color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-nav li a:hover { color: var(--cobalt); }
.site-nav li a[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -2px 0 var(--cobalt); }
.nav-toggle { display: none; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1079px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px; padding: 20px var(--gutter) 32px; background: var(--paper); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { padding: 12px 0; font: 600 1.75rem/1.2 var(--display); letter-spacing: -.02em; }
  .site-nav li a[aria-current="page"] { box-shadow: none; }
  .site-nav__cta { min-height: 52px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero portada ---------- */
.hero { padding-top: clamp(32px, 4.5vw, 64px); }
.hero h1 { max-width: 16ch; margin-bottom: clamp(20px, 2.5vw, 32px); }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero__side { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.hero__side .lead { max-width: 34rem; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { margin-inline: var(--gutter); overflow: hidden; }
.hero__media picture { height: clamp(300px, 56vh, 620px); }
.hero__media img { height: 100%; object-fit: cover; object-position: center 62%; }
@media (max-width: 560px) { .hero__actions { width: 100%; } .hero__actions .button { flex: 1 1 auto; } .hero__media { margin-inline: 0; } }

.facts__list { display: grid; gap: 0 40px; list-style: none; margin: 0; padding: clamp(32px, 4vw, 56px) 0 0; }
.facts__list li { padding: 20px 0; border-top: 2px solid var(--ink); }
.facts__list h2 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 8px; }
.facts__list p { margin: 0; font-size: .9688rem; }
@media (min-width: 760px) { .facts__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 18ch; }
.page-hero .lead { max-width: 60ch; margin-bottom: 0; }
.page-hero--split .page-hero__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .page-hero--split .page-hero__grid { grid-template-columns: 1.2fr .8fr; gap: 72px; } }
.page-hero__media picture { overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero__media img { height: 100%; object-fit: cover; }

.breadcrumbs { font-size: .875rem; margin-bottom: clamp(24px, 3vw, 40px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); display: inline-block; padding-block: 4px; }
.breadcrumbs a:hover { color: var(--cobalt); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Colecciones en mosaico (portada) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; list-style: none; margin: 0; padding: 0; }
.bento__item a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.bento__item picture { position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 14px; }
.bento__item img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento__item a:hover img { transform: scale(1.04); }
.bento__item h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; transition: color .2s; }
.bento__item h3 .icon { transition: transform .3s var(--ease); }
.bento__item a:hover h3 { color: var(--cobalt); }
.bento__item a:hover h3 .icon { transform: translateX(4px); }
.bento__item p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.bento__item:first-child, .bento__item:last-child { grid-column: 1 / -1; }
.bento__item:first-child picture, .bento__item:last-child picture { aspect-ratio: 3 / 2; }
@media (max-width: 520px) { .bento__item:not(:first-child):not(:last-child) h3 { font-size: 1.0625rem; } .bento__item:not(:first-child):not(:last-child) h3 .icon { display: none; } .bento__item:not(:first-child):not(:last-child) p { font-size: .85rem; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 40px 24px; }
  .bento__item picture, .bento__item:first-child picture, .bento__item:last-child picture { aspect-ratio: auto; flex: 1 1 auto; min-height: 280px; }
  .bento__item:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; }
  .bento__item:nth-child(2) { grid-column: 7 / 10; }
  .bento__item:nth-child(3) { grid-column: 10 / 13; }
  .bento__item:nth-child(4) { grid-column: 7 / 13; }
  .bento__item:nth-child(5) { grid-column: 1 / 5; }
  .bento__item:nth-child(6) { grid-column: 5 / 13; }
  .bento__item:nth-child(n+5) picture { min-height: 360px; }
  .bento__item p { min-height: 3em; }
}

/* ---------- Carril horizontal de estancias ---------- */
.track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: thin; scrollbar-color: var(--ink) transparent; padding-bottom: 20px; }
.track:focus-visible { outline-offset: -3px; }
.track__list { display: flex; gap: 24px; width: max-content; list-style: none; margin: 0; padding: 0 var(--edge); }
.track__item { width: min(440px, 80vw); scroll-snap-align: start; }
.track__item a { display: block; text-decoration: none; color: inherit; }
.track__item picture { overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.track__item img { height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.track__item a:hover img { transform: scale(1.04); }
.track__item a:hover h3 { color: var(--cobalt); }
.track__item h3 { margin-bottom: 6px; transition: color .2s; }
.track__item p { margin: 0; font-size: .9688rem; color: var(--muted); }

/* ---------- Bloque a dos mitades: imagen + color ---------- */
.duo { display: grid; background: var(--cobalt); color: #E6EAF9; }
.duo__media picture { height: 100%; min-height: 300px; }
.duo__media img { height: 100%; object-fit: cover; }
.duo__body { padding: clamp(48px, 7vw, 112px) var(--gutter); max-width: 44rem; align-self: center; }
.duo__body h2 { color: #fff; }
.duo__body p { margin-bottom: 1.6em; }
.duo :focus-visible { outline-color: #fff; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } .duo__body { padding-inline: clamp(40px, 6vw, 96px); } .duo__media picture { min-height: 520px; } }

/* ---------- Filas imagen + texto ---------- */
.rows { display: grid; gap: clamp(56px, 8vw, 112px); }
.row { display: grid; gap: 28px; align-items: center; }
.row__media picture { overflow: hidden; aspect-ratio: 3 / 2; }
.row__media img { height: 100%; object-fit: cover; }
.row__body h2, .row__body h3:first-child { font-size: clamp(1.625rem, 2.8vw, 2.375rem); }
@media (min-width: 860px) { .row { grid-template-columns: 1fr 1fr; gap: 72px; } .row:nth-child(even) .row__media { order: 2; } }

/* Variante apilada: imagen panorámica y, debajo, texto a dos columnas */
.rows--stack .row { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.rows--stack .row:nth-child(even) .row__media { order: 0; }
.rows--stack .row__media picture { aspect-ratio: 16 / 9; }
.rows--stack .row__body { display: grid; gap: 8px 72px; }
.rows--stack .row__side h3 { font-size: 1.125rem; margin-top: 1.4em; }
.rows--stack .row__side h3:first-child { font-size: 1.125rem; margin-top: 0; }
@media (min-width: 860px) { .rows--stack .row__media picture { aspect-ratio: 21 / 9; } .rows--stack .row__body { grid-template-columns: 1.15fr .85fr; } .rows--stack .row__side { padding: 28px; background: var(--white); border-top: 2px solid var(--ink); } }

.spec-list { list-style: none; margin: 24px 0; padding: 16px 0 0; border-top: 2px solid var(--ink); display: grid; gap: 12px; }
.spec-list li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; font-size: .9688rem; }
.spec-list span:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 420px) { .spec-list li { grid-template-columns: 1fr; gap: 0; } }

.check-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check-list .icon { color: var(--cobalt); margin-top: 3px; }
.check-list--no .icon { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 9px 14px; border: 1px solid var(--ink); font-size: .9063rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.chips a:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 1rem/1 var(--display); color: var(--cobalt); margin-bottom: 28px; }
.steps h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: .9688rem; }
@media (min-width: 640px) { .steps--cols { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (min-width: 1000px) { .steps--cols { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 40px; }
.split > *, .row > *, .article-layout > *, .page-hero__grid > *, .rows--stack .row__body > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } .split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 32px); } .split--wide-right { grid-template-columns: .8fr 1.2fr; } }
.split--tight { gap: 32px; }

/* ---------- Materiales y principios ---------- */
.materials { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.materials li { display: grid; gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.materials li:first-child { border-top: 2px solid var(--ink); }
.materials h3 { font-size: clamp(1.625rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.materials p { margin: 0; max-width: 56ch; }
@media (min-width: 760px) { .materials li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; } }

/* ---------- Tablas ---------- */
.table-wrap { max-width: 100%; overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--ink); background: var(--white); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; min-width: 560px; }
caption { caption-side: top; text-align: left; padding: 16px 18px; font: 600 1.0625rem/1.3 var(--display); color: var(--ink); border-bottom: 1px solid var(--ink); }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; }
thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody th { color: var(--ink); font-weight: 600; }
tbody tr:nth-child(even) > * { background: var(--paper); }

/* ---------- Acordeón ---------- */
.accordion { border-top: 2px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 1.1875rem/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); transition: color .2s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--cobalt); transition: transform .3s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion summary:hover { color: var(--cobalt); }
.accordion__body { padding: 0 44px 24px 0; max-width: 70ch; }
.accordion__body p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 { font-size: 1.75rem; margin-bottom: 20px; }

/* ---------- Tarjetas de artículo ---------- */
.posts { display: grid; gap: 40px 24px; list-style: none; margin: 0; padding: 0; }
.post a { display: block; text-decoration: none; color: inherit; }
.post picture { overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 18px; }
.post img { height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post a:hover img { transform: scale(1.04); }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; font-weight: 600; color: var(--cobalt); margin-bottom: 8px; }
.post__meta span + span { color: var(--muted); font-weight: 500; }
.post h3 { font-size: 1.375rem; margin-bottom: 8px; transition: color .2s; }
.post a:hover h3 { color: var(--cobalt); }
.post p { font-size: .9688rem; margin: 0; color: var(--text); }
.post p.post__meta { margin-bottom: 8px; color: var(--cobalt); }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .posts { grid-template-columns: repeat(3, 1fr); }
  .posts--feature .post:first-child { grid-column: span 2; grid-row: span 2; }
  .posts--feature .post:first-child h3 { font-size: 2.125rem; letter-spacing: -.025em; }
  .posts--feature .post:first-child picture { aspect-ratio: 16 / 11; }
  /* Portada: una guía destacada y dos compactas en horizontal */
  .posts--lead { grid-template-columns: 1.3fr 1fr; gap: 32px 56px; }
  .posts--lead .post:first-child { grid-row: span 2; }
  .posts--lead .post:first-child h3 { font-size: 2rem; letter-spacing: -.025em; }
  .posts--lead .post:not(:first-child) a { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: start; }
  .posts--lead .post:not(:first-child) picture { aspect-ratio: 1 / 1; margin: 0; }
  .posts--lead .post:not(:first-child) { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .posts--lead .post:last-child { border-bottom: 0; padding-bottom: 0; }
}
.posts--pair { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.posts--pair .post picture { aspect-ratio: 4 / 5; }

/* ---------- Catálogo ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter button { min-height: 44px; padding: 8px 18px; background: transparent; border: 1px solid var(--ink); border-radius: 0; font: 500 .9375rem var(--sans); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filter button:hover { background: var(--tint); }
.filter button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.catalog { display: grid; gap: 56px 24px; list-style: none; margin: 0; padding: 0; }
.catalog__item[hidden] { display: none; }
.catalog__item a.catalog__link { display: block; text-decoration: none; color: inherit; }
.catalog__item picture { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 20px; }
.catalog__item img { height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.catalog__link:hover img { transform: scale(1.04); }
.catalog__link:hover h2 { color: var(--cobalt); }
.catalog__item h2 { font-size: 1.75rem; margin-bottom: 6px; transition: color .2s; }
.catalog__item p { font-size: .9688rem; margin-bottom: 12px; }
.catalog__pieces { list-style: none; margin: 0 0 14px; padding: 0; font-size: .875rem; color: var(--muted); }
.catalog__pieces li { display: inline; }
.catalog__pieces li + li::before { content: ", "; }
@media (min-width: 640px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .catalog { grid-template-columns: repeat(3, 1fr); } }

.room-nav { position: sticky; top: var(--header-h); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.room-nav ul { display: flex; gap: 4px; list-style: none; margin: 0 -14px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.room-nav ul::-webkit-scrollbar { display: none; }
.room-nav a { display: block; padding: 16px 14px; white-space: nowrap; font-weight: 500; font-size: .9375rem; color: var(--ink); text-decoration: none; }
.room-nav a:hover { color: var(--cobalt); }

/* ---------- Prosa (artículos y legales) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--cobalt); font-weight: 600; }
.prose .table-wrap { max-width: none; }
.article-layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; } .article-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.page-hero--article { border-bottom: 0; padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero--article h1 { max-width: 22ch; font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.article-hero picture { overflow: hidden; aspect-ratio: 21 / 9; }
.article-hero img { height: 100%; object-fit: cover; }
@media (max-width: 640px) { .article-hero picture { aspect-ratio: 3 / 2; } }
.aside-box { padding: 28px; background: var(--tint); }
.aside-box h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.aside-box ul { list-style: none; margin: 0 0 20px; padding: 0; }
.aside-box li a { display: block; padding: 10px 0; font-weight: 500; color: var(--ink); text-decoration: none; }
.aside-box li a:hover { color: var(--cobalt); text-decoration: underline; }
.aside-box > p:last-child { margin-bottom: 0; }
.legal-meta { font-size: .9063rem; color: var(--muted); border-left: 3px solid var(--cobalt); padding-left: 16px; margin-bottom: 40px; }
.legal-toc { background: var(--tint); padding: 24px 28px; margin-bottom: 48px; }
.legal-toc h2 { font-size: 1.125rem; letter-spacing: -.01em; margin: 0 0 12px; }
.legal-toc ol { margin: 0; columns: 2 240px; column-gap: 40px; font-size: .9688rem; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- CTA ---------- */
.cta { background: var(--cobalt); color: #E6EAF9; }
.cta__inner { display: grid; gap: 28px; align-items: end; padding-block: clamp(56px, 8vw, 104px); }
.cta h2 { color: #fff; margin-bottom: 14px; max-width: 18ch; }
.cta p { margin: 0; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .button--primary { background: var(--white); color: var(--ink); }
.cta .button--primary:hover { background: var(--cobalt-tint); color: var(--ink); }
.cta .button--outline { color: #fff; border-color: #fff; }
.cta .button--outline:hover { background: #fff; color: var(--ink); }
.cta :focus-visible { outline-color: #fff; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr auto; gap: 64px; } }

/* ---------- Formulario ---------- */
.lead-section { background: var(--tint); }
.lead-card { background: var(--white); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--ink); }
.form-grid { display: grid; gap: 20px 24px; margin-bottom: 24px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .9375rem; color: var(--ink); margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: 0; transition: border-color .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2312151C' stroke-width='1.8'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--cobalt); }
.field ::placeholder { color: #6B7180; opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFF7F6; }
.field__hint { font-size: .875rem; color: var(--muted); font-weight: 400; margin: 6px 0 0; }
.field__error { font-size: .875rem; font-weight: 600; color: var(--error); margin: 6px 0 0; }
.req { color: var(--cobalt); }
.field--check { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; align-items: start; margin-bottom: 20px; }
.field--check input { width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--cobalt); }
.field--check label { margin: 0; font-weight: 400; color: var(--text); }
.field--check .field__error { grid-column: 2; }
.privacy-layer { font-size: .8438rem; line-height: 1.55; color: var(--muted); padding: 16px 18px; background: var(--paper); margin-bottom: 24px; }
.privacy-layer p { margin: 0; }
.privacy-layer strong { color: var(--text); }
.lead-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lead-form__submit .field__hint { margin: 0; flex: 1 1 260px; }
.form-alert { padding: 16px 18px; margin-bottom: 24px; border: 1.5px solid var(--error); background: #FFF7F6; color: #6D1710; }
.form-alert strong { display: block; color: inherit; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; margin: 0 0 32px; padding: 8px 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 14px 0; }
.contact-list .icon { color: var(--cobalt); margin-top: 3px; }
.contact-list strong { display: block; }

/* ---------- Pie ---------- */
.site-footer { background: var(--white); border-top: 2px solid var(--ink); color: var(--text); font-size: .9688rem; }
.site-footer a, .site-footer .link-button { color: var(--ink); text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--cobalt); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 40px 32px; padding-block: clamp(56px, 7vw, 88px) 48px; }
.site-footer__about .brand { margin-bottom: 20px; }
.site-footer__about p { max-width: 42ch; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__contact li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.site-footer__contact .icon { margin-top: 4px; color: var(--cobalt); }
.site-footer__title { font: 600 1.0625rem/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); margin: 0 0 14px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li a, .site-footer nav li .link-button { display: inline-block; padding: 7px 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__social { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; } }

/* ---------- Cookies ---------- */
.cookie-banner { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 880px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; background: var(--white); border: 1px solid var(--ink); box-shadow: 0 18px 48px -20px rgba(18, 27, 66, .45); font-size: .875rem; line-height: 1.5; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 320px; margin: 0; color: var(--text); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; font-size: .8125rem; } .cookie-banner__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; } .cookie-banner__actions .button--ghost { grid-column: 1 / -1; order: 3; min-height: 36px; } .cookie-banner__actions .button { padding-inline: 8px; } }

.cookie-dialog { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--ink); background: var(--white); color: var(--text); box-shadow: 0 32px 80px -24px rgba(18, 27, 66, .55); }
.cookie-dialog::backdrop { background: rgba(18, 21, 28, .55); }
.cookie-dialog__inner { padding: clamp(20px, 4vw, 36px); font-size: .9375rem; line-height: 1.6; }
.cookie-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cookie-dialog__head h2 { font-size: 1.625rem; margin: 6px 0 12px; }
.cookie-cat { border-top: 1px solid var(--line); padding: 18px 0; }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.cookie-cat h3 { font: 700 1rem var(--sans); margin: 0; letter-spacing: 0; }
.cookie-cat p { margin: 0 0 8px; }
.cookie-cat__state { font-size: .8125rem; font-weight: 700; color: var(--cobalt); white-space: nowrap; }
.cookie-cat__list { margin: 0; padding-left: 1.1em; font-size: .875rem; }
.cookie-cat__list li { margin-bottom: 6px; }
.cookie-cat code { font-size: .85em; background: var(--tint); padding: 2px 6px; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .cookie-dialog__actions .button { flex: 1 1 100%; } }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__track { position: absolute; inset: 0; background: #6B7180; transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--cobalt); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ---------- Utilidades ---------- */
.mt-lg { margin-top: 36px; }
.h-sm { font-size: 1.75rem; }

/* ---------- 404 y gracias ---------- */
.notice { padding-block: clamp(64px, 10vw, 144px); }
.notice__code { font: 700 clamp(6rem, 20vw, 14rem)/.85 var(--display); letter-spacing: -.05em; color: var(--cobalt); margin: 0 0 24px; }
.notice h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); max-width: 18ch; }
.notice p { max-width: 56ch; }
.notice .chips { margin-top: 28px; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Movimiento ---------- */
/* Solo el JS marca como pendientes los bloques bajo el pliegue: sin JS todo es visible. */
.reveal--pending { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal--pending.is-visible { opacity: 1; transform: none; }
.bento__item.reveal--pending:nth-child(2n), .steps .reveal--pending:nth-child(2n), .posts .reveal--pending:nth-child(2n) { transition-delay: .08s; }
.steps .reveal--pending:nth-child(3), .posts .reveal--pending:nth-child(3) { transition-delay: .16s; }
.steps .reveal--pending:nth-child(4) { transition-delay: .24s; }

/* Entrada de la portada: el titular y la imagen se asientan al cargar */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero__side { animation: rise .9s var(--ease) both; }
  .hero__side { animation-delay: .1s; }
  .hero__media img { animation: settle 1.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal--pending { opacity: 1; transform: none; }
}

@media print {
  .reveal--pending { opacity: 1 !important; transform: none !important; }
  .site-header, .site-footer, .cookie-banner, .cta, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
