/* ===================================================================
   Adibergen — tokens
   =================================================================== */
:root {
  --bg: #0d2216;
  --bg-panel: #173923;
  --bg-panel-border: #2d5c3a;

  --green: #55f0a0;
  --green-deep: #2c8f5c;
  --blue: #6f9bff;
  --blue-deep: #3a5bb0;

  --text: #eaf3ec;
  --text-body: #c9d3cc;
  --text-muted: #8a978f;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;

  --measure: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative;
  animation: hero-in 900ms ease-out both;
}
@keyframes hero-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__img {
  width: 100%;
  height: min(56vw, 62vh);
  min-height: 260px;
  object-fit: cover;
}

.hero__nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  padding: 1.1rem 1rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--bg-panel-border);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.hero__nav a {
  color: var(--text-body);
  text-decoration: none;
  margin: 0 0.15rem;
}
.hero__nav a:hover { color: var(--green); }

.hero__nav-blog {
  color: var(--green) !important;
}

/* ===================================================================
   Sections & prose
   =================================================================== */
.section { padding: clamp(2.5rem, 6vw, 5rem) 1.5rem; }
.section--intro { padding-top: clamp(2rem, 5vw, 3.5rem); }

.section__banner {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.prose {
  max-width: var(--measure);
  margin: 0 auto;
}

.prose p {
  margin: 0 0 1.35em;
  line-height: 1.75;
}

.prose p.attribution {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: -0.5em;
}

.prose cite { font-style: italic; }

/* Pull quotes */
.pull-quote {
  margin: 2.25em 0;
  padding: 0.2em 0 0.2em 1.35em;
  border-left: 3px solid var(--green-deep);
}
.pull-quote--blue { border-left-color: var(--blue-deep); }

.pull-quote p {
  font-style: italic;
  color: var(--text);
  font-size: 1.12em;
  line-height: 1.6;
  margin-bottom: 0.4em;
}
.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.pull-quote cite span { font-style: italic; }

/* Lettered list (a, b, c… — mirrors the source text) */
.lettered-list {
  list-style-type: lower-alpha;
  padding-left: 1.4em;
  margin: 1.5em 0 2em;
}
.lettered-list li {
  margin-bottom: 0.9em;
  line-height: 1.7;
  padding-left: 0.3em;
}

/* ===================================================================
   Audio player
   =================================================================== */
.player {
  max-width: var(--measure);
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: 10px;
  padding: 1.1rem;
}

.player__cover {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.player__info { min-width: 0; flex: 1; }

.player__eyebrow {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.15em;
}

.player__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.6em;
}

.player__audio {
  width: 100%;
  height: 34px;
  accent-color: var(--green);
}

/* ===================================================================
   CTA
   =================================================================== */
.section--cta { padding-top: 0; }

.cta {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg));
  border: 1px solid var(--bg-panel-border);
  border-radius: 14px;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
}

.cta__eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--blue);
  font-size: 0.92rem;
  margin: 0 0 0.6em;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--text);
  margin: 0 0 0.6em;
}

.cta p { max-width: 46ch; margin: 0 auto 1.6em; line-height: 1.6; }

.cta__button {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bg);
  background: var(--green);
  text-decoration: none;
  padding: 0.85em 2em;
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease;
}
.cta__button:hover { background: #7bffb7; transform: translateY(-1px); }

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--bg-panel-border);
}

.footer__mark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 0.9em;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.footer__nav a { color: var(--text-body); text-decoration: none; margin: 0 0.15rem; }
.footer__nav a:hover { color: var(--green); }

/* ===================================================================
   Responsive
   =================================================================== */
/* ===================================================================
   Volver al menú
   =================================================================== */
.back-to-nav {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--bg-panel-border);
  background: var(--bg-panel);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 40;
}
.back-to-nav.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-nav:hover { border-color: var(--green); }

@media (max-width: 560px) {
  .player { flex-direction: column; align-items: flex-start; }
  .player__cover { width: 100%; height: 160px; }
  .hero__nav { gap: 1.1rem; font-size: 0.92rem; }
}
