@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 100 499; font-display: swap;
  src: url(../fuentes/AtkinsonHyperlegible-100-499-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fuentes/AtkinsonHyperlegible-500-900-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --papel: #F3ECDD;     
  --papel-2: #EAE1CE;   
  --tinta: #2A241C;     
  --marfil: #F4EFE6;    
  --marfil-rgb: 244, 239, 230;
  --oro: #E9C27A;       
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --sans: "Atkinson Hyperlegible", Verdana, Tahoma, system-ui, sans-serif;
  --m-sabana: #8E543F; --m-amazonas: #386C44; --m-norte: #396490; --m-oriente: #236C5E;
  --m-bosques: #5E652C; --m-australia: #A34239; --m-pinguino: #18687D; --m-artico: #5E5C8C;
  --mundo: var(--m-sabana);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ancho: 1180px;
}
html[data-elegido="amazonas"] { --mundo: var(--m-amazonas); }
html[data-elegido="norte"] { --mundo: var(--m-norte); }
html[data-elegido="oriente"] { --mundo: var(--m-oriente); }
html[data-elegido="bosques"] { --mundo: var(--m-bosques); }
html[data-elegido="australia"] { --mundo: var(--m-australia); }
html[data-elegido="pinguino"] { --mundo: var(--m-pinguino); }
html[data-elegido="artico"] { --mundo: var(--m-artico); }
body.web { margin: 0; background: var(--papel); color: var(--tinta); font: 450 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.web * { box-sizing: border-box; }
.web img { display: block; max-width: 100%; height: auto; }
.web a { color: inherit; }
.web :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.web h1, .web h2, .web h3, .web p, .web ol, .web ul, .web figure { margin: 0; }
.web h1, .web h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; font-optical-sizing: auto; }
.web h1 { font-size: clamp(34px, 9.4vw, 76px); }
.web h2 { font-size: clamp(36px, 8vw, 64px); }
.web h3 { font: 500 21px/1.3 var(--sans); }
.web .sub { font-size: 20px; line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.mundo { background: var(--mundo); color: var(--marfil); }
.banda { padding-block: clamp(64px, 12vw, 136px); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.caja { max-width: var(--ancho); margin-inline: auto; display: grid; gap: clamp(28px, 4vw, 48px); }
.cabeza { display: grid; gap: 16px; max-width: 40rem; }
a.btn, button.btn { display: inline-block; padding: 14px 22px; border: 1px solid var(--marfil); background: var(--marfil); color: var(--mundo);
  font: 500 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
a.btn:hover, button.btn:hover { background: transparent; color: var(--marfil); }
a.btn--tinta { border-color: var(--tinta); background: var(--tinta); color: var(--papel); }
a.btn--tinta:hover { background: transparent; color: var(--tinta); }
.libro3d { display: block; perspective: 1600px; }
.web .libro3d { box-shadow: none; }   
.libro3d__libro { position: relative; display: block; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1);
  transform: rotateY(var(--ry, 14deg)) rotateX(var(--rx, 0deg)) translateZ(var(--z, 0px)); }
.libro3d--vivo .libro3d__libro { --z: 28px; transition-duration: .18s; }
.libro3d img { display: block; width: 100%; height: auto; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .55); }
.libro3d__libro::before { content: ""; position: absolute; inset: 0; transform: translateZ(1px); pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .3) 0, rgba(255, 255, 255, .24) 1.3%, rgba(0, 0, 0, .12) 2.8%, rgba(0, 0, 0, 0) 5.5%); }
.libro3d__libro::after { content: ""; position: absolute; inset: 0; transform: translateZ(2px); pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--bx, 30%) var(--by, 20%), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 52%);
  transition: opacity .4s; }
.libro3d--vivo .libro3d__libro::after { opacity: 1; }
.libro3d--barre .libro3d__libro::after { opacity: 1; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .5) 50%,
  rgba(255, 255, 255, 0) 60%) no-repeat 85% 0 / 260% 100%; animation: barrido 1.4s .3s ease-in-out forwards; }
@keyframes barrido { to { background-position: 15% 0; } }   
.libro3d__canto { position: absolute; top: .9%; bottom: .9%; right: 0; width: 4.6%; transform-origin: right center; transform: rotateY(-90deg);
  background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 45%), repeating-linear-gradient(90deg, #f5f0e6 0 1px, #d8cfbd 1px 2px); }
@media (prefers-reduced-motion: reduce) { .libro3d__libro { transition: none; } }
.con-vivo { position: relative; isolation: isolate; }
.vivo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; display: none; }
.vivo--listo { display: block; animation: aparece 1.4s ease both; }
@keyframes aparece { from { opacity: 0; } }
.final .vivo { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.vivo::before { content: ""; position: absolute; z-index: 1; left: calc(var(--lx, 30%) - var(--lw, 240px) / 2); top: calc(var(--ly, 40%) - var(--lh, 340px) / 2);
  width: var(--lw, 240px); height: var(--lh, 340px); background: rgba(255, 228, 170, .3); box-shadow: 0 -12px 46px 8px rgba(255, 228, 170, .3);
  animation: respira 7s ease-in-out infinite alternate; }
@keyframes respira { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
.vivo::after { content: ""; position: absolute; inset: -35%;
  background: radial-gradient(26% 20% at 22% 28%, rgba(0, 0, 0, .26), rgba(0, 0, 0, 0)),
    radial-gradient(20% 28% at 72% 58%, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)),
    radial-gradient(30% 16% at 46% 84%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)),
    radial-gradient(18% 22% at 86% 18%, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0));
  animation: hojas 26s ease-in-out infinite alternate; }
@keyframes hojas { to { transform: translate(7%, -5%) rotate(6deg) scale(1.08); } }
.vivo__gl { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s; }
.vivo--gl .vivo__gl { opacity: 1; }
.vivo--gl::before, .vivo--gl::after, .vivo--quieto::before, .vivo--quieto::after { animation-play-state: paused; }
.luces { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.luciernaga { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #FFF7CC;
  box-shadow: 0 0 6px 2px rgba(255, 222, 110, .9), 0 0 18px 6px rgba(255, 200, 70, .35); }
.luciernaga--papel { background: #FFE9A0; box-shadow: 0 0 5px 2px rgba(205, 140, 20, .85), 0 0 16px 5px rgba(205, 140, 20, .35); }
@media (prefers-reduced-motion: reduce) { .vivo::before, .vivo::after { animation: none; } }
.web .saltar { position: fixed; left: 16px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--tinta); color: var(--papel); }
.web .saltar:focus { top: 12px; }
.enlace { padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 17px; cursor: pointer;
  text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.pronto { font-size: 17px; }
.cabecera { position: relative; z-index: 5; display: flex; align-items: center; gap: 18px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter-r) 14px var(--gutter); font: 500 16px/1.2 var(--sans); }
.cabecera--encima { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.cabecera--encima > * { pointer-events: auto; }
.cabecera img { display: block; width: 30px; height: 30px; }
.cabecera > a:first-child { flex: none; }   
.cabecera nav { display: flex; gap: 18px; margin-left: auto; }
.cabecera nav a { color: inherit; text-decoration: none; }
.libro-pronto { display: inline-flex; align-items: center; min-height: 44px; font-style: italic; }
a.comprar-pildora { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--tinta);
  color: var(--papel); font: 500 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap; flex: none; }
.cabecera nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.estas { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--papel);
  color: var(--tinta); font-size: 16px; text-decoration: none; }
.estas::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mundo); }
.cabecera--encima nav { padding: 0 14px; border-radius: 999px; background: var(--papel); color: var(--tinta);
  box-shadow: 0 4px 14px -8px rgba(42, 36, 28, .6); }   
.cabecera--encima nav a { padding: 7px 0; }
@media (max-width: 420px) { .estas span { display: none; } .estas { padding: 9px; } .cabecera { gap: 10px; } }
.rayas { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter-r) 8px var(--gutter); background: var(--papel); color: var(--tinta);
  box-shadow: 0 1px 0 rgba(42, 36, 28, .14), 0 10px 22px -18px rgba(42, 36, 28, .7);
  opacity: 0; visibility: hidden; translate: 0 -100%; transition: opacity .3s, translate .3s, visibility 0s .3s; }
.rayas--ver { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s, translate .3s; }
.rayas__logo { flex: none; margin-right: auto; }
.rayas__logo img { display: block; width: 30px; height: 30px; }
.rayas__boton { box-sizing: border-box; flex: none; display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 12px;
  border: 0; border-radius: 50%; background: var(--papel-2); color: var(--tinta); cursor: pointer; }
.rayas__boton span { display: block; height: 1.5px; background: currentColor; transition: transform .3s, opacity .2s; }
.rayas--abierta .rayas__boton span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.rayas--abierta .rayas__boton span:nth-child(2) { opacity: 0; }
.rayas--abierta .rayas__boton span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.rayas__menu { position: absolute; top: 100%; right: var(--gutter-r); display: none; min-width: 200px; padding: 8px 0; background: var(--papel);
  color: var(--tinta); box-shadow: 0 18px 40px -16px rgba(42, 36, 28, .55); font: 500 18px/1.2 var(--sans); }
.rayas--abierta .rayas__menu { display: grid; }
.rayas__menu a { padding: 13px 20px; color: inherit; text-decoration: none; }
.rayas__menu a:hover { background: var(--papel-2); }
.rayas__menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.pie-web { background: var(--mundo); color: var(--marfil); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter); padding-right: var(--gutter-r); font: 450 16px/1.6 var(--sans); }
.pie-web .caja { gap: 18px; }
.pie-web img { display: block; width: 200px; height: auto; }
.pie-web p { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.pie-web a { color: inherit; }
.pie-web a[aria-current="page"] { text-decoration: none; }
.cabecera > a:first-child, .rayas__logo { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -7px; }
.cabecera nav a { display: inline-flex; align-items: center; min-height: 44px; }
.cabecera--encima nav a { padding-block: 0; }
a.comprar-pildora, .estas { min-height: 44px; }
.pie-web p a { display: inline-flex; align-items: center; min-height: 44px; }
.enlace { min-height: 44px; }
.compartir { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 17px; text-underline-offset: .3em; }
