/* ==========================================================================
   El Camino de Cervantes — estilos
   ========================================================================== */

:root {
  /* Marca (verde del logo) */
  --olive-900: #25311a;
  --olive-800: #2f3d22;
  --olive-600: #4a5a3a;
  --olive-400: #7c8a6a;

  /* Neutros cálidos */
  --sand-50: #fbf8f2;
  --sand-100: #f5f0e5;
  --sand-200: #e9e1cf;
  --sand-300: #d8ccb2;

  /* Acento */
  --ochre: #a9813a;
  --ochre-soft: #e7d6ae;

  --ink: #1f2219;
  --muted: #5f6455;
  --line: rgba(37, 49, 26, 0.14);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html:has(.page-nav) { scroll-padding-top: 156px; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--olive-900);
}
h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
em { font-style: italic; }
/* Cormorant usa números antiguos por defecto; las cifras se alinean */
h1, h2, h3, .day__num, .fact dd, .mini-timeline b, .timeline .year, .quiz__result strong { font-variant-numeric: lining-nums; }
::selection { background: var(--ochre-soft); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 720px; margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--sand-100); }
.section--dark { background: var(--olive-900); color: var(--sand-100); }
.section--dark h2, .section--dark h3 { color: var(--sand-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section--dark .lead { color: var(--sand-300); }
.section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head--center .lead { margin-inline: auto; }

.ornament {
  display: block;
  width: 72px;
  margin: 0 auto 28px;
  color: var(--ochre);
}

/* Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--olive-900);
  border-radius: 999px;
  font: 500 0.95rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--primary { background: var(--olive-900); color: var(--sand-50); }
.btn--primary:hover { background: var(--olive-800); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--olive-900); }
.btn--ghost:hover { background: var(--olive-900); color: var(--sand-50); }
.btn--light { background: var(--sand-50); color: var(--olive-900); border-color: var(--sand-50); }
.btn--light:hover { background: var(--ochre-soft); border-color: var(--ochre-soft); }
.btn--outline-light { background: transparent; color: var(--sand-50); border-color: rgba(251, 248, 242, 0.5); }
.btn--outline-light:hover { border-color: var(--sand-50); background: rgba(251, 248, 242, 0.08); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--olive-900);
  text-decoration: none;
  border-bottom: 1px solid var(--ochre);
  padding-bottom: 3px;
}
.link-arrow:hover { color: var(--ochre); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  /* Sin backdrop-filter: crearía un contenedor para el menú móvil (position: fixed) */
  background: rgba(251, 248, 242, 0.97);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 100px; height: 100px; }
@media (max-width: 640px) { .brand img { width: 80px; height: 80px; } }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a:not(.btn) {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links .btn { min-height: 44px; padding: 0 22px; font-size: 0.88rem; }
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--olive-900);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

@media (max-width: 960px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--sand-50);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav__links a:not(.btn) { font-family: var(--font-display); font-size: 1.8rem; }
  .nav-open .nav__links { opacity: 1; visibility: visible; }
  .sidebar { position: static; }
  .nav-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* Hero ------------------------------------------------------------------- */
/* Ocupa siempre el alto de la pantalla: la imagen y los textos se escalan con el alto disponible */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 0 24px; /* 100px = altura del header */
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero .eyebrow { margin-bottom: clamp(12px, 2.4svh, 22px); }
.hero h1 {
  font-size: clamp(2.6rem, min(7vw, 9.5svh), 5.6rem);
  margin-bottom: 0.25em;
}
.hero h1 em { color: var(--ochre); font-weight: 400; }
.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, min(2.2vw, 3svh), 1.7rem);
  color: var(--olive-600);
  margin-bottom: clamp(16px, 3svh, 30px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 clamp(20px, 4svh, 40px);
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero__meta li { display: flex; align-items: center; gap: 22px; }
.hero__meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ochre); }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, 3.4svh, 34px);
  font-size: 0.85rem;
  color: var(--muted);
}
.hero__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 0 0 rgba(169, 129, 58, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(169, 129, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 129, 58, 0); }
}
/* Alto de la imagen = pantalla − header − aire arriba y abajo (máx. 680px) */
.hero__media {
  position: relative;
  height: min(calc(100svh - 100px - clamp(80px, 16svh, 160px)), 680px);
  aspect-ratio: 4 / 5;
  max-width: 42vw;
}
.arch {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--sand-200);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--ochre);
  border-radius: 999px 999px var(--radius) var(--radius);
  opacity: 0.55;
}
.hero__caption {
  position: absolute;
  left: -28px;
  bottom: 12%;
  background: var(--sand-50);
  padding: 18px 22px;
  max-width: 250px;
  box-shadow: 0 20px 40px -24px rgba(31, 34, 25, 0.35);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--olive-900);
}
.hero__caption small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--ochre), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* Tablet y móvil: imagen arriba, texto abajo y centrado */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(20px, 3.5svh, 40px); }
  .hero__text { text-align: center; }
  .hero__text .eyebrow::before { display: none; }
  .hero__meta, .hero__text .btn-row { justify-content: center; }
  .hero__media {
    order: -1;
    justify-self: center;
    width: min(88%, 520px);
    height: clamp(200px, 38svh, 460px);
    aspect-ratio: auto;
    max-width: none;
  }
  .hero__caption { left: -12px; bottom: 10%; padding: 14px 18px; font-size: 1rem; }
  .scroll-cue { display: none; }
}
/* Solo móviles: imagen más baja y textos compactos */
@media (max-width: 640px) {
  .hero { padding: calc(100px + clamp(14px, 2.5svh, 24px)) 0 clamp(12px, 2svh, 20px); }
  .hero__grid { gap: clamp(16px, 2.6svh, 28px); }
  .hero__media { width: 100%; height: clamp(145px, calc(28svh - 15px), 265px); }
  .hero__media::before { inset: -10px 10px 10px -10px; }
  .hero__caption { display: none; }
  .hero .eyebrow { margin-bottom: clamp(8px, 1.6svh, 16px); }
  .hero h1 { font-size: clamp(2.2rem, 6svh, 3.2rem); margin-bottom: 0.2em; }
  .hero__sub { font-size: clamp(1.05rem, 2.5svh, 1.3rem); margin-bottom: clamp(10px, 2svh, 20px); }
  .hero__meta { font-size: 0.85rem; margin-bottom: clamp(14px, 2.6svh, 26px); }
  .hero__text .btn { min-height: 48px; }
  .hero__badge { margin-top: clamp(10px, 2.2svh, 22px); }
  .hero__meta, .hero__meta li { gap: 8px; }
}

/* El Camino -------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.prose p { color: var(--muted); }
.prose p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.6em;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--olive-900);
}
.quote {
  margin: 36px 0 0;
  padding-left: 26px;
  border-left: 1px solid var(--ochre);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--olive-900);
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(72px, 9vw, 110px);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pillar { background: var(--sand-50); padding: 40px 28px 36px; }
.pillar svg { width: 34px; height: 34px; color: var(--ochre); margin-bottom: 22px; }
.pillar h3 { font-size: 1.45rem; margin-bottom: 8px; }
.pillar p { font-size: 0.93rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 480px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* Viaje 2027 ------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(64px, 8vw, 100px);
}
.fact { padding: 26px 20px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fact dd { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; color: var(--olive-900); }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-bottom: 1px solid var(--line); }
  .fact + .fact { border-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .fact dd { font-size: 1.25rem; }
}

.highlights-head { margin-bottom: clamp(36px, 5vw, 56px); }
.highlights-head .eyebrow { margin-bottom: 14px; }
.highlights-head h3 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 0; }
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  counter-reset: hl;
  margin-bottom: clamp(56px, 7vw, 80px);
}
.highlight { counter-increment: hl; }
.highlight::before {
  content: counter(hl, upper-roman);
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ochre);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.highlight h4 { font-size: 1.55rem; margin-bottom: 8px; }
.highlight p { font-size: 0.95rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; gap: 40px; } }

/* Resumen del viaje en el home */
.trip-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 36px 40px;
  background: var(--sand-100);
  border-radius: var(--radius);
}
.trip-cta p { margin: 0; max-width: 520px; color: var(--muted); }
@media (max-width: 560px) { .trip-cta { padding: 28px 24px; } }

/* Ficha rápida dentro del encabezado de la página del viaje */
.facts--hero { margin: 56px 0 0; text-align: left; }

.itinerary-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 960px) { .itinerary-layout { grid-template-columns: 1fr; } }

.days { border-top: 1px solid var(--line); }
.day { border-bottom: 1px solid var(--line); }
.day summary {
  display: grid;
  grid-template-columns: 76px 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.day summary::-webkit-details-marker { display: none; }
.day__num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--ochre);
}
.day__num small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.day__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--olive-900); }
.day__places { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.day__icon { position: relative; width: 18px; height: 18px; justify-self: end; }
.day__icon::before, .day__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--olive-900);
  transition: transform 0.35s var(--ease);
}
.day__icon::after { transform: rotate(90deg); }
.day[open] .day__icon::after { transform: rotate(0deg); }
.day__body { padding: 0 0 30px 92px; color: var(--muted); font-size: 0.97rem; }
.day__body ul.schedule { list-style: none; padding: 0; margin: 0 0 1.1em; }
.day__body ul.schedule li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 6px 0; }
.day__body ul.schedule time { font-variant-numeric: tabular-nums; color: var(--ochre); font-weight: 500; font-size: 0.9rem; }
.day__body strong { color: var(--ink); font-weight: 600; }
.day__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 0.86rem; color: var(--olive-600); }
.day__meta span { display: inline-flex; align-items: center; gap: 8px; }
.day__meta svg { width: 16px; height: 16px; color: var(--ochre); flex: none; }
.tbd {
  font-size: 0.72em;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ochre-soft);
  color: var(--olive-900);
  white-space: nowrap;
  vertical-align: 1px;
}
@media (max-width: 560px) {
  .day summary { grid-template-columns: 58px 1fr 22px; }
  .day__num { font-size: 1.9rem; }
  .day__title { font-size: 1.3rem; }
  .day__body { padding-left: 0; }
}

.sidebar { position: sticky; top: 124px; display: grid; gap: 28px; }
.map-card { background: var(--sand-100); padding: 28px 24px 22px; border-radius: var(--radius); }
.map-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.map-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.route-map { width: 100%; height: auto; }
.route-map .route { fill: none; stroke: var(--ochre); stroke-width: 1.6; stroke-dasharray: 4 5; }
.route-map .pt { fill: var(--olive-900); }
.route-map .pt--key { fill: var(--sand-100); stroke: var(--olive-900); stroke-width: 2; }
.route-map text { font-family: var(--font-body); font-size: 19px; fill: var(--olive-900); }
.route-map text.day-tag { font-size: 14px; font-weight: 600; fill: var(--ochre); letter-spacing: 0.08em; }
.route-map .region { font-family: var(--font-display); font-style: italic; font-size: 34px; fill: var(--olive-400); opacity: 0.6; }

.booking {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 90px);
  margin-top: clamp(80px, 10vw, 120px);
  padding: clamp(36px, 6vw, 72px);
  background: var(--olive-900);
  color: var(--sand-200);
  border-radius: var(--radius);
}
.booking h3 { color: var(--sand-50); font-size: clamp(2rem, 3.4vw, 2.6rem); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; font-size: 0.94rem; }
.ticks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(251, 248, 242, 0.1); }
.ticks li::before { content: "—"; color: var(--ochre-soft); flex: none; }
.booking .note { font-size: 0.8rem; color: var(--olive-400); margin: 0; }
.booking__cta { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-left: clamp(0px, 4vw, 56px); border-left: 1px solid rgba(251, 248, 242, 0.12); }
.booking__quote { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; line-height: 1.3; color: var(--sand-50); margin-bottom: 18px; }
.booking__quote small { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-soft); }
@media (max-width: 960px) {
  .booking { grid-template-columns: 1fr; }
  .booking__cta { border-left: 0; padding-left: 0; border-top: 1px solid rgba(251, 248, 242, 0.12); padding-top: 36px; }
}
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }

/* Viajeros --------------------------------------------------------------- */
.trips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: clamp(70px, 9vw, 110px);
}
.trip {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  background: rgba(251, 248, 242, 0.04);
  border: 1px solid rgba(251, 248, 242, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.trip img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.trip__body { padding: 30px 28px; display: flex; flex-direction: column; justify-content: center; background: rgba(251, 248, 242, 0.04); }
.trip__body .eyebrow { margin-bottom: 12px; }
.trip__body h3 { font-size: 1.8rem; margin-bottom: 6px; }
.trip__body p { color: var(--sand-300); font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .trips { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .trip { grid-template-columns: 1fr; } .trip img { height: auto; aspect-ratio: 16 / 10; min-height: 0; } }

.testimonials { position: relative; max-width: 860px; margin-inline: auto; text-align: center; }
.testimonial { display: none; }
.testimonial.is-active { display: block; animation: fade 0.7s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.testimonial blockquote {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--sand-50);
}
.testimonial figcaption { font-size: 0.88rem; letter-spacing: 0.06em; color: var(--sand-300); }
.testimonial figcaption strong { color: var(--sand-50); font-weight: 500; }
.stars { color: var(--ochre-soft); letter-spacing: 4px; margin-bottom: 26px; font-size: 0.95rem; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.dots button {
  width: 34px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(251, 248, 242, 0.25);
  cursor: pointer;
  transition: background 0.3s;
}
.dots button[aria-current="true"] { background: var(--ochre-soft); }
.dots button::before { content: ""; display: block; height: 20px; margin-top: -9px; }

/* Pláticas --------------------------------------------------------------- */
.talks-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.talk {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.talk time { font-size: 0.82rem; color: var(--ochre); letter-spacing: 0.06em; }
.talk h3 { font-size: 1.4rem; margin: 0 0 2px; }
.talk p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.talk a { font-size: 0.85rem; white-space: nowrap; color: var(--olive-600); }
.invite { padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand-50); }
.invite h3 { font-size: 1.7rem; }
.invite p { font-size: 0.93rem; color: var(--muted); }
.invite ul { padding: 0; margin: 0 0 28px; list-style: none; }
.invite li { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--olive-900); line-height: 1.3; }
@media (max-width: 960px) { .talks-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .talk { grid-template-columns: 1fr; gap: 4px; } }

/* Galería ---------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filters button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: 500 0.85rem var(--font-body);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filters button:hover { border-color: var(--olive-600); color: var(--olive-900); }
.filters button[aria-pressed="true"] { background: var(--olive-900); border-color: var(--olive-900); color: var(--sand-50); }
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; transition: transform 0.8s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(20, 26, 14, 0.7));
  color: var(--sand-50);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: rgba(16, 20, 11, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--radius); }
.lightbox p { color: var(--sand-200); text-align: center; margin-top: 14px; font-size: 0.9rem; }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(251, 248, 242, 0.4);
  border-radius: 50%;
  background: none;
  color: var(--sand-50);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Biblioteca (avance) ---------------------------------------------------- */
.lib-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lib-card {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  background: var(--sand-50);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 330px;
}
.lib-card .eyebrow { margin-bottom: 18px; }
.lib-card h3 { font-size: 1.65rem; }
.lib-card .refran { font-family: var(--font-display); font-style: italic; font-size: 1.65rem; line-height: 1.3; color: var(--olive-900); margin: 0; transition: opacity 0.4s; }
.lib-card .foot { margin-top: auto; padding-top: 24px; }
.mini-timeline { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.mini-timeline li { display: grid; grid-template-columns: 92px 1fr; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.mini-timeline b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--olive-900); }
.reveal-answer { margin-top: 14px; }
.reveal-answer summary { cursor: pointer; font-size: 0.9rem; color: var(--olive-600); list-style: none; text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 4px; }
.reveal-answer summary::-webkit-details-marker { display: none; }
.reveal-answer p { margin: 12px 0 0; font-size: 0.92rem; color: var(--muted); }
.lib-cta { text-align: center; margin-top: 56px; }
@media (max-width: 960px) { .lib-cards { grid-template-columns: 1fr; } .lib-card { min-height: 0; } }

/* Formularios ------------------------------------------------------------ */
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  background: var(--sand-50);
  font: 400 1rem var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive-600); box-shadow: 0 0 0 3px rgba(74, 90, 58, 0.12); }
label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--olive-900); margin-bottom: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); font-weight: 400; margin: 0; }
.check input { width: 18px; min-height: 18px; height: 18px; margin-top: 3px; padding: 0; accent-color: var(--olive-900); flex: none; }

.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.contact h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.channels { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-quote {
  margin: 40px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--olive-900);
}
.contact-quote small { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); }

/* Llamado a contacto en el home */
.contact-teaser { margin-bottom: 0; max-width: 760px; }
.contact-teaser h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
.contact-teaser .lead { margin-bottom: 36px; }
.channels li { padding: 18px 0; border-top: 1px solid var(--line); }
.channels small { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.channels a { font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; color: var(--olive-900); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-success { display: none; padding: 30px; background: var(--sand-100); border-radius: var(--radius); font-family: var(--font-display); font-size: 1.5rem; color: var(--olive-900); }
.is-sent .form-grid { display: none; }
.is-sent .form-success { display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-form { order: -1; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--olive-900); color: var(--sand-300); padding: 80px 0 36px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(251, 248, 242, 0.12); }
.footer-grid img { width: 96px; margin-bottom: 20px; }
.footer-quote { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--sand-100); max-width: 340px; line-height: 1.35; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ochre-soft); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; color: var(--sand-200); }
.site-footer a:hover { color: var(--sand-50); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 72px 0 0; font-size: 0.8rem; color: var(--olive-400); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante ------------------------------------------------------ */
.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--olive-900);
  color: var(--sand-50);
  box-shadow: 0 14px 30px -12px rgba(31, 34, 25, 0.6);
  transition: transform 0.3s var(--ease);
}
.wa:hover { transform: translateY(-3px); }
.wa svg { width: 26px; height: 26px; }

/* Animación de entrada --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ==========================================================================
   Subpágina: Biblioteca cervantina
   ========================================================================== */
.page-hero { padding: 184px 0 90px; text-align: center; background: var(--sand-100); }
.page-hero .lead { margin-inline: auto; }
.page-nav {
  position: sticky;
  top: 100px;
  z-index: 30;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.page-nav ul { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; }
.page-nav a { display: block; padding: 8px 16px; font-size: 0.88rem; text-decoration: none; color: var(--muted); border-radius: 999px; white-space: nowrap; }
.page-nav a:hover { color: var(--olive-900); background: var(--sand-100); }
@media (max-width: 640px) { .page-nav ul { justify-content: flex-start; } }

.timeline { position: relative; max-width: 880px; margin-inline: auto; list-style: none; padding: 0; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 130px; width: 1px; background: var(--sand-300); }
.timeline li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 44px; padding-bottom: 42px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 125px;
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sand-50);
  border: 1px solid var(--ochre);
}
.timeline .year { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--olive-900); text-align: right; padding-right: 14px; }
.timeline h3 { font-size: 1.45rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.timeline .on-trip {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid var(--ochre-soft);
}
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .timeline li::before { left: 0; top: 10px; }
  .timeline .year { text-align: left; padding: 0; font-size: 1.6rem; }
}

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work { background: var(--sand-50); padding: 32px 28px; }
.work .meta { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); margin-bottom: 12px; }
.work h3 { font-size: 1.45rem; font-style: italic; }
.work p { font-size: 0.92rem; color: var(--muted); margin: 0; }

.readings { list-style: none; padding: 0; margin: 0; max-width: 720px; margin-inline: auto; }
.readings li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.readings em { font-family: var(--font-display); font-size: 1.35rem; color: var(--olive-900); }
.readings span { color: var(--muted); font-size: 0.9rem; text-align: right; }
@media (max-width: 560px) { .readings li { flex-direction: column; gap: 2px; } .readings span { text-align: left; } }

.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.tab-panel[hidden] { display: none; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quotes blockquote {
  margin: 0;
  padding: 34px 32px;
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.38;
  color: var(--olive-900);
}
.quotes cite { display: block; margin-top: 14px; font-family: var(--font-body); font-style: normal; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ochre); }
.proverbs { columns: 2 300px; column-gap: 48px; list-style: none; padding: 0; margin: 0; }
.proverbs li { break-inside: avoid; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; font-family: var(--font-display); font-size: 1.4rem; color: var(--olive-900); line-height: 1.3; }
.proverbs li::before { content: ""; position: absolute; left: 4px; top: 30px; width: 7px; height: 7px; border: 1px solid var(--ochre); transform: rotate(45deg); }
.episodes { width: 100%; border-collapse: collapse; }
.episodes th { text-align: left; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 16px 14px 0; border-bottom: 1px solid var(--olive-900); }
.episodes td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.94rem; color: var(--muted); }
.episodes td:first-child { font-family: var(--font-display); font-size: 1.3rem; color: var(--olive-900); width: 32%; }
.episodes td:nth-child(2) { white-space: nowrap; color: var(--ochre); width: 100px; }
.table-scroll { overflow-x: auto; }
.food-note { margin-top: 56px; padding: 36px; background: var(--olive-900); color: var(--sand-200); border-radius: var(--radius); }
.food-note h3 { color: var(--sand-50); }
.food-note blockquote { margin: 0 0 12px; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--sand-50); line-height: 1.4; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

.quiz { max-width: 720px; margin-inline: auto; background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); }
.quiz__progress { height: 2px; background: var(--sand-200); margin-bottom: 30px; }
.quiz__progress i { display: block; height: 100%; width: 0; background: var(--ochre); transition: width 0.4s var(--ease); }
.quiz__count { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.quiz h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 26px; }
.options { display: grid; gap: 12px; }
.options button {
  text-align: left;
  min-height: 56px;
  padding: 14px 20px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  background: transparent;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.options button:hover:not(:disabled) { border-color: var(--olive-600); background: var(--sand-100); }
.options button.is-right { border-color: var(--olive-600); background: rgba(74, 90, 58, 0.1); color: var(--olive-900); font-weight: 500; }
.options button.is-wrong { border-color: #a65a43; background: rgba(166, 90, 67, 0.08); color: #7d3f2c; }
.options button:disabled { cursor: default; }
.options button { position: relative; padding-right: 48px; }
.options button.is-right::after, .options button.is-wrong::after { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-weight: 600; }
.options button.is-right::after { content: "✓"; color: var(--olive-600); }
.options button.is-wrong::after { content: "✕"; color: #a65a43; }
.quiz__feedback { min-height: 28px; margin: 20px 0; font-size: 0.93rem; color: var(--muted); }
.quiz__result { text-align: center; }
.quiz__result strong { display: block; font-family: var(--font-display); font-size: 4rem; font-weight: 500; color: var(--olive-900); line-height: 1; }
.quiz__result h3 { margin-top: 14px; }

/* ==========================================================================
   Páginas legales (aviso de privacidad)
   ========================================================================== */
.legal { color: var(--muted); }
.legal h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 56px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.legal li { padding: 4px 0; }
.legal li::marker { color: var(--ochre); }
.legal a { color: var(--olive-900); text-decoration-color: var(--ochre); text-underline-offset: 3px; }

/* Formulario de contacto: errores, estado y campo trampa */
.field-error { margin: 6px 0 0; font-size: 0.82rem; color: #a65a43; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: #a65a43; }
.form-status { margin: 0; font-size: 0.92rem; color: #a65a43; }
.form-status:empty { display: none; }
.recaptcha-note { margin: 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.recaptcha-note a { color: inherit; text-underline-offset: 2px; }
/* La insignia chocaba con el botón de WhatsApp; la sustituye .recaptcha-note */
.grecaptcha-badge { visibility: hidden; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Página en construcción (includes/en-construccion.php)
   ========================================================================== */
.construction {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6svh, 64px) 0;
  background: var(--sand-100);
  text-align: center;
}
.construction__inner { width: min(100% - 2 * var(--gutter), 640px); display: flex; flex-direction: column; align-items: center; }
.construction__logo { width: clamp(88px, 12svh, 120px); height: auto; }
.construction__media {
  position: relative;
  width: min(100%, 300px);
  height: clamp(180px, 34svh, 360px);
  margin: clamp(24px, 4svh, 40px) 0 clamp(28px, 5svh, 48px);
}
.construction__media::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--ochre);
  border-radius: 999px 999px var(--radius) var(--radius);
  opacity: 0.55;
}
.construction .eyebrow { margin-bottom: 16px; }
.construction .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.construction h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 0.25em; }
.construction h1 em { color: var(--ochre); font-weight: 400; white-space: nowrap; }
.construction__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--olive-600);
  margin-bottom: 12px;
}
.construction__text { color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.construction .btn-row { justify-content: center; }
.construction__quote {
  margin: clamp(32px, 6svh, 56px) 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--olive-900);
}
.construction__quote small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}
