/*
 * Aleph Scriptorium - Plantilla Jekyll
 * Diseño minimalista blanco/negro
 * Plugin: gh-pages
 */

/* ========================================
   Variables
   ======================================== */

:root {
  /* Paleta B/N */
  --bg: #ffffff;
  --fg: #1a1a1a;
  --accent: #1a1a1a;
  --muted: #444444;
  --subtle: #666666;
  --border: #e5e5e5;
  --border-dark: #cccccc;
  
  /* Tipografía */
  --font-serif: "Charter", "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Monaco", "Consolas", monospace;
  
  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Anchos */
  --max-width: 720px;
  --max-width-wide: 1200px;
  
  /* Banderas */
  --blue: #2563eb;
  --black: #1a1a1a;
  --red: #dc2626;
  --yellow: #ca8a04;
  --orange: #ea580c;
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--fg);
  padding-bottom: var(--space-sm);
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-xs);
}

h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p {
  margin: var(--space-md) 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--fg);
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--border-dark);
  background: #fafafa;
  font-style: italic;
}

blockquote p:first-child { margin-top: 0; }
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--border);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-md);
  border-radius: 4px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

pre a {
  color: var(--bg);
}

pre a:hover {
  color: var(--border);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg);
}

/* ========================================
   Header
   ======================================== */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
}

.site-title .aleph {
  font-size: 1.5rem;
  margin-right: var(--space-xs);
}

.site-nav {
  display: flex;
  gap: var(--space-lg);
}

.site-nav a {
  text-decoration: none;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  margin: 4px 0;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
  background: #fafafa;
}

/* Footer simplificado (v2) */
.footer-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.footer-simple .footer-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links-inline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
}

.footer-links-inline a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links-inline a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-links-inline .sep {
  color: var(--border-dark);
}

/* Footer legacy (3 columnas) - deprecated */
.footer-container:not(.footer-simple) {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-info p {
  margin: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links h4,
.footer-project h4 {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer-links ul,
.footer-project ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-project li {
  margin: var(--space-xs) 0;
}

.footer-links a,
.footer-project a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ========================================
   Product Cards (Home)
   ======================================== */

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.product-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--fg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-card .icon {
  font-size: 1.5rem;
}

.product-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.product-card .cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 2px;
}

.product-card .cta:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  margin: calc(-1 * var(--space-lg));
  margin-bottom: var(--space-lg);
  background: linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.5rem;
  border: none;
  margin-bottom: var(--space-sm);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.hero .cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero .btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.hero .btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.hero .btn-primary:hover {
  background: var(--muted);
}

.hero .btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
}

.hero .btn-secondary:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin: var(--space-xl) 0 var(--space-lg);
}

.section-header h2 {
  border: none;
  font-size: 1.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
}

/* ========================================
   Posts (Periódico)
   ======================================== */

.post-header {
  margin-bottom: var(--space-lg);
}

.post-header time {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-sans);
}

.post-header h1 {
  margin-top: var(--space-sm);
}

.post-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--space-sm);
}

.categories a {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.perfil {
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.perfil-blueflag { background: #dbeafe; color: var(--blue); }
.perfil-blackflag { background: #f3f4f6; color: var(--black); }
.perfil-redflag { background: #fee2e2; color: var(--red); }
.perfil-yellowflag { background: #fef3c7; color: var(--yellow); }
.perfil-orangeflag { background: #ffedd5; color: var(--orange); }

.post-content {
  margin: var(--space-lg) 0;
}

.post-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
}

/* ========================================
   Pages
   ======================================== */

.page-header {
  margin-bottom: var(--space-lg);
}

.page-description {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
}

.page-nav {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ========================================
   Banderas (Auditorías)
   ======================================== */

.blueflag { border-left: 4px solid var(--blue); padding-left: var(--space-md); }
.blackflag { border-left: 4px solid var(--black); padding-left: var(--space-md); }
.redflag { border-left: 4px solid var(--red); padding-left: var(--space-md); }
.yellowflag { border-left: 4px solid var(--yellow); padding-left: var(--space-md); }
.orangeflag { border-left: 4px solid var(--orange); padding-left: var(--space-md); }

/* ========================================
   Tables
   ======================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.9rem;
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: #fafafa;
}

/* ========================================
   Lists
   ======================================== */

ul, ol {
  padding-left: var(--space-lg);
}

li {
  margin: var(--space-sm) 0;
}

/* ========================================
   Sidebar Navigation
   ======================================== */

.sidebar-nav {
  font-size: 0.9rem;
}

.nav-section {
  margin-bottom: var(--space-lg);
}

.nav-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.nav-section ul {
  list-style: none;
  padding: 0;
}

.nav-section li {
  margin: var(--space-xs) 0;
}

.nav-section a {
  color: var(--muted);
  text-decoration: none;
}

.nav-section a:hover,
.nav-section a.active {
  color: var(--fg);
}

.view-all {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
}

/* ========================================
   TOC (Table of Contents)
   ======================================== */

.toc {
  background: #fafafa;
  padding: var(--space-md);
  border-radius: 4px;
  margin-bottom: var(--space-lg);
}

.toc h2 {
  font-size: 0.9rem;
  margin-top: 0;
  border: none;
}

.toc ul {
  list-style: none;
  padding-left: var(--space-md);
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--fg);
}

/* ========================================
   HOME PAGE (Portada)
   Monocromo (B/N) — el color lo aportan solo iconos/emoji.
   ======================================== */

.home-page {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-lg);
}

/* --- Hero --- */
.home-hero {
  text-align: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

/* --- Release Banner --- */
.release-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.release-badge {
  background: #7c3aed;
  color: white;
  padding: var(--space-xs) var(--space-sm);
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.release-text a {
  color: var(--bg);
  text-decoration: underline;
}

.release-text a:hover {
  color: var(--border);
}

.home-hero .hero-symbol {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.home-hero h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm) 0;
}

.home-hero .hero-tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 var(--space-md) 0;
}

.home-hero .hero-prompt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--subtle);
  margin: 0;
}

.home-hero .prompt-symbol {
  color: var(--muted);
}

/* --- Navegación principal --- */
.home-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg) var(--space-md);
  border: 2px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, transform 0.2s;
}

.nav-card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.nav-card .card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.nav-card .card-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-card .card-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-xs);
  text-align: center;
}

.nav-card-external {
  border-style: dashed;
}

/* Blueprint card destacada */
.nav-card-featured {
  background: linear-gradient(135deg, var(--fg) 0%, #333 100%);
  color: var(--bg);
  border-color: var(--fg);
}

.nav-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav-card-featured .card-desc {
  color: #ccc;
}

/* Enlace blueprint en banner */
.blueprint-link {
  background: var(--fg);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blueprint-link:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Secciones --- */
.home-section {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.home-section h2 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-md) 0;
}

/* --- Ecosistema strip --- */
.eco-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.eco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  min-width: 120px;
  transition: border-color 0.2s;
}

.eco-item:hover {
  border-color: var(--fg);
}

.eco-item strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.eco-item span {
  font-size: 0.75rem;
  color: var(--muted);
}

.eco-current {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.eco-current span {
  color: var(--border);
}

.eco-arrow {
  color: var(--muted);
  font-family: var(--font-mono);
}

/* --- Auditores strip --- */
.auditors-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.auditor-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.auditors-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--space-md);
}

/* --- Status --- */
.status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
}

.status-list > div {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.status-list dt {
  color: var(--muted);
}

.status-list dd {
  margin: 0;
  font-weight: 600;
}

/* --- Únete / Join --- */
.home-join {
  background: #fafafa;
  padding: var(--space-lg);
  border: 2px solid var(--fg);
}

.join-content {
  text-align: center;
}

.join-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

.join-btn {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--fg);
  text-decoration: none;
  color: var(--fg);
  transition: all 0.2s;
}

.join-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.join-btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.join-btn-primary:hover {
  background: var(--bg);
  color: var(--fg);
}

.join-code {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.8rem;
}

/* --- Aviso legal --- */
.home-legal {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border: 2px dashed var(--border);
  position: relative;
}

.home-legal h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  position: absolute;
  top: -0.6em;
  left: var(--space-md);
  background: var(--bg);
  padding: 0 var(--space-sm);
  margin: 0;
}

.legal-content {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.legal-content p {
  margin: 0 0 var(--space-sm) 0;
}

.legal-content ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-disclaimer {
  font-size: 0.85rem;
  color: var(--subtle);
}

.legal-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.legal-link a {
  color: var(--fg);
}

/* ========================================
   LEEME (Guía de inicio)
   Monocromo (B/N) — el color lo aportan solo iconos/emoji.
   ======================================== */

.leeme-page {
  --leeme-fg: var(--fg);
  --leeme-muted: var(--muted);
  --leeme-border: var(--border);
  --leeme-border-dark: var(--border-dark);
  --leeme-panel: #fafafa;
}

.leeme-page a {
  color: var(--leeme-fg);
}

.leeme-page h1,
.leeme-page h2 {
  border-bottom: none;
}

/* HERO */
.leeme-hero {
  text-align: center;
  padding: 2.5rem 0 2rem 0;
  margin: 0 0 2rem 0;
  border-bottom: 1px solid var(--leeme-border);
}

.leeme-hero .hero-icon {
  font-size: 3.25rem;
  margin-bottom: 0.75rem;
}

.leeme-hero h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.08rem;
}

.leeme-hero .hero-subtitle {
  color: var(--leeme-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 1.25rem auto;
  line-height: 1.65;
}

.leeme-hero .hero-time {
  display: inline-block;
  background: var(--leeme-panel);
  border: 1px solid var(--leeme-border);
  padding: 0.45rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--leeme-fg);
}

/* INDEX BOX */
.leeme-index {
  background: var(--leeme-panel);
  border: 1px solid var(--leeme-border);
  padding: 1.5rem;
  margin: 2rem 0;
}

.leeme-index h2 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--leeme-border);
}

.leeme-index ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: index-counter;
}

.leeme-index ol li {
  counter-increment: index-counter;
  margin-bottom: 0.9rem;
  padding-left: 2.25rem;
  position: relative;
}

.leeme-index ol li::before {
  content: counter(index-counter);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--leeme-fg);
  font-weight: 700;
}

.leeme-index ol li a {
  text-decoration: none;
  font-size: 1.05rem;
}

.leeme-index ol li a:hover {
  text-decoration: underline;
}

.leeme-index ol li span {
  display: block;
  color: var(--leeme-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* SECTION HEADERS */
.leeme-section {
  margin: 3rem 0 1.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--leeme-fg);
}

.leeme-section h2 {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.leeme-section .section-num {
  background: var(--leeme-fg);
  color: var(--bg);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* STEP CARDS */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem 0;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--leeme-border);
  padding: 1.25rem;
  position: relative;
}

.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: var(--bg);
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border: 1px solid var(--leeme-border);
}

.step-card h3 {
  font-family: var(--font-mono);
  margin: 0.5rem 0 0.9rem 0;
  font-size: 1.05rem;
}

.step-card p {
  color: var(--leeme-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.step-card .btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--leeme-fg);
  color: var(--leeme-fg);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.step-card .btn:hover {
  background: var(--leeme-fg);
  color: var(--bg);
}

/* CODE BLOCKS */
.code-block {
  background: var(--fg);
  border: 1px solid var(--fg);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
}

.code-block code {
  color: var(--bg);
}

.code-block .comment {
  color: #b3b3b3;
}

.code-block .command {
  color: var(--bg);
  font-weight: 700;
}

/* TABLES */
.leeme-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.leeme-table th {
  background: var(--fg);
  color: var(--bg);
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1rem;
  border-bottom: 2px solid var(--fg);
}

.leeme-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--leeme-border);
  color: var(--leeme-fg);
}

.leeme-table tr:hover td {
  background: var(--leeme-panel);
}

/* STATUS: mantener significado sin color */
.leeme-table .status-ok,
.leeme-table .status-dev,
.leeme-table .status-research {
  color: var(--leeme-fg);
  font-weight: 700;
}

/* ALERT BOXES */
.alert {
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--leeme-fg);
  background: var(--leeme-panel);
}

.alert strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--leeme-fg);
}

.alert p {
  margin: 0;
  color: var(--leeme-muted);
  font-size: 0.95rem;
}

/* COST TABLE SPECIAL */
.cost-table {
  margin: 1.75rem 0;
}

.cost-table th {
  background: var(--fg);
}

.cost-row-highlight td {
  background: var(--leeme-panel) !important;
}

.discount-badge,
.premium-badge {
  background: transparent;
  color: var(--leeme-fg);
  border: 1px solid var(--leeme-fg);
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-left: 0.5rem;
}

/* DISCLAIMER BOX */
.disclaimer {
  border: 2px dashed var(--leeme-fg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  position: relative;
}

.disclaimer::before {
  content: "AVISO LEGAL";
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  background: var(--bg);
  padding: 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--leeme-fg);
  letter-spacing: 0.15rem;
  border: 1px solid var(--leeme-fg);
}

.disclaimer h4 {
  color: var(--leeme-fg);
  margin: 0 0 0.9rem 0;
  font-family: var(--font-mono);
}

.disclaimer p,
.disclaimer ul {
  color: var(--leeme-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.disclaimer li {
  margin-bottom: 0.4rem;
}

/* AGENTS GRID (compact) */
.agents-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.agent-mini {
  background: var(--bg);
  border: 1px solid var(--leeme-border);
  padding: 1rem;
  font-size: 0.9rem;
}

.agent-mini strong {
  color: var(--leeme-fg);
  display: block;
  margin-bottom: 0.25rem;
}

.agent-mini span {
  color: var(--leeme-muted);
  font-size: 0.85rem;
}

/* COMPATIBILITY SECTION */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.compat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: 1px solid var(--leeme-border);
}

.compat-item .icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.compat-item .name {
  color: var(--leeme-fg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.compat-item .status {
  font-size: 0.75rem;
  color: var(--leeme-muted);
  font-weight: 700;
}

/* Footer de página */
.leeme-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--leeme-border);
  text-align: center;
  color: var(--leeme-muted);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  
  .header-container {
    padding: var(--space-sm) var(--space-md);
  }
  
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
  }
  
  .site-nav.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: var(--space-md);
  }
}

/* ========================================
   Print
   ======================================== */

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .post-nav,
  .page-nav {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  a {
    text-decoration: none;
    color: var(--fg);
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--muted);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   PÁGINAS PROMOCIONALES — Sistema de diseño compartido
   SCRIPT-0.15.0, SCRIPT-0.16.0 (T292-T294, T312-T314)
   ═══════════════════════════════════════════════════════════════════════ */

/* Variables para páginas promocionales (dark theme) */
.promo-page {
  --promo-bg: #0d1117;
  --promo-card-bg: rgba(255, 255, 255, 0.03);
  --promo-card-border: rgba(255, 255, 255, 0.08);
  --promo-text: #e6edf3;
  --promo-text-muted: rgba(255, 255, 255, 0.6);
  --promo-accent: #00d4ff;
  --promo-gold: #ffd700;
  --promo-purple: #9c27b0;
  --promo-green: #00c853;
  
  background: var(--promo-bg);
  color: var(--promo-text);
  margin: calc(-1 * var(--space-lg, 2rem));
  padding: var(--space-lg, 2rem);
  min-height: 100vh;
}

/* Hero compartido */
.promo-hero {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 3rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.promo-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  animation: promo-pulse 8s ease-in-out infinite;
}

@keyframes promo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes promo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.promo-hero .hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  animation: promo-float 3s ease-in-out infinite;
}

.promo-hero .hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  border: none;
  padding: 0;
}

.promo-hero .hero-subtitle {
  font-size: 1.2rem;
  color: var(--promo-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.promo-hero .hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.promo-hero .hero-cta a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.promo-hero .hero-cta a.primary {
  background: var(--promo-gold);
  color: #000;
}

.promo-hero .hero-cta a.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-hero .hero-cta a:hover {
  transform: translateY(-2px);
}

/* Cards compartidas */
.promo-card {
  background: var(--promo-card-bg);
  border: 1px solid var(--promo-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Grid compartido */
.promo-grid {
  display: grid;
  gap: 1rem;
}

.promo-grid.cols-2 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.promo-grid.cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.promo-grid.cols-4 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Section header compartido */
.promo-section {
  margin-bottom: 3rem;
}

.promo-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.promo-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.promo-section-title {
  font-size: 1.5rem;
  margin: 0;
  border: none;
  padding: 0;
  color: var(--promo-text);
}

.promo-section-desc {
  font-size: 0.9rem;
  color: var(--promo-text-muted);
  margin-left: auto;
}

/* Badges compartidos */
.promo-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-badge.gold { background: rgba(255, 215, 0, 0.3); color: #ffd700; }
.promo-badge.purple { background: rgba(156, 39, 176, 0.3); color: #ce93d8; }
.promo-badge.cyan { background: rgba(0, 212, 255, 0.3); color: #00d4ff; }
.promo-badge.green { background: rgba(0, 200, 83, 0.3); color: #00c853; }

/* Responsive para promo */
@media (max-width: 768px) {
  .promo-hero .hero-title { font-size: 1.8rem; }
  .promo-section-header { flex-wrap: wrap; }
  .promo-section-desc { width: 100%; margin-left: 0; margin-top: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PERIÓDICO — Estética hacker (SCRIPT-0.15.0)
   ═══════════════════════════════════════════════════════════════════════ */

.periodico-page {
  background: #000;
  color: #fff;
}

.periodico-masthead {
  border: 2px solid #fff;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  position: relative;
  background: #000;
}

.periodico-masthead::before {
  content: "$ cat /dev/truth";
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: #000;
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #666;
}

.periodico-masthead h1 {
  font-family: var(--font-mono);
  font-weight: 900;
  letter-spacing: 0.3rem;
  margin: 0;
  font-size: 2.5rem;
  text-transform: uppercase;
}

.periodico-masthead .tagline {
  font-family: var(--font-mono);
  color: #888;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.periodico-edition-bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #333;
  border-bottom: 3px double #fff;
  padding: 0.5rem 0;
  margin: 1rem 0 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.periodico-edition-bar .left { color: #888; }
.periodico-edition-bar .center { font-weight: bold; }
.periodico-edition-bar .right { color: #888; }

.periodico-headline {
  background: #fff;
  color: #000;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.periodico-headline h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

.periodico-section-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #666;
  border-bottom: 1px solid #333;
  padding-bottom: 0.3rem;
  margin: 3rem 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.periodico-section-header::before {
  content: "## ";
  color: #444;
}

/* Artículos del periódico */
.periodico-article {
  border: 1px solid #333;
  margin: 1.5rem 0;
  position: relative;
}

.periodico-article-header {
  background: #111;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.periodico-article-flag {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.periodico-article-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666;
}

.periodico-article-section {
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.periodico-article-body {
  padding: 1.5rem;
}

.periodico-article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.periodico-article-body p {
  line-height: 1.7;
  color: #ccc;
}

.periodico-article-body strong {
  color: #fff;
  font-weight: 700;
}

.periodico-article-link {
  display: block;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #333;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.periodico-article-link a {
  color: #888;
  text-decoration: underline;
}

.periodico-article-link a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.periodico-article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #333;
  filter: grayscale(100%) contrast(1.1);
}

/* Artículo destacado */
.periodico-article-featured {
  border: 2px solid #fff;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  margin-bottom: 2rem;
}

.periodico-article-featured .periodico-article-body h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.periodico-article-featured .periodico-article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Tesis box */
.periodico-thesis {
  border: 2px solid #fff;
  padding: 2rem;
  margin: 2rem 0;
  background: #080808;
}

.periodico-thesis h3 {
  font-family: var(--font-mono);
  margin: 0 0 1.5rem 0;
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.periodico-thesis ol {
  margin: 0;
  padding-left: 1.5rem;
}

.periodico-thesis li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #aaa;
}

.periodico-thesis strong {
  color: #fff;
}

/* Redacción grid */
.periodico-redaccion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.periodico-redaccion-card {
  border: 1px solid #333;
  background: #0a0a0a;
  padding: 1rem;
  transition: all 0.2s ease;
}

.periodico-redaccion-card:hover {
  border-color: #fff;
  background: #111;
}

.periodico-redaccion-card h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.periodico-redaccion-card p {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.periodico-redaccion-card .flag {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.periodico-redaccion-card a {
  color: #888;
  text-decoration: none;
  display: block;
}

.periodico-redaccion-card a:hover {
  color: #fff;
}

.periodico-archivo-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #333;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
}

.periodico-archivo-link:hover {
  border-color: #fff;
  color: #fff;
}

.periodico-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double #333;
  font-family: var(--font-mono);
}

.periodico-footer a {
  color: #666;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #333;
}

.periodico-footer a:hover {
  color: #fff;
  border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════
   FUNDACIÓN — Estilo teatro (SCRIPT-0.16.0)
   ═══════════════════════════════════════════════════════════════════════ */

.fundacion-page {
  --fund-gold: #ffd700;
  --fund-purple: #9c27b0;
  --fund-cyan: #00d4ff;
  --fund-green: #00c853;
}

/* Hero específico fundación (gradiente dorado) */
.fundacion-page .promo-hero {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(40, 20, 50, 0.9) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.fundacion-page .promo-hero .hero-title {
  background: linear-gradient(90deg, #fff 0%, var(--fund-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Icon backgrounds por tipo */
.fundacion-icon-ecosistema { background: rgba(0, 212, 255, 0.2); }
.fundacion-icon-obra { background: rgba(255, 215, 0, 0.2); }
.fundacion-icon-teatro { background: rgba(156, 39, 176, 0.2); }
.fundacion-icon-recursos { background: rgba(0, 200, 83, 0.2); }

/* Ecosistema flow */
.fundacion-ecosistema-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  flex-wrap: wrap;
}

.fundacion-eco-card {
  background: var(--promo-card-bg);
  border: 1px solid var(--promo-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  width: 180px;
  transition: all 0.3s ease;
}

.fundacion-eco-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.fundacion-eco-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.fundacion-eco-card h4 { margin: 0 0 0.5rem 0; color: #fff; font-size: 1rem; }
.fundacion-eco-card p { margin: 0; font-size: 0.8rem; color: var(--promo-text-muted); }

.fundacion-eco-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Capítulos timeline */
.fundacion-chapter-card {
  background: var(--promo-card-bg);
  border: 1px solid var(--promo-card-border);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.fundacion-chapter-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.03);
}

.fundacion-chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
}

.fundacion-chapter-card.temporal::before { background: #2196f3; }
.fundacion-chapter-card.antropologico::before { background: #ff9800; }
.fundacion-chapter-card.escalar::before { background: #f44336; }
.fundacion-chapter-card.meta::before { background: #9c27b0; }

.fundacion-chapter-num {
  font-size: 0.75rem;
  color: var(--promo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.fundacion-chapter-title {
  font-size: 1rem;
  margin: 0.25rem 0;
  color: #fff;
}

.fundacion-chapter-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.fundacion-chapter-desp {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.fundacion-chapter-status {
  font-size: 0.75rem;
}

.fundacion-chapter-status.borrador { color: #ffc107; }
.fundacion-chapter-status.pendiente { color: var(--promo-text-muted); }
.fundacion-chapter-status.publicado { color: #00c853; }

/* Teatro cards */
.fundacion-teatro-card {
  background: var(--promo-card-bg);
  border: 1px solid var(--promo-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fundacion-teatro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fund-purple);
}

.fundacion-teatro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(156, 39, 176, 0.3);
}

.fundacion-teatro-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fundacion-teatro-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(156, 39, 176, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.fundacion-teatro-info h4 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.fundacion-teatro-info span {
  font-size: 0.8rem;
  color: var(--fund-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fundacion-teatro-card p {
  color: var(--promo-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.fundacion-teatro-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fundacion-teatro-stat {
  font-size: 0.75rem;
  color: var(--promo-text-muted);
}

.fundacion-teatro-stat strong {
  color: #fff;
}

/* Recursos cards */
.fundacion-recurso-card {
  background: var(--promo-card-bg);
  border: 1px solid var(--promo-card-border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.fundacion-recurso-card:hover {
  border-color: rgba(0, 200, 83, 0.3);
  background: rgba(0, 200, 83, 0.03);
}

.fundacion-recurso-card h4 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 0.9rem;
}

.fundacion-recurso-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--promo-text-muted);
}

/* Responsive fundación */
@media (max-width: 768px) {
  .fundacion-ecosistema-flow { flex-direction: column; }
  .fundacion-eco-arrow { transform: rotate(90deg); }
}

/* ═══════════════════════════════════════════════════════════════════════
   INDEX SPLASH - Rediseño SCRIPT-1.6.0
   ═══════════════════════════════════════════════════════════════════════ */

/* Menú hamburguesa activo */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.menu-toggle span {
  transition: all 0.3s ease;
}

/* Sección Prisma del Conocimiento */
.home-prism {
  text-align: center;
  padding: var(--space-lg) 0;
}

.prism-container {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.prism-visual {
  position: relative;
  height: 120px;
  margin-bottom: var(--space-md);
}

.prism-light-in {
  position: absolute;
  left: 0;
  top: 50%;
  width: 30%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, #fff);
  transform: translateY(-50%);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.prism-shape {
  position: absolute;
  left: 28%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.prism-spectrum {
  position: absolute;
  left: 45%;
  top: 50%;
  width: 55%;
  height: 60px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spectrum-ray {
  height: 3px;
  border-radius: 2px;
  box-shadow: 0 0 10px currentColor;
  animation: ray-pulse 2s ease-in-out infinite;
}

.spectrum-ray:nth-child(1) { background: #2563eb; color: #2563eb; animation-delay: 0s; }
.spectrum-ray:nth-child(2) { background: #1a1a1a; color: #666; animation-delay: 0.2s; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.spectrum-ray:nth-child(3) { background: #dc2626; color: #dc2626; animation-delay: 0.4s; }
.spectrum-ray:nth-child(4) { background: #ca8a04; color: #ca8a04; animation-delay: 0.6s; }
.spectrum-ray:nth-child(5) { background: #ea580c; color: #ea580c; animation-delay: 0.8s; }

@keyframes ray-pulse {
  0%, 100% { opacity: 0.7; transform: scaleX(0.95); }
  50% { opacity: 1; transform: scaleX(1); }
}

.prism-labels {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.prism-label {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.prism-label.blue { background: rgba(37, 99, 235, 0.2); color: #2563eb; }
.prism-label.black { background: rgba(26, 26, 26, 0.3); color: #666; }
.prism-label.red { background: rgba(220, 38, 38, 0.2); color: #dc2626; }
.prism-label.yellow { background: rgba(202, 138, 4, 0.2); color: #ca8a04; }
.prism-label.orange { background: rgba(234, 88, 12, 0.2); color: #ea580c; }

.prism-copy {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  font-style: italic;
}

/* Sección Status Simplificada */
.home-status-simple {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg);
  text-align: center;
}

.status-simple-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.status-simple-header h2 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 1.1rem;
}

.status-simple-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.status-simple-metrics {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.status-metric {
  text-align: center;
}

.status-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
}

.status-metric-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-simple-link {
  font-size: 0.9rem;
}

/* Features Grid para STATUS */
.status-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.feature-highlight:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.feature-highlight .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-highlight .feature-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}

.feature-highlight .feature-text strong {
  color: #1a1a1a;
  display: block;
}

@media (max-width: 768px) {
  .status-features-grid {
    grid-template-columns: 1fr;
  }
}

