@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* Layout: bandas a todo el ancho que alternan claro (lectura) y oscuro u óxido (llamadas a la acción); la portada es una banda musgo con cinta de lugares en movimiento. */
/* Paleta Musgo, otoño sobrio: café en lugar de negro, oliva como ancla y óxido como único acento. */
:root {
  --bg: #EFEBE4;
  --surface: #E3DDD2;
  --fg: #2A241F;
  --muted: #675E54;
  --line: #D3CCBF;
  --anchor: #4A5532;
  --on-anchor: #FFFFFF;
  --accent: #A8552E;
  --accent-ink: #8E4422;
  --band: #2F3622;
  --on-band: #F1EDE4;
  --on-band-muted: #C9C4B5;
  --band-accent: #E8A27A;
  --band-line: #4A5236;
  --rust: #8E4422;
  --on-rust: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 3.8vw, 2.75rem);
  --step-4: clamp(3rem, 10vw, 6.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1A15; --surface: #25241D; --fg: #ECE6DA; --muted: #B3AA9C; --line: #34322A;
    --anchor: #B6C28C; --on-anchor: #1B1A15; --accent: #D9875C; --accent-ink: #E39A72;
    --band: #262C1B; --on-band: #ECE6DA; --on-band-muted: #B9B4A5; --band-accent: #E39A72; --band-line: #3C4330;
    --rust: #7A3A1D; --on-rust: #F1EDE4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1A15; --surface: #25241D; --fg: #ECE6DA; --muted: #B3AA9C; --line: #34322A;
  --anchor: #B6C28C; --on-anchor: #1B1A15; --accent: #D9875C; --accent-ink: #E39A72;
  --band: #262C1B; --on-band: #ECE6DA; --on-band-muted: #B9B4A5; --band-accent: #E39A72; --band-line: #3C4330;
  --rust: #7A3A1D; --on-rust: #F1EDE4; color-scheme: dark;
}



* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: var(--step-0);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap {
  max-width: 72rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--anchor); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: var(--step-0); text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--anchor); color: var(--on-anchor); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-on-band { background: var(--band-accent); color: var(--band); }
.btn-outline-band { border-color: var(--band-line); color: var(--on-band); }
.btn-outline-band:hover { border-color: var(--on-band); }
.btn-on-rust { background: var(--on-rust); color: var(--rust); }
.btn-outline-rust { border-color: color-mix(in srgb, var(--on-rust) 45%, transparent); color: var(--on-rust); }
.btn-outline-rust:hover { border-color: var(--on-rust); }

/* Cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.mark { font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); color: var(--fg); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav .navlink { color: var(--muted); text-decoration: none; font-size: var(--step--1); font-weight: 600; }
.top nav .navlink:hover { color: var(--fg); }
.top .cta { min-height: 38px; padding: 0 16px; font-size: var(--step--1); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button {
  font: 700 0.8125rem/1 var(--font-body); letter-spacing: 0.04em; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 8px 11px; cursor: pointer; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 980px) { .top nav .navlink { display: none; } }
.mark .short { display: none; }
@media (max-width: 520px) {
  .mark .full { display: none; } .mark .short { display: inline; }
  .top nav { gap: 8px; } .top .cta { padding: 0 12px; } .lang button { padding: 8px 9px; }
}

/* Portada */
.hero { background: var(--band); color: var(--on-band); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero .eyebrow { color: var(--band-accent); }
.hero h1 { font-size: var(--step-4); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em; font-variation-settings: "opsz" 96; }
.hero .lead { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.32; max-width: 32ch; font-weight: 500; }
.hero .lead mark {
  color: inherit; padding: 0 0.1em; border-radius: 3px;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--band-accent) 45%, transparent) 58%);
}
.hero .sub { color: var(--on-band-muted); max-width: 50ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; text-decoration: none; color: var(--on-band);
  border: 1px solid var(--band-line); transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.pill:hover { border-color: var(--band-accent); background: color-mix(in srgb, var(--band-accent) 14%, transparent); transform: translateY(-2px); }
.pill .arrow { color: var(--band-accent); }
.pills-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-band-muted); }
.portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 100%; border-radius: 14px; position: relative;
  background: color-mix(in srgb, var(--on-band) 7%, var(--band)); border: 1px solid var(--band-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.portrait::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 30%; border-radius: 12px;
  background: var(--band-accent); z-index: -1;
}
.portrait-box { position: relative; z-index: 0; }
.portrait .mono { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 8vw, 5rem); color: var(--band-accent); letter-spacing: -0.05em; }
.portrait .cap { font-size: var(--step--1); color: var(--on-band-muted); }
.hero-projects { border-top: 1px solid var(--band-line); }
.hero-projects .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 18px; grid-template-columns: none; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .portrait-box { max-width: 240px; }
  .portrait { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
}

/* Cinta de lugares */
.marquee { background: var(--rust); color: var(--on-rust); overflow: hidden; border-block: 1px solid color-mix(in srgb, var(--on-rust) 20%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding: 16px 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -0.01em; white-space: nowrap; }
.marquee-group > span::after { content: "•"; margin-left: 28px; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; white-space: normal; }
}

/* Secciones claras */
section.block > .wrap { padding-block: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.block-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.block h2 { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em; }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.about-text { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; min-width: 0; }
.about-text p:first-child { font-size: var(--step-1); line-height: 1.5; }
.about-text .aside { color: var(--muted); font-size: var(--step--1); padding-top: 10px; border-top: 1px solid var(--line); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-self: start; min-width: 0; }
.facts div { background: var(--surface); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts div.wide { grid-column: 1 / -1; }
.facts dt { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.35; }
.facts dd.big { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--anchor); line-height: 1.05; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* Bandas de llamada a la acción */
.cta-band { color: var(--on-band); background: var(--band); }
.cta-band.rust { background: var(--rust); color: var(--on-rust); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 40px; align-items: center; padding-block: clamp(40px, 6vw, 64px); }
.cta-band .kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-accent); }
.cta-band.rust .kicker { color: color-mix(in srgb, var(--on-rust) 80%, transparent); }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; margin-top: 8px; }
.cta-band p.txt { margin-top: 12px; max-width: 54ch; color: var(--on-band-muted); }
.cta-band.rust p.txt { color: color-mix(in srgb, var(--on-rust) 86%, transparent); }
.cta-band .ctas { justify-content: flex-end; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } .cta-band .ctas { justify-content: flex-start; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > a {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: clamp(36px, 5vw, 56px) max(16px, env(safe-area-inset-right, 0px)) clamp(36px, 5vw, 56px) max(16px, env(safe-area-inset-left, 0px));
  transition: filter .2s;
}
.split > a > div { max-width: 34rem; margin-left: auto; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.split > a + a > div { margin-left: 0; margin-right: auto; }
.split .s-band { background: var(--band); color: var(--on-band); }
.split .s-rust { background: var(--rust); color: var(--on-rust); }
.split .kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: .85; }
.split h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.split p { opacity: .9; max-width: 44ch; }
.split .go { font-weight: 700; margin-top: 8px; display: inline-flex; gap: 8px; align-items: center; }
.split > a:hover .arrow { transform: translateX(5px); }
.split > a:hover { filter: brightness(1.08); }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } .split > a > div, .split > a + a > div { margin: 0; } }

/* Cómo pienso */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.principles article { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); transition: transform .25s var(--ease), border-color .25s; }
.principles article:hover { transform: translateY(-4px); border-color: var(--accent); }
.principles .q { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: .6; color: var(--accent); }
.principles h3 { font-size: var(--step-2); line-height: 1.15; }
@media (max-width: 900px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Proyectos */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; border-radius: 14px; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1.5px solid transparent; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--anchor); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--fg) 45%, transparent); }
.card:hover .arrow { transform: translate(3px, -3px); }
.card .kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.card h3 { font-size: var(--step-2); line-height: 1.1; }
.card p { color: var(--fg); }
.card .refs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--step--1); }
.card .refs li { padding-left: 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; }
.card .refs b { font-weight: 700; }
.card .refs span { color: var(--muted); }
.card .go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--anchor); display: inline-flex; gap: 8px; align-items: center; }
.card.featured { background: var(--anchor); color: var(--on-anchor); }
.card.featured p, .card.featured h3 { color: var(--on-anchor); }
.card.featured .kicker, .card.featured .go { color: var(--on-anchor); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Ruta */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
.route li { position: relative; padding: 24px 18px 0 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-top: 2px solid var(--line); }
.route li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--anchor); transition: transform .2s var(--ease), background-color .2s; }
.route li:hover::before { transform: scale(1.35); background: var(--accent); border-color: var(--accent); }
.route li.now { border-top-color: var(--anchor); }
.route li.now::before { background: var(--anchor); }
.route .when { font-size: 0.8125rem; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.route .place { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.12; letter-spacing: -0.01em; }
.route .what { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.route .what a { color: var(--anchor); font-weight: 600; }
.route .tag { align-self: flex-start; margin-top: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 6px; }
.route-note { font-size: var(--step--1); color: var(--muted); max-width: 60ch; }
@media (max-width: 1000px) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .route { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .route li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 26px 22px; }
  .route li::before { top: 4px; left: -7px; }
  .route li.now { border-left-color: var(--anchor); }
}

/* Formación e idiomas */
.studies { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 13px; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list .name { font-weight: 600; min-width: 0; }
.list .name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.list .lvl { color: var(--muted); font-size: var(--step--1); text-align: right; flex-shrink: 0; max-width: 45%; }
.col-title { font-size: 0.8125rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 10px; }
@media (max-width: 760px) { .studies { grid-template-columns: minmax(0, 1fr); } }

/* Redes */
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.social {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 14px;
  border: 1.5px solid var(--line); text-decoration: none; color: var(--fg); min-width: 0;
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.social:hover { transform: translateY(-3px); border-color: var(--anchor); background: var(--surface); }
.social:hover .arrow { transform: translate(3px, -3px); }
.social b { font-family: var(--font-display); font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; display: block; }
.social span.h { color: var(--muted); font-size: var(--step--1); overflow-wrap: anywhere; }
.social .arrow { color: var(--accent); font-size: 1.3rem; font-weight: 700; }
@media (max-width: 860px) { .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .socials { grid-template-columns: minmax(0, 1fr); } }

/* Contacto */
.contact-band { background: var(--band); color: var(--on-band); }
.contact-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding-block: clamp(56px, 8vw, 104px); }
.contact-band .eyebrow { color: var(--band-accent); }
.contact-band h2 { font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: .95; letter-spacing: -0.04em; margin-top: 10px; }
.contact-band p { color: var(--on-band-muted); max-width: 46ch; margin-top: 16px; }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; background: color-mix(in srgb, var(--on-band) 8%, transparent); border: 1px solid var(--band-line); border-radius: 12px; }
.mailbox code { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); user-select: all; overflow-wrap: anywhere; min-width: 0; color: var(--on-band); }
.mailbox button {
  font: 700 var(--step--1)/1 var(--font-body); min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--band-line); background: transparent; color: var(--on-band);
}
.mailbox button:hover { border-color: var(--on-band); }
.contact-actions { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 760px) { .contact-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Pie */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 44px 36px; font-size: var(--step--1); }
footer .motto { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.25; max-width: 22ch; }
footer .copy { color: var(--muted); margin-top: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer a { color: var(--fg); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--anchor); text-decoration: underline; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } footer .brand { grid-column: 1 / -1; } }

/* ---- v5: color de otoño, textura y mapa ---- */
:root {
  --mustard: #C4932F; --on-mustard: #2A241F;
  --chestnut: #6B4A33; --on-chestnut: #FFFFFF;
  --grain-strong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --mustard: #B5862A; --on-mustard: #1B1A15; --chestnut: #5A3D2A; --on-chestnut: #F1EDE4; }
}
:root[data-theme="dark"] { --mustard: #B5862A; --on-mustard: #1B1A15; --chestnut: #5A3D2A; --on-chestnut: #F1EDE4; }

body { background-image: var(--grain-soft); }
.hero, .cta-band, .contact-band, .marquee, .split > a, .route-band { background-image: var(--grain-strong); }
.hero { position: relative; isolation: isolate; }
.hero .topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .topo path { fill: none; stroke: var(--band-line); stroke-width: 1.2; }
.hero .topo path.hot { stroke: var(--band-accent); stroke-opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .hero .topo { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(-18px, 10px) scale(1.03); } }
}

/* Teselas de datos con color */
.facts div.t-mustard { background: var(--mustard); color: var(--on-mustard); }
.facts div.t-mustard dt, .facts div.t-mustard dd.big { color: var(--on-mustard); }
.facts div.t-rust { background: var(--rust); color: var(--on-rust); }
.facts div.t-rust dt, .facts div.t-rust dd.big { color: var(--on-rust); }

/* Cómo pienso en tres colores */
.principles article.p-rust { background: var(--rust); color: var(--on-rust); border-color: transparent; }
.principles article.p-mustard { background: var(--mustard); color: var(--on-mustard); border-color: transparent; }
.principles article.p-olive { background: var(--anchor); color: var(--on-anchor); border-color: transparent; }
.principles article.p-rust .q, .principles article.p-olive .q { color: var(--on-rust); opacity: .55; }
.principles article.p-olive .q { color: var(--on-anchor); }
.principles article.p-mustard .q { color: var(--on-mustard); opacity: .5; }
.principles article:hover { transform: translateY(-6px) rotate(-0.4deg); }

/* Tarjetas con franja de color */
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--strip, transparent); }
.card.c-rust { --strip: var(--rust); }
.card.c-mustard { --strip: var(--mustard); }
.card.c-chestnut { --strip: var(--chestnut); }
.card.c-olive { --strip: var(--anchor); }

/* Mapa de la ruta */
.route-band { background-color: var(--band); color: var(--on-band); }
.route-band .wrap { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.route-band .eyebrow { color: var(--band-accent); }
.route-band h2 { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em; }
.route-band .intro { color: var(--on-band-muted); max-width: 56ch; }
.map-card { border: 1px solid var(--band-line); border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--on-band) 4%, var(--band)); }
.map-scroll { overflow-x: auto; }
.map-svg { display: block; width: 100%; min-width: 760px; height: auto; }
.map-svg .land { fill: color-mix(in srgb, var(--on-band) 11%, var(--band)); }
.map-svg .borders { fill: none; stroke: var(--band); stroke-width: .8; }
.map-svg .seg { fill: none; stroke: var(--band-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; }
.map-svg .stop .halo { fill: var(--band-accent); opacity: .18; transition: opacity .3s, r .3s; }
.map-svg .stop .dot { fill: var(--on-band); stroke: var(--band-accent); stroke-width: 2; transition: r .3s, fill .3s; }
.map-svg .stop.home .dot { fill: var(--band-accent); stroke: var(--on-band); }
.map-svg .stop.active .halo { opacity: .5; }
.map-svg .stop.active .dot { fill: var(--band-accent); }
.map-svg .lbl { font: 700 13px var(--font-body); fill: var(--on-band); paint-order: stroke; stroke: var(--band); stroke-width: 4px; stroke-linejoin: round; }
.map-svg .lbl.minor { font-weight: 600; font-size: 11.5px; fill: var(--on-band-muted); }
.map-svg.touring .seg { stroke-dasharray: none; }
.map-svg.touring .stop:not(.seen) { opacity: .35; }
.map-svg.touring .lbl { opacity: .35; transition: opacity .3s; }
.map-svg.touring .lbl.seen { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .map-svg:not(.touring) .seg { animation: flow 1.4s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -24; } }
  .map-svg .stop.home .halo { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes pulse { 50% { transform: scale(1.6); opacity: .05; } }
}
.map-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 18px; border-top: 1px solid var(--band-line); }
.map-foot .btn { min-height: 44px; }
.map-foot .btn svg { width: 14px; height: 14px; fill: currentColor; }
.map-caption { flex: 1 1 280px; min-width: 0; color: var(--on-band-muted); font-size: var(--step--1); line-height: 1.5; }
.map-caption b { color: var(--on-band); font-family: var(--font-display); font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; display: block; }
.map-caption .yr { color: var(--band-accent); font-weight: 700; }
.map-hint { font-size: 0.8125rem; color: var(--on-band-muted); }
@media (min-width: 761px) { .map-hint { display: none; } }

/* =====================================================================
   v6 · web multipágina. Más color en los botones, más movimiento y
   todos los componentes nuevos. Se añade después de la base v5.
   ===================================================================== */
:root {
  --mustard-lt: #E0B25A;   /* oro sobre bandas oscuras */
  --ember: #B4592F;        /* óxido vivo, solo para degradados con texto blanco */
  --glow: rgba(255, 255, 255, .28);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --mustard-lt: #D2A548; --ember: #9A4A26; --glow: rgba(255, 255, 255, .16); }
}
:root[data-theme="dark"] { --mustard-lt: #D2A548; --ember: #9A4A26; --glow: rgba(255, 255, 255, .16); }

body { margin: 0; }
main { overflow-x: clip; display: block; }
img { max-width: 100%; }
figure { margin: 0; }
.muted { color: var(--muted); font-size: var(--step--1); }
section.block.surface { background-color: var(--surface); background-image: var(--grain-soft); }
section[id], article[id] { scroll-margin-top: 84px; }

/* ---------------------------------------------------------------- Botones con color y movimiento */
.btn {
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer; font-family: var(--font-body);
  background-repeat: no-repeat;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, background-size .45s var(--ease), border-color .25s, color .25s;
}
.btn::before { /* brillo que sigue al cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%);
}
.btn::after { /* destello al pasar */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, var(--glow) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn:hover::before { opacity: 1; }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn svg { flex-shrink: 0; }

/* Principal: óxido en degradado, el color de “escríbeme” */
.btn-primary {
  background-color: var(--rust); color: var(--on-rust);
  background-image: linear-gradient(120deg, var(--ember), var(--rust) 60%);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--rust) 85%, transparent);
}
.btn-primary:hover { box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--rust) 90%, transparent); }

/* Secundario sobre claro: contorno que se rellena de musgo */
.btn-ghost {
  border: 2px solid var(--fg); color: var(--fg); background-color: transparent;
  background-image: linear-gradient(var(--anchor), var(--anchor)); background-size: 0% 100%;
}
.btn-ghost:hover { color: var(--on-anchor); border-color: var(--anchor); background-size: 100% 100%; }

/* Sobre bandas oscuras: melocotón y oro */
.btn-on-band {
  color: var(--band); background-color: var(--band-accent);
  background-image: linear-gradient(110deg, var(--band-accent) 0%, var(--mustard-lt) 50%, var(--band-accent) 100%);
  background-size: 220% 100%; background-position: 0% 0;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--band-accent) 70%, transparent);
}
.btn-on-band:hover { background-position: 100% 0; box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--mustard-lt) 75%, transparent); }
.btn-outline-band {
  border: 2px solid color-mix(in srgb, var(--on-band) 45%, transparent); color: var(--on-band);
  background-image: linear-gradient(var(--on-band), var(--on-band)); background-size: 0% 100%;
}
.btn-outline-band:hover { color: var(--band); border-color: var(--on-band); background-size: 100% 100%; }

/* Sobre óxido */
.btn-on-rust { background-color: var(--on-rust); color: var(--rust); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.btn-on-rust:hover { background-color: var(--band); color: var(--on-band); }
.btn-outline-rust {
  border: 2px solid color-mix(in srgb, var(--on-rust) 55%, transparent); color: var(--on-rust);
  background-image: linear-gradient(var(--on-rust), var(--on-rust)); background-size: 0% 100%;
}
.btn-outline-rust:hover { color: var(--rust); border-color: var(--on-rust); background-size: 100% 100%; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: var(--step--1); }

.more-link { display: flex; justify-content: center; }

/* ---------------------------------------------------------------- Cabecera y navegación */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.top {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .3s;
}
.top.scrolled { box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--fg) 60%, transparent); }
.top .wrap { position: relative; }
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark::before {
  content: "J"; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--band); color: var(--band-accent); font-weight: 800; font-size: 1.05rem;
  transition: transform .4s var(--ease), background-color .3s;
}
.mark:hover::before { transform: rotate(-10deg) scale(1.08); background: var(--rust); color: var(--on-rust); }
.top .main-nav { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; border-radius: 999px;
  color: var(--muted); font-size: var(--step--1); font-weight: 600; text-decoration: none; transition: color .2s, background-color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover { color: var(--fg); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--anchor) 14%, transparent); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); background: var(--anchor); }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-link {
  display: inline-grid; place-items: center; min-width: 42px; min-height: 38px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--fg); font-weight: 700; font-size: .8125rem; letter-spacing: .05em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lang-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent;
  cursor: pointer; padding: 0; position: relative; color: var(--fg);
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.top.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.top.open .menu-btn span:nth-child(2) { opacity: 0; }
.top.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: inline-block; }
  .top .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background-color: var(--band); background-image: var(--grain-strong); color: var(--on-band);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 26px max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .55); border-bottom: 4px solid var(--band-accent);
  }
  .top.open .main-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--band-line); }
  .nav-list a {
    min-height: 56px; padding: 0 4px; border-radius: 0; color: var(--on-band);
    font-family: var(--font-display); font-size: clamp(1.35rem, 5vw, 1.7rem); font-weight: 800; letter-spacing: -.02em;
  }
  .nav-list a::after { display: none; }
  .nav-list a:hover { color: var(--band-accent); }
  .nav-list a[aria-current="page"] { background: transparent; color: var(--band-accent); }
  .nav-list a[aria-current="page"]::before { content: "→ "; white-space: pre; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .top.open .nav-list li { animation: navIn .45s var(--ease) both; }
  .top.open .nav-list li:nth-child(2) { animation-delay: .04s; } .top.open .nav-list li:nth-child(3) { animation-delay: .08s; }
  .top.open .nav-list li:nth-child(4) { animation-delay: .12s; } .top.open .nav-list li:nth-child(5) { animation-delay: .16s; }
  .top.open .nav-list li:nth-child(6) { animation-delay: .2s; } .top.open .nav-list li:nth-child(7) { animation-delay: .24s; }
  @keyframes navIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 420px) { .top .cta { display: none; } }
@media (max-width: 520px) { .mark::before { width: 28px; height: 28px; } }

/* ---------------------------------------------------------------- Auroras de color en las bandas oscuras */
.hero, .page-head, .contact-band { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .page-head::before, .contact-band::before {
  content: ""; position: absolute; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 46% at 12% 22%, color-mix(in srgb, var(--rust) 50%, transparent), transparent 70%),
    radial-gradient(32% 40% at 88% 18%, color-mix(in srgb, var(--mustard) 30%, transparent), transparent 70%),
    radial-gradient(42% 50% at 62% 100%, color-mix(in srgb, var(--chestnut) 55%, transparent), transparent 72%);
}
.contact-band::before {
  background:
    radial-gradient(40% 50% at 90% 80%, color-mix(in srgb, var(--rust) 55%, transparent), transparent 70%),
    radial-gradient(34% 44% at 8% 10%, color-mix(in srgb, var(--mustard) 26%, transparent), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .page-head::before, .contact-band::before { animation: aurora 24s ease-in-out infinite alternate; }
  @keyframes aurora {
    50% { transform: translate(5%, -4%) rotate(5deg) scale(1.06); }
    100% { transform: translate(-4%, 5%) rotate(-4deg) scale(1.1); }
  }
}

/* ---------------------------------------------------------------- Portada */
.hero h1, .contact-band h2 {
  background-image: linear-gradient(100deg, var(--on-band) 0%, var(--on-band) 38%, var(--band-accent) 52%, var(--mustard-lt) 62%, var(--on-band) 78%, var(--on-band) 100%);
  background-size: 260% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1.rise { animation: rise .8s var(--ease) .08s both, shimmer 9s ease-in-out 1.2s infinite alternate; }
  .contact-band h2 { animation: shimmer 9s ease-in-out infinite alternate; }
  @keyframes shimmer { to { background-position: 100% 0; } }
  .hero .lead mark { background-size: 0% 100%; animation: markIn 1.1s var(--ease) 1s forwards; }
  @keyframes markIn { to { background-size: 100% 100%; } }
}
.hero .lead mark { background-repeat: no-repeat; }
@media (forced-colors: active) {
  .hero h1, .contact-band h2 { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
}
.now-chip {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%;
  padding: 7px 14px 7px 10px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; line-height: 1.35;
  background: color-mix(in srgb, var(--on-band) 9%, transparent); border: 1px solid var(--band-line); color: var(--on-band);
}
.now-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mustard-lt); flex-shrink: 0; box-shadow: 0 0 0 0 color-mix(in srgb, var(--mustard-lt) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .now-chip .dot { animation: ping 2s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mustard-lt) 65%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
}

/* Foto de portada */
.portrait { background: var(--band); overflow: hidden; padding: 0; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait::after { display: none; }
.portrait-box::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 30%; border-radius: 12px; z-index: -1;
  background: linear-gradient(135deg, var(--band-accent), var(--mustard-lt));
}
.portrait-box::before {
  content: ""; position: absolute; inset: -14px auto auto -14px; width: 38%; height: 26%; border-radius: 12px; z-index: -1;
  background-image: radial-gradient(var(--band-accent) 1.4px, transparent 1.6px); background-size: 12px 12px; opacity: .7;
}
.badge {
  position: absolute; left: -46px; bottom: 28px; width: 132px; height: 132px; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35));
}
.badge .bg { fill: var(--rust); }
.badge .ring { font: 700 15.5px var(--font-body); letter-spacing: .14em; fill: var(--on-rust); text-transform: uppercase; }
.badge .c1 { font: 700 13px var(--font-body); letter-spacing: .12em; fill: var(--on-rust); opacity: .85; }
.badge .c2 { font: 800 40px var(--font-display); letter-spacing: -.04em; fill: var(--on-rust); }
@media (prefers-reduced-motion: no-preference) {
  .badge .spin { transform-box: view-box; transform-origin: 100px 100px; animation: spin 26s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .portrait-box .portrait { animation: floaty 7s ease-in-out infinite alternate; }
  @keyframes floaty { to { transform: translateY(-10px) rotate(.6deg); } }
}
@media (max-width: 760px) {
  .portrait-box { max-width: none; justify-self: stretch; margin-inline: 14px 14px; }
  .portrait { aspect-ratio: 4 / 3; }
  .badge { left: auto; right: -6px; bottom: auto; top: -30px; width: 104px; height: 104px; }
}

/* Cinta de países inclinada */
.marquee {
  position: relative; z-index: 3; width: 104%; margin: -18px -2% 8px; rotate: -1.6deg;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .5);
}
.marquee-group > span::after { content: "✦"; color: var(--mustard-lt); opacity: 1; font-size: .7em; vertical-align: .15em; }
@media (max-width: 760px) { .marquee { rotate: -2.4deg; } }

/* ---------------------------------------------------------------- Cabecera de página interior */
.page-head { background-color: var(--band); background-image: var(--grain-strong); color: var(--on-band); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 92px); }
.page-head.has-photo .wrap { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.ph-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 52rem; }
.page-head .eyebrow { color: var(--band-accent); }
.page-head h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; font-variation-settings: "opsz" 96; }
.page-head .intro { color: var(--on-band-muted); font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.5; max-width: 54ch; }
.page-head .ctas { margin-top: 6px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--on-band-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-band); text-decoration: none; }
.crumbs a:hover { color: var(--band-accent); text-decoration: underline; }
.ph-photo { position: relative; z-index: 0; max-width: 420px; justify-self: end; width: 100%; }
.ph-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; border: 1px solid var(--band-line); }
.ph-photo::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 50%; height: 34%; border-radius: 12px; z-index: -1;
  background: linear-gradient(135deg, var(--rust), var(--band-accent));
}
@media (max-width: 760px) {
  .page-head.has-photo .wrap { grid-template-columns: minmax(0, 1fr); }
  .ph-photo { justify-self: start; max-width: 300px; margin-right: 14px; }
  .ph-photo img { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .ph-text > * { animation: rise .8s var(--ease) both; }
  .ph-text > :nth-child(2) { animation-delay: .06s; } .ph-text > :nth-child(3) { animation-delay: .12s; }
  .ph-text > :nth-child(4) { animation-delay: .18s; } .ph-text > :nth-child(5) { animation-delay: .24s; }
}

/* ---------------------------------------------------------------- Títulos de bloque */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.hero .eyebrow::before { display: none; }
section.block:nth-of-type(3n+2) .block-head .eyebrow { color: var(--anchor); }
.block-head .intro { color: var(--muted); max-width: 56ch; }

/* ---------------------------------------------------------------- Inicio: quién soy */
.about.home-about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: clamp(24px, 3.6vw, 48px); align-items: start; }
.about-photo { position: relative; z-index: 0; margin: 0 14px 14px 0; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--radius); z-index: -1;
  background: var(--mustard); rotate: 2.5deg; transition: rotate .5s var(--ease);
}
.about-photo:hover::before { rotate: -2deg; }
@media (max-width: 1060px) {
  .about.home-about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .about.home-about .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .about.home-about { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 340px; }
  .about.home-about .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.facts div { transition: transform .3s var(--ease); }
.facts div:hover { transform: translateY(-4px) rotate(-.6deg); }

/* Sobre mí: relato */
.prose p { max-width: 66ch; }
.prose a, .route .what a { color: var(--accent-ink); font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--accent); }
.callout {
  margin: 10px 0 4px; padding: 22px 24px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px;
  background-color: var(--rust); background-image: var(--grain-strong); color: var(--on-rust); rotate: -.6deg;
  box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--rust) 90%, transparent);
}
.callout .kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.callout p:last-child { font-size: var(--step-1); line-height: 1.45; font-weight: 500; }

/* Preguntas frecuentes */
.faq { display: flex; flex-direction: column; max-width: 54rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.3; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.4rem/1 var(--font-body);
  background: var(--anchor); color: var(--on-anchor); transition: transform .35s var(--ease), background-color .25s;
}
.faq summary:hover::after { transform: scale(1.1); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--rust); color: var(--on-rust); }
.faq details p { padding: 0 0 22px; max-width: 64ch; }

/* ---------------------------------------------------------------- Tarjetas de proyectos */
.card { padding-top: 0; }
.card.c-rust { --on-strip: var(--on-rust); }
.card.c-mustard { --on-strip: var(--on-mustard); }
.card.c-chestnut { --on-strip: var(--on-chestnut); }
.card.c-olive { --on-strip: var(--on-anchor); }
.card.featured { --strip: var(--mustard); --on-strip: var(--on-mustard); }
.card::before { height: 7px; z-index: 2; }
.card-img { margin: 0 -24px 6px; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-type {
  display: grid; place-items: center; padding: 20px; text-align: center;
  background-color: var(--strip, var(--anchor)); color: var(--on-strip, var(--on-anchor));
  background-image: radial-gradient(color-mix(in srgb, var(--on-strip, #fff) 24%, transparent) 1.3px, transparent 1.5px);
  background-size: 14px 14px; transition: background-position 1.2s var(--ease);
}
.card:hover .card-type { background-position: 14px 7px; }
.card-type span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.04em; }
.card .go {
  align-self: flex-start; margin-top: auto; padding: 9px 16px; border-radius: 999px; font-size: var(--step--1);
  background: var(--strip, var(--anchor)); color: var(--on-strip, var(--on-anchor));
  transition: transform .25s var(--ease), box-shadow .25s;
}
.card.featured .go { color: var(--on-mustard); }
.card:hover .go { transform: translateX(4px); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--strip, var(--anchor)) 90%, transparent); }
.card:hover { border-color: var(--strip, var(--anchor)); }
.card { padding-bottom: 24px; }
.card > :last-child { margin-bottom: 0; }

/* Brillo que sigue al cursor en tarjetas y teselas */
.card::after, .social::after, .principles article::after, .what-grid article::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--mustard) 22%, transparent), transparent 65%);
}
.card:hover::after, .social:hover::after, .principles article:hover::after, .what-grid article:hover::after { opacity: 1; }
.social, .principles article, .what-grid article { position: relative; overflow: hidden; }
.social:hover { border-color: var(--accent); }
.social .arrow { transition: transform .25s var(--ease); }

/* ---------------------------------------------------------------- Galería */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 20vw, 250px); gap: 14px; grid-auto-flow: dense; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--band); }
.gallery figure:nth-child(1) { grid-row: span 2; }
.gallery figure:nth-child(4), .gallery figure:nth-child(6) { grid-column: span 2; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 36px 14px 12px; color: #fff; font-size: var(--step--1); font-weight: 600; line-height: 1.35;
  background: linear-gradient(transparent, rgba(22, 19, 13, .82));
  transform: translateY(6px); transition: transform .35s var(--ease);
}
.gallery figure:hover figcaption { transform: none; }
.gallery figure::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--band-accent); transition: box-shadow .3s;
}
.gallery figure:hover::after { box-shadow: inset 0 0 0 4px var(--band-accent); }
.gallery figure:nth-child(3n+2)::after { --band-accent: var(--mustard); }
/* Galería corta (3 fotos): una fila */
.gallery:not(:has(> figure:nth-child(4))) { grid-auto-rows: clamp(220px, 28vw, 360px); }
.gallery:not(:has(> figure:nth-child(4))) figure { grid-row: auto; grid-column: auto; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
  .gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery figure:nth-child(4), .gallery figure:nth-child(6) { grid-column: span 2; }
  .gallery:not(:has(> figure:nth-child(4))) { grid-auto-rows: 180px; }
  .gallery:not(:has(> figure:nth-child(4))) figure:nth-child(1) { grid-column: span 2; }
}

/* ---------------------------------------------------------------- Proyectos */
.proj-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.proj.flip .proj-media { order: 2; }
.proj-media { position: relative; z-index: 0; margin: 0 14px 14px 0; }
.proj.flip .proj-media { margin: 0 0 14px 14px; }
.proj-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.proj-media::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 16px; z-index: -1;
  background-image: radial-gradient(var(--accent) 1.4px, transparent 1.6px); background-size: 12px 12px; opacity: .55;
}
.proj.flip .proj-media::after { inset: 14px 14px -14px -14px; }
.proj-type {
  aspect-ratio: 4 / 3; border-radius: 16px; display: grid; place-items: center; padding: 28px; text-align: center;
  background-image: radial-gradient(color-mix(in srgb, currentColor 22%, transparent) 1.3px, transparent 1.5px), var(--grain-strong);
  background-size: 14px 14px, auto; transition: background-position 1.4s var(--ease), transform .5s var(--ease);
}
.proj:hover .proj-type { background-position: 14px 7px, 0 0; transform: rotate(-1deg) scale(1.01); }
.proj-type span { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: .98; letter-spacing: -.045em; max-width: 12ch; }
.proj-type.t-anchor { background-color: var(--anchor); color: var(--on-anchor); }
.proj-type.t-mustard { background-color: var(--mustard); color: var(--on-mustard); }
.proj-type.t-chestnut { background-color: var(--chestnut); color: var(--on-chestnut); }
.proj-type.t-rust { background-color: var(--rust); color: var(--on-rust); }
.proj-type.t-band { background-color: var(--band); color: var(--band-accent); }
.proj-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.proj-text .kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.proj-text h2 { font-size: var(--step-3); line-height: 1.04; letter-spacing: -.03em; }
.role {
  align-self: flex-start; padding: 5px 13px; border-radius: 999px; font-size: var(--step--1); font-weight: 700;
  color: var(--anchor); background: color-mix(in srgb, var(--anchor) 13%, transparent);
}
.proj-text .ctas { margin-top: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--mustard); color: var(--on-mustard);
}
@media (max-width: 860px) {
  .proj { grid-template-columns: minmax(0, 1fr); }
  .proj.flip .proj-media { order: 0; margin: 0 14px 14px 0; }
  .proj.flip .proj-media::after { inset: 14px -14px -14px 14px; }
}

/* ---------------------------------------------------------------- Formación */
.what-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); counter-reset: w; }
.what-grid article {
  display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 28px; border-radius: var(--radius); min-width: 0;
  background-image: var(--grain-strong); transition: transform .35s var(--ease), box-shadow .35s;
}
.what-grid article::before { counter-increment: w; content: "0" counter(w); font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; opacity: .55; }
.what-grid article:nth-child(4n+1) { background-color: var(--rust); color: var(--on-rust); }
.what-grid article:nth-child(4n+2) { background-color: var(--mustard); color: var(--on-mustard); }
.what-grid article:nth-child(4n+3) { background-color: var(--anchor); color: var(--on-anchor); }
.what-grid article:nth-child(4n+4) { background-color: var(--chestnut); color: var(--on-chestnut); }
.what-grid article:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 22px 36px -24px rgba(0, 0, 0, .6); }
.what-grid h3 { font-size: var(--step-2); line-height: 1.12; }
@media (max-width: 1000px) { .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .what-grid { grid-template-columns: minmax(0, 1fr); } }

.how { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.how blockquote {
  margin: 0; padding: 6px 0 6px 26px; border-left: 6px solid var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.22; letter-spacing: -.02em;
}
.how .chips { margin-bottom: 24px; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 15px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; line-height: 1.3;
  background: var(--surface); border: 1.5px solid transparent; transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
section.surface .chips li { background: var(--bg); }
.chips li:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------------------------------------------------------------- Ruta y mapa del mundo */
.route-band { position: relative; }
.route-band .block-head .intro { color: var(--on-band-muted); }
.world-fig {
  border-radius: 16px; padding: clamp(10px, 2vw, 26px); background-color: var(--band); background-image: var(--grain-strong);
  border: 1px solid var(--band-line);
}
.world { display: block; width: 100%; height: auto; }
.world .rest { fill: color-mix(in srgb, var(--on-band) 13%, var(--band)); stroke: var(--band); stroke-width: .5; }
.world .v { fill: var(--band-accent); stroke: var(--band); stroke-width: .6; transition: fill .25s, opacity .25s; cursor: default; }
.world .v:nth-of-type(3n) { fill: var(--mustard-lt); }
.world .v:nth-of-type(3n+1) { fill: color-mix(in srgb, var(--band-accent) 70%, var(--rust)); }
.world .v:hover { fill: var(--on-band); }
.world-fig + .chips { margin-top: 4px; }
.route li:hover .place { color: var(--accent-ink); }
.route .place { transition: color .2s; }

/* ---------------------------------------------------------------- Prensa */
.bios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.bio { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--surface); border-top: 6px solid var(--accent); min-width: 0; }
.bio:nth-child(2) { border-top-color: var(--mustard); }
.bio:nth-child(3) { border-top-color: var(--anchor); }
.bio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bio-head h3 { font-size: var(--step-1); }
.bio .btn { align-self: flex-start; }
@media (max-width: 960px) { .bios { grid-template-columns: minmax(0, 1fr); } }
.press-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.press-photo { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.press-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); transition: transform .5s var(--ease); }
.press-photo:hover img { transform: translateY(-4px); }
.press-photo figcaption a { font-weight: 700; color: var(--accent-ink); }
@media (max-width: 760px) { .press-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Legal */
.legal { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.legal h2 { font-size: var(--step-2); margin-top: 18px; }
.legal h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- Bandas de llamada a la acción */
.cta-band.rust {
  background-image: var(--grain-strong), linear-gradient(115deg, var(--rust) 0%, var(--ember) 40%, var(--rust) 70%, var(--chestnut) 100%);
  background-size: auto, 240% 100%; background-position: 0 0, 0% 0;
}
.cta-band.rust .kicker, .cta-band.rust p.txt { color: var(--on-rust); }
.cta-band h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
@media (prefers-reduced-motion: no-preference) {
  .cta-band.rust { animation: sheen 16s ease-in-out infinite alternate; }
  @keyframes sheen { to { background-position: 0 0, 100% 0; } }
}
.contact-band .mailbox { transition: border-color .3s, box-shadow .3s; }
.contact-band .mailbox:hover { border-color: var(--band-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--band-accent) 18%, transparent); }
.mailbox button { transition: background-color .2s, color .2s, border-color .2s; }
.mailbox button:hover { background: var(--on-band); color: var(--band); }
.pill { transition: background-color .2s, border-color .2s, transform .25s var(--ease), color .2s; }
.pill:hover { background: var(--band-accent); border-color: var(--band-accent); color: var(--band); }
.pill:hover .arrow { color: var(--band); transform: translate(2px, -2px); }

/* ---------------------------------------------------------------- Pie */
footer { border-top: 0; background-color: var(--chestnut); background-image: var(--grain-strong); color: var(--on-chestnut); }
footer .wrap { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); padding-block: clamp(44px, 6vw, 64px) 40px; }
footer .motto { color: var(--on-chestnut); }
footer .copy { color: color-mix(in srgb, var(--on-chestnut) 82%, transparent); }
footer .col-title { color: color-mix(in srgb, var(--on-chestnut) 78%, transparent); }
footer a { color: var(--on-chestnut); }
footer a:hover { color: var(--on-chestnut); text-decoration-color: var(--mustard-lt); text-decoration-thickness: 2px; }
footer .brand::before { content: ""; display: block; width: 54px; height: 6px; border-radius: 3px; margin-bottom: 18px; background: linear-gradient(90deg, var(--rust), var(--mustard-lt), var(--anchor)); }
@media (max-width: 900px) { footer .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } footer .brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Movimiento al hacer scroll (sin JS, solo donde el navegador lo soporta) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .top::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: 0 50%;
      background: linear-gradient(90deg, var(--anchor), var(--mustard), var(--accent));
      animation: progress linear both; animation-timeline: scroll(root);
    }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

    .block-head, .card, .principles article, .facts > div, .social, .proj, .what-grid article, .bio, .route li,
    .press-photo, .faq details, .cta-band .wrap > *, .studies > div, .map-card, .world-fig, .callout, .how > *,
    .contact-band .wrap > *, .gallery figure, .about-photo, .about-text, .list.past li {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 26%;
    }
    .cards > :nth-child(3n+2), .principles > :nth-child(2), .socials > :nth-child(3n+2), .what-grid > :nth-child(2n), .bios > :nth-child(2), .gallery > :nth-child(3n+2) { animation-range: entry 6% cover 32%; }
    .cards > :nth-child(3n), .principles > :nth-child(3), .socials > :nth-child(3n), .bios > :nth-child(3), .gallery > :nth-child(3n) { animation-range: entry 12% cover 38%; }
    @keyframes reveal { from { opacity: .15; translate: 0 56px; scale: .96; } to { opacity: 1; translate: none; scale: none; } }

    .gallery img, .proj-media img, .card-img img {
      animation: settle linear both; animation-timeline: view(); animation-range: entry 0% exit 100%;
    }
    @keyframes settle { from { scale: 1.16; } to { scale: 1; } }

    .eyebrow::before { animation: grow linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; transform-origin: left; }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

    .hero .portrait img { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes drift-up { from { scale: 1.1; } to { translate: 0 26px; scale: 1.1; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .social, .facts div, .what-grid article, .principles article { transition: none; }
  .btn:hover, .card:hover, .social:hover, .facts div:hover, .what-grid article:hover, .principles article:hover { transform: none; }
  .btn::after { display: none; }
}

/* Cifras grandes que se ajustan al ancho de su tesela */
.facts > div { container-type: inline-size; }
.facts dd.big { font-size: clamp(1.25rem, 16cqi, 2rem); }
.facts > div.wide dd.big { font-size: clamp(1.25rem, 8cqi, 2rem); }

/* Encuadres por foto */
img.pos-top { object-position: center 22%; }
img.pos-mid { object-position: center 42%; }
.proj-media img.poster, .cta-media img.poster { aspect-ratio: 16 / 9; object-fit: cover; }
.card-img img.poster { object-position: center; }

/* Banda con imagen (podcast) */
.cta-band.has-media .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); }
.cta-band.has-media .ctas { justify-content: flex-start; margin-top: 22px; }
.cta-media { position: relative; z-index: 0; margin: 0 14px 14px 0; }
.cta-media a { display: block; }
.cta-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7); transition: transform .5s var(--ease); }
.cta-media::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--radius); z-index: -1; background: linear-gradient(135deg, var(--band-accent), var(--mustard-lt)); }
.cta-band.has-media:hover .cta-media img { transform: rotate(-1.2deg) scale(1.02); }
@media (max-width: 760px) { .cta-band.has-media .wrap { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   v7 · contacto con formulario, redes en color y prensa
   ===================================================================== */

/* ---- Contacto */
.contact-band .wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(28px, 5vw, 72px); }
.contact-intro { display: flex; flex-direction: column; min-width: 0; position: sticky; top: 96px; }
.contact-intro > p { margin-top: 16px; }
.direct { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--band-line); display: flex; flex-direction: column; gap: 12px; }
.contact-band p.direct-label { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-band-muted); }
.direct .mailbox { padding: 12px 14px; }
.direct .mailbox code { font-size: var(--step-0); }
.direct .ctas { gap: 10px; }
@media (max-width: 900px) { .contact-band .wrap { grid-template-columns: minmax(0, 1fr); } .contact-intro { position: static; } }

.cform {
  min-width: 0; border-radius: 20px; padding: clamp(20px, 3vw, 32px);
  background: color-mix(in srgb, var(--on-band) 7%, var(--band)); border: 1px solid var(--band-line);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); position: relative; overflow: hidden;
}
.cform::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--rust), var(--band-accent), var(--mustard-lt)); }
.cform p { margin: 0; max-width: none; }
.cform-body { display: flex; flex-direction: column; gap: 18px; }
.cform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cform legend, .fld > span { display: block; font-size: var(--step--1); font-weight: 700; color: var(--on-band); margin-bottom: 9px; padding: 0; }
.fld > span em { font-style: normal; font-weight: 500; color: var(--on-band-muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-opt span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; color: var(--on-band); border: 1.5px solid var(--band-line);
  background: color-mix(in srgb, var(--on-band) 4%, transparent);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip-opt:hover span { border-color: var(--band-accent); transform: translateY(-2px); }
.chip-opt input:checked + span { background: var(--band-accent); border-color: var(--band-accent); color: var(--band); }
.chip-opt input:checked + span::before { content: "✓"; margin-right: 7px; font-weight: 800; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--band-accent); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.fld { display: block; min-width: 0; }
.fld input, .fld textarea {
  display: block; width: 100%; font: 500 var(--step-0)/1.45 var(--font-body); color: var(--on-band);
  background: color-mix(in srgb, var(--band) 70%, #000); border: 1.5px solid var(--band-line); border-radius: 12px;
  padding: 13px 15px; min-height: 52px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.fld textarea { resize: vertical; min-height: 130px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--on-band-muted); opacity: .8; }
.fld input:hover, .fld textarea:hover { border-color: color-mix(in srgb, var(--on-band) 35%, var(--band-line)); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--band-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--band-accent) 22%, transparent); }
.cform.tried .fld :invalid, .fld :user-invalid { border-color: #E39A72; box-shadow: 0 0 0 3px color-mix(in srgb, #E39A72 20%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: var(--step--1); line-height: 1.5; color: var(--on-band-muted); cursor: pointer; }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--band-accent); cursor: pointer; }
.consent a { color: var(--band-accent); font-weight: 600; }
.cform.tried .consent input:invalid + span { color: #E39A72; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cform-foot .btn { min-height: 54px; padding: 0 28px; font-size: var(--step-1); }
.cform-foot .btn:disabled { opacity: .75; cursor: progress; transform: none; }
.form-status { flex: 1 1 220px; font-size: var(--step--1); font-weight: 600; line-height: 1.45; color: var(--on-band-muted); }
.form-status:empty { display: none; }
.form-status.error { color: #E39A72; }
.form-status.warn { color: var(--mustard-lt); }
.cform-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 4px; outline: none; }
.cform-done[hidden] { display: none; }
.done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--band-accent), var(--mustard-lt)); color: var(--band); }
.done-ico svg { width: 32px; height: 32px; }
.cform p.done-t { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; color: var(--on-band); line-height: 1.05; }
.cform-done p { color: var(--on-band-muted); max-width: 44ch; }
@media (prefers-reduced-motion: no-preference) {
  .cform-done:not([hidden]) .done-ico { animation: pop .6s var(--ease) both; }
  @keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---- Redes en color */
.soc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
@media (max-width: 900px) { .soc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .soc-grid { grid-template-columns: minmax(0, 1fr); } }
.soc {
  --c: var(--anchor); --on-c: var(--on-anchor);
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 16px; row-gap: 18px; align-items: center; min-height: 156px; padding: 22px 22px 20px; border-radius: 18px; text-decoration: none;
  background-color: var(--c); color: var(--on-c); background-image: var(--grain-strong);
  box-shadow: 0 16px 30px -24px color-mix(in srgb, var(--c) 95%, #000);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.soc-linkedin { --c: var(--anchor); --on-c: var(--on-anchor); }
.soc-youtube { --c: var(--rust); --on-c: var(--on-rust); }
.soc-spotify { --c: var(--mustard); --on-c: var(--on-mustard); }
.soc-instagram { --c: var(--chestnut); --on-c: var(--on-chestnut); }
.soc-tiktok { --c: var(--band); --on-c: var(--on-band); }
.soc-facebook { --c: var(--band-accent); --on-c: var(--band); }
.soc-tiktok { box-shadow: inset 0 0 0 1px var(--band-line), 0 16px 30px -24px #000; }
.soc-tiktok .soc-ico { color: var(--band-accent); }
.soc-ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: color-mix(in srgb, var(--on-c) 16%, transparent); color: var(--on-c);
  transition: transform .45s var(--ease), background-color .3s;
}
.soc-ico svg { width: 28px; height: 28px; }
.soc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.soc-txt b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -.02em; line-height: 1.05; }
.soc-txt .h { font-size: var(--step--1); opacity: .88; overflow-wrap: anywhere; }
.soc-cta {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: var(--step--1);
  background: var(--on-c); color: var(--c);
  transition: transform .3s var(--ease), gap .3s var(--ease);
}
.soc-tiktok .soc-cta { background: var(--band-accent); color: var(--band); }
.soc-bg {
  position: absolute; right: -18px; bottom: -22px; width: 132px; height: 132px; z-index: -1; color: var(--on-c); opacity: .12;
  transition: transform .6s var(--ease), opacity .4s;
}
.soc::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--on-c) 22%, transparent), transparent 65%);
}
.soc:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 26px 40px -24px color-mix(in srgb, var(--c) 95%, #000); }
.soc:hover::after { opacity: 1; }
.soc:hover .soc-ico { transform: rotate(-10deg) scale(1.12); background: color-mix(in srgb, var(--on-c) 26%, transparent); }
.soc:hover .soc-bg { transform: rotate(-14deg) scale(1.15) translate(-8px, -6px); opacity: .2; }
.soc:hover .soc-cta { gap: 12px; transform: translateX(3px); }
.soc:active { transform: translateY(-2px) scale(.98); }
.soc:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .soc, .soc-ico, .soc-bg, .soc-cta { transition: none; } .soc:hover { transform: none; } }

/* ---- Prensa */
.press-intro { max-width: 62ch; font-size: var(--step-1); line-height: 1.5; }
.press-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
@media (max-width: 900px) { .press-cards { grid-template-columns: minmax(0, 1fr); } }
.press-card {
  --c: var(--rust); --on-c: var(--on-rust);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; min-width: 0;
  text-decoration: none; color: var(--fg); background: var(--surface); border: 1.5px solid transparent;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.press-card.p-olive { --c: var(--anchor); --on-c: var(--on-anchor); }
.press-card.p-mustard { --c: var(--mustard); --on-c: var(--on-mustard); }
.press-card::before { content: "“"; position: absolute; right: 16px; top: -18px; font: 800 7rem/1 var(--font-display); color: var(--c); opacity: .16; transition: transform .5s var(--ease), opacity .3s; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-kind { padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--c); color: var(--on-c); }
.pc-date { font-size: .8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-outlet { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -.025em; line-height: 1.08; }
.pc-d { color: var(--muted); font-size: var(--step--1); line-height: 1.5; flex: 1; }
.pc-cta { font-weight: 700; color: var(--accent-ink); display: inline-flex; gap: 8px; align-items: center; }
.press-card:hover { transform: translateY(-5px); border-color: var(--c); box-shadow: 0 20px 34px -24px color-mix(in srgb, var(--c) 90%, #000); }
.press-card:hover::before { transform: translateY(8px) rotate(-6deg); opacity: .3; }
.press-card:hover .arrow { transform: translate(3px, -3px); }
section.surface .press-card { background: var(--bg); }

/* Aparición al hacer scroll para los componentes nuevos */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .soc, .press-card, .cform { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
    .soc-grid > :nth-child(3n+2), .press-cards > :nth-child(2) { animation-range: entry 6% cover 32%; }
    .soc-grid > :nth-child(3n), .press-cards > :nth-child(3) { animation-range: entry 12% cover 38%; }
  }
}
.cform-body[hidden] { display: none; }
.now-chip { text-wrap: balance; }
:where(button.btn) { background-color: transparent; border-style: solid; }

/* ---- Lema y las tres calidades */
.hero .lead .claim {
  display: block; margin-top: .4em; font-family: var(--font-display); font-weight: 800; font-size: 1.18em; line-height: 1.1; letter-spacing: -.025em;
  color: var(--band-accent);
}
.purpose .block-head { max-width: 52rem; }
.purpose .block-head .intro { font-size: var(--step-1); line-height: 1.5; color: var(--fg); }
.quals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); position: relative; }
.qual {
  --c: var(--anchor); --on-c: var(--on-anchor);
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 28px 26px 26px; border-radius: 20px; text-decoration: none; background-color: var(--c); color: var(--on-c); background-image: var(--grain-strong);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.qual.q-mustard { --c: var(--mustard); --on-c: var(--on-mustard); }
.qual.q-rust { --c: var(--rust); --on-c: var(--on-rust); }
.qual.q-olive { --c: var(--anchor); --on-c: var(--on-anchor); }
.qual .qn { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: .9; letter-spacing: -.05em; opacity: .4; }
.qual h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.05; letter-spacing: -.03em; }
.qual p { line-height: 1.55; flex: 1; }
.qual .go { align-self: flex-start; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: var(--step--1); background: var(--on-c); color: var(--c); display: inline-flex; gap: 8px; align-items: center; transition: transform .3s var(--ease); }
.qual::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid var(--on-c); opacity: .08; z-index: -1; transition: transform .6s var(--ease), opacity .4s; }
.qual:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 24px 40px -26px color-mix(in srgb, var(--c) 95%, #000); }
.qual:hover::after { transform: scale(1.25); opacity: .16; }
.qual:hover .go { transform: translateX(4px); }
@media (max-width: 900px) { .quals { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .qual { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
    .quals > :nth-child(2) { animation-range: entry 6% cover 32%; } .quals > :nth-child(3) { animation-range: entry 12% cover 38%; }
  }
}

/* ---- Tarjetas anchas (dos columnas): imagen a la izquierda, texto a la derecha */
@media (min-width: 961px) {
  .cards .card.span2 { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 26px; row-gap: 12px; padding: 0 24px 0 0; }
  .cards .card.span2 > .card-img { grid-column: 1; grid-row: 1 / -1; margin: 0; aspect-ratio: auto; height: 100%; min-height: 260px; }
  .cards .card.span2 > :not(.card-img) { grid-column: 2; }
  .cards .card.span2 > .kicker { margin-top: 30px; }
  .cards .card.span2 > .go { margin: 4px 0 26px; align-self: end; justify-self: start; }
  .cards .card.span2 h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
}
@media (min-width: 601px) and (max-width: 960px) {
  .cards .card.span2 { grid-column: span 2; }
  .cards .card.span2 .card-img { aspect-ratio: 21 / 9; }
  .cards > .card:last-child:nth-child(even) { grid-column: span 2; }
  .cards > .card:last-child:nth-child(even) .card-img { aspect-ratio: 21 / 9; }
}
.card.c-olive .card-type span { font-size: clamp(2.2rem, 4vw, 3.4rem); }
