/* ============================================
   MT10X - Design System & CSS Tokens
   ============================================ */

:root {
  /* Color system */
  --mt-bg: #0c1526;
  --mt-bg-muted: radial-gradient(circle at 20% 15%, rgba(0,245,255,0.12), transparent 55%), radial-gradient(circle at 80% 5%, rgba(59,130,246,0.1), transparent 45%), radial-gradient(circle at 10% 80%, rgba(15,118,110,0.08), transparent 50%), #13233a;
  --mt-surface: rgba(25, 39, 68, 0.94);
  --mt-surface-alt: rgba(32, 51, 84, 0.9);

  --mt-ink: #E2E8F0;
  --mt-ink-dim: #94A3B8;
  --mt-ink-soft: #CBD5F5;
  --mt-ink-strong: #F8FAFC;

  --mt-indigo: #00F5FF;
  --mt-indigo-600: #00B8D4;
  --mt-cyan: #38BDF8;
  --mt-purple: #3B82F6;
  --mt-rose-soft: #F59E0B;

  --mt-success: #10B981;
  --mt-warn: #F59E0B;
  --mt-danger: #EF4444;

  --mt-border: rgba(148, 163, 184, 0.14);
  --mt-border-strong: rgba(15, 118, 110, 0.28);
  --mt-shadow-soft: 0 18px 40px rgba(8, 47, 73, 0.35);
  --mt-shadow-lift: 0 22px 60px rgba(0, 245, 255, 0.25);

  --mt-grad-hero: linear-gradient(135deg, rgba(11, 17, 32, 0.98) 0%, rgba(14, 27, 52, 0.95) 48%, rgba(17, 34, 62, 0.92) 100%);
  --mt-grad-accent: linear-gradient(135deg, rgba(0,245,255,0.45) 0%, rgba(0,184,212,0.35) 60%, rgba(139,92,246,0.25) 100%);
  --mt-grad-inverted: linear-gradient(135deg, #050B15 0%, #0F172A 100%);
  --mt-glass: rgba(15, 23, 42, 0.55);
  --mt-glass-border: rgba(148, 163, 184, 0.22);
  --mt-section-bg: linear-gradient(180deg, rgba(40, 65, 101, 0.92) 0%, rgba(28, 57, 88, 0.9) 100%);
  --mt-section-alt: linear-gradient(180deg, rgba(33, 83, 102, 0.92) 0%, rgba(26, 65, 89, 0.9) 100%);

  /* Typography */
  --mt-font-title: "Newsreader", ui-serif, Georgia, serif;
  --mt-font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mt-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale (clamp para buen fluido) */
  --mt-size-hero: clamp(2.0rem, 3.4vw, 3.2rem);
  --mt-size-h1: clamp(1.8rem, 2.6vw, 2.6rem);
  --mt-size-h2: clamp(1.4rem, 1.8vw, 1.9rem);
  --mt-size-h3: clamp(1.15rem, 1.2vw, 1.25rem);
  --mt-size-body: 1rem;
  --mt-leading: 1.75;

  /* Spacing (8pt) */
  --mt-space-1: .25rem;
  --mt-space-2: .5rem;
  --mt-space-3: .75rem;
  --mt-space-4: 1rem;
  --mt-space-6: 1.5rem;
  --mt-space-8: 2rem;
  --mt-space-12: 3rem;
  --mt-space-16: 4rem;

  /* Radius */
  --mt-r-8: 8px;
  --mt-r-12: 12px;
  --mt-r-18: 18px;
  --mt-r-24: 24px;

  /* Motion */
  --mt-ease: cubic-bezier(.2,.8,.2,1);
  --mt-time-1: 120ms;
  --mt-time-2: 220ms;
}

/* ============================================
   Base Styles
   ============================================ */

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

html, body {
  background: var(--mt-bg-muted);
  color: var(--mt-ink);
  font-family: var(--mt-font-body);
  line-height: var(--mt-leading);
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mt-font-title);
  letter-spacing: -0.2px;
  margin: 0 0 var(--mt-space-3);
  font-weight: 600;
}

h1 { font-size: var(--mt-size-h1); }
h2 { font-size: var(--mt-size-h2); }
h3 { font-size: var(--mt-size-h3); color: var(--mt-ink-dim); }
h4 { font-size: 1.1rem; color: var(--mt-ink-dim); }

p {
  font-size: var(--mt-size-body);
  color: var(--mt-ink-soft);
  margin-bottom: var(--mt-space-4);
}

strong {
  color: var(--mt-ink-strong);
}

a {
  color: var(--mt-indigo);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--mt-time-1) var(--mt-ease);
}

a:hover {
  color: var(--mt-indigo-600);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--mt-indigo);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   Container & Layout
   ============================================ */

.mt-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: var(--mt-space-12) 0;
  position: relative;
  z-index: 1;
}

section.mt-container {
  padding: var(--mt-space-12) 0;
}

section.mt-container::before,
section#contacto.mt-container::before {
  display: none;
}

.mt-container-nav {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: var(--mt-space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   Header & Navigation
   ============================================ */

.mt-header {
  background: rgba(8, 17, 35, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 12px 30px rgba(7, 18, 36, 0.45);
  backdrop-filter: blur(18px);
}

.mt-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: var(--mt-space-1) 0;
}

.mt-logo-image {
  max-height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--mt-time-1) var(--mt-ease), filter var(--mt-time-1) var(--mt-ease);
}

.mt-logo a:hover .mt-logo-image,
.mt-logo a:focus-visible .mt-logo-image {
  transform: translateY(-1px);
  filter: brightness(1.1) invert(1);
}

.mt-nav {
  display: flex;
  gap: var(--mt-space-6);
  align-items: center;
}

.mt-nav-link {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.75);
  text-decoration: none;
  transition: color var(--mt-time-1) var(--mt-ease);
  position: relative;
  letter-spacing: 0.3px;
}

.mt-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mt-grad-accent);
  transition: width var(--mt-time-1) var(--mt-ease);
}

.mt-nav-link:hover {
  color: var(--mt-ink-strong);
}

.mt-nav-link:hover::after {
  width: 100%;
}

.mt-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--mt-ink-strong);
  cursor: pointer;
  transition: color var(--mt-time-1) var(--mt-ease);
}

.mt-menu-toggle:hover {
  color: var(--mt-indigo);
}

/* Mobile Navigation */
.mt-mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--mt-space-2);
  background: rgba(7, 16, 32, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: var(--mt-space-4);
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 95;
  width: 100%;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 40px rgba(3, 10, 23, 0.55);
}

.mt-mobile-nav-link {
  padding: var(--mt-space-3) var(--mt-space-4);
  color: rgba(226, 232, 240, 0.8);
  text-decoration: none;
  transition: all var(--mt-time-1) var(--mt-ease);
  border-radius: var(--mt-r-8);
}

.mt-mobile-nav-link:hover {
  background: rgba(0, 184, 212, 0.16);
  color: var(--mt-ink-strong);
}

/* ============================================
   Hero Section
   ============================================ */

.mt-hero {
  background: var(--mt-grad-hero);
  padding: var(--mt-space-16) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.35), transparent 55%), radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.25), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.mt-hero .mt-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mt-space-12);
  align-items: center;
}

.mt-hero-title {
  font-size: var(--mt-size-hero);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--mt-space-6);
  color: var(--mt-ink-strong);
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.mt-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: var(--mt-space-4);
  font-weight: 500;
}

.mt-hero-description {
  font-size: 1rem;
  color: rgba(203, 213, 225, 0.82);
  margin-bottom: var(--mt-space-8);
  max-width: 60ch;
  line-height: 1.8;
}

.mt-hero-cta {
  display: flex;
  gap: var(--mt-space-4);
  flex-wrap: wrap;
}

.mt-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mt-hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mt-r-18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 245, 255, 0.2);
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(6px);
}

/* ============================================
   Buttons
   ============================================ */

.mt-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--mt-space-2);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--mt-time-1) var(--mt-ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.2px;
}

.mt-btn-primary {
  background: var(--mt-indigo);
  color: #021423;
  box-shadow: 0 0 0 rgba(0, 245, 255, 0.0), var(--mt-shadow-soft);
  text-shadow: none;
}

.mt-btn-primary:hover {
  background: var(--mt-indigo-600);
  transform: translateY(-2px);
  color: #021423;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.45), var(--mt-shadow-lift);
}

.mt-btn-secondary {
  background: rgba(14, 25, 46, 0.7);
  color: var(--mt-ink);
  border: 1px solid rgba(0, 245, 255, 0.32);
  box-shadow: 0 18px 30px rgba(8, 25, 43, 0.4);
  backdrop-filter: blur(16px);
}

.mt-btn-secondary:hover {
  background: rgba(0, 184, 212, 0.16);
  transform: translateY(-2px);
  color: var(--mt-ink-strong);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.35);
}

/* ============================================
   Cards
   ============================================ */

.mt-card {
  background: rgba(15, 26, 46, 0.72);
  border: 1px solid var(--mt-glass-border);
  border-radius: var(--mt-r-18);
  box-shadow: 0 18px 40px rgba(5, 12, 24, 0.45);
  padding: var(--mt-space-6);
  transition: all var(--mt-time-2) var(--mt-ease);
  backdrop-filter: blur(16px);
}

.mt-card:hover {
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--mt-shadow-lift);
  transform: translateY(-4px);
}

.mt-card h3 {
  margin-bottom: var(--mt-space-3);
  color: var(--mt-ink-strong);
}

.mt-card p {
  margin-bottom: 0;
  color: rgba(203, 213, 225, 0.78);
}

.mt-card-icon {
  font-size: 2rem;
  color: var(--mt-indigo);
  margin-bottom: var(--mt-space-4);
  text-shadow: 0 0 22px rgba(0, 245, 255, 0.4);
}

/* Grid */
.mt-grid {
  display: grid;
  gap: var(--mt-space-6);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: var(--mt-space-8);
}

/* ============================================
   Quotes
   ============================================ */

.mt-quote {
  position: relative;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(2rem, 5vw, 3.2rem);
  margin: var(--mt-space-8) 0;
  border-radius: 32px;
  background: rgba(15, 26, 46, 0.72);
  border: 1px solid rgba(0, 245, 255, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  transition: all var(--mt-time-2) var(--mt-ease);
}


.mt-quote::after {
  content: '“';
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.4rem);
  left: clamp(1rem, 3vw, 1.8rem);
  font-family: var(--mt-font-title);
  font-size: clamp(4rem, 10vw, 6rem);
  color: rgba(45, 249, 255, 0.92);
  line-height: 1;
  text-shadow: 0 0 22px rgba(45, 249, 255, 0.3);
}

.mt-quote:hover {
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--mt-shadow-lift);
  transform: translateY(-4px);
}

.mt-quote p {
  position: relative;
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem) !important;
  color: rgba(226, 248, 255, 0.92) !important;
  font-family: var(--mt-font-title);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.9;
  z-index: 1;
  text-shadow: 0 0 18px rgba(45, 249, 255, 0.42);
}

.mt-quote p em {
  color: rgba(45, 249, 255, 0.95);
}

.mt-quote-highlight {
  font-style: italic;
  color: rgba(45, 249, 255, 0.95);
  font-weight: 600;
  margin-top: var(--mt-space-6);
  padding-left: var(--mt-space-4);
  border-left: 3px solid rgba(45, 249, 255, 0.65);
}

/* ============================================
   Separators
   ============================================ */

.mt-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.45), transparent);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.25);
  margin: var(--mt-space-8) 0;
}

/* ============================================
   Section Titles
   ============================================ */

.mt-section-title {
  font-size: var(--mt-size-h1);
  font-weight: 700;
  margin-bottom: var(--mt-space-4);
  text-align: center;
  color: var(--mt-ink-strong);
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.mt-section-subtitle {
  font-size: 1.1rem;
  color: rgba(186, 197, 216, 0.85);
  text-align: center;
  margin-bottom: var(--mt-space-8);
}

/* ============================================
   Manifiesto Content
   ============================================ */

.mt-manifiesto-content {
  max-width: 800px;
  margin: 0 auto;
}

.mt-manifiesto-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: var(--mt-space-6);
  color: rgba(203, 213, 225, 0.85);
}

/* ============================================
   Articles Grid
   ============================================ */

.mt-articles-grid {
  display: grid;
  gap: var(--mt-space-6);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: var(--mt-space-8);
}

.mt-article-card {
  background: rgba(15, 26, 46, 0.7);
  border: 1px solid var(--mt-glass-border);
  border-radius: var(--mt-r-18);
  box-shadow: 0 18px 40px rgba(5, 12, 24, 0.42);
  padding: var(--mt-space-6);
  transition: all var(--mt-time-2) var(--mt-ease);
  backdrop-filter: blur(16px);
}

.mt-article-card:hover {
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--mt-shadow-lift);
  transform: translateY(-4px);
}

.mt-article-card h3 {
  margin-bottom: var(--mt-space-3);
  color: var(--mt-ink-strong);
  font-size: 1.2rem;
}

.mt-article-card p {
  color: rgba(203, 213, 225, 0.78);
  margin-bottom: var(--mt-space-4);
}

.mt-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--mt-space-2);
  color: var(--mt-indigo);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--mt-time-1) var(--mt-ease);
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.35);
}

.mt-read-more:hover {
  color: var(--mt-indigo-600);
  transform: translateX(4px);
}

/* ============================================
   Blog Components
   ============================================ */

.mt-blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--mt-space-3);
  height: 100%;
}

.mt-blog-card h3 a {
  color: inherit;
}

.mt-blog-card h3 a:hover {
  color: var(--mt-indigo);
}

.mt-article-meta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.78);
  margin-bottom: var(--mt-space-2);
}

.mt-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mt-space-2);
  margin-bottom: var(--mt-space-4);
}

.mt-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--mt-space-1);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: var(--mt-indigo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mt-blog-empty {
  text-align: center;
  margin-top: var(--mt-space-8);
  color: rgba(200, 210, 230, 0.8);
}

.mt-blog-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--mt-space-8);
}

.mt-blog-hero {
  background: linear-gradient(140deg, rgba(13, 23, 41, 0.95) 0%, rgba(22, 36, 61, 0.9) 60%, rgba(6, 14, 28, 0.92) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  z-index: 4; /* Keep search dropdown above blog cards below */
}

.mt-blog-hero .mt-container {
  width: min(900px, 92vw);
  text-align: center;
  padding: var(--mt-space-16) 0 var(--mt-space-8);
}

.mt-blog-hero h1 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  color: var(--mt-ink-strong);
}

.mt-blog-description {
  font-size: 1.1rem;
  color: rgba(203, 213, 225, 0.85);
  margin: 0 auto var(--mt-space-6);
  max-width: 650px;
}

.mt-blog-search {
  margin: 0 auto;
  max-width: 520px;
}

.mt-blog-search input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: var(--mt-r-18);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(8, 17, 35, 0.82);
  color: var(--mt-ink-strong);
  font-size: 1rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  transition: all var(--mt-time-2) var(--mt-ease);
}

.mt-blog-search input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.mt-blog-search input:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 184, 212, 0.25);
}

.mt-blog-list-wrapper {
  padding-top: var(--mt-space-8);
  padding-bottom: var(--mt-space-16);
}

.mt-blog-list {
  align-items: stretch;
}

.mt-blog-main {
  background: var(--mt-bg-muted);
}

.mt-blog-article-header {
  background: rgba(9, 17, 32, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.mt-blog-article-header .mt-container {
  width: min(800px, 92vw);
  text-align: center;
  padding: var(--mt-space-16) 0 var(--mt-space-8);
}

.mt-blog-excerpt {
  font-size: 1.1rem;
  color: rgba(203, 213, 225, 0.85);
  margin: 0 auto var(--mt-space-4);
  max-width: 640px;
}

.mt-blog-content {
  padding: var(--mt-space-12) 0 var(--mt-space-8);
}

.mt-prose {
  width: min(780px, 92vw);
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.88);
}

.mt-prose > *:first-child {
  margin-top: 0;
}

.mt-prose p,
.mt-prose ul,
.mt-prose ol {
  margin-bottom: 1.4em;
  line-height: 1.85;
}

.mt-prose h2,
.mt-prose h3,
.mt-prose h4 {
  color: var(--mt-ink-strong);
  margin-top: 2.4em;
}

.mt-prose h2 {
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.mt-prose h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}

.mt-prose ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.mt-prose ol {
  padding-left: 1.5rem;
  list-style: decimal;
}

.mt-prose blockquote {
  border-left: 3px solid rgba(0, 245, 255, 0.45);
  padding-left: 1.2rem;
  margin: 2rem 0;
  color: rgba(226, 232, 240, 0.75);
  font-style: italic;
}

.mt-prose pre {
  background: rgba(8, 17, 35, 0.88);
  border-radius: var(--mt-r-12);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: var(--mt-font-mono);
  font-size: 0.95rem;
}

.mt-prose code {
  background: rgba(15, 118, 110, 0.18);
  padding: 0.15rem 0.4rem;
  border-radius: var(--mt-r-8);
  font-family: var(--mt-font-mono);
  font-size: 0.95rem;
  color: var(--mt-indigo);
}

.mt-video {
  width: min(720px, 95vw);
  margin: var(--mt-space-8) auto;
  border-radius: var(--mt-r-18);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(2, 10, 22, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  aspect-ratio: 16 / 9;
  background: #000;
}

.mt-video video,
.mt-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  border: 0;
}

.mt-lightbox-figure {
  margin: var(--mt-space-10) auto;
  text-align: center;
  max-width: min(780px, 92vw);
}

.mt-lightbox-figure a {
  display: block;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--mt-r-18);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 60px rgba(2, 10, 22, 0.45);
  background: linear-gradient(145deg, rgba(7, 15, 31, 0.95), rgba(6, 18, 40, 0.9));
  transition: transform var(--mt-time-2) var(--mt-ease), box-shadow var(--mt-time-2) var(--mt-ease), border-color var(--mt-time-2) var(--mt-ease);
}

.mt-lightbox-figure a:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 30px 70px rgba(3, 18, 38, 0.55);
}

.mt-lightbox-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.mt-lightbox-figure figcaption {
  color: rgba(226, 232, 240, 0.8);
  margin-top: var(--mt-space-3);
  font-size: 0.95rem;
}

.mt-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--mt-space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mt-time-2) var(--mt-ease);
  z-index: 1300;
}

.mt-lightbox-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mt-lightbox-content {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  gap: var(--mt-space-3);
}

.mt-lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #0a1221;
  border-radius: var(--mt-r-18);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.mt-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(7, 12, 24, 0.4);
  border: none;
  color: transparent;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transition: transform var(--mt-time-1) var(--mt-ease), background var(--mt-time-1) var(--mt-ease);
  backdrop-filter: blur(4px);
}

.mt-lightbox-close::before,
.mt-lightbox-close::after {
  content: "";
  position: absolute;
  width: 58%;
  height: 2px;
  background: #f8fafc;
  top: 50%;
  left: 50%;
  transform-origin: center;
  border-radius: 999px;
}

.mt-lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mt-lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mt-lightbox-close:hover {
  transform: translateY(-2px);
  background: rgba(7, 12, 24, 0.65);
}

.mt-lightbox-caption {
  text-align: center;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.95rem;
}

.mt-no-scroll {
  overflow: hidden;
}

@media (max-width: 640px) {
  .mt-lightbox-figure {
    margin: var(--mt-space-8) auto;
    max-width: 92vw;
  }

  .mt-lightbox-overlay {
    padding: 0;
  }

  .mt-lightbox-content {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    gap: 0;
  }

  .mt-lightbox-img {
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .mt-lightbox-caption {
    display: none;
  }

  .mt-lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(5, 8, 15, 0.55);
  }

  .mt-lightbox-figure figcaption {
    display: none;
  }
}

.mt-blog-navigation {
  display: flex;
  justify-content: center;
  padding-bottom: var(--mt-space-16);
}

.mt-blog-navigation .mt-btn {
  margin-top: var(--mt-space-4);
}

.mt-blog-share {
  padding-bottom: var(--mt-space-8);
  text-align: center;
}

.mt-share-title {
  font-size: 1.5rem;
  margin-bottom: var(--mt-space-4);
  color: var(--mt-ink-strong);
}

.mt-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mt-space-4);
  margin-bottom: var(--mt-space-3);
}

.mt-share-actions .mt-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--mt-space-2);
  min-width: 220px;
  justify-content: center;
  text-decoration: none;
}

.mt-btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--mt-ink);
}

.mt-btn-outline:hover {
  border-color: var(--mt-indigo);
  color: var(--mt-indigo);
  text-decoration: none;
}

.mt-share-actions .mt-btn:focus-visible {
  outline: 2px solid var(--mt-indigo);
  outline-offset: 2px;
  text-decoration: none;
}

.mt-share-hint {
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.95rem;
}

.mt-feedback-prompt {
  width: min(780px, 92vw);
  padding: var(--mt-space-4) 0 var(--mt-space-2);
  text-align: center;
}

.mt-feedback-card {
  background: rgba(15, 26, 46, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--mt-r-18);
  padding: var(--mt-space-8) var(--mt-space-6);
  box-shadow: 0 24px 48px rgba(5, 12, 24, 0.45);
  opacity: 0;
  transform: translateY(14px);
  transition: all var(--mt-time-2) var(--mt-ease);
}

.mt-feedback-card h2 {
  margin: var(--mt-space-2) 0 var(--mt-space-3);
  color: var(--mt-ink-strong);
}

.mt-feedback-card p {
  margin: 0 auto var(--mt-space-4);
  max-width: 520px;
  color: rgba(203, 213, 225, 0.8);
}

.mt-feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mt-space-2);
}

.mt-feedback-thanks {
  margin: 0;
  color: var(--mt-ink-strong);
  font-weight: 700;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.25);
  padding: 0.75rem 1.25rem;
  border-radius: var(--mt-r-12);
}

.mt-feedback-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: rgba(0, 245, 255, 0.8);
}

.mt-feedback-prompt.is-visible .mt-feedback-card {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .mt-blog-hero .mt-container,
  .mt-blog-article-header .mt-container {
    padding: var(--mt-space-12) 0 var(--mt-space-6);
  }

  .mt-blog-search input {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 540px) {
  .mt-blog-search {
    max-width: 100%;
  }

  .mt-blog-search input {
    font-size: 0.95rem;
  }

  .mt-article-tags {
    gap: var(--mt-space-1);
  }

  .mt-tag {
    font-size: 0.7rem;
  }
}

/* ============================================
   Inverted Section
   ============================================ */

.mt-section--inverted {
  background: var(--mt-grad-inverted);
  color: #E2E8F0;
  padding: var(--mt-space-16) 0 0;
}

.mt-section--inverted .mt-container {
  padding-bottom: 0;
}

.mt-section--inverted h2 {
  color: #E2E8F0;
  text-align: center;
  margin-bottom: var(--mt-space-6);
}

.mt-section--inverted p {
  color: #E2E8F0;
}

.mt-section--inverted .mt-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 245, 255, 0.35);
  color: #F8FAFC;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.mt-closing-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.mt-closing-content h2 {
  font-size: var(--mt-size-h1);
  margin-bottom: var(--mt-space-6);
}

.mt-closing-content p {
  font-size: 1.05rem;
  margin-bottom: var(--mt-space-4);
  line-height: 1.9;
}

.mt-closing-subcopy {
  font-style: italic;
  color: rgba(226, 232, 240, 0.8);
}

.mt-closing-image {
  display: flex;
  justify-content: center;
  margin-top: var(--mt-space-12);
}

.mt-closing-img {
  max-width: 300px;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
  display: block;
}

/* ============================================
   Social Links
   ============================================ */

.mt-social-links {
  display: flex;
  justify-content: center;
  gap: var(--mt-space-6);
  flex-wrap: wrap;
  margin-top: var(--mt-space-8);
}

.mt-social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--mt-space-2);
  padding: 0.8rem 1.5rem;
  background: rgba(12, 22, 40, 0.65);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 999px;
  color: var(--mt-ink);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--mt-time-1) var(--mt-ease);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(6, 13, 26, 0.42);
}

.mt-social-link:hover {
  background: var(--mt-indigo);
  color: #04121d;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.35), var(--mt-shadow-lift);
}

.mt-social-link i {
  font-size: 1.2rem;
}

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

.mt-footer {
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.95) 0%, rgba(11, 20, 38, 0.98) 45%, rgba(15, 27, 48, 1) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: var(--mt-space-12) 0 var(--mt-space-8);
  color: var(--mt-ink);
}

.mt-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--mt-space-8);
  margin-bottom: var(--mt-space-8);
}

.mt-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--mt-space-3);
}

.mt-footer-signature {
  max-width: 200px;
  width: 100%;
  filter: brightness(0) invert(1);
}


.mt-footer-section h4 {
  margin-bottom: var(--mt-space-3);
  color: var(--mt-ink-strong);
}

.mt-footer-section p {
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.95rem;
}

.mt-footer-section ul {
  list-style: none;
}

.mt-footer-section ul li {
  margin-bottom: var(--mt-space-2);
}

.mt-footer-section ul li a {
  color: rgba(186, 197, 216, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--mt-time-1) var(--mt-ease);
}

.mt-footer-section ul li a:hover {
  color: var(--mt-indigo);
}

.mt-disclaimer {
  padding: var(--mt-space-4) 0 var(--mt-space-6);
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.92), rgba(7, 15, 30, 0.98));
  text-align: center;
  
  color: rgba(148, 163, 184, 0.6);
  line-height: 1.6;
}

.mt-disclaimer > p {
  margin: 0;
  width: min(900px, 92vw);
  margin-inline: auto;
  font-size: 0.72rem !important;
}

.mt-disclaimer a {
  color: rgba(45, 249, 255, 0.85);
  text-decoration: none;
}

.mt-disclaimer a:hover {
  text-decoration: underline;
}

.mt-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--mt-space-6);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.9rem;
  color: rgba(186, 197, 216, 0.7);
}

.mt-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 245, 255, 0.25);
  border: 1px solid rgba(0, 245, 255, 0.45);
  color: var(--mt-ink);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--mt-time-1) var(--mt-ease);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.28);
}

.mt-back-to-top:hover {
  background: var(--mt-indigo-600);
  transform: translateY(-2px);
  color: #04121d;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.4);
}

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

@media (max-width: 768px) {
  .mt-menu-toggle {
    display: block;
  }

  .mt-nav {
    display: none;
  }

  .mt-hero .mt-container {
    grid-template-columns: 1fr;
    gap: var(--mt-space-8);
  }

  .mt-hero {
    min-height: auto;
    padding: var(--mt-space-12) 0;
  }

  .mt-hero-title {
    font-size: var(--mt-size-h2);
  }

  .mt-hero-cta {
    flex-direction: column;
  }

  .mt-btn {
    width: 100%;
    justify-content: center;
  }

  .mt-container {
    padding: var(--mt-space-8) 0;
  }

  .mt-grid {
    grid-template-columns: 1fr;
  }

  .mt-articles-grid {
    grid-template-columns: 1fr;
  }

  .mt-section-title {
    font-size: var(--mt-size-h2);
  }

  .mt-footer-bottom {
    flex-direction: column;
    gap: var(--mt-space-4);
    text-align: center;
  }

  .mt-social-links {
    gap: var(--mt-space-4);
  }

  .mt-social-link {
    flex: 1;
    min-width: 140px;
  }

  .mt-closing-image {
    margin-top: var(--mt-space-8);
  }

  .mt-closing-img {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .mt-container-nav {
    padding: var(--mt-space-3) 0;
  }

  .mt-logo-image {
    max-height: 34px;
  }

  .mt-hero-title {
    font-size: var(--mt-size-h2);
    line-height: 1.3;
  }

  .mt-hero-subtitle {
    font-size: 1.1rem;
  }

  .mt-hero-description {
    font-size: 0.95rem;
  }

  .mt-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .mt-card {
    padding: var(--mt-space-4);
  }

  .mt-section-title {
    font-size: clamp(1.6rem, 5vw, 1.9rem) !important;
  }

  .mt-quote {
    margin: var(--mt-space-6) auto !important;
    padding: clamp(2rem, 6vw, 2.4rem) clamp(1.4rem, 4.5vw, 2rem) clamp(2rem, 6vw, 2.4rem) clamp(3.1rem, 8vw, 3.5rem) !important;
    max-width: 92vw;
  }

  .mt-quote::after {
    top: clamp(1.2rem, 2.5vw, 1.2rem) !important;
    left: clamp(1.4rem, 6vw, 2rem) !important;
  }

  .mt-quote p {
    font-size: clamp(1.2rem, 4.6vw, 1.38rem) !important;
    padding-left: 0 !important;
  }

  .mt-social-link {
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
    justify-content: center;
    gap: var(--mt-space-3);
    flex: none;
    width: 100%;
  }

  .mt-social-link span {
    display: inline;
    font-weight: 600;
  }

  .mt-social-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mt-space-3);
  }

  .mt-footer-content {
    gap: var(--mt-space-6);
  }
}



.search-wrap { position: relative; max-width: 520px; z-index: 4000; }
/* #searchInput {
  width: 100%;
  padding: .6rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--mt-border, rgba(15,23,42,.12));
  background: var(--mt-surface, #fff);
  box-shadow: var(--mt-shadow-soft, 0 10px 30px rgba(15,23,42,.06));
} */
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + .4rem);
  background: var(--mt-surface, #fff);
  border: 1px solid var(--mt-border, rgba(15,23,42,.12));
  border-radius: 14px; padding: .4rem;
  box-shadow: var(--mt-shadow-lift, 0 16px 44px rgba(15,23,42,.08));
  z-index: 5000;
  max-height: 70vh; overflow: auto;
  pointer-events: auto;
}

/* Ensure blog cards don't float above overlays created in hero/search */
.mt-article-card, .mt-card {
  position: relative;
  z-index: 1;
}
.sr-item {
  display: block; padding: .6rem .7rem; border-radius: 10px;
  text-decoration: none; color: inherit;
}
.sr-item:hover { background: rgba(15,23,42,.04); }
.sr-title { font-weight: 700; margin-bottom: .15rem; }
.sr-meta { font-size: .85rem; opacity: .7; margin-bottom: .15rem; }
.sr-snippet { font-size: .95rem; color: var(--mt-ink-dim, #334155); }
.sr-empty { padding: .7rem .8rem; opacity:.7; }
