:root {
  --bg-gradient: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
  --text-dark: #222;
  --text-light: #888;

  /* Audiolibros corner accent — reuse this var for the audio player outline later */
  --accent-audiolibros: #6F98EC;
  --accent-audiolibros-soft: rgba(111, 152, 236, 0.15);

  /* 3D Dark Clay Properties (kept from the base template) */
  --clay-dark-bg: #2a2a2a;
  --clay-shadow-out: 10px 15px 25px rgba(0, 0, 0, 0.15),
    -5px -5px 15px rgba(255, 255, 255, 0.8);
  --clay-shadow-in: inset 2px 2px 5px rgba(255, 255, 255, 0.15),
    inset -2px -2px 5px rgba(0, 0, 0, 0.5);

  /* Center logo glow, blue-tinted instead of the old red brain glow */
  --logo-glow: drop-shadow(0 10px 15px rgba(111, 152, 236, 0.35));

  /* Same footprint as the Essays / About center mark — adjust here if that page uses a different size */
  --logo-size: 175px;

  /* Audiolibros blue Maya banner — bottom strip only on this page */
  --categories-banner-h: 41px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-dark);
  min-height: 120vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  /* offset for the fixed permanent header below */
  padding-top: 72px;
  /* reserve room for the fixed blue Maya banner pinned to the bottom */
  padding-bottom: var(--categories-banner-h);
}

/* --- Permanent Header / Nav (same spirit as Essays / About / Interpreter Z,
   recolored for the light Audiolibros palette) --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-nav-logo {
  display: flex;
  align-items: center;
}
.site-nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.site-nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.site-nav-links a {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.site-nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-audiolibros);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--accent-audiolibros);
}
.site-nav-links a:hover::after,
.site-nav-links a.active::after {
  transform: scaleX(1);
}

.site-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.site-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}
.site-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-hamburger.open span:nth-child(2) { opacity: 0; }
.site-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.site-mobile-menu.open { display: flex; }
.site-mobile-menu a {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
}
.site-mobile-menu a:hover { color: var(--accent-audiolibros); }

@media (max-width: 768px) {
  .site-nav-links { display: none; }
  .site-hamburger { display: flex; }
}

/* --- Header / Top brand ("Santos Armada" / "Audiolibros") — enlarged --- */
.top-brand {
  margin-top: 40px;
  text-align: center;
  text-transform: uppercase;
}
.top-brand-line1 {
  display: block;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text-light);
}
.top-brand-line2 {
  display: block;
  font-size: 22px;
  letter-spacing: 5px;
  font-weight: 700;
  color: var(--accent-audiolibros);
  margin-top: 6px;
}
.top-brand-line3 {
  display: block;
  font-family: "Arial Black", "Inter", sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -1px;
  color: #000;
  margin-top: 10px;
  line-height: 1.1;
}

/* --- Main Graphic Container --- */
.graphic-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Concentric Circles --- */
.circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.circles::before {
  content: "";
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
  position: absolute;
}
.circles::after {
  content: "";
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  position: absolute;
}
.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-audiolibros);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  animation: heartbeatPulse 3s infinite ease-out;
  pointer-events: none;
  z-index: 1;
}
.pulse-ring-2 { animation-delay: 1s; }
.pulse-ring-3 { animation-delay: 2s; }

@keyframes heartbeatPulse {
  0% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* --- Center Logo (replaces the brain) --- */
.logo-link {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-center {
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  filter: var(--logo-glow);
}

/* --- Connecting Lines --- */
.lines-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.line-path {
  fill: none;
  stroke: var(--accent-audiolibros);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
}

/* --- Floating Ola Nodes (4) --- */
.icon-node {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--clay-dark-bg);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: var(--clay-shadow-out), var(--clay-shadow-in);
  z-index: 5;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.icon-node:hover {
  border-color: var(--accent-audiolibros);
  box-shadow: var(--clay-shadow-out), var(--clay-shadow-in),
    0 0 0 3px var(--accent-audiolibros-soft);
}

/* Ordinal + "OLA" stacked inside the box, e.g. "1ra" / "OLA" */
.node-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.node-symbol .ord {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-audiolibros);
}
.node-symbol .ola {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-audiolibros);
  margin-top: 3px;
}

.node-label {
  position: absolute;
  top: 72px;
  width: 170px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  pointer-events: none;
  line-height: 1.4;
}

/* Node Positions — diamond layout, 4 nodes */
.n-l1 {
  top: 20%;
  left: 15%;
}
.n-l3 {
  bottom: 20%;
  left: 15%;
}
.n-r1 {
  top: 20%;
  right: 15%;
}
.n-r3 {
  bottom: 20%;
  right: 15%;
}

/* --- Typography Section (Essays-style weight, blue accent) --- */
.text-section {
  text-align: center;
  margin-top: 56px;
  position: relative;
  z-index: 10;
  padding: 0 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-light);
  text-transform: uppercase;
  margin: 0 auto 12px;
  max-width: 560px;
  line-height: 1.7;
}
h1 {
  font-family: "Arial Black", "Inter", sans-serif;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: -1px;
  color: #333;
  line-height: 1.2;
  text-transform: uppercase;
}
h1 strong {
  font-weight: 900;
  color: var(--accent-audiolibros);
  display: block;
  font-size: 48px;
}
.pointer-emoji {
  font-size: 24px;
  margin-top: 20px;
  display: inline-block;
}

/* --- Footer logo (links home, same treatment as Essays / About) --- */
.footer-logo-link {
  margin-top: 100px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.footer-logo-link:hover,
.footer-logo-link:active {
  opacity: 1;
}
.footer-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}
.footer-caption {
  font-size: 10px;
  letter-spacing: 8px;
  color: #bbb;
  transition: color 0.2s ease;
}
.footer-logo-link:hover .footer-caption,
.footer-logo-link:active .footer-caption {
  color: var(--accent-audiolibros);
  text-decoration: underline;
}

.footer-links {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  font-size: 13px;
  letter-spacing: 1px;
}
.footer-links a {
  color: #bbb;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-audiolibros);
}

/* --- Mission Statement — last element on the page --- */
.mission-section {
  max-width: 620px;
  margin: 0 auto 80px;
  padding: 40px 24px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.mission-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-audiolibros);
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.6;
}
.mission-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .node-label {
    width: 130px;
    font-size: 8.5px;
  }
  .top-brand-line2 {
    font-size: 18px;
    letter-spacing: 3px;
  }
  .top-brand-line3 {
    font-size: 30px;
  }
}

/* ---------- MAYA BANNER (Audiolibros blue, bottom only) ----------
   No top banner on this page — just a fixed strip under everything,
   below the footer/mission section, same as the rest of the site. */
.categories-banner-bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--categories-banner-h);
  z-index: 200;
  overflow: hidden;
  background: #000;
}

.categories-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  :root {
    --categories-banner-h: 27px;
  }
}