/* OCA-I Portfolio — Modern AI Company UI */

:root {
  --bg: #050810;
  --bg-elevated: #0c1222;
  --surface: rgba(15, 23, 42, 0.7);
  --border: rgba(148, 163, 184, 0.12);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent: #06b6d4;
  --accent-purple: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --nav-bg: rgba(5, 8, 16, 0.85);
  --top-bar-bg: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(139,92,246,0.12));
  --grid-line: rgba(59, 130, 246, 0.03);
  --glow-1: rgba(59, 130, 246, 0.15);
  --glow-2: rgba(139, 92, 246, 0.12);
  --hover-bg: rgba(255, 255, 255, 0.05);
  --active-link-bg: rgba(59, 130, 246, 0.15);
  --input-bg: rgba(0, 0, 0, 0.35);
  --subscribe-label: #93c5fd;
  --mobile-nav-bg: rgba(5, 8, 16, 0.98);
  --section-dark-bg: rgba(12, 18, 34, 0.5);
  --muted: var(--text-muted);
  --line: var(--border);
}

/* Temas de fondo */
[data-theme="black"] {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: rgba(18, 18, 18, 0.88);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --primary: #e5e5e5;
  --primary-glow: rgba(255, 255, 255, 0.15);
  --accent: #d4d4d4;
  --accent-purple: #a3a3a3;
  --nav-bg: rgba(0, 0, 0, 0.92);
  --top-bar-bg: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  --grid-line: rgba(255, 255, 255, 0.04);
  --glow-1: rgba(255, 255, 255, 0.04);
  --glow-2: rgba(255, 255, 255, 0.03);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --active-link-bg: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.08);
  --subscribe-label: #d4d4d4;
  --mobile-nav-bg: rgba(0, 0, 0, 0.98);
  --section-dark-bg: rgba(10, 10, 10, 0.7);
}

[data-theme="white"] {
  --bg: #f1f5f9;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent: #0891b2;
  --accent-purple: #7c3aed;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --top-bar-bg: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
  --grid-line: rgba(15, 23, 42, 0.06);
  --glow-1: rgba(37, 99, 235, 0.08);
  --glow-2: rgba(124, 58, 237, 0.06);
  --hover-bg: rgba(15, 23, 42, 0.05);
  --active-link-bg: rgba(37, 99, 235, 0.12);
  --input-bg: rgba(255, 255, 255, 0.95);
  --subscribe-label: #1d4ed8;
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  --section-dark-bg: rgba(226, 232, 240, 0.65);
}

[data-theme="ocean"] {
  --bg: #031a1f;
  --bg-elevated: #062a32;
  --surface: rgba(6, 42, 50, 0.78);
  --border: rgba(45, 212, 191, 0.18);
  --text: #ecfeff;
  --text-muted: #99f6e4;
  --primary: #14b8a6;
  --primary-glow: rgba(20, 184, 166, 0.35);
  --accent: #22d3ee;
  --accent-purple: #0891b2;
  --nav-bg: rgba(3, 26, 31, 0.9);
  --top-bar-bg: linear-gradient(90deg, rgba(20,184,166,0.14), rgba(34,211,238,0.12));
  --grid-line: rgba(34, 211, 238, 0.05);
  --glow-1: rgba(20, 184, 166, 0.18);
  --glow-2: rgba(34, 211, 238, 0.14);
  --hover-bg: rgba(34, 211, 238, 0.08);
  --active-link-bg: rgba(20, 184, 166, 0.18);
  --input-bg: rgba(0, 0, 0, 0.3);
  --subscribe-label: #5eead4;
  --mobile-nav-bg: rgba(3, 26, 31, 0.98);
  --section-dark-bg: rgba(6, 42, 50, 0.55);
}

[data-theme="dawn"] {
  --bg: #1a0f0a;
  --bg-elevated: #2a1810;
  --surface: rgba(42, 24, 16, 0.82);
  --border: rgba(251, 146, 60, 0.2);
  --text: #fff7ed;
  --text-muted: #fdba74;
  --primary: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.35);
  --accent: #fbbf24;
  --accent-purple: #fb7185;
  --nav-bg: rgba(26, 15, 10, 0.92);
  --top-bar-bg: linear-gradient(90deg, rgba(249,115,22,0.16), rgba(251,191,36,0.12));
  --grid-line: rgba(251, 146, 60, 0.05);
  --glow-1: rgba(249, 115, 22, 0.2);
  --glow-2: rgba(251, 191, 36, 0.16);
  --hover-bg: rgba(251, 146, 60, 0.1);
  --active-link-bg: rgba(249, 115, 22, 0.2);
  --input-bg: rgba(0, 0, 0, 0.32);
  --subscribe-label: #fdba74;
  --mobile-nav-bg: rgba(26, 15, 10, 0.98);
  --section-dark-bg: rgba(42, 24, 16, 0.6);
}

[data-theme="forest"] {
  --bg: #0a1410;
  --bg-elevated: #122018;
  --surface: rgba(18, 32, 24, 0.8);
  --border: rgba(74, 222, 128, 0.16);
  --text: #ecfdf5;
  --text-muted: #86efac;
  --primary: #22c55e;
  --primary-glow: rgba(34, 197, 94, 0.32);
  --accent: #4ade80;
  --accent-purple: #16a34a;
  --nav-bg: rgba(10, 20, 16, 0.92);
  --top-bar-bg: linear-gradient(90deg, rgba(34,197,94,0.14), rgba(74,222,128,0.1));
  --grid-line: rgba(74, 222, 128, 0.04);
  --glow-1: rgba(34, 197, 94, 0.16);
  --glow-2: rgba(74, 222, 128, 0.12);
  --hover-bg: rgba(74, 222, 128, 0.08);
  --active-link-bg: rgba(34, 197, 94, 0.18);
  --input-bg: rgba(0, 0, 0, 0.3);
  --subscribe-label: #86efac;
  --mobile-nav-bg: rgba(10, 20, 16, 0.98);
  --section-dark-bg: rgba(18, 32, 24, 0.55);
}

[data-theme="sunset"] {
  --bg: #140a1a;
  --bg-elevated: #22102a;
  --surface: rgba(34, 16, 42, 0.8);
  --border: rgba(192, 132, 252, 0.18);
  --text: #faf5ff;
  --text-muted: #d8b4fe;
  --primary: #a855f7;
  --primary-glow: rgba(168, 85, 247, 0.35);
  --accent: #f472b6;
  --accent-purple: #c084fc;
  --nav-bg: rgba(20, 10, 26, 0.92);
  --top-bar-bg: linear-gradient(90deg, rgba(168,85,247,0.16), rgba(244,114,182,0.12));
  --grid-line: rgba(192, 132, 252, 0.05);
  --glow-1: rgba(168, 85, 247, 0.18);
  --glow-2: rgba(244, 114, 182, 0.14);
  --hover-bg: rgba(192, 132, 252, 0.08);
  --active-link-bg: rgba(168, 85, 247, 0.2);
  --input-bg: rgba(0, 0, 0, 0.32);
  --subscribe-label: #d8b4fe;
  --mobile-nav-bg: rgba(20, 10, 26, 0.98);
  --section-dark-bg: rgba(34, 16, 42, 0.58);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: var(--glow-1);
}

.bg-glow--2 {
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: var(--glow-2);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.nav__logo {
  color: var(--primary);
  font-size: 1.5rem;
}

.nav__dot { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover { color: var(--text); background: var(--hover-bg); }
.nav__link--active { color: var(--text); background: var(--active-link-bg); }

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem !important;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: white !important;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.nav__link--dropdown {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav__chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav__dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav__dropdown--active > .nav__link--dropdown {
  color: var(--text);
  background: var(--active-link-bg);
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 0.5rem 0.4rem 0.4rem;
  background: var(--mobile-nav-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 120;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease 0.15s,
    transform 0.15s ease 0.15s,
    visibility 0s linear 0.3s;
}

.nav__dropdown-menu--wide {
  min-width: 240px;
}

.nav__dropdown-link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav__dropdown-link:visited {
  color: var(--text-muted);
}

.nav__dropdown-link:hover {
  color: var(--text);
  background: var(--hover-bg);
}

.nav__dropdown-link--active {
  color: var(--text);
  background: var(--active-link-bg);
}

@media (min-width: 901px) {
  /* Puente invisible entre botón y submenú — evita que se cierre al bajar el ratón */
  .nav__dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.65rem;
    z-index: 119;
  }

  .nav__dropdown:hover > .nav__dropdown-menu,
  .nav__dropdown:focus-within > .nav__dropdown-menu,
  .nav__dropdown.open > .nav__dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 0.15s ease 0s,
      transform 0.15s ease 0s,
      visibility 0s linear 0s;
  }

  .nav__dropdown:hover .nav__chevron,
  .nav__dropdown:focus-within .nav__chevron,
  .nav__dropdown.open .nav__chevron {
    transform: rotate(180deg);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .nav { padding: 0.85rem 1.25rem; }
  .nav__link,
  .nav__link--dropdown {
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }
  .nav__cta {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem;
  }
}

.top-bar__inner--compact {
  justify-content: flex-end;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.subscribe-bar--footer {
  margin: 0 auto 1.25rem;
  max-width: 520px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  padding-right: 0.75rem;
}

.top-bar__prefs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 0.5rem;
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border-right: 1px solid var(--border);
  padding-right: 0.75rem;
}

.theme-switcher__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.15rem;
}

.theme-btn {
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.15rem 0.3rem;
  border-radius: 6px;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  line-height: 1;
}

.theme-btn:hover { opacity: 0.9; transform: scale(1.1); }
.theme-btn--active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.theme-btn--ocai { color: var(--primary); }
.theme-btn--black { color: #171717; }
.theme-btn--white { color: #e2e8f0; }
.theme-btn--ocean { color: #14b8a6; }
.theme-btn--dawn { color: #f97316; }
.theme-btn--forest { color: #22c55e; }
.theme-btn--sunset { color: #a855f7; }

[data-theme="white"] .theme-btn--white { color: #0f172a; }
[data-theme="black"] .theme-btn--black { color: #f5f5f5; }

.lang-switcher form {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
}

.lang-btn:hover { opacity: 0.85; transform: scale(1.15); }
.lang-btn--active { opacity: 1; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main */
.main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
  min-height: 80vh;
  position: relative;
}

.hero--impact {
  min-height: 85vh;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(3rem, 6vw, 4rem);
}

.hero__mesh {
  position: absolute;
  inset: -2rem -1.5rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, var(--glow-1), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, var(--glow-2), transparent 65%);
  pointer-events: none;
  z-index: -1;
  animation: hero-mesh-shift 12s ease-in-out infinite alternate;
}

@keyframes hero-mesh-shift {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--subscribe-label);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 6s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero__tagline {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat--card {
  padding: 1rem 1.5rem;
  min-width: 110px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.stat--card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

.stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero__visual {
  position: relative;
  min-height: 360px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.orb--1 { width: 220px; height: 220px; background: color-mix(in srgb, var(--primary) 35%, transparent); top: 10%; left: 20%; }
.orb--2 { width: 170px; height: 170px; background: color-mix(in srgb, var(--accent-purple) 30%, transparent); bottom: 20%; right: 10%; animation-delay: -2s; }
.orb--3 { width: 120px; height: 120px; background: color-mix(in srgb, var(--accent) 25%, transparent); top: 50%; left: 50%; animation-delay: -4s; }

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

.hero__card {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--primary) 15%, transparent);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4), 0 0 40px var(--primary-glow);
}

.hero__card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--green { background: #22c55e; }
.dot--yellow { background: #eab308; }
.dot--red { background: #ef4444; }

.hero__code {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #86efac;
  overflow-x: auto;
  margin: 0;
}

/* Glass */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent-purple)));
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover { background: var(--hover-bg); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* Sections */
.section {
  padding: 4rem 0;
}

.section--dark {
  background: var(--section-dark-bg);
  margin: 0 -1.5rem;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section__header p { color: var(--text-muted); }

/* Module grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.module-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.module-card {
  position: relative;
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--primary));
  opacity: 0;
  transition: opacity 0.25s;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.module-card:hover::before { opacity: 1; }

.module-card__icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.module-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.module-card__tag { font-size: 0.75rem; color: var(--accent); font-family: var(--mono); margin-bottom: 0.5rem; }
.module-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.module-card__arrow { display: block; margin-top: 1rem; color: var(--primary); font-weight: 600; font-size: 0.85rem; }
.module-card__top { display: flex; justify-content: space-between; align-items: flex-start; }

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stack-item {
  padding: 1rem;
  text-align: center;
}

.stack-item__cat {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stack-item__name { font-weight: 600; font-size: 0.9rem; }

/* Architecture */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.arch-node {
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  border: 1px solid var(--border);
}

.arch-node small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.75rem; margin-top: 0.25rem; }
.arch-node--frontend { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); }
.arch-node--api { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }
.arch-node--cloud { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); }
.arch-arrow { color: var(--text-muted); font-size: 1.5rem; }

/* CTA */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  flex-wrap: wrap;
}

.cta-banner h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-banner p { color: var(--text-muted); max-width: 500px; }

/* Chips */
.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.chip--live {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.chip--participated {
  background: rgba(249, 128, 18, 0.15);
  border-color: rgba(249, 128, 18, 0.35);
  color: #fdba74;
}

.chip--ocai {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

/* EdTech School */
.edtech-showcase {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .edtech-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .edtech-showcase-card--flagship {
    grid-column: 1 / -1;
  }
}

.edtech-showcase--compact .edtech-showcase-card {
  padding: 1.25rem;
}

.edtech-showcase-card {
  padding: 1.5rem;
  border-left: 3px solid var(--accent, var(--primary));
}

.edtech-showcase-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.edtech-showcase-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.edtech-showcase-card__category {
  margin: 0 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, var(--primary));
}

.edtech-showcase-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.edtech-showcase-card__desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.edtech-showcase-card__highlights {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.edtech-showcase-card__stack {
  margin: 0 0 1rem;
  font-size: 0.75rem;
}

.edtech-showcase-card__stack code {
  color: #93c5fd;
}

.edtech-showcase-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.edtech-approach-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.edtech-approach-copy {
  padding: 1.5rem 1.75rem;
  max-width: 72ch;
}

.edtech-approach-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.edtech-approach-quote {
  margin: 1.25rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
  font-style: italic;
  color: var(--text);
}

.edtech-services {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.edtech-service {
  padding: 1.25rem 1.35rem;
}

.edtech-service__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.edtech-service h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.edtech-service p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.edtech-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.edtech-cta h2 {
  margin: 0 0 0.75rem;
}

.edtech-cta p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.edtech-cta__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* Page hero */
.page-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-hero--moodle .page-hero__moodle-logo {
  display: block;
  width: auto;
  height: 41px;
  max-width: 160px;
  margin: 0 auto 1rem;
}

.page-hero__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero__lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

.headline-hook {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 160, 74, 0.4);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem auto 0;
  max-width: 720px;
  text-align: left;
}

.headline-hook__lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold, #c8a04a);
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.headline-hook__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.headline-hook__body em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

/* About page */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.content-block h2 { margin-bottom: 1rem; }
.content-block p { color: var(--text-muted); margin-bottom: 1rem; }

.feature-cards { display: flex; flex-direction: column; gap: 1rem; }

.feature-card {
  padding: 1.25rem;
}

.feature-card__icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); }

.objectives-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.objectives-list li {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flow-step {
  padding: 1.5rem;
  text-align: center;
}

.flow-step__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--mono);
  margin-bottom: 0.5rem;
}

.flow-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.flow-step p { font-size: 0.85rem; color: var(--text-muted); }

.quote-block {
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.quote-block blockquote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
}

/* Module detail */
.module-page { padding: 2rem 0; }
.back-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--primary); }

.module-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.module-header__icon {
  font-size: 3rem;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.module-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.35rem; }
.module-header__tag { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 0.5rem; }
.module-header p { color: var(--text-muted); }

.demo-panel {
  padding: 2rem;
}

.demo-panel h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.demo-panel p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.9rem; }
.demo-panel h3 { font-size: 1rem; margin: 1.5rem 0 0.75rem; }

.input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.input { resize: vertical; min-height: 80px; }

.result-area {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  min-height: 60px;
  color: #86efac;
}

.result-area:empty { display: none; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.filter-row .btn { margin-bottom: 0.75rem; }

/* Chat */
.chat-window {
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.chat-msg--bot {
  align-self: flex-start;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.chat-msg--user {
  align-self: flex-end;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.chat-input-row {
  display: flex;
  gap: 0.75rem;
}

.chat-input-row .input { flex: 1; margin-bottom: 0; }

.hidden { display: none; }

/* Table */
.table-wrap { overflow-x: auto; padding: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(0,0,0,0.2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.data-table code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #93c5fd;
}

.arch-detail { padding: 2rem; }
.arch-layer { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.arch-layer:last-child { border-bottom: none; }
.arch-layer h3 { margin-bottom: 0.5rem; }
.arch-layer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* Security status colors */
.status-ok { color: var(--success); }
.status-warn { color: var(--warning); }
.status-fail { color: var(--danger); }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer__brand { margin-bottom: 1rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.35rem; }
.footer__stack { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer__copy { font-size: 0.8rem; color: var(--text-muted); }
.footer__copy a { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 2.5rem 0; }
  .hero--impact { min-height: auto; }
  .hero__visual { min-height: 280px; }
  .home-featured { grid-template-columns: 1fr; }
  .home-quicklinks { gap: 0.5rem; padding-bottom: 2rem; }
  .two-col { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .nav { position: relative; flex-wrap: wrap; }
  .nav__links { display: none; width: 100%; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--mobile-nav-bg);
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
  .nav__link { width: 100%; text-align: left; }
  .nav__cta { margin-left: 0; margin-top: 0.25rem; text-align: center; }
  .nav__dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.25rem 0.75rem;
    margin-top: 0.15rem;
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav__dropdown.open > .nav__dropdown-menu { display: block; }
  .nav__dropdown.open .nav__chevron { transform: rotate(180deg); }
  .nav__dropdown-link { padding-left: 0.65rem; }
  .nav__toggle { display: block; }
  .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .flow-steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
}

/* ── Top bar & Subscribe ─────────────────────────────────── */
.top-bar {
  position: relative;
  z-index: 110;
  background: var(--top-bar-bg);
  border-bottom: 1px solid var(--border);
}

.top-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscribe-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
  max-width: 640px;
}

.subscribe-bar__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--subscribe-label);
  white-space: nowrap;
}

.subscribe-bar__input {
  padding: 0.4rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.85rem;
  min-width: 180px;
  font-family: var(--font);
}

.subscribe-bar__input:focus {
  outline: none;
  border-color: var(--primary);
}

.subscribe-bar__btn {
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  animation: subscribe-btn-pulse 2.4s ease-in-out infinite;
}

.subscribe-bar__btn:hover {
  opacity: 0.95;
  animation: none;
  transform: translateY(-1px);
}

@keyframes subscribe-btn-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(59, 130, 246, 0.2),
      0 0 22px 6px rgba(59, 130, 246, 0.55),
      0 0 36px 10px rgba(168, 85, 247, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .subscribe-bar__btn,
  .subscribe-hero__form .btn--primary {
    animation: none;
  }
}

.streamlit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 50px;
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.streamlit-badge__dot {
  width: 6px; height: 6px;
  background: #22d3ee;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Flash messages */
.flash-messages {
  position: fixed;
  top: 3.5rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.flash--success { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4); color: #6ee7b7; }
.flash--error { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.flash--warning { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.4); color: #fcd34d; }
.flash--info { background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4); color: #93c5fd; }

/* Section helpers */
.section--compact { padding: 1.5rem 0; }
.section__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Streamlit banner */
.streamlit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  flex-wrap: wrap;
  border-color: rgba(34, 211, 238, 0.2);
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(59,130,246,0.08));
}

.streamlit-banner--large { padding: 2rem; }
.streamlit-banner__content { display: flex; align-items: flex-start; gap: 1rem; }
.streamlit-banner__icon { font-size: 2rem; }
.streamlit-banner p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.streamlit-banner h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }

.chip--streamlit {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  color: #67e8f9;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-grid--full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.project-card {
  padding: 0;
  border-top: 3px solid var(--accent, var(--primary));
  overflow: hidden;
}

.project-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: 1.5rem;
}

.project-card:not(:has(.project-card__thumb)) {
  padding: 1.5rem;
}

.project-card:not(:has(.project-card__thumb)) .project-card__body {
  padding: 0;
}

.project-card--highlight {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(135deg, rgba(34,211,238,0.06), rgba(59,130,246,0.06));
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-card__icon { font-size: 2rem; }
.project-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.project-card__sub { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); margin-bottom: 0.5rem; }
.project-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.75rem; }
.project-card__stack { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.project-card__stack code { color: #93c5fd; }
.project-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

/* NL demo grid */
.nl-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.nl-demo-card {
  display: block;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s;
}

.nl-demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.35);
}

.nl-demo-card__icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }

.nl-demo-card__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(164, 53, 240, 0.4);
}
.nl-demo-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.nl-demo-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.nl-demo-card__cta { color: var(--primary); font-weight: 600; font-size: 0.85rem; }

/* AI demo chips */
.ai-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.ai-demo-grid--full { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.ai-demo-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}

.ai-demo-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.3);
}

.ai-demo-chip__icon { font-size: 1.25rem; }
.ai-demo-chip__title { font-weight: 600; font-size: 0.875rem; flex: 1; }
.ai-demo-chip__area { font-size: 0.7rem; color: var(--text-muted); }
.ai-demo-chip__arrow { color: var(--primary); }

/* AI catalog */
.ai-catalog__group { margin-bottom: 2.5rem; }
.ai-catalog__area {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Natural Translate */
.translate-panel { padding: 2rem; }
.translate-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.translate-col--center {
  display: flex;
  align-items: center;
  padding-top: 3rem;
}

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.translate-output {
  min-height: 180px;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.translate-hint {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.translate-hint a { color: var(--primary); }

.input--inline { display: inline-block; width: auto; min-width: 220px; }

/* Voice reader */
.reader-controls {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.reader-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.reader-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reader-section {
  padding: 1.5rem;
}

.reader-section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.reader-section__text { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.reader-section__translated {
  padding: 1rem;
  background: rgba(59,130,246,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 3px solid var(--primary);
}

.reader-section__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.reader-audio { width: 100%; margin-top: 0.5rem; }

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nl-demo-grid { grid-template-columns: 1fr; }
  .translate-columns { grid-template-columns: 1fr; }
  .translate-col--center { padding-top: 0; justify-content: center; }
  .top-bar__inner { flex-direction: column; align-items: center; }
  .top-bar__prefs { flex-wrap: wrap; justify-content: center; }
  .lang-switcher { border-right: none; padding-right: 0; }
  .theme-switcher { border-right: none; padding-right: 0; }
  .subscribe-bar { justify-content: center; width: 100%; }
  .streamlit-badge { justify-content: center; }
}

/* Home — quicklinks & featured */
.home-quicklinks {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 0 2.5rem;
  margin-top: -1rem;
}

.home-quicklink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.home-quicklink:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.home-quicklink__icon { font-size: 1.1rem; line-height: 1; }

.home-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.home-featured-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.home-featured-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.home-featured-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.home-featured-card:hover::before { opacity: 1; }

.home-featured-card--gold {
  border-color: color-mix(in srgb, #c8a04a 35%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, #c8a04a 8%, transparent), var(--surface));
}

.home-featured-card--gold::before {
  background: linear-gradient(90deg, #c8a04a, #e8c878);
  opacity: 1;
}

.home-featured-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  background: color-mix(in srgb, #c8a04a 20%, transparent);
  border: 1px solid color-mix(in srgb, #c8a04a 40%, transparent);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e8c878;
}

.home-featured-card__icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.home-featured-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.home-featured-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.home-featured-card__cta {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Subscribe hero — centered mid-page */
.subscribe-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  display: flex;
  justify-content: center;
}

.subscribe-hero__inner {
  width: 100%;
  max-width: 560px;
  padding: 2rem 2.25rem;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--accent-purple) 8%, transparent));
}

.subscribe-hero__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--subscribe-label);
}

.subscribe-hero h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.subscribe-hero p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.subscribe-hero__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-hero__input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
}

.subscribe-hero__input:focus {
  outline: none;
  border-color: var(--primary);
}

.subscribe-hero__form .btn--primary {
  animation: subscribe-btn-pulse 2.4s ease-in-out infinite;
}

.subscribe-hero__form .btn--primary:hover {
  animation: none;
}

/* Academia IA Open catalogs */
.page-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.bigschool-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bigschool-stat {
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 100px;
}

.bigschool-stat__value {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
}

.bigschool-stat__label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.bigschool-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.bigschool-tools-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.bigschool-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}

.bigschool-tool:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.bigschool-tool__icon { font-size: 1.75rem; }

.bigschool-tool__name {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.bigschool-tool__cat,
.bigschool-tool__module {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

.bigschool-curriculum {
  display: grid;
  gap: 0.65rem;
}

.bigschool-module { overflow: hidden; }

.bigschool-module__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.bigschool-module__head::-webkit-details-marker { display: none; }

.bigschool-module__badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.bigschool-module__list {
  margin: 0;
  padding: 0 1.25rem 1rem 2.5rem;
}

.bigschool-module__list li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Máster Dev IA — catálogo de aplicaciones */
.ia-app-module {
  margin-bottom: 2.5rem;
}

.ia-app-module__title {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ia-app-module__count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}

.ia-app-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
}

.ia-app-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  gap: 0.75rem;
}

.ia-app-card__head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.ia-app-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.ia-app-card__head h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.ia-app-card__head h4 a {
  color: inherit;
  text-decoration: none;
}

.ia-app-card__head h4 a:hover {
  color: var(--primary);
}

.ia-app-card__summary {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ia-app-card__body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ia-app-card__body p {
  margin: 0 0 0.5rem;
}

.ia-app-card__focus {
  font-size: 0.82rem;
  padding: 0.65rem 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.ia-app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.chip--sm {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
}

/* Infinite Rooms dossier */
.ir-hero-figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.ir-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.ir-hero-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.ir-use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.ir-use-case {
  padding: 1.25rem;
}

.ir-use-case__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.ir-use-case__icon {
  font-size: 1.5rem;
}

.ir-use-case__head h3 {
  margin: 0;
  font-size: 1rem;
}

.ir-use-case__scenario {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.ir-use-case__steps {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ir-use-case__outcome {
  margin: 0;
  font-size: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.free-formation-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.free-formation-block {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
}

.free-formation-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.free-formation-block__week {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.free-formation-block__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.free-formation-block__topics {
  margin: 0 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.free-formation-block__resources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.free-formation-block__resources a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.06);
}

.free-formation-block__resources a:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}

.free-formation-block__resources span {
  font-size: 0.8rem;
  opacity: 0.75;
}

.academia-campus-cta {
  padding: 1.75rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
}

.academia-campus-cta__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f172a;
  background: #93c5fd;
  border-radius: 50px;
}

.academia-campus-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.academia-campus-cta__campus {
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.academia-campus-cta__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.academia-campus-cta__stats li {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
}

.academia-campus-cta__note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.academia-campus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.academia-campus-card {
  padding: 1.25rem;
}

.academia-campus-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.35rem;
}

.academia-campus-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #93c5fd;
  margin: 0 0 0.35rem;
}

.academia-campus-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.academia-campus-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Masters IA guide */
.section-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subscribe-label);
}

.masters-home__intro,
.masters-lead {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.masters-guide-content {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.masters-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 2rem;
  padding: 0.875rem 1rem;
  position: sticky;
  top: 4.5rem;
  z-index: 10;
}

.masters-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, color 0.2s;
}

.masters-nav a:hover {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.45);
}

.masters-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 6rem;
}

.masters-section--alt {
  padding: 1.5rem;
  border-radius: 12px;
}

.masters-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.masters-section h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
}

.masters-axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.masters-axes article {
  padding: 1rem;
}

.masters-axes strong {
  display: block;
  margin-bottom: 0.35rem;
}

.masters-axes span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.masters-decision {
  margin-bottom: 1.25rem;
}

.masters-decision__tree {
  margin: 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.masters-decision__tree code {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  white-space: pre;
}

.masters-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.masters-compare-card {
  padding: 1.25rem;
}

.masters-compare-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.masters-compare-card ul {
  margin: 0;
  padding-left: 1.15em;
}

.masters-compare-card li {
  margin-bottom: 0.35em;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.masters-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 10px;
}

.masters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.masters-table th,
.masters-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.masters-table th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

.masters-table tbody tr:last-child td {
  border-bottom: none;
}

.masters-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.masters-highlights {
  display: grid;
  gap: 0.75rem;
}

.masters-highlights article {
  padding: 1rem 1.15rem;
  border-left: 3px solid #3b82f6;
}

.masters-highlights h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.masters-highlights p {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.masters-checklists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.masters-checklists ul {
  margin: 0;
  padding-left: 1.15em;
}

.masters-checklists li {
  margin-bottom: 0.4em;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.masters-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.masters-attribution {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.masters-attribution__legend {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.masters-attribution__author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.masters-home__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.masters-home-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.masters-home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
}

.masters-home-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.masters-home-card p {
  flex: 1;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.masters-home-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #93c5fd;
}

.masters-home__cta {
  margin: 0.5rem 0 0;
}

.masters-dossiers__badge--link {
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.masters-dossiers__badge--link:hover {
  background: var(--accent);
  color: #fff;
}
.masters-dossiers__source,
.subscribe-dossiers__source {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.masters-dossiers__source a,
.subscribe-dossiers__source a {
  color: var(--accent);
}
.subscribe-dossiers {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.subscribe-dossiers__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subscribe-label);
  margin: 0 0 0.75rem;
  text-align: center;
}
.subscribe-dossiers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.subscribe-dossiers__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.15s;
}
.subscribe-dossiers__link:hover,
.js-dossier-gate.subscribe-dossiers__link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.js-dossier-gate {
  cursor: pointer;
}
.masters-dossiers__item.js-dossier-gate:hover {
  border-color: var(--accent);
}
.subscribe-dossiers__icon { font-size: 1.25rem; flex-shrink: 0; }
.subscribe-dossiers__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.subscribe-dossiers__meta strong {
  font-size: 0.875rem;
  color: var(--text);
}
.subscribe-dossiers__meta span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.subscribe-dossiers__badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  white-space: nowrap;
}

/* Masters dossiers — subscribe gate */
.masters-dossiers {
  padding: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.masters-dossiers__intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.masters-dossiers__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.masters-dossiers__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.masters-dossiers__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.masters-dossiers__meta {
  flex: 1;
  min-width: 0;
}

.masters-dossiers__meta strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.masters-dossiers__meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.masters-dossiers__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  white-space: nowrap;
}

.masters-dossiers__subscribe {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.masters-dossiers__subscribe h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.masters-dossiers__note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.masters-dossiers__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.masters-dossiers__form .btn--primary {
  animation: subscribe-btn-pulse 2.4s ease-in-out infinite;
}

.masters-dossiers__form .btn--primary:hover {
  animation: none;
}

@media (max-width: 640px) {
  .masters-dossiers__item {
    flex-wrap: wrap;
  }

  .masters-dossiers__badge {
    width: 100%;
    text-align: center;
  }

  .masters-dossiers__form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masters-dossiers__form .btn--primary {
    animation: none;
  }
}

/* Dossier subscribe gate modal */
.ocai-dossier-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 12, 16, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.ocai-dossier-gate--open {
  opacity: 1;
  visibility: visible;
}
.ocai-dossier-gate__card {
  position: relative;
  width: min(440px, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: left;
}
.ocai-dossier-gate__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ocai-dossier-gate__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.ocai-dossier-gate__card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}
.ocai-dossier-gate__card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.ocai-dossier-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Metro IA map */
.metro-ai__figure {
  margin: 0 auto 2rem;
  max-width: 1024px;
  padding: 0.75rem;
  text-align: center;
}

.metro-ai__figure-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metro-ai__figure-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.metro-ai__img {
  display: block;
  width: 100%;
  height: auto;
}

.metro-ai__figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metro-ai__lines {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.metro-line {
  border-left: 4px solid var(--line-color, #3b82f6);
  overflow: hidden;
}

.metro-line__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.metro-line__head::-webkit-details-marker { display: none; }

.metro-line__head::after {
  content: "▸";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.metro-line[open] .metro-line__head::after {
  transform: rotate(90deg);
}

.metro-line__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.metro-line__icon { font-size: 1.1rem; }

.metro-line__count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}

.metro-line__body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.metro-line__desc {
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.metro-stations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
}

.metro-station {
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.metro-station__name {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--line-color, #93c5fd);
}

.metro-station__what,
.metro-station__example {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.metro-station__example {
  margin-bottom: 0;
  font-style: italic;
}

.metro-hubs {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.metro-hubs h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.metro-hubs__intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.metro-hubs__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.metro-hubs__list li {
  font-size: 0.88rem;
  line-height: 1.55;
  padding-left: 0.85rem;
  border-left: 3px solid #3b82f6;
}

.metro-hubs__example {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.metro-secondary {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.metro-secondary__toggle {
  padding: 1rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.metro-secondary__toggle::-webkit-details-marker { display: none; }

.metro-secondary__body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.metro-secondary__intro {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.metro-ai__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.metro-map-panel__credit {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Map selector — multiple metro maps */
.metro-maps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem;
  margin-bottom: 1.25rem;
}

.metro-maps-nav__tab {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.metro-maps-nav__tab:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
}

.metro-maps-nav__tab--active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.12);
}

.metro-maps-nav__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
}

.metro-maps-nav__label {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.metro-map-panel {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.metro-map-panel--hidden { display: none; }

.metro-map-panel__head { margin-bottom: 1.25rem; }

.metro-map-panel__head h2 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.metro-map-panel__intro {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.metro-map-panel__link { margin: 0.75rem 0 0; }

.metro-map-panel__cta {
  margin-top: 1.25rem;
  text-align: center;
}

.metro-ai__figure--wide .metro-ai__img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.metro-map-panel__no-image {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

.metro-map-panel__no-image-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.metro-map-panel__no-image p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.metro-map-panel__no-image-meta {
  margin-top: 0.5rem !important;
  font-size: 0.78rem !important;
}

.metro-map-panel__variant-label {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #93c5fd;
  text-align: center;
}

.metro-ai__figure--secondary-map {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .masters-nav {
    position: static;
  }

  .masters-table thead {
    display: none;
  }

  .masters-table tr {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }

  .masters-table td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .masters-table td::before {
    content: attr(data-label);
    font-weight: 700;
    flex-shrink: 0;
  }
}

/* TalkToMood project page */
.talktomood-stats,
.talktomood-intro .talktomood-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0;
}

.ttm-lang {
  padding: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.ttm-lang__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.ttm-lang__tab {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ttm-lang__tab--active,
.ttm-lang__tab:hover {
  border-color: #3b82f6;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

.ttm-lang__frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ttm-lang__slide {
  display: none;
  margin: 0;
}

.ttm-lang__slide--active {
  display: block;
}

.ttm-lang__slide img {
  display: block;
  width: 100%;
  height: auto;
}

.ttm-lang__slide figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ttm-lang__features {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.ttm-lang__features li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 2px solid #3b82f6;
}

.ttm-arch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ttm-arch__item {
  padding: 1rem 1.15rem;
}

.ttm-arch__item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: #93c5fd;
}

.ttm-arch__item p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ttm-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ttm-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.ttm-gallery__item {
  overflow: hidden;
  margin: 0;
}

.ttm-gallery__link {
  display: block;
  overflow: hidden;
}

.ttm-gallery__link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s;
}

.ttm-gallery__link:hover img {
  transform: scale(1.02);
}

.ttm-gallery__item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.ttm-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.65rem;
}

.ttm-features li {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* HNTA — Humans Not Need To Apply */
.hnta-video {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(57, 255, 20, 0.2);
}

.hnta-video__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.hnta-video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hnta-video__meta {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.hnta-video__meta a {
  color: #86efac;
}

.hnta-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hnta-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.hnta-sector {
  padding: 1.25rem;
  border-left: 3px solid #39ff14;
}

.hnta-sector__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.35rem;
}

.hnta-sector h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.hnta-sector__desc {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hnta-sector__example {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
}

/* HNTA — campaña Artisan «Stop Hiring Humans» */
.hnta-billboard {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid rgba(255, 45, 85, 0.45);
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.08), rgba(57, 255, 20, 0.04));
}

.hnta-billboard__line {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ff2d55;
  text-shadow: 0 0 24px rgba(255, 45, 85, 0.35);
}

.hnta-billboard__sub {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hnta-billboard__sub a { color: #93c5fd; }

.hnta-artisan-claims {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hnta-artisan-claim { padding: 1.15rem 1.25rem; }

.hnta-artisan-claim__icon {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.35rem;
}

.hnta-artisan-claim h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.hnta-artisan-claim__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .hnta-artisan-claim__cols { grid-template-columns: 1fr; }
}

.hnta-artisan-claim__col p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hnta-artisan-claim__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hnta-artisan-claim__col--artisan .hnta-artisan-claim__label { color: #ff2d55; }
.hnta-artisan-claim__col--hnta .hnta-artisan-claim__label { color: #39ff14; }

.hnta-vs-table-wrap {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.hnta-vs-table__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  text-align: center;
}

.hnta-vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.hnta-vs-table th,
.hnta-vs-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  line-height: 1.5;
}

.hnta-vs-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hnta-vs-table td:last-child { color: #a3e635; }

.hnta-quotes {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hnta-quote { border-left-color: #ff2d55; }

/* OCA-I Empresa */
.ocai-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.ocai-pillar { padding: 1.25rem; }

.ocai-pillar__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.35rem;
}

.ocai-pillar h3 { margin: 0 0 0.5rem; font-size: 1rem; }

.ocai-pillar p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ocai-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.ocai-areas li { padding: 0.5rem 0.85rem; font-size: 0.85rem; }

.ocai-process {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.ocai-process li {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ocai-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.enterprise-chat {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.enterprise-chat__messages {
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.enterprise-chat__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.enterprise-chat__form .input {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.enterprise-chat__meta {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.enterprise-chat__thinking {
  opacity: 0.6;
  font-style: italic;
}

.enterprise-lead {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.enterprise-lead h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }

.enterprise-lead p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.enterprise-lead form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hidden { display: none !important; }

.masters-home__cta { margin: 0.5rem 0 0; }

/* ONU — IA y Open Source Week */
.un-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.un-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.un-pillar { padding: 1.25rem; }

.un-pillar__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.35rem;
}

.un-pillar h3 { margin: 0 0 0.5rem; font-size: 1rem; }

.un-pillar__desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.un-pillar__source {
  margin: 0;
  font-size: 0.78rem;
}

.un-pillar__source a { color: #93c5fd; }

.un-objectives {
  display: grid;
  gap: 0.75rem;
}

.un-objective {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  align-items: flex-start;
}

.un-objective__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.95rem;
}

.un-objective h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }

.un-objective__desc {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.un-objective__example {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
}

.un-reports {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.un-report { padding: 1.15rem 1.25rem; }

.un-report__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.un-report__org {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.un-report h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }

.un-report h3 a { color: inherit; text-decoration: none; }

.un-report h3 a:hover { color: #93c5fd; }

.un-report p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.un-organizers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.un-organizer {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  color: inherit;
  min-width: 140px;
  text-align: center;
  transition: border-color 0.2s;
}

.un-organizer:hover { border-color: rgba(59, 130, 246, 0.4); }

.un-organizer strong { font-size: 0.9rem; }

.un-organizer span {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.un-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.un-highlight { padding: 1.15rem 1.25rem; }

.un-highlight__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.un-highlight__icon { font-size: 1.5rem; }

.un-highlight h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }

.un-highlight p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.un-hackathons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.un-hackathon { padding: 1.15rem 1.25rem; }

.un-hackathon__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.35rem;
}

.un-hackathon h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }

.un-hackathon__dates {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #93c5fd;
}

.un-hackathon p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.un-agenda {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.un-agenda-day { padding: 1.15rem 1.25rem; }

.un-agenda-day__head { margin-bottom: 0.75rem; }

.un-agenda-day__date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.un-agenda-day h3 { margin: 0; font-size: 0.95rem; }

.un-agenda-day ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.un-quotes {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.un-quote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #3b82f6;
}

.un-quote p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
}

.un-quote cite {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
}

.un-ocai-bridge {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.un-ocai-item { padding: 1.15rem 1.25rem; }

.un-ocai-item__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.35rem;
}

.un-ocai-item h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }

.un-ocai-item p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* —— Artículos interesantes —— */

.articulos-creator-header {
  max-width: 920px;
  margin: 0 auto 1.75rem;
}

.articulos-creator-header__main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.articulos-creator-header__icon {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.articulos-creator-header__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(164, 53, 240, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.articulos-creator-header h2 {
  margin: 0.15rem 0 0.35rem;
}

.articulos-creator-header__role {
  margin: 0;
  font-size: 0.88rem;
  color: #93c5fd;
}

.articulos-creator-header__bio {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.articulos-tribute {
  margin: 0 0 1.15rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: italic;
}

.articulos-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.articulos-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  transition: border-color 0.2s, transform 0.15s;
}

.articulos-platform:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.articulo-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--creator-accent, #6366f1);
  transition: transform 0.15s, box-shadow 0.2s;
}

.articulo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.articulo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.articulo-card__icon { font-size: 1.35rem; }

.articulo-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.articulo-card p {
  flex: 1;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.articulo-card__platform {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--creator-accent, #6366f1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Roadmap IA — formación continua */
.roadmap-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.roadmap-count {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.roadmap-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
}

.roadmap-card__thumb {
  position: relative;
  height: 110px;
  background: linear-gradient(135deg, #1a1a2e 0%, #4a148c 50%, #7b1fa2 100%);
}

.roadmap-card__badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

.roadmap-card__body {
  padding: 1rem 1.15rem 1.25rem;
}

.roadmap-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.roadmap-card__title a {
  color: inherit;
  text-decoration: none;
}

.roadmap-card__title a:hover {
  color: #93c5fd;
}

.roadmap-card__meta {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.roadmap-card__desc {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.roadmap-card__outcomes {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.roadmap-card__outcomes strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
}

.roadmap-card__link {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.roadmap-card__link a {
  color: var(--primary);
  text-decoration: none;
}

.roadmap-card__link a:hover {
  text-decoration: underline;
}

.roadmap-note {
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Contador de visitas (banderas por país) ── */
.visit-counter {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.visit-counter__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.visit-counter__total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text, #f8fafc);
  line-height: 1.2;
}

.visit-counter__today {
  font-size: 0.75rem;
  color: #86efac;
  margin-top: 0.15rem;
}

.visit-counter__flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.65rem;
}

.visit-counter__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.visit-counter__flag-emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.visit-counter__flag-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.visit-counter--ready {
  animation: visit-fade-in 0.35s ease;
}

.visit-counter__last,
.visit-counter__session {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.visit-counter__last-title,
.visit-counter__session-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.visit-counter__last-row,
.visit-counter__session-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.visit-counter__last-flag,
.visit-counter__session-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.visit-counter__last-meta {
  text-align: left;
  line-height: 1.35;
}

.visit-counter__last-time,
.visit-counter__session-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text, #f8fafc);
}

.visit-counter__last-duration {
  opacity: 0.85;
}

@keyframes visit-fade-in {
  from { opacity: 0.6; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

