/* ============================================================
   READY TO PREPARE — Hoja de estilos
   Estética terminal: fósforo verde (digital) + ámbar (analógico)
   ============================================================ */

:root {
  --bg: #050a07;
  --bg-alt: #08120c;
  --bg-panel: #0a1610;
  --green: #3dffa4;
  --green-soft: rgba(61, 255, 164, 0.12);
  --green-dim: #1d7a4e;
  --amber: #ffb02e;
  --amber-soft: rgba(255, 176, 46, 0.12);
  --amber-dim: #8a5d13;
  --text: #b9ccbe;
  --bright: #e6f5ea;
  --dim: #5f7568;
  --border: #1b2e22;
  --border-light: #2a4433;
  --radius: 6px;
  --mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(61, 255, 164, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 255, 164, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Efecto scanline CRT sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.14) 0px,
    rgba(0, 0, 0, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
  z-index: 999;
}

::selection { background: var(--green); color: #04140a; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.green  { color: var(--green); }
.amber  { color: var(--amber); }
.dim    { color: var(--dim); }
.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.pulse { animation: pulse 1.6s ease-in-out infinite; color: var(--green); }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ============ BARRA DE ESTADO ============ */
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  text-transform: lowercase;
}
.statusbar .sb-left { color: var(--green); font-weight: 700; }
@media (max-width: 720px) { .statusbar .sb-center { display: none; } }

/* ============ NAVEGACIÓN ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(5, 10, 7, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo {
  color: var(--bright);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.logo .dim { color: var(--dim); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }
.btn-join {
  border: 1px solid var(--green);
  padding: 6px 14px !important;
  border-radius: 3px;
  color: var(--green) !important;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-join:hover {
  background: var(--green);
  color: #04140a !important;
  box-shadow: 0 0 14px rgba(61, 255, 164, 0.4);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--green);
  font-size: 20px;
  padding: 2px 12px;
  border-radius: 3px;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  padding: 90px 24px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
/* Fondo estrellado del hero: noche, montañas y línea boscosa */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.6;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(5, 10, 7, 0.75) 0%,
    rgba(5, 10, 7, 0.35) 45%,
    rgba(5, 10, 7, 0.82) 100%);
}
.boot-line {
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--bright);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 .green  { color: var(--green); text-shadow: 0 0 18px rgba(61, 255, 164, 0.45); }
.hero h1 .amber  { color: var(--amber); text-shadow: 0 0 18px rgba(255, 176, 46, 0.35); }
.section-motto {
  color: var(--bright);
  font-size: 19px;
  line-height: 1.55;
  margin-top: 14px;
}
.section-motto .amber {
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 176, 46, 0.35);
}
.section-motto .green {
  color: var(--green);
  text-shadow: 0 0 18px rgba(61, 255, 164, 0.45);
}
.hero-sub { max-width: 56ch; margin-bottom: 14px; }
.hero-quote {
  color: var(--green);
  font-style: italic;
  margin-bottom: 32px;
}
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn.primary {
  background: var(--green);
  color: #04140a;
  border: 1px solid var(--green);
  box-shadow: 0 0 0 rgba(61, 255, 164, 0);
}
.btn.primary:hover {
  box-shadow: 0 0 22px rgba(61, 255, 164, 0.45);
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green-dim);
}
.btn.ghost:hover { border-color: var(--green); text-decoration: none; }

/* ============ VENTANA DE TERMINAL ============ */
.term-window {
  background: #060d09;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 1px rgba(61, 255, 164, 0.15);
  overflow: hidden;
}
.term-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border-light);
}
.dot:first-child { background: #2f5c42; }
.term-title {
  margin-left: 10px;
  color: var(--dim);
  font-size: 12px;
}
.term-body {
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.75;
  min-height: 300px;
}
.term-body .line { display: block; white-space: pre-wrap; }
.term-body .cmd { color: var(--bright); }
.term-body .ok { color: var(--green); }
.term-body .warn { color: var(--amber); }
.term-body .out { color: var(--text); }
.term-body .done {
  color: var(--green);
  font-weight: 700;
  margin-top: 10px;
  text-shadow: 0 0 14px rgba(61, 255, 164, 0.5);
}
.term-body .answer { color: var(--bright); font-weight: 700; }
.cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ============ SECCIONES ============ */
.section { padding: 90px 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* planos sigue a otra sección alt (academia): sin borde superior para evitar línea doble */
#planos { border-top: none; }
.container { max-width: 1120px; margin: 0 auto; }
.section-title {
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  text-transform: lowercase;
  margin-bottom: 10px;
}
.section-cmd {
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 44px;
}
.section-sub { max-width: 68ch; margin: -28px 0 44px; }

/* ============ QUOTE / BLOQUES ============ */
.quote-block {
  border-left: 3px solid var(--green);
  background: var(--bg-panel);
  padding: 26px 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 44px;
  color: var(--bright);
  font-size: 18px;
  max-width: 88ch;
}

/* ============ CARDS FILOSOFÍA ============ */
.filosofia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--green-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.card h3 {
  color: var(--bright);
  font-size: 15px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card p { font-size: 14px; }
.card-cmd {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}
.card-link { font-size: 13px; display: inline-block; margin-top: 14px; }

/* ============ DOS PLANOS ============ */
.planes-grid {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 40px;
}
.plane {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 34px 30px;
}
.plane-digital {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
  box-shadow: inset 0 0 46px rgba(61, 255, 164, 0.05);
}
.plane-analog {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
  box-shadow: inset 0 0 46px rgba(255, 176, 46, 0.05);
}
.plane-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 14px;
}
.plane-num { color: var(--dim); font-size: 13px; }
.plane-digital h3 {
  color: var(--green);
  font-size: 20px;
  text-shadow: 0 0 14px rgba(61, 255, 164, 0.35);
}
.plane-analog h3 {
  color: var(--amber);
  font-size: 20px;
  text-shadow: 0 0 14px rgba(255, 176, 46, 0.3);
}
.plane-tag {
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: 0.06em;
}
.plane-desc { font-size: 14px; margin-bottom: 18px; }
.plane ul { list-style: none; }
.plane ul li { padding: 7px 0; font-size: 14px; }
.plane-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--dim);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-panel);
}
.plane-connector::before { content: ""; }

.bridge-quote {
  border: 1px dashed var(--green-dim);
  border-radius: var(--radius);
  padding: 34px 36px;
  text-align: center;
  color: var(--bright);
  font-size: clamp(17px, 2.4vw, 22px);
  max-width: 74ch;
  margin: 0 auto;
}
.bridge-cmd {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 14px;
}
.bridge-quote cite {
  display: block;
  color: var(--dim);
  font-size: 13px;
  margin-top: 12px;
  font-style: normal;
}

/* ============ MANIFIESTO ============ */
.manifesto-window { margin: 0 auto; }
.manifesto-body { min-height: 0; font-size: 15px; }
.manifesto-body p { margin-bottom: 20px; }
.manifesto-body strong { color: var(--bright); }
.manifesto-strong {
  color: var(--green);
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  padding: 18px 0;
}
.manifesto-final {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

/* ============ ITINERARIOS ============ */
.itinerarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.itinerario {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, border-color 0.25s;
}
.itinerario:hover { transform: translateY(-4px); }
.itinerario-digital:hover { border-color: var(--green-dim); }
.itinerario-analog:hover { border-color: var(--amber-dim); }
.itinerario-header { margin-bottom: 20px; border-bottom: 1px dashed var(--border-light); padding-bottom: 14px; }
.itinerario-header h3 { color: var(--bright); font-size: 16px; margin-bottom: 8px; letter-spacing: 0.03em; }
.itinerario-digital .itinerario-header h3 { color: var(--green); }
.itinerario-analog .itinerario-header h3 { color: var(--amber); }
.fields { list-style: none; }
.fields li { border-bottom: 1px solid var(--border); }
.fields li:last-child { border-bottom: none; }
.fields a {
  display: block;
  padding: 11px 2px;
  color: var(--text);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.fields a:hover { color: var(--bright); background: rgba(61, 255, 164, 0.05); }
.field-code {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 7px;
  margin-right: 8px;
}
.field-desc { color: var(--dim); font-size: 12px; }
.disclaimer {
  margin-top: 34px;
  font-size: 12px;
  color: var(--dim);
  border-top: 1px dashed var(--border-light);
  padding-top: 20px;
}

/* ============ TRIBU ============ */
.tribu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.tribu-cta {
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  background: var(--bg-panel);
  box-shadow: inset 0 0 60px rgba(61, 255, 164, 0.04);
}
.tribu-cmd { color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.tribu-cmd .green { color: var(--green); }
.tribu-cta h3 {
  color: var(--bright);
  font-size: clamp(20px, 2.6vw, 28px);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input {
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--bright);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  min-width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--green); }
.newsletter-form input::placeholder { color: var(--dim); }

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3 {
  color: var(--bright);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.contact-mail { font-size: 16px; font-weight: 700; }
.team { list-style: none; }
.team li { padding: 5px 0; font-size: 13px; word-break: break-all; overflow-wrap: anywhere; }
.team a { text-decoration: none; font-size: 11px; }
.team a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 40px;
  background: var(--bg-alt);
}
.footer-grid { text-align: center; }
.footer-motto {
  color: var(--green);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 30px;
}
.footer-links { margin-bottom: 30px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text); font-size: 13px; }
.footer-copy { color: var(--dim); font-size: 12px; }
.footer-npubs { margin-bottom: 30px; display: flex; flex-direction: column; gap: 6px; }
.npub-line { font-size: 12px; color: var(--text); word-break: break-all; overflow-wrap: anywhere; max-width: 68ch; margin: 0 auto; text-align: left; }
.npub-line a { text-decoration: none; }
.npub-line a:hover { text-decoration: underline; }

/* ============ ANIMACIONES REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ PÁGINAS INTERIORES ============ */
.page-hero {
  padding: 80px 24px 70px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
/* Grid de dos columnas iguales en la cabecera de academia:
   fila 1 = cabeceras (misma altura), fila 2 = tarjetas (misma altura, misma base) */
.page-hero .hero-duo-grid { grid-template-columns: repeat(2, 1fr); }
.page-hero .hero-duo-grid .itinerario-heading {
  display: flex;
  flex-direction: column;
}
.page-hero .hero-duo-grid .itinerario-heading p { margin-bottom: 0; }
.page-hero .hero-duo-grid article { width: 100%; }
/* La tarjeta destacada no debe encogerse: mismo ancho que su columna */
.page-hero .hero-duo-grid .product-featured { max-width: none; }
/* Sincronizar contenido interno: botones pegados a la base en ambas tarjetas */
.page-hero .hero-duo-grid article .term-body {
  display: flex;
  flex-direction: column;
}
.page-hero .hero-duo-grid article .product-actions { margin-top: auto; }
@media (max-width: 720px) {
  .page-hero .hero-duo-grid { grid-template-columns: 1fr; }
}
/* Fondo de academia: menos zoom, casi toda la imagen visible */
.page-hero .hero-bg img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 140%;
  top: -20%;
  object-position: center center;
}
/* Héroes con imagen vertical (blog, podcast, contacto):
   imagen completa al 100% de detalle sobre un relleno difuminado,
   de modo que se aprecia la ilustración íntegra sin recortes */
.page-hero.hero-tall {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-hero .hero-bg img.bg-blur {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(32px) brightness(0.55) saturate(1.1);
  transform: scale(1.15);
}
.page-hero .hero-bg img.bg-main {
  left: 50%;
  top: 0;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 14%, black 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 14%, black 86%, transparent 100%);
}
.page-lead { max-width: 62ch; font-size: 17px; }

/* Encabezado de itinerario */
.itinerario-heading {
  margin-bottom: 40px;
  padding: 26px 30px;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.itinerario-heading h2 {
  color: var(--bright);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.heading-digital h2 { color: var(--green); text-shadow: 0 0 14px rgba(61, 255, 164, 0.3); }
.heading-analog h2 { color: var(--amber); text-shadow: 0 0 14px rgba(255, 176, 46, 0.3); }
.itinerario-heading p { margin-top: 10px; font-size: 14px; }

/* Grid de cursos y cards de curso */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.course .term-body { min-height: 0; font-size: 14px; }
.course h3 {
  color: var(--bright);
  font-size: 16px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.course-tagline { color: var(--dim); font-style: italic; margin-bottom: 16px; }
.course-intro { margin-bottom: 18px; }
.course-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}
.course-analog .course-label { color: var(--amber); }
.course-text { font-size: 14px; margin-bottom: 8px; }
.course-list {
  list-style: none;
  margin-bottom: 10px;
}
.course-list li { padding: 5px 0; font-size: 14px; }
.course-sub { border-top: 1px dashed var(--border-light); padding-top: 6px; }
.course-note { font-size: 12px; margin-top: 14px; }

/* Badges de estado */
.status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
}
.status-ok {
  color: var(--green);
  border: 1px solid var(--green-dim);
  background: var(--green-soft);
}
.status-soon {
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  background: var(--amber-soft);
}

/* Índice de contenidos plegable */
.course-index {
  margin-top: 18px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
}

/* Imagen de curso en la academia */
.course-img-wrap {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #020503;
  padding: 0;
  text-align: center;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
  height: 320px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 30px 8px #020503aa;
  pointer-events: none;
}
.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.course-price {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.course-price a { text-decoration: underline; }

/* ============ AJUSTE PROFESIONAL DE IMÁGENES ============ */

/* Emblema circular flotante del hero */
.hero-logo-big {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 6px 28px;
  margin-bottom: 4px;
}
.emblem-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  animation: emblem-float 6s ease-in-out infinite;
}
.emblem-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128%;
  height: 128%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(61, 255, 164, 0) 54%,
    rgba(61, 255, 164, 0.42) 74%,
    rgba(61, 255, 164, 0.18) 90%,
    rgba(61, 255, 164, 0) 100%);
  filter: blur(10px);
  pointer-events: none;
}
.emblem-wrap img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  transform: translateX(10px);
}
@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Cabecera de imagen de página (blog, podcast, contacto) */
.page-hero-img {
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  background: #020503;
}
.page-hero-img img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  border-radius: var(--radius);
}
.page-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px 10px #050a07;
  pointer-events: none;
}

/* Imágenes en tarjetas de blog — se muestran en toda su extensión, sin recortes */
.post-img-wrap {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  background: #020503;
}
.post-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Filas de imágenes agrupadas (gifs de cofundadores · premios de sorteos) */
.post-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.post-img-row .post-img-cell { margin: 0; }
.post-img-row .post-img-wrap { margin-bottom: 10px; }
.post-img-row-eq .post-img-wrap { height: 250px; }
.post-img-row-eq .post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.post-img-row-4 { grid-template-columns: repeat(4, 1fr); }
.post-img-row-4 .post-img-wrap { height: 220px; }
.post-img-row-4 .post-img-cap { font-size: 10px; }
.post-img-cap {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  letter-spacing: 0.4px;
}
.post-img-single { grid-template-columns: minmax(0, 340px); justify-content: center; }
.post-img-single-wide { grid-template-columns: minmax(0, 520px); justify-content: center; }
@media (max-width: 720px) {
  .post-img-row { grid-template-columns: 1fr; }
  .post-img-row-eq .post-img-wrap { height: auto; }
  .post-img-row-eq .post-img-wrap img { height: auto; }
  .post-img-single-wide { grid-template-columns: minmax(0, 420px); }
}

/* Imágenes de perfil de equipo */
.team-img-wrap {
  height: 260px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  background: #020503;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.team-img-wrap::after, .post-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 26px 6px #02050399;
  pointer-events: none;
}

/* Regulación de encabezados de cursos: altura y distancia equilibradas */
.course .term-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em;
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.35;
}
.course .term-body .course-tagline {
  display: block;
  min-height: 1.6em;
  margin-bottom: 12px;
}
.product .term-body h3 {
  display: block;
  min-height: 2.4em;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.course-index summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  user-select: none;
}
.course-index summary:hover { color: var(--bright); }
.course-index[open] summary { margin-bottom: 12px; }

/* ============ TIENDA ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.product .term-body { min-height: 0; }
.product-img-wrap {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 10px;
  background: #020503;
  margin-bottom: 16px;
  text-align: center;
}
.product-img-wrap img {
  max-width: 100%;
  max-height: 210px;
  border-radius: 3px;
  filter: saturate(0.9);
  transition: filter 0.25s;
}
.product-img-wrap img:hover { filter: saturate(1.1) drop-shadow(0 0 12px rgba(61, 255, 164, 0.25)); }
.product h3 {
  color: var(--bright);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.product-price {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-price .dim { color: var(--dim); font-size: 12px; font-weight: 400; }
.product-desc { font-size: 13px; margin-bottom: 8px; }
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.product-featured { max-width: 420px; margin: 0 auto; }
.cart-summary { margin-top: 44px; }
.cart-summary .term-body { min-height: 0; }

/* ============ BLOG ============ */
.blog-list {
  display: grid;
  gap: 26px;
  max-width: 860px;
}
.blog-post h2 {
  color: var(--bright);
  font-size: 22px;
  margin-bottom: 8px;
}
.post-meta {
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 10px;
}
.post-tagline {
  color: var(--green);
  font-style: italic;
  margin-bottom: 16px;
}
.post-footer {
  margin-top: 16px;
  border-top: 1px dashed var(--border-light);
  padding-top: 14px;
}
.post-quote {
  color: var(--bright);
  font-weight: 700;
  margin: 14px 0;
  text-align: center;
}

/* ============ EQUIPO ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
/* Tarjeta Ready to Prepare: un nivel por debajo de los fundadores, centrada */
.team-grid-single {
  grid-template-columns: minmax(300px, 440px);
  justify-content: center;
  margin-top: 24px;
}
.team-card h3 {
  color: var(--bright);
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.team-role {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-quote {
  border-left: 3px solid var(--amber);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--bright);
  font-style: italic;
  font-size: 13px;
}

/* Imagen newsletter en el CTA de la tribu */
.tribu-cta .newsletter-img {
  max-width: 420px;
  height: 200px;
  margin: 0 auto 26px;
}
.tribu-cta .newsletter-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nav activa */
.nav-links a.active {
  color: var(--green);
  font-weight: 700;
}
.nav-links a.active::before { content: "▸ "; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .planes-grid { grid-template-columns: 1fr; }
  .plane-digital { border-radius: var(--radius) var(--radius) 0 0; border-right: 1px solid var(--border-light); }
  .plane-analog { border-radius: 0 0 var(--radius) var(--radius); border-left: 1px solid var(--border-light); }
  .plane-connector { border: none; background: var(--bg-panel); padding: 10px 0; }
  .itinerarios-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

/* Mejora legibilidad páginas de curso */
.course-text, .page-lead { text-align: justify; }
.course-list { list-style: none; padding-left: 4px; }
.course-list li { padding: 4px 0 4px 14px; position: relative; }
.course-list li::before { content: "└"; position: absolute; left: 0; color: var(--green); }
.course-list li strong { color: var(--green); }
.term-body .course-label { margin-top: 18px; border-top: 1px dashed var(--border-light); padding-top: 12px; }
.term-body .course-label:first-of-type { border-top: none; }
/* Perfil fundadores: foto completa sin recortes */
.team-img-wrap { height: 420px; }
.team-img-wrap img { object-fit: contain; background: #020503; }
