:root {
  color-scheme: light;
  --paper: #fdf7ea;
  --ink: #173b39;
  --text: #314b44;
  --green: #246c5f;
  --mint: #e3eee2;
  --yellow: #f6c445;
  --line: #c8d2c1;
  --white: #fffdf6;
  --display: ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --body: "Avenir Next", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ae4a33; outline-offset: 5px; }
p { margin: 0 0 1rem; color: var(--text); }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(3.45rem, 8vw, 7.6rem); font-weight: 900; letter-spacing: -.075em; }
h1 em { font-style: normal; color: var(--green); }
h2 { font-size: clamp(2.05rem, 4.6vw, 3.75rem); font-weight: 850; letter-spacing: -.045em; margin-bottom: 1.35rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.62rem); font-weight: 800; letter-spacing: -.025em; margin: .35rem 0 .55rem; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto 1rem; transform: translateY(-180%); z-index: 5; background: var(--white); padding: .5rem 1rem; }
.skip:focus { transform: none; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; min-height: 79px; border-bottom: 1px solid #ded8ca; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-weight: 850; letter-spacing: -.035em; font-size: 1.2rem; }
.brand img { flex: none; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2.3rem); align-items: center; }
nav a, .footer > a:last-child { font-size: .95rem; font-weight: 700; text-underline-offset: 4px; text-decoration-color: transparent; }
nav a:hover, .footer > a:last-child:hover { text-decoration-color: currentColor; }
.hero, .mission-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.eyebrow { display: flex; gap: .55rem; align-items: center; color: #246257; font-size: .75rem; letter-spacing: .12em; font-weight: 850; margin-bottom: .85rem; }
.eyebrow span { flex: 0 0 10px; height: 10px; border-radius: 50%; background: #d66d50; }
.hero-lead { margin: 1.35rem 0 1.6rem; max-width: 34rem; font-size: clamp(1.12rem, 2vw, 1.36rem); }
.actions { display: flex; align-items: center; gap: .9rem 1.25rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; background: var(--yellow); color: var(--ink); border: 2px solid transparent; border-radius: 100px; font-weight: 850; padding: .8rem 1.18rem; text-decoration: none; line-height: 1.35; }
.button:hover { background: #f9d675; }
.button.outline { background: transparent; border-color: var(--green); }
.button.outline:hover { background: var(--mint); }
.text-link { font-weight: 800; text-underline-offset: .26em; }
.text-link:hover { color: var(--green); }
.hero-art { position: relative; display: grid; place-items: center; isolation: isolate; margin: 0; padding: clamp(1.45rem, 5vw, 3rem); min-width: 0; border-radius: 34% 40% 35% 33% / 39% 34% 43% 35%; background: #f2df9c; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; z-index: -1; inset: 6%; border: 1px dashed #957f4d; border-radius: inherit; }
.hero-art img { width: min(75%, 305px); border-radius: 4px 9px 9px 4px; transform: rotate(-6deg); box-shadow: 10px 15px 0 #d7b971, 12px 18px 24px #6e5a4550; }
.hero-stamp { position: absolute; z-index: 1; right: 8%; bottom: 10%; display: grid; place-items: center; text-align: center; width: clamp(70px, 8.7vw, 104px); aspect-ratio: 1; border-radius: 50%; border: 1px dashed #ffe7bb; outline: 5px solid #246257; background: #246257; color: #fff7e3; font-weight: 850; font-size: clamp(.63rem, 1vw, .82rem); letter-spacing: .09em; line-height: 1.25; transform: rotate(10deg); }
.route, .mission-steps { background: var(--mint); padding: clamp(2.7rem, 6vw, 5rem) 0; }
.route h2 { max-width: 690px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.cards article { border-radius: 1rem; background: var(--white); overflow: hidden; border: 1px solid var(--line); }
.cards img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-copy { padding: 1.15rem; }
.card-copy .eyebrow { margin: 0; }
.card-copy p:last-child { margin-bottom: 0; }
.card-copy .text-link { font-size: .91rem; }
.book { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6rem); align-items: center; }
.book p { max-width: 42ch; }
.sample { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; background: #eddfbc; padding: .9rem; border-radius: 1rem; }
.sample img { border-radius: .25rem; box-shadow: 0 4px 9px #4b403733; }
.sample a:hover img { outline: 2px solid var(--green); outline-offset: 1px; }
.mission-head h1 { font-size: clamp(3.3rem, 6.6vw, 6rem); }
.mission-photo { border-radius: 1.2rem; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.small { margin: .65rem 0 0; font-size: .88rem; }
.mission-inner { max-width: 780px; }
.mission-steps ol { list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: pista; }
.mission-steps li { counter-increment: pista; display: flex; gap: .8rem; align-items: flex-start; border-top: 1px solid var(--line); padding: .95rem 0; }
.mission-steps li::before { content: counter(pista); flex: 0 0 2rem; text-align: center; line-height: 2rem; border-radius: 50%; background: var(--yellow); font-weight: 850; }
.mission-steps li p { margin-bottom: 0; }
footer { border-top: 1px solid #ded8ca; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.35rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .mission-head, .book { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-art { width: min(100%, 470px); margin-inline: auto; }
  .hero-art img { width: min(65%, 245px); }
  .mission-photo { aspect-ratio: 16/8; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; gap: .55rem; padding: .75rem 0; }
  .site-header .brand { flex-basis: 100%; }
  nav { gap: 1.15rem; }
  .footer { flex-wrap: wrap; gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Guías de viaje */
.site-header nav { flex-wrap: wrap; }
.site-header [aria-current="page"] { text-decoration-color: currentColor; }
.guide-head { padding-block: clamp(2.7rem, 7vw, 5.25rem); }
.guide-head h1 { max-width: 17ch; font-size: clamp(2.8rem, 7.5vw, 6.5rem); }
.guide-head .hero-lead { max-width: 47rem; }
.guide-jumps { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.guide-jumps a { border: 1px solid var(--green); border-radius: 100px; padding: .48rem .95rem; font-weight: 750; text-decoration: none; }
.guide-jumps a:hover { background: var(--mint); }
.guide-block { padding-block: clamp(2.4rem, 6vw, 4.6rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.guide-block:nth-of-type(even) { background: var(--mint); }
.guide-inner { width: min(930px, calc(100% - 3rem)); }
.guide-intro { max-width: 70ch; font-size: 1.12rem; }
.guide-note { background: #f5e8ba; border-radius: .65rem; padding: .85rem 1.1rem; margin: 1.35rem 0; }
.guide-note p { margin: 0; }
.plans, .day-list { margin: 1.55rem 0; padding: 0; list-style: none; }
.plans li, .day-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.plans li > p, .day-list li > p { max-width: 75ch; }
.day-list h3, .plans h3 { margin-bottom: .75rem; }
.day-tag { display: inline-block; margin: 0 0 .25rem; color: var(--green); font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.day-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.8rem; }
.day-parts p { margin-bottom: .45rem; }
.source-links { display: flex; flex-wrap: wrap; gap: .2rem .95rem; color: var(--green); font-size: .85rem; margin: .5rem 0 0; }
.source-links a, .source-list a { text-underline-offset: .2em; }
.guide-sources { border-top: 1px solid var(--line); margin-top: 1.35rem; }
.guide-sources summary { cursor: pointer; padding: .9rem 0; font-weight: 800; }
.source-list { columns: 2; column-gap: 2rem; color: var(--text); padding-left: 1.3rem; margin: 0 0 .6rem; font-size: .92rem; }
.source-list li { break-inside: avoid; padding: .12rem 0 .38rem; }
.planner { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.planner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.planner-grid article { border: 1px solid var(--line); background: var(--white); border-radius: 1rem; padding: 1.25rem; }
.planner-grid article p { max-width: 47ch; }
.faq { background: var(--mint); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.faq-item { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.faq-item > p { margin: .65rem 0 0; max-width: 76ch; }
.faq-item h3 { text-wrap: pretty; }
.faq-item .text-link { display: inline-block; margin-top: .6rem; }
.guide-foot { padding-block: 1.65rem 2rem; }
.guide-foot p { margin: 0; }
@media (max-width: 650px) {
  .guide-inner { width: calc(100% - 2rem); }
  .planner-grid, .day-parts { grid-template-columns: 1fr; }
  .source-list { columns: 1; }
  .site-header nav { gap: .45rem .95rem; }
}

/* Selector de idioma */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.language-switch {
  position: relative;
  flex: none;
  width: max-content;
}
.language-switch summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .35rem .75rem;
  border: 1px solid var(--green);
  border-radius: 100px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 750;
  list-style: none;
}
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.language-switch summary:focus-visible {
  outline: 3px solid #ae4a33;
  outline-offset: 4px;
}
.language-switch ul {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  z-index: 4;
  min-width: 8rem;
  margin: 0;
  padding: .3rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--white);
  box-shadow: 0 5px 18px #173b3926;
}
.language-switch a {
  display: block;
  padding: .3rem .55rem;
  border-radius: .35rem;
  text-decoration: none;
  white-space: nowrap;
}
.language-switch a:hover, .language-switch a[aria-current="page"] {
  background: var(--mint);
}
[lang="de"] .mission-head h1 { font-size: clamp(2.75rem, 5.5vw, 5.4rem); }
@media (max-width: 650px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; padding: .65rem 0; }
  .site-header > .brand { grid-row: 1; grid-column: 1; font-size: clamp(1rem, 4.6vw, 1.2rem); }
  .site-header > .language-switch { grid-row: 1; grid-column: 2; }
  .site-header > nav { grid-row: 2; grid-column: 1 / -1; }
}
main > .language-switch { margin-top: 1rem; }
main > .language-switch ul { right: auto; left: 0; }

/* El libro y la muestra */
.book-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0;
  margin: 1.15rem 0;
  list-style: none;
}
.book-facts li {
  padding: .22rem .65rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
}
.book-preview { scroll-margin-top: 1.25rem; min-width: 0; }
.book-preview h3 { margin-bottom: .75rem; }
.sample-reading { margin-top: .8rem; }
.sample-reading summary { font-weight: 750; cursor: pointer; }
.sample-reading blockquote {
  margin: .85rem 0;
  padding-left: .95rem;
  border-left: 3px solid var(--yellow);
}
.sample-reading p { margin-bottom: .55rem; }
.book-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  margin-block: clamp(2rem, 5vw, 3.8rem);
  padding: clamp(1.1rem, 4vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
}
.book-card h2 { font-size: clamp(1.55rem, 3.8vw, 2.35rem); margin-bottom: .65rem; }
.book-card p:last-child { margin-bottom: 0; max-width: 66ch; }
.book-card .actions { justify-content: flex-end; max-width: 19rem; }
@media (max-width: 760px) {
  .book-card { grid-template-columns: 1fr; }
  .book-card .actions { justify-content: flex-start; max-width: none; }
}
