/* Papyvo · páginas «Nuestra historia» (/historia) y «Contacto» (/contacto). 2 nov 2026.
   Van encima de /sitio/e/estilos.css (la landing E): mismos tokens «Papiro nocturno», Gambarino (solo 400) + General Sans,
   vidrio, radios 8/12/20/28 y pastillas. Los mundos pintados salen de /marca/mundos/ (no los toca publicar.py).
   Sin trazos inclinados; todas las esquinas redondeadas. */

body.hi { background: var(--claro); }
.barra__nav a[aria-current="page"] { background: var(--osc); color: var(--claro); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hi :is(.h2) .tinta { color: var(--osc); }
.hi :is(.h2) .gris { color: #56675e; }

/* ——— Héroe ——— */
.hi-heroe { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(100svh, 980px); padding: 150px 0 clamp(96px, 14vh, 150px); overflow: hidden;
  --h-tinta: #0f2a22; --h-gris: #4f5034; --punto: #c9952f; }
.hi-heroe__fondo { position: absolute; inset: 0; z-index: -2; }
.hi-heroe__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
html.mov .hi-heroe__fondo img { animation: hi-acerca 18s var(--salida) both; }
@keyframes hi-acerca { from { transform: scale(1.08); } to { transform: scale(1); } }
.hi-heroe__velo { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 46% at 50% 58%, rgb(244 248 250 / .7), rgb(244 248 250 / 0) 100%), linear-gradient(180deg, rgb(244 248 250 / .1) 0%, rgb(244 248 250 / .25) 40%, rgb(247 248 244 / .92) 88%, var(--claro) 100%); }
.hi-heroe__texto { display: grid; justify-items: center; text-align: center; }
.hi-display { margin-top: 20px; font-size: clamp(3rem, 1rem + 7vw, 7rem); line-height: .98; }
.hi-heroe__sub { max-width: 58ch; margin-top: 24px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: #2a2a18; text-wrap: pretty; }
.hi-heroe__seguir { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 10px 18px; border-radius: 999px; background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--osc); font: 600 .9375rem/1 var(--f-ui); text-decoration: none; box-shadow: var(--sombra-suave); }
.hi-heroe__seguir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hi-heroe__seguir:hover { background: #fff; }

/* ——— La hoja clara que tapa el mundo ——— */
.hi-hoja { position: relative; z-index: 1; margin-top: -44px; padding-bottom: clamp(48px, 6vw, 96px); border-radius: var(--r-hoja) var(--r-hoja) 0 0; background: var(--claro); }

/* ——— El nombre ——— */
.hi-nombre { display: grid; justify-items: center; padding-block: clamp(72px, 9vw, 140px) clamp(40px, 5vw, 72px); text-align: center; }
.hi-nombre__palabra { font: 400 clamp(5rem, 1.5rem + 15vw, 15rem)/.86 var(--f-display); letter-spacing: -0.03em; font-synthesis: none; }
.hi-nombre__papy { color: var(--osc); }
.hi-nombre__vo { color: #56675e; }
.hi-nombre__raices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(720px, 100%); margin-top: 34px; }
.hi-nombre__raices p { padding: 18px 22px; border-radius: var(--r-l); background: var(--claro-2); text-align: left; font-size: 1.0625rem; line-height: 1.5; color: var(--tinta-2); }
.hi-nombre__raices b { display: block; margin-bottom: 4px; font: 400 1.75rem/1 var(--f-display); color: var(--osc); }
.hi-nombre__raices p + p b { color: #56675e; }
.hi-nombre__raices i { font-family: var(--f-libro); font-style: italic; color: var(--tinta); }

/* ——— Capítulos ——— */
.hi-capitulo { padding-block: clamp(48px, 6vw, 96px); }
.hi-capitulo__rejilla { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
.hi-capitulo--al-reves .hi-ventana { order: 2; }
.hi-capitulo__texto { max-width: 58ch; }
.hi-capitulo__texto .h2 { margin: 14px 0 22px; }
.hi-capitulo__texto > p:not(.hi-numero) { font-size: 1.125rem; line-height: 1.72; color: var(--tinta-2); text-wrap: pretty; }
.hi-capitulo__texto > p + p { margin-top: 1em; }
.hi-numero { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--claro-2); font: 400 1rem/1 var(--f-display); color: var(--osc); letter-spacing: .02em; }
.hi-nota { font-size: .875rem !important; color: var(--tinta-3) !important; }
.hi-ventana { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: var(--r-xl); background: #b9d3e6; box-shadow: var(--sombra-honda); }
.hi-ventana > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--salida); }
.hi-ventana:hover > img { transform: scale(1.03); }
.hi-ventana__pie { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; font: 600 .8125rem/1.2 var(--f-ui); color: var(--osc); }
.hi-ventana--libro { display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, rgb(207 232 107 / .22), transparent 70%), linear-gradient(160deg, var(--osc-3), var(--osc)); }
.hi-ventana--libro > img { position: absolute; top: 11%; left: 50%; width: auto; height: 78%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-s); transform: translateX(-50%); box-shadow: 0 2px 6px rgb(0 0 0 / .2), 0 30px 60px -20px rgb(0 0 0 / .6); }
.hi-ventana--libro:hover > img { transform: translate(-50%, -4px); }

/* ——— Hueco para Alvaro ——— */
.hi-autor { padding-block: clamp(40px, 5vw, 72px); }
.hi-autor__tarjeta { display: flex; align-items: center; gap: 28px; max-width: 860px; margin-inline: auto; padding: 28px 32px; border: 1.5px dashed var(--linea-2); border-radius: var(--r-xl); background: var(--claro-2); }
.hi-autor__foto { flex: none; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; border: 1.5px dashed #9fae9f; background: var(--claro); color: var(--tinta-3); font: 600 .875rem/1 var(--f-ui); }
.hi-autor__etiqueta { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f6ebcf; color: #8a5a07; font: 600 .75rem/1.3 var(--f-ui); }
.hi-autor__nombre { margin: 10px 0 8px; font: 400 1.75rem/1.1 var(--f-display); color: var(--osc); }
.hi-autor__cita { margin: 0; font: italic 400 1.125rem/1.55 var(--f-libro); color: var(--tinta-2); }

/* ——— La tuya ——— */
.hi-tuya { display: grid; justify-items: center; padding-block: clamp(64px, 8vw, 128px) clamp(24px, 3vw, 48px); text-align: center; }
.hi-tuya .h2 { margin-top: 18px; max-width: 18ch; }
.hi-tuya__texto { max-width: 60ch; margin-top: 26px; }
.hi-tuya__texto p { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.7; color: var(--tinta-2); text-wrap: pretty; }
.hi-tuya__texto p + p { margin-top: 1em; color: var(--tinta); }

/* ——— Cierre ——— */
.hi-cierre { position: relative; isolation: isolate; padding-block: clamp(96px, 12vw, 180px); overflow: hidden; }
.hi-cierre__fondo { position: absolute; inset: 0; z-index: -1; }
.hi-cierre__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hi-cierre__tarjeta { display: grid; justify-items: center; gap: 16px; max-width: 760px; margin-inline: auto; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); text-align: center; background: rgb(255 255 255 / .8); }
.hi-cierre__tarjeta .h2 { max-width: 16ch; }
.hi-cierre__tarjeta > p { font-size: 1.125rem; color: var(--tinta-2); }
.hi-cierre__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ——— Pie ——— */
.hi-pie { padding-bottom: 56px; }
.hi-pie__rejilla { display: grid; gap: 36px; }
@media (min-width: 600px) { .hi-pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hi-pie__rejilla { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; } }
.pie__nav a[aria-current="page"] { color: var(--lima); }

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hi-capitulo__rejilla { grid-template-columns: 1fr; }
  .hi-capitulo--al-reves .hi-ventana { order: 0; }
  .hi-capitulo__texto { max-width: none; }
}
@media (max-width: 700px) {
  .hi-heroe { padding: 120px 0 96px; min-height: 92svh; }
  .hi-heroe__fondo img { object-position: 46% 0; }
  .hi-nombre__raices { grid-template-columns: 1fr; }
  .hi-autor__tarjeta { flex-direction: column; align-items: flex-start; padding: 22px; gap: 18px; }
  .hi-autor__foto { width: 88px; height: 88px; }
  .hi-ventana { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
  .hi-ventana__pie { left: 10px; bottom: 10px; }
  .hi-cierre__acciones { flex-direction: column; width: 100%; }
  .hi-cierre__acciones .boton { width: 100%; justify-content: space-between; }
  .hi-cierre__acciones .boton:not(:has(.boton__circulo)) { justify-content: center; }
}

/* ================= Contacto ================= */
.co-heroe { position: relative; isolation: isolate; padding: 140px 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.co-heroe__fondo { position: absolute; inset: 0 0 auto; height: min(78vh, 760px); z-index: -2; }
.co-heroe__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.co-heroe__fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(244 248 250 / .15) 0%, rgb(244 248 250 / .35) 50%, var(--claro) 100%); }
.co-rejilla { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.co-texto { padding-top: 24px; --h-tinta: #0f2a22; --h-gris: #3f5a4e; }
.co-texto .display { font-size: clamp(2.6rem, 1rem + 4.6vw, 5rem); }
.co-texto__sub { max-width: 44ch; margin-top: 18px; font-size: 1.125rem; line-height: 1.6; color: #1e3229; }
.co-cuenta { max-width: 44ch; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-l); font-size: .9375rem; line-height: 1.55; color: #24342d; }
.co-cuenta b { display: block; margin-bottom: 4px; color: var(--osc); }
.co-tarjeta { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid rgb(255 255 255 / .8); box-shadow: 0 0 0 1px rgb(15 42 34 / .06), var(--sombra-honda); }
.co-form { display: grid; gap: 18px; }
.co-fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co-campo { display: grid; gap: 7px; margin: 0; }
.co-campo > span:first-child { font: 600 .9375rem/1.2 var(--f-ui); color: var(--tinta); }
.co-campo :is(input, select, textarea) { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--linea-2); border-radius: var(--r-m); background: #fff; color: var(--tinta); font: 400 1rem/1.4 var(--f-ui); transition: border-color .2s, box-shadow .2s; }
.co-campo select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--tinta-3) 50%), linear-gradient(-45deg, transparent 50%, var(--tinta-3) 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.co-campo textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.co-campo :is(input, select, textarea):focus { outline: none; border-color: var(--foco); box-shadow: 0 0 0 3px rgb(47 93 14 / .18); }
.co-campo [aria-invalid="true"] { border-color: var(--corte); box-shadow: 0 0 0 3px rgb(173 61 24 / .12); }
.co-ayuda { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--tinta-3); }
.co-error { font-size: .875rem; font-weight: 500; color: var(--corte); }
.co-error:empty { display: none; }
.co-trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.co-acepto { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.5; color: var(--tinta-2); cursor: pointer; }
.co-acepto input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--osc); }
.co-acepto a { color: var(--osc); font-weight: 600; }
.co-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.co-pie .boton[disabled] { opacity: .6; cursor: default; }
.co-pie small { font-size: .8125rem; color: var(--tinta-3); }
.co-aviso { padding: 12px 16px; border-radius: var(--r-m); background: rgb(173 61 24 / .08); color: var(--corte); font-size: .9375rem; }
.co-aviso:empty { display: none; }
.co-hecho { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 14px; padding: 8px 0; }
.co-hecho__marca { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lima); color: var(--osc); }
.co-hecho__marca svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-hecho h2 { font: 400 clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem)/1.05 var(--f-display); color: var(--osc); }
.co-hecho h2 span { color: #56675e; }
.co-hecho p { font-size: 1.0625rem; line-height: 1.6; color: var(--tinta-2); max-width: 46ch; overflow-wrap: anywhere; }
.co-hecho code { padding: 2px 8px; border-radius: var(--r-s); background: var(--claro-2); font: 600 .9375rem/1.4 ui-monospace, Menlo, monospace; color: var(--osc); }
.co-hecho__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 900px) { .co-rejilla { grid-template-columns: 1fr; } .co-texto { padding-top: 0; } }
@media (max-width: 560px) { .co-fila { grid-template-columns: 1fr; } .co-pie .boton { width: 100%; justify-content: space-between; } .co-heroe { padding-top: 116px; } }
.co-tarjeta [hidden] { display: none !important; }
