/* =========================================================
   Kamil Roszkowski — sistema visual
   Tokens → base → layout → componentes → páginas → utilidades
   ========================================================= */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #bdbdbc;
  --paper-2: #b0b0af;
  --surface: #cbcbca;
  --ink: #111111;
  --ink-2: #262626;
  --muted: #424242;
  --line: #9c9c9b;
  --line-soft: #a9a9a8;
  --accent: #6f4426;
  --accent-ink: #5a361c;
  --on-ink: #f0f0ef;
  --on-ink-muted: #ababab;
  --map-land: #a3a3a2;
  --map-visited: #8a5a36;
  --danger: #a3341f;
  --ok: #2f6b45;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.25rem + .9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.8rem);
  --step-5: clamp(3.2rem, 2rem + 6.4vw, 8.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --section: clamp(72px, 9vw, 140px);
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

/* ---------- 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(--ink);
  font: 400 var(--step-0)/1.65 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }
main:focus { outline: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Tipografía de apoyo ---------- */
.eyebrow { font: 500 var(--step--1)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.section-title { font-size: var(--step-3); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 .6em; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: var(--step-0); margin: 1.8em 0 .4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--accent-ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 1px solid var(--ink);
  font: 500 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 40px; padding: .6em 1.2em; font-size: .88rem; }
.btn--amazon { background: var(--ink); color: var(--paper); min-height: 54px; padding-inline: 2em; }
.btn--amazon:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font: 500 .95rem/1.2 var(--sans); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .25em; white-space: nowrap; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--light { color: var(--on-ink); }
.link-arrow--light:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.wordmark { font: 400 1.55rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; position: relative; z-index: 61; }
.wordmark:hover { color: var(--ink); }
.main-nav ul { display: flex; gap: 15px; list-style: none; } /* fijo: el contenedor tiene ancho máximo; con 13 entradas en polaco/alemán no cabe más */
.main-nav a { font: 450 .9rem/1 var(--sans); text-decoration: none; color: var(--ink-2); padding: .5em 0; position: relative; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Selector de idioma */
.site-header__tools { display: flex; align-items: center; gap: 18px; position: relative; z-index: 61; }
.lang-switch { position: relative; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--line); border-radius: 99px; padding: .4em .8em; font: 500 .78rem/1 var(--sans); letter-spacing: .08em; cursor: pointer; color: var(--ink); }
.lang-switch__btn span { font-size: .7em; }
.lang-switch__btn:hover, .lang-switch__btn[aria-expanded="true"] { border-color: var(--ink); }
.lang-switch__menu { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px; min-width: 168px; box-shadow: 0 18px 40px -20px rgba(20,20,20,.45); }
.lang-switch__menu a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: .92rem; }
.lang-switch__menu a span { font: 600 .72rem/1 var(--sans); letter-spacing: .08em; color: var(--muted); width: 2.2em; }
.lang-switch__menu a:hover { background: var(--paper); color: var(--ink); }
.lang-switch__menu a[aria-current="true"] { font-weight: 600; }
.mobile-menu__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mobile-menu__langs a { padding: .5em 1em; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .9rem; }
.mobile-menu__langs a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 420px) { .site-header__tools { gap: 12px; } .menu-toggle__label { display: none; } }

.menu-toggle { display: none; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0; cursor: pointer; position: relative; z-index: 61; }
.menu-toggle__label { font: 500 .85rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.menu-toggle__icon { width: 26px; height: 12px; position: relative; }
.menu-toggle__icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 10px; }
.menu-open .menu-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 49; background: var(--paper); padding-top: var(--header-h); overflow-y: auto; opacity: 0; transition: opacity .35s var(--ease); }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__inner { display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100dvh - var(--header-h)); padding-block: 24px 32px; }
.mobile-menu__list { list-style: none; border-top: 1px solid var(--line); }
.mobile-menu__list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: none; }
.mobile-menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font: 400 clamp(1.9rem, 6vw, 2.8rem)/1.1 var(--serif); text-decoration: none; }
.mobile-menu__list a[aria-current="page"] { color: var(--accent); }
.mobile-menu__num { font: 500 .75rem/1 var(--sans); color: var(--muted); letter-spacing: .1em; width: 2ch; }
.mobile-menu__meta { color: var(--muted); font-size: var(--step--1); margin: 28px 0 0; }
body.menu-open { overflow: hidden; }

@media (max-width: 1439px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1440px) { .mobile-menu { display: none !important; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: clamp(64px, 8vw, 110px) 0 32px; margin-top: 0; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; gap: 48px 32px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.site-footer__brand p { color: var(--on-ink-muted); max-width: 32ch; margin-top: 14px; font-size: var(--step--1); }
.site-footer__roles a { color: var(--on-ink-muted); text-decoration: underline; text-decoration-color: #4a4a4a; text-underline-offset: .25em; transition: color .2s, text-decoration-color .2s; }
.site-footer__roles a:hover { color: #fff; text-decoration-color: currentColor; }
.wordmark--footer { font-size: clamp(2rem, 3vw, 2.6rem); }
.principles-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.principles-inline li { font-size: .78rem; border: 1px solid #3a3a3a; border-radius: 99px; padding: .35em .9em; color: var(--on-ink-muted); }
.site-footer__col h2 { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 18px; }
.site-footer__col ul { list-style: none; display: grid; gap: 10px; font-size: .92rem; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: .82rem; color: var(--on-ink-muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__langs { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.site-footer__langs-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
a.site-footer__langs:hover { text-decoration: none; }
a.site-footer__langs:hover .site-footer__langs-label { color: #fff; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .eyebrow { color: var(--on-ink-muted); }
.section--paper { background: var(--paper-2); }
.section + .section:not(.section--ink):not(.section--paper):not(.section--cta) { border-top: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }

.page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line-soft); }
.page-head__title { font-size: var(--step-5); line-height: .95; letter-spacing: -.025em; }
.page-head__lead { margin-top: clamp(20px, 2.5vw, 36px); font-size: var(--step-1); color: var(--ink-2); max-width: 54ch; line-height: 1.55; }
.page-head--legal .page-head__title { font-size: var(--step-4); }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Hero (inicio) ---------- */
.hero { padding: clamp(40px, 7vw, 110px) 0 clamp(48px, 6vw, 90px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero__name { font-size: var(--step-5); line-height: .9; letter-spacing: -.035em; }
.hero__name span { display: block; }
.hero__name span:last-child { font-style: italic; padding-left: .45em; }
.hero__roles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: clamp(24px, 3vw, 40px) 0 0; font-size: var(--step-0); color: var(--ink-2); }
.hero__roles li:not(:last-child)::after { content: "·"; margin: 0 .6em; color: var(--accent); }
.hero__roles a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; transition: text-decoration-color .2s, color .2s; }
.hero__roles a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Franja "Perfiles": todos los perfiles enlazados entre sí */
.roles-nav { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; background: var(--paper-2); }
.roles-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.roles-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.15em; border: 1px solid var(--ink); border-radius: 99px; text-decoration: none; font-size: .92rem; transition: background .2s, color .2s; }
.roles-nav__list a:hover { background: var(--ink); color: var(--paper); }
.roles-nav__list a[aria-current="page"] { background: var(--ink); color: var(--paper); pointer-events: none; }
.hero__statement { font: 400 var(--step-2)/1.25 var(--serif); max-width: 30ch; margin: clamp(20px, 2.5vw, 32px) 0 0; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }
.hero__portrait { margin: 0; width: clamp(220px, 28vw, 400px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.02); }
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; width: min(62vw, 260px); aspect-ratio: 1; border-radius: 50%; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: clamp(48px, 7vw, 100px) 0 0; border-top: 1px solid var(--ink); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 22px 20px 4px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat dd { margin: 0; font: 400 var(--step-4)/1 var(--serif); letter-spacing: -.02em; }
.stat dt { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
}

/* ---------- Principios ---------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.principle { padding-top: 24px; border-top: 1px solid var(--line); }
.principle__num { font: 500 .78rem/1 var(--sans); color: var(--accent); letter-spacing: .1em; }
.principle__title { font-size: var(--step-3); margin: .2em 0 .4em; }
.principle p:last-child { color: var(--ink-2); max-width: 40ch; }
@media (max-width: 680px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Trayectoria ---------- */
.journey { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.journey li { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 26px 0; border-bottom: 1px solid var(--line); font: 400 var(--step-1)/1.2 var(--serif); }
.journey li:has(.journey__link) { padding: 0; }
.journey__link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 18px 26px 0; text-decoration: none; position: relative; }
.journey__arrow { font-family: var(--sans); font-size: 1rem; color: var(--muted); transition: transform .3s var(--ease), color .3s; margin-top: auto; }
.journey__link:hover { color: var(--ink); }
.journey__link:hover .journey__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.journey__link:hover .journey__arrow { transform: translateX(6px); color: var(--accent); }
.chapter__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0 0; }
.journey__num { font: 500 .75rem/1 var(--sans); color: var(--muted); letter-spacing: .1em; }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, 1fr); } }

.timeline { list-style: none; position: relative; }
.chapter { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.chapter__num { font: 400 var(--step-3)/1 var(--serif); color: var(--accent); }
.chapter__title { font-size: var(--step-3); margin-bottom: .4em; }
.chapter__text { font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.chapter__img { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; max-width: 720px; }
@media (max-width: 600px) { .chapter { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Experiencia ---------- */
.experience-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.big-number { font: 400 clamp(4.5rem, 3rem + 9vw, 11rem)/.85 var(--serif); letter-spacing: -.04em; margin: 0; }
.big-number span { color: var(--accent); }
.section--ink .big-number span { color: #c98a57; }
.big-number__label { margin-top: 18px; font-size: var(--step-1); max-width: 30ch; color: inherit; opacity: .85; }
.lang-chips { list-style: none; display: grid; gap: 0; border-top: 1px solid #3a3a3a; }
.lang-chips li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #3a3a3a; font-size: var(--step-0); }
.lang-chips strong { margin-left: auto; font: 500 .8rem/1 var(--sans); letter-spacing: .1em; border: 1px solid currentColor; border-radius: 99px; padding: .4em .8em; }
.experience-teaser__links { display: flex; gap: 28px; margin-top: 32px; }
@media (max-width: 800px) { .experience-teaser { grid-template-columns: 1fr; } }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.highlight { padding: 28px 24px 28px 0; }
.highlight + .highlight { padding-left: 24px; border-left: 1px solid var(--line); }
.highlight__value { font: 400 var(--step-5)/.9 var(--serif); letter-spacing: -.03em; margin: 0; }
.highlight__label { color: var(--muted); margin-top: 12px; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.area { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.area:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.area__title { font-size: var(--step-2); margin-bottom: .5em; }
.area p { color: var(--ink-2); }
@media (max-width: 900px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .area:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .area:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .areas { grid-template-columns: 1fr; }
  .area:nth-child(even) { padding-left: 0; border-left: 0; }
  .highlight + .highlight { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.year-list { list-style: none; border-top: 1px solid var(--line); }
.year-list li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.year-list__year { font: 400 var(--step-2)/1 var(--serif); color: var(--accent); }
.year-list h3 { font-family: var(--sans); font-weight: 600; font-size: var(--step-0); margin-bottom: .3em; line-height: 1.4; }
.year-list p { color: var(--ink-2); margin: 0; }
@media (max-width: 560px) { .year-list li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Idiomas ---------- */
.languages { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.language { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; min-height: 300px; }
.language__flag { font-size: 2.6rem; line-height: 1; }
.language__name { font-size: var(--step-3); margin-top: auto; }
.language__native { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: var(--step-1); margin: .2em 0 1.2em; }
.language__level { display: flex; align-items: center; gap: 12px; font: 500 .82rem/1 var(--sans); letter-spacing: .1em; }
.language__bar { flex: 1; height: 2px; background: var(--ink); position: relative; }
.level-note { margin-top: 32px; color: var(--muted); font-size: var(--step--1); max-width: 70ch; }
@media (max-width: 1000px) { .languages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .languages { grid-template-columns: 1fr; } .language { min-height: 0; } .language__name { margin-top: 28px; } }

/* ---------- Libros ---------- */
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .book-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }
.book-card { display: flex; flex-direction: column; }
.book-card__title { font-size: var(--step-1); line-height: 1.2; margin-bottom: 18px; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { text-decoration: underline; color: var(--ink); }
/* Portada: marco fijo 2:3 con la imagen completa (contain) para que cualquier formato quede limpio */
.book-cover { display: grid; place-items: center; aspect-ratio: 2 / 3; background: var(--paper-2); border-radius: var(--radius); padding: 7%; transition: background .3s; }
.book-cover img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 1px 2px rgba(20,20,20,.12), 0 14px 30px -12px rgba(20,20,20,.35); border-radius: 2px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.book-card:hover .book-cover img { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(20,20,20,.12), 0 26px 44px -16px rgba(20,20,20,.45); }
.book-cover__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); padding: 18%; text-align: center; font: 400 var(--step-1)/1.15 var(--serif); }
.book-card__lang { margin: 14px 0 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.book { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.book__cover { position: sticky; top: calc(var(--header-h) + 24px); }
.book__cover .book-cover { padding: 9%; }
.book__lang { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.book__collection { margin: 6px 0 0; font-size: var(--step--1); color: var(--muted); }
.book__collection a { color: var(--ink); text-underline-offset: .2em; }
.collection-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.collection-index a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: .5em 1.1em; border: 1px solid var(--ink); border-radius: 99px; text-decoration: none; font-size: .95rem; transition: background .2s, color .2s; }
.collection-index a:hover { background: var(--ink); color: var(--paper); }
.collection-index span { font-size: .78rem; opacity: .7; }
.collection-index { align-items: center; }
.collection-index .collection-index__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: 1; color: var(--muted); margin-right: 4px; }
.collection__desc { margin: -12px 0 clamp(32px, 4vw, 48px); max-width: 62ch; }
.book__title { font-size: var(--step-4); line-height: 1; margin: .3em 0 .6em; }
.book__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 24px 0; border-block: 1px solid var(--line); margin-bottom: 36px; }
.book__price { margin: 0; }
.book__price strong { display: block; font: 400 var(--step-3)/1 var(--serif); }
.book__price span { font-size: .78rem; color: var(--muted); }
.book__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: var(--step--1); color: var(--muted); }
.book__desc p { color: var(--ink-2); }
@media (max-width: 800px) {
  .book { grid-template-columns: 1fr; }
  .book__cover { position: static; max-width: 340px; margin-inline: auto; width: 100%; }
}

/* ---------- Proyectos ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { display: flex; flex-direction: column; position: relative; }
.project-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.03); }
/* Logos: completos y centrados sobre blanco, sin recortar */
.project-card__media--logo { background: #fff; padding: 6%; }
.project-card__media--logo picture { display: block; width: 100%; height: 100%; }
.project-card__media--logo img { width: 100%; height: 100%; object-fit: contain; }
.project-card:hover .project-card__media--logo img { transform: scale(1.02); }
/* Portadas de libro: completas sobre fondo oscuro, con sombra de libro */
.project-card__media--book { background: var(--ink); padding: 7% 0; }
.project-card__media--book img { filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.project-card__media--empty { display: grid; place-items: center; background: var(--ink); }
.project-card__media--empty span { font: italic 400 5rem/1 var(--serif); color: #c98a57; }
.project-card__body { padding-top: 20px; }
.project-card__meta { display: flex; gap: 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.project-card__title { font-size: var(--step-2); margin-bottom: .4em; }
.project-card__title a { text-decoration: none; }
.project-card__title a::after { content: ""; position: absolute; inset: 0; }
.project-card__text { color: var(--ink-2); }
.project-card__link { font-size: .85rem; color: var(--accent-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: .5em 1.1em; font-size: .88rem; cursor: pointer; transition: all .2s; }
.filter[aria-pressed="true"], .filter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Viajes ---------- */
.travel-teaser { display: grid; grid-template-columns: minmax(240px, .8fr) 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.big-number--dark { color: var(--ink); }
.peaks-inline { list-style: none; margin: 28px 0 32px; display: grid; gap: 8px; color: var(--ink-2); }
.peaks-inline strong { font-weight: 600; color: var(--ink); margin-right: .4em; }
@media (max-width: 860px) { .travel-teaser { grid-template-columns: 1fr; } }

.world-map { margin: 0; }
.world-map svg { width: 100%; height: auto; }
.world-map--image { border-radius: var(--radius-lg); overflow: hidden; }
.world-map__img { width: 100%; height: auto; }
.world-map path { fill: var(--map-land); stroke: var(--paper); stroke-width: .5; transition: fill .25s; }
.section--paper .world-map path { stroke: var(--paper-2); }
.world-map .is-visited { fill: var(--map-visited); }
.world-map circle.is-visited { stroke: var(--paper); stroke-width: .8; }
.world-map path:hover { fill: var(--ink-2); }
.world-map path.is-visited:hover { fill: var(--accent-ink); }
.map-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: var(--paper); font-size: .8rem; padding: 6px 10px; border-radius: var(--radius); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.map-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-size: var(--step--1); color: var(--muted); }
.map-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; background: var(--map-land); }
.map-legend .is-visited::before { background: var(--map-visited); }

.peaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.peak { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--on-ink); min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.peak__media { position: absolute; inset: 0; z-index: -1; }
.peak__media img { width: 100%; height: 100%; object-fit: cover; }
.peak__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,20,20,.88), rgba(20,20,20,.1) 60%); }
.peak__silhouette { position: absolute; inset: auto 0 0 0; z-index: -1; opacity: .9; }
.peak__body { padding: clamp(22px, 2.5vw, 32px); }
.peak__alt { font: 400 var(--step-4)/.9 var(--serif); letter-spacing: -.02em; }
.peak__alt small { font-size: .4em; letter-spacing: 0; margin-left: .2em; }
.peak__name { font-size: var(--step-2); margin-top: .3em; }
.peak__meta { color: var(--on-ink-muted); font-size: var(--step--1); margin: .4em 0 0; }
.peak__text { margin: 1em 0 0; color: var(--on-ink); opacity: .9; }
@media (max-width: 900px) { .peaks { grid-template-columns: 1fr; } .peak { min-height: 300px; } }

.lycian { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.lycian__facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.lycian__facts strong { display: block; font: 400 var(--step-3)/1 var(--serif); }
.lycian__facts span { font-size: var(--step--1); color: var(--muted); }
.lycian__photo { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 50px -30px rgba(20,20,20,.5); }
.lycian__photo img { width: 100%; height: auto; }
.milestones { list-style: none; position: relative; padding-left: 28px; }
.milestones::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.milestone { position: relative; padding: 0 0 32px; }
.milestone::before { content: ""; position: absolute; left: -28px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); transition: background .3s; }
.milestone.is-in::before { background: var(--accent); }
.milestone__year { font: 500 .8rem/1 var(--sans); letter-spacing: .12em; color: var(--accent); }
.milestone__title { font-size: var(--step-2); margin: .3em 0 .3em; }
.milestone p { color: var(--ink-2); margin: 0; }
.milestone__img { margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.route-line { margin-top: 32px; }
.route-line svg { width: 100%; height: auto; overflow: visible; }
.route-line__path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; }
.route-line__dot { fill: var(--paper-2); stroke: var(--accent); stroke-width: 2; }
.route-line text { font: 500 12px var(--sans); fill: var(--ink-2); }
@media (max-width: 860px) { .lycian { grid-template-columns: 1fr; } }

.cards-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.place { border-top: 1px solid var(--line); padding-top: 20px; }
.place__img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; aspect-ratio: 4/3; }
.place__img img { width: 100%; height: 100%; object-fit: cover; }
.place__meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.place__title { font-size: var(--step-2); margin-bottom: .4em; }
.place p { color: var(--ink-2); }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery img { border-radius: var(--radius); width: 100%; }
.gallery figcaption { font-size: var(--step--1); color: var(--muted); padding-top: 8px; }
/* Galerías de obra (cocina / fotografía / pinturas): mosaico que respeta la proporción de cada obra */
.art-grid { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 22px); }
.art-item { margin: 0 0 clamp(12px, 1.6vw, 22px); break-inside: avoid; }
.art-item__link { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.art-item__img, .art-item img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .3s; }
.art-item__link:hover img { transform: scale(1.025); }
.art-grid--artwork .art-item__link { background: var(--surface); padding: clamp(10px, 1.5vw, 18px); box-shadow: 0 1px 2px rgba(20,20,20,.08), 0 18px 34px -22px rgba(20,20,20,.45); }
.art-grid--artwork .art-item__link:hover img { transform: none; opacity: .92; }
.art-item figcaption { display: grid; gap: 2px; padding-top: 10px; font-size: var(--step--1); color: var(--muted); }
.art-item figcaption strong { color: var(--ink); font-weight: 500; }
/* Documentos PDF (diplomas): solo se abren al pulsar */
.doc-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.doc-card { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.doc-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.doc-card__icon { flex: none; width: 46px; height: 58px; display: grid; place-items: center; border-radius: 4px; background: var(--ink); color: var(--on-ink); font: 600 .7rem/1 var(--sans); letter-spacing: .08em; position: relative; }
.doc-card__icon::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: transparent var(--surface) transparent transparent; }
.doc-card__body { display: grid; gap: 4px; min-width: 0; }
.doc-card__title { font: 400 var(--step-1)/1.2 var(--serif); }
.doc-card__desc { font-size: var(--step--1); color: var(--ink-2); }
.doc-card__meta { font-size: .8rem; color: var(--accent-ink); margin-top: 4px; }

.gallery-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(32px, 5vw, 64px); }
.gallery-teaser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.gallery-teaser__grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery-teaser__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-teaser__grid a:hover img { transform: scale(1.04); }
.country-list { columns: 4 180px; column-gap: 32px; list-style: none; }
.country-list li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); break-inside: avoid; font-size: .95rem; }
.country-list span { margin-right: 10px; }

/* ---------- Blog / feed ---------- */
.feed-wrap { max-width: 680px; margin-inline: auto; }
.feed { display: grid; gap: clamp(20px, 3vw, 32px); }
.post { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.post__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 400 1rem/1 var(--serif); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post__author { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.post__date { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.post__date a { text-decoration: none; }
.post__date a:hover { text-decoration: underline; }
.post__body { padding: 14px 20px 4px; }
.post__body p { margin-bottom: .8em; }
.post__body a { color: var(--accent-ink); word-break: break-word; }
.post__body--large { font: 400 var(--step-2)/1.3 var(--serif); padding-block: 22px 14px; }
.post__gallery { display: grid; gap: 3px; margin-top: 12px; }
.post__gallery--two { grid-template-columns: 1fr 1fr; }
.post__gallery--three { grid-template-columns: 1fr 1fr; }
.post__gallery--three .post__photo:first-child { grid-column: 1 / -1; }
.post__gallery--many { grid-template-columns: 1fr 1fr; }
.post__photo { position: relative; display: block; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.post__gallery--one .post__photo img { width: 100%; max-height: 760px; object-fit: cover; }
.post__gallery:not(.post__gallery--one) .post__photo { aspect-ratio: 1; }
.post__gallery--three .post__photo:first-child { aspect-ratio: 16 / 9; }
.post__gallery:not(.post__gallery--one) .post__photo img { width: 100%; height: 100%; object-fit: cover; }
.post__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,20,20,.55); color: #fff; font: 400 2.4rem/1 var(--serif); }
.post__foot { padding: 6px 20px 16px; }
.reactions__summary { display: flex; align-items: center; gap: 2px; min-height: 28px; margin: 8px 0 6px; font-size: .95rem; }
.reactions__total { margin-left: 6px; font-size: .85rem; color: var(--muted); }
.reactions__bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.reaction { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; background: transparent; border: 1px solid transparent; border-radius: 99px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.reaction:hover { background: var(--paper); }
.reaction__emoji { font-size: 1.25rem; line-height: 1; transition: transform .25s var(--ease); }
.reaction:hover .reaction__emoji { transform: scale(1.18) translateY(-1px); }
.reaction__count { font-size: .82rem; color: var(--muted); min-width: 0; }
.reaction.is-active { background: var(--paper-2); border-color: var(--line); }
.reaction.is-active .reaction__count { color: var(--ink); font-weight: 600; }
.reaction.pop .reaction__emoji { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@media (max-width: 420px) { .reaction { padding: 0 8px; } .reactions__bar { justify-content: space-between; gap: 0; } }

.comments__toggle { background: none; border: 0; padding: 12px 0 4px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.comments__toggle:hover { color: var(--accent); text-decoration: underline; }
.comments__panel { padding-top: 8px; }
.comments__list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.comments__list:empty { display: none; }
.comment { background: var(--paper); border-radius: 14px; padding: 10px 14px; }
.comment--owner { background: var(--paper-2); }
.comment__meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 2px; font-size: .85rem; }
.comment__name { font-weight: 600; }
.comment__badge { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid currentColor; border-radius: 99px; padding: .15em .6em; }
.comment time { color: var(--muted); font-size: .78rem; }
.comment__body { font-size: .94rem; }
.comment__body p { margin: 0 0 .4em; }
.comment__body p:last-child { margin: 0; }
.comment__replies { list-style: none; display: grid; gap: 8px; margin: 10px 0 0 16px; }
.comment.is-new { animation: fadeIn .6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

.feed-more { display: flex; justify-content: center; margin-top: 40px; }
.empty { text-align: center; padding: 72px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,10,8,.94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: .85rem; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 500; }
.field__hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.post .field input, .post .field textarea { background: var(--paper); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(154,91,46,.15); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .82rem; margin: 0; }
.comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .comment-form__row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-2); margin: 4px 0 16px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.form-error { color: var(--danger); font-size: .88rem; }
.notice { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.notice--ok { border-color: var(--ok); color: var(--ok); }
.notice--error { border-color: var(--danger); color: var(--danger); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.contact__form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.contact__aside p { color: var(--ink-2); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Redes ---------- */
.social-list { list-style: none; border-top: 1px solid var(--line); }
.social-list li { border-bottom: 1px solid var(--line); }
.social-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 24px; padding: clamp(18px, 2.5vw, 30px) 0; text-decoration: none; }
.social-list__name { font: 400 var(--step-3)/1 var(--serif); transition: transform .4s var(--ease); }
.social-list a:hover .social-list__name { transform: translateX(8px); color: var(--accent); }
.social-list__handle { color: var(--muted); font-size: .92rem; }
.social-list__desc { grid-column: 1 / -1; color: var(--ink-2); font-size: .92rem; margin: 0; }
.social-list--compact a { padding: 14px 0; font-size: 1rem; }

/* ---------- Bloques varios ---------- */
.content-access { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.content-access .section-title { font-size: var(--step-2); }
@media (max-width: 860px) { .content-access { grid-template-columns: 1fr; } }
.latest-post { display: grid; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .3s; }
.latest-post:hover { border-color: var(--ink); color: var(--ink); }
.latest-post__date { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.latest-post__text { font: 400 var(--step-1)/1.4 var(--serif); }
.section--cta { background: var(--paper-2); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta__title { font-size: var(--step-5); line-height: .95; font-style: italic; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait-block { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; background: var(--paper-2); }
.portrait-block img { width: 100%; height: 100%; object-fit: cover; }
.legal-updated { font-size: var(--step--1); color: var(--muted); }
.legal-pending { background: #fff6e5; border: 1px solid #ecc983; color: #6b4a0e; padding: 2px 6px; border-radius: 3px; font-size: .9em; }

/* ---------- Animación de entrada (discreta) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  /* En móvil: animación más corta y ligera */
  .js .reveal { transform: translateY(10px); transition-duration: .55s; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
/* ---- Productos: banda que se desplaza de izquierda a derecha ---- */
.section--marquee { overflow: hidden; }
.product-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.product-marquee__track { display: flex; gap: 28px; width: max-content; list-style: none; padding: 0; margin: 0; animation: product-marquee calc(var(--count, 10) * 6s) linear infinite; }
.product-marquee:hover .product-marquee__track, .product-marquee:focus-within .product-marquee__track { animation-play-state: paused; }
.product-marquee .product-card { width: 220px; flex: 0 0 auto; }
@keyframes product-marquee { from { transform: translateX(calc(-50% - 14px)); } to { transform: translateX(0); } }
.product-card a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.product-card__media { display: block; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.product-card__media picture { display: block; width: 100%; height: 100%; }
.product-card__media img, .product-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.product-card a:hover .product-card__img { transform: scale(1.04); }
.product-card__name { font: 500 var(--step-0)/1.3 var(--sans); color: var(--ink); }
.product-card__meta { font: 400 var(--step--1)/1.3 var(--sans); color: var(--muted); }
.product-card__meta strong { color: var(--accent-ink); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2.5vw, 32px); list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .product-marquee .product-card { width: 170px; } .product-marquee__track { gap: 18px; animation-duration: calc(var(--count, 10) * 7s); } @keyframes product-marquee { from { transform: translateX(calc(-50% - 9px)); } to { transform: translateX(0); } } }
@media (prefers-reduced-motion: reduce) {
  .product-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .product-marquee__track { animation: none !important; padding-inline: var(--gutter); }
  .product-marquee__track > [aria-hidden="true"] { display: none; }
}
@media print {
  .site-header, .site-footer, .menu-toggle, .mobile-menu, .reactions, .comments { display: none !important; }
  body { background: #fff; }
}
