@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Syne:wght@700;800&display=swap');

:root {
  --bg:      #0a0e17;
  --surface: #111827;
  --surface2:#1a2235;
  --border:  #1e2d45;
  --accent:  #00d4ff;
  --accent2: #de2e03;
  --accent3: #39ff14;
  --text:    #e2e8f0;
  --muted:   #64748b;
  --danger:  #ff4444;
  --warning: #ffd700;
  --success: #10b981;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  padding-top: 60px;
  position: relative;
}

/* ── GRID BG ───────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  z-index: 100;
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--accent2); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── GLOWS ─────────────────────────────────────────────── */
.glow-1, .glow-2 {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 { background: rgba(0,212,255,0.06); top: -200px; right: -200px; }
.glow-2 { background: rgba(255,107,53,0.04); bottom: -200px; left: -200px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  padding: 50px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.03);
  position: relative;
  z-index: 1;
}

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}
.site-footer .footer-logo {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
}
.site-footer .footer-logo span { color: var(--accent2); }
.site-footer .footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── ANIMACIONES ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease;}
.reveal.visible { opacity: 1; transform: translateY(0);}

/* ── NAV LOGO ──────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--accent);
}

/* ── HEADER ────────────────────────────────────────────── */
.header {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
  margin-bottom: 40px;
}
.header h1 {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  font-size: 2.8em;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0,212,255,0.1);
}
.header .subtitle {
  color: var(--muted);
  font-size: 1.15em;
  font-weight: 300;
}
.header .version {
  display: inline-block;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
  padding: 5px 16px;
  border-radius: 20px;
  margin-top: 15px;
  font-size: 0.85em;
  font-family: 'Space Mono', monospace;
}

/* ── HEADINGS & TEXT ───────────────────────────────────── */
h2 {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 15px;
  margin: 50px 0 24px 0;
  font-size: 1.7em;
  font-weight: 700;
}
h3 {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  margin: 30px 0 15px 0;
  font-size: 1.3em;
  font-weight: 600;
}
h4 {
  font-family: 'Space Mono', monospace;
  color: var(--accent);
  margin: 24px 0 10px 0;
  font-size: 1.05em;
}
p {
  margin-bottom: 20px;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.9;
  text-align: justify;
}
ul, ol {
  margin: 20px 0 20px 30px;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.95;
}
li {
  margin-bottom: 10px;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
a:hover {
  color: #00bbdd;
  text-shadow: 0 0 10px rgba(0,212,255,0.3);
}

/* ── TABLES ────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 30px 0;
  font-size: 0.9em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th {
  background: rgba(30, 45, 69, 0.4);
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  opacity: 0.95;
}
tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) {
  background: rgba(26, 34, 53, 0.3);
}
tr:hover {
  background: rgba(30, 45, 69, 0.3);
}

/* ── META INFO & TOC ───────────────────────────────────── */
.meta-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
  margin: 30px 0;
}
.meta-info strong {
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 0.9em;
}

.toc {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
}
.toc h3 {
  margin-top: 0;
  color: var(--accent);
  border: none;
  padding: 0;
  font-size: 1.15em;
  letter-spacing: 0.05em;
}
.toc ol {
  margin-left: 24px;
}
.toc a {
  color: var(--text);
  opacity: 0.85;
}
.toc a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ── BOXES & BADGES ────────────────────────────────────── */
.info-box, .warning-box, .success-box, .danger-box, .good-box, .bad-box {
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 6px;
  line-height: 1.7;
}
.info-box {
  background: rgba(0, 212, 255, 0.04);
  border-left: 4px solid var(--accent);
  color: var(--text);
}
.warning-box {
  background: rgba(255, 215, 0, 0.04);
  border-left: 4px solid var(--warning);
  color: var(--text);
}
.success-box, .good-box {
  background: rgba(16, 185, 129, 0.04);
  border-left: 4px solid var(--success);
  color: var(--text);
}
.danger-box, .bad-box {
  background: rgba(255, 68, 68, 0.04);
  border-left: 4px solid var(--danger);
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75em;
  font-family: 'Space Mono', monospace;
  font-weight: bold;
}
.badge-alto, .badge-critical, .badge-high { background: rgba(255, 68, 68, 0.15); border: 1px solid var(--danger); color: #ff8888; }
.badge-medio, .badge-medium { background: rgba(255, 215, 0, 0.15); border: 1px solid var(--warning); color: #ffe875; }
.badge-bajo, .badge-low { background: rgba(0, 212, 255, 0.15); border: 1px solid var(--accent); color: #8eeaff; }
.badge-obligatorio, .badge-required { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: #7af2c6; }

/* ── CODE ──────────────────────────────────────────────── */
code {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
  color: var(--accent);
}
pre {
  background: #070a10;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.85em;
}
pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #a5b4fc;
}

/* Syntax Highlighting */
.keyword { color: #f472b6; font-weight: bold; }
.string { color: #34d399; }
.comment { color: #64748b; font-style: italic; }
.number { color: #fbbf24; }
.code-good { border-left: 4px solid var(--success) !important; }
.code-bad { border-left: 4px solid var(--danger) !important; }

/* ── DOCS GRID & CARDS (index.html in docs) ────────────────── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.doc-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.doc-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}
.doc-header {
  padding: 24px;
  background: rgba(30, 45, 69, 0.2);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.doc-icon {
  font-size: 2.8em;
  margin-bottom: 10px;
}
.doc-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.doc-type {
  font-family: 'Space Mono', monospace;
  font-size: 0.7em;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.doc-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.doc-description {
  font-size: 0.9em;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 20px;
}
.doc-contents {
  background: rgba(10, 14, 23, 0.4);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.doc-contents h4 {
  margin-top: 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.doc-contents ul {
  margin: 0;
  list-style: none;
}
.doc-contents li {
  font-size: 0.85em;
  padding: 4px 0;
  opacity: 0.85;
}
.doc-contents li::before {
  content: "→ ";
  color: var(--accent);
  font-weight: bold;
}
.doc-footer {
  text-align: center;
}
.doc-link {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.doc-link:hover {
  background: #00bbdd;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
  color: #000;
}

/* ── DIAGRAMS & DATABASE (02_Analisis & 03_Diseno) ───────── */
.diagram, .arch-diagram {
  background: #070a10;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
}
.entity {
  display: inline-block;
  background: var(--surface2);
  border: 2px solid var(--accent);
  padding: 10px 18px;
  margin: 8px;
  border-radius: 6px;
  min-width: 130px;
  color: var(--text);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.05);
}
.relation {
  color: var(--accent2);
  font-weight: bold;
}
.layer {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 14px 0;
}
.layer-title {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  font-size: 0.8em;
}
.component {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  margin: 6px;
  border-radius: 4px;
  font-size: 0.8em;
  color: var(--text);
}
.db-table {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 16px;
  margin: 12px 0;
  border-radius: 6px;
}
.db-table-name {
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.db-field {
  font-family: 'Space Mono', monospace;
  font-size: 0.8em;
  padding: 4px 0;
  opacity: 0.85;
}
.db-pk {
  color: var(--accent2);
  font-weight: bold;
  margin-right: 4px;
}
.db-fk {
  color: var(--accent3);
  margin-right: 4px;
}
.api-endpoint {
  background: var(--surface2);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  margin: 12px 0;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
  display: flex;
  align-items: center;
}
.api-method {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.75em;
  margin-right: 12px;
  text-transform: uppercase;
}
.api-get { background: rgba(0, 212, 255, 0.15); border: 1px solid var(--accent); color: var(--accent); }
.api-post { background: rgba(57, 255, 20, 0.15); border: 1px solid var(--accent3); color: var(--accent3); }
.api-put { background: rgba(255, 215, 0, 0.15); border: 1px solid var(--warning); color: var(--warning); }
.api-delete { background: rgba(255, 68, 68, 0.15); border: 1px solid var(--danger); color: var(--danger); }

/* ── INFOGRAPHICS (06_Infografia) ────────────────────────── */
.infografia {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.infografia .header {
  background: linear-gradient(135deg, #0f1624 0%, #17243c 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 40px;
}
.infografia h2.section-title {
  text-align: center;
  font-size: 1.8em;
  color: var(--text);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  border: none;
}
.infografia h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: rgba(10, 14, 23, 0.3);
  padding: 40px;
  border-bottom: 1px solid var(--border);
}
.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.stat-icon {
  font-size: 2.8em;
  margin-bottom: 10px;
}
.stat-number {
  font-family: 'Space Mono', monospace;
  font-size: 2.4em;
  font-weight: bold;
  color: var(--accent);
}
.stat-label {
  color: var(--muted);
  font-size: 0.9em;
  margin-top: 5px;
}
.modulos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.modulo {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}
.modulo:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.1);
}
.modulo-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.modulo-name {
  font-family: 'Syne', sans-serif;
  font-weight: bold;
  color: var(--text);
  font-size: 1.05em;
}
.modulo-desc {
  color: var(--muted);
  font-size: 0.85em;
  margin-top: 6px;
}
.flujo {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
}
.flujo-step {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
  position: relative;
  transition: border-color 0.2s;
}
.flujo-step:hover {
  border-color: var(--accent);
}
.flujo-step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Space Mono', monospace;
  font-size: 0.9em;
}
.flujo-step-icon {
  font-size: 1.8em;
  margin: 12px 0 8px 0;
}
.flujo-step-name {
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  color: var(--text);
  font-size: 0.9em;
}
.flujo-arrow {
  font-size: 1.8em;
  color: var(--accent);
}
.tecnologias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.tech-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}
.tech-icon {
  font-size: 2.8em;
  margin-bottom: 10px;
}
.tech-name {
  font-family: 'Syne', sans-serif;
  font-weight: bold;
  color: var(--text);
  font-size: 1.15em;
  margin-bottom: 6px;
}
.tech-desc {
  color: var(--muted);
  font-size: 0.85em;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.security-item {
  background: rgba(30, 45, 69, 0.15);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s;
}
.security-item:hover {
  border-color: var(--accent);
}
.security-icon {
  font-size: 2.2em;
}
.security-text h4 {
  margin: 0 0 5px 0;
  color: var(--text);
}
.security-text p {
  margin: 0;
  font-size: 0.85em;
  opacity: 0.85;
}
.beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.beneficio {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border-top: 4px solid var(--accent);
}
.beneficio-icon {
  font-size: 2.8em;
  margin-bottom: 10px;
}
.beneficio-title {
  font-family: 'Syne', sans-serif;
  font-weight: bold;
  color: var(--text);
  font-size: 1.1em;
  margin-bottom: 8px;
}
.beneficio-desc {
  color: var(--muted);
  font-size: 0.85em;
}
.cumplimiento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.norma {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.norma:hover {
  border-color: var(--accent);
}
.norma-icon {
  font-size: 2.2em;
  margin-bottom: 10px;
}
.norma-name {
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  color: var(--accent);
  font-size: 0.9em;
}
.norma-desc {
  color: var(--muted);
  font-size: 0.8em;
  margin-top: 6px;
}

/* ── SALES PRESENTATION SLIDES (07_Presentacion_Ventas) ─────── */
.presentacion {
  max-width: 1200px;
  margin: 0 auto;
}
.slide {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.slide-cover {
  background: linear-gradient(135deg, #070a10 0%, var(--surface) 100%);
  color: var(--text);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px;
  border: 1px solid var(--border);
}
.slide-cover h1 {
  font-family: 'Syne', sans-serif;
  font-size: 4.2em;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  text-shadow: 0 0 40px rgba(0,212,255,0.2);
}
.slide-cover .tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8em;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 30px;
  color: var(--accent);
}
.slide-cover .logo {
  font-size: 5.5em;
  margin-bottom: 24px;
}
.slide-content {
  padding: 60px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.slide-content h2 {
  font-size: 2.3em;
  color: var(--text);
  margin: 0 0 30px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  border-left: none;
  padding-left: 0;
  font-family: 'Syne', sans-serif;
}
.slide-content h3 {
  font-size: 1.4em;
  color: var(--accent);
  margin: 30px 0 15px 0;
  font-family: 'Space Mono', monospace;
}
.slide-content p {
  font-size: 1.15em;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
  opacity: 0.9;
}
.slide-problem {
  background: linear-gradient(135deg, rgba(222, 46, 3, 0.04) 0%, rgba(10, 14, 23, 0.6) 100%);
  border: 1px solid rgba(222, 46, 3, 0.3);
}
.slide-problem h2 {
  color: #ff6b3b;
  border-bottom-color: rgba(222, 46, 3, 0.3);
  text-shadow: 0 0 20px rgba(222, 46, 3, 0.1);
}
.slide-solution {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.03) 0%, rgba(10, 14, 23, 0.6) 100%);
  border: 1px solid rgba(57, 255, 20, 0.2);
}
.slide-solution h2 {
  color: var(--accent3);
  border-bottom-color: rgba(57, 255, 20, 0.2);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}
.slide-cta {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(10, 14, 23, 0.8) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-align: center;
  justify-content: center;
}
.slide-cta h2 {
  color: var(--accent);
  border: none;
  font-size: 3.2em;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  margin-bottom: 20px;
}
.slide-final {
  background: linear-gradient(135deg, #070a10 0%, var(--surface) 100%);
  color: var(--text);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px;
  border: 1px solid var(--border);
}
.slide-final h2 {
  color: var(--text);
  border: none;
  font-size: 3.2em;
  text-shadow: 0 0 40px rgba(0,212,255,0.2);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 30px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }

.card, .feature, .stat-big, .pricing-card, .testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover, .feature:hover, .stat-big:hover, .testimonial:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 2.8em;
  margin-bottom: 15px;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25em;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 10px;
}
.card-desc {
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.6;
}
.feature {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin: 15px 0;
}
.feature-icon {
  font-size: 2.2em;
  min-width: 50px;
  text-align: center;
}
.feature-text h4 {
  color: var(--text);
  font-size: 1.1em;
  margin: 0 0 5px 0;
}
.feature-text p {
  color: var(--muted);
  font-size: 0.9em;
  margin: 0;
}
.stat-big {
  text-align: center;
  padding: 30px;
}
.stat-big .stat-number {
  font-family: 'Space Mono', monospace;
  font-size: 3.2em;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}
.stat-big .stat-label {
  color: var(--muted);
  font-size: 1em;
  margin-top: 8px;
}
.pricing-card {
  text-align: center;
  padding: 40px;
  border-radius: 16px;
  position: relative;
}
.pricing-card.featured {
  border: 1px solid var(--accent3);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.08);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  transform: scale(1.05);
}
.pricing-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.4em;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 10px;
}
.pricing-price {
  font-family: 'Space Mono', monospace;
  font-size: 2.8em;
  font-weight: bold;
  color: var(--accent);
  margin: 20px 0;
}
.pricing-price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.4em;
  color: var(--muted);
}
.pricing-features {
  list-style: none;
  margin: 20px 0;
  text-align: left;
}
.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9em;
}
.pricing-features li:before {
  content: "✓ ";
  color: var(--accent3);
  font-weight: bold;
}
.testimonial {
  border-left: 4px solid var(--accent);
  margin: 20px 0;
}
.testimonial-text {
  font-style: italic;
  color: var(--text);
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.9;
}
.testimonial-author {
  font-family: 'Syne', sans-serif;
  font-weight: bold;
  color: var(--text);
}
.testimonial-role {
  color: var(--muted);
  font-size: 0.85em;
}
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface2);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}
.timeline-title {
  font-family: 'Syne', sans-serif;
  font-weight: bold;
  color: var(--text);
  font-size: 1.15em;
  margin-bottom: 5px;
}
.timeline-desc {
  color: var(--muted);
  font-size: 0.95em;
}
.slide-number {
  position: absolute;
  bottom: 20px;
  right: 30px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
}
ul.check-list {
  list-style: none;
}
ul.check-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.05em;
}
ul.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent3);
  font-weight: bold;
  font-size: 1.2em;
}

/* ── COMMERCIAL BUSINESS & KPI (08_Definicion_Comercial) ─── */
.highlight-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(30, 45, 69, 0.3) 100%);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  margin: 30px 0;
  text-align: center;
}
.highlight-box h3 {
  color: var(--accent);
  margin-top: 0;
  font-size: 1.4em;
  font-family: 'Syne', sans-serif;
}
.canvas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.canvas-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.canvas-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.canvas-item h4 {
  font-family: 'Syne', sans-serif;
  color: var(--accent);
  margin-top: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.1em;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.kpi {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 20px 30px;
  border-radius: 12px;
  margin: 12px;
  text-align: center;
  min-width: 160px;
  transition: border-color 0.2s;
}
.kpi:hover {
  border-color: var(--accent);
}
.kpi-value {
  font-family: 'Space Mono', monospace;
  font-size: 2.2em;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}
.kpi-label {
  color: var(--muted);
  font-size: 0.85em;
  margin-top: 6px;
}

/* ── DOCUMENT INDEX SPECIFICS (docs/index.html) ────────── */
.info-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}
.info-section h2 {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  margin-bottom: 24px;
  font-size: 1.8em;
  border-left: none;
  padding-left: 0;
}
.info-section h3 {
  font-family: 'Space Mono', monospace;
  color: var(--accent);
  margin: 30px 0 15px 0;
  font-size: 1.25em;
}
.info-section p {
  color: var(--text);
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 15px;
}
.info-section ul {
  margin: 20px 0 20px 30px;
}
.info-section li {
  margin-bottom: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
  background: transparent !important;
  padding: 0 !important;
  border-bottom: none !important;
}
.stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.stat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 2.6em;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}
.stat-label {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.9em;
}

/* ── FOOTER & PRINT ────────────────────────────────────── */
.footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85em;
  font-family: 'Space Mono', monospace;
}
.footer p {
  text-align: center;
  margin: 0;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .container {
    padding: 24px;
  }
  .header h1 {
    font-size: 2.1em;
  }
  .meta-info {
    grid-template-columns: 1fr;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .flujo {
    flex-direction: column;
  }
  .flujo-arrow {
    transform: rotate(90deg);
  }
  .canvas, .pricing-grid {
    grid-template-columns: 1fr;
  }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
}

@media print {
  body {
    background: white;
    color: black;
    padding: 0;
  }
  .container {
    box-shadow: none;
    border: none;
    padding: 20px;
  }
  body::before {
    display: none;
  }
  .doc-card, .modulo, .stat-card, .tech-card, .security-item, .beneficio, .norma {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    background: white;
    color: black;
  }
  .doc-link {
    display: none;
  }
}
