/* ═══════════════════════════════════════════════════════════
   SUPPERIA ACADEMIA — Global Stylesheet (rediseño sep-2026)
   Lenguaje visual: "terminal editorial"
   · esquinas rectas, líneas finas, etiquetas monoespaciadas
   · metáforas de plataforma: eje de precios, DOM ladder, editor
   Variables · Reset · Nav · Eje lateral · Layout · Sidebar · Footer
   ═══════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --ink:        #08111F;   /* fondo oscuro principal */
  --navy:       #0E1E35;
  --navy-mid:   #1B3A5C;
  --navy-light: #274B78;
  --gold:       #D4891A;
  --gold-light: #F0A832;
  --gold-pale:  #FDF3E3;
  --cream:      #F4F0E8;   /* "papel" */
  --paper-2:    #EAE3D6;
  --slate:      #8A9BB0;
  --slate-light:#C4D0DD;
  --white:      #FFFFFF;
  --text-dark:  #0E1E35;
  --text-mid:   #3D5168;
  --text-muted: #6D8098;
  --border:     rgba(14,30,53,0.12);
  --line-dark:  rgba(255,255,255,0.09);
  --green:      #3DDC97;
  --brand-green:#0BA565;
  --red:        #FF6B6B;

  /* Acento por curso */
  --c-basico:    #3DDC97;
  --c-avanzado:  #F0A832;
  --c-orderflow: #5AB8FF;
  --c-claude:    #E8825F;

  --mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  --card-radius: 4px;
  --section-pad: 112px 0;
  --nav-h:      64px;
}

/* ── RESET + BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Etiqueta monoespaciada reutilizable */
.mono { font-family: var(--mono); }
.tag-mono {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8,17,31,0.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  padding: 0 4%; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: border-bottom-color 0.3s, background 0.3s;
}
nav.scrolled { border-bottom-color: rgba(212,137,26,0.35); background: rgba(8,17,31,0.97); }
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px; letter-spacing: 0.04em;
}
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-logo-sub {
  font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.38); text-transform: uppercase;
  padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line-dark);
}
.nav-logo-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .nav-dropdown-trigger {
  color: rgba(255,255,255,0.68); text-decoration: none;
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-links > a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links > a.active { color: var(--gold-light); }
.nav-cta {
  background: var(--gold) !important; color: var(--ink) !important;
  font-weight: 600 !important; margin-left: 10px;
  padding: 9px 18px !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--ink) !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.85); transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
  background: rgba(8,17,31,0.985); border-bottom: 1px solid rgba(212,137,26,0.3);
  padding: 12px 5% 20px; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 15px; padding: 12px 14px; transition: background 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-mobile .nav-cta { justify-content: center; margin-top: 10px; margin-left: 0; }
.nav-mobile-section {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.32); padding: 14px 14px 4px;
}
.nav-mobile-sub { padding-left: 22px !important; }
.nav-mobile-sub .lvl { font-family: var(--mono); font-size: 11px; color: var(--gold); min-width: 22px; }

/* ── Nav dropdown (cursos) ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  background: rgba(8,17,31,0.985); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10); border-top: 2px solid var(--gold);
  padding: 6px; width: 360px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown::after { /* puente hover */
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-menu a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  padding: 12px 12px; color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 14px; transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.dd-lvl { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--c, var(--gold)); }
.dd-name { display: flex; flex-direction: column; gap: 2px; }
.dd-name small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: rgba(255,255,255,0.38); text-transform: uppercase; }
.dd-bars { display: flex; gap: 2px; }
.dd-bars i { width: 4px; height: 12px; background: rgba(255,255,255,0.12); }
.dd-bars i.on { background: var(--c, var(--gold)); }
.dd-all {
  display: block !important; text-align: center; font-family: var(--mono);
  font-size: 11px !important; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-light) !important; padding: 10px !important;
}

/* ════════════════════════════════════════
   EJE DE PRECIOS — navegación lateral
   (lo construye components.js a partir de [data-axis])
   ════════════════════════════════════════ */
.price-axis {
  position: fixed; right: 0; top: calc(var(--nav-h) + 24px); bottom: 24px;
  width: 96px; z-index: 150; pointer-events: none;
  display: none;
}
@media (min-width: 1440px) { .price-axis.ready { display: block; } }
.price-axis-line {
  position: absolute; left: 10px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(128,140,160,0.35) 8%, rgba(128,140,160,0.35) 92%, transparent);
}
.price-axis-tick {
  position: absolute; left: 10px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0; letter-spacing: 0.06em;
  color: rgba(128,140,160,0.75); text-transform: uppercase;
  pointer-events: auto; cursor: pointer; background: none; border: none;
  white-space: nowrap; padding: 3px 0;
  transition: color 0.2s;
}
.price-axis-tick::before { content: ''; width: 9px; height: 1px; background: currentColor; }
.price-axis-tick { padding: 7px 0; z-index: 2; }
.price-axis-tick:hover { color: var(--gold); font-size: 10px; }
.price-axis-hit {
  position: absolute; left: 0; top: 0; bottom: 0; width: 26px;
  pointer-events: auto; cursor: pointer; z-index: 1;
}
.price-axis-tick.on { color: var(--gold); }
.price-axis-tag {
  position: absolute; left: 4px; transform: translateY(-50%);
  background: var(--gold); color: var(--ink);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  padding: 4px 8px 4px 10px; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%);
  transition: top 0.12s linear;
  pointer-events: auto; cursor: grab; z-index: 3; touch-action: none; user-select: none;
}
.price-axis.dragging .price-axis-tag { cursor: grabbing; transition: none; }
.price-axis.dragging { user-select: none; }

/* ════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════ */
.breadcrumb {
  background: var(--cream); border-bottom: 1px solid var(--border);
  padding: 14px 5%; margin-top: var(--nav-h);
}
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { font-size: 10px; opacity: 0.4; }
.breadcrumb-current { color: var(--text-dark); font-weight: 500; }

/* ════════════════════════════════════════
   CONTENT LAYOUT — blog / páginas con sidebar
   ════════════════════════════════════════ */
.content-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 5% 80px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start;
}

/* ════════════════════════════════════════
   WIDGET STRIP — sidebar horizontal (landings)
   ════════════════════════════════════════ */
.widget-strip {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 80px 5%;
}
.widget-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.widget-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.widget-strip-grid .widget-author { display: none; }
.widget-strip-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block;
}
.widget-strip-label::before { content: '// '; opacity: 0.6; }
.widget-strip h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700; color: var(--text-dark); line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 28px;
}

/* ════════════════════════════════════════
   SECTION COMMON
   ════════════════════════════════════════ */
.section { padding: var(--section-pad); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block;
}
.section-label::before { content: '// '; opacity: 0.6; }
.section-h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700; color: var(--text-dark); line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 18px;
}
.section-h2 em { font-style: normal; color: var(--gold); }
.section-sub {
  font-size: 17px; color: var(--text-muted); line-height: 1.65;
  max-width: 560px; font-weight: 300;
}

/* ════════════════════════════════════════
   BUTTONS (esquinas rectas)
   ════════════════════════════════════════ */
.btn-primary, .btn-gold {
  background: var(--gold); color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 2px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 4px 4px 0 rgba(212,137,26,0.25);
}
.btn-primary:hover, .btn-gold:hover { background: var(--gold-light); transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(212,137,26,0.3); }
.btn-gold.sm { font-size: 14px; padding: 11px 20px; box-shadow: none; }

.btn-outline, .btn-outline-white, .btn-primary-outline {
  background: transparent; color: rgba(255,255,255,0.88); font-weight: 400; font-size: 15px;
  padding: 15px 26px; border-radius: 2px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.24); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline:hover, .btn-outline-white:hover, .btn-primary-outline:hover {
  border-color: var(--gold-light); color: var(--white); background: rgba(212,137,26,0.06);
}

.btn-card, .btn-navy {
  background: var(--navy); color: var(--white); font-size: 14px; font-weight: 500;
  padding: 12px 20px; border-radius: 2px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-card:hover, .btn-navy:hover { background: var(--navy-light); }

.btn-ghost-dark {
  background: transparent; color: var(--text-dark); font-size: 15px; font-weight: 500;
  padding: 14px 24px; border-radius: 2px; text-decoration: none;
  border: 1px solid rgba(14,30,53,0.28); cursor: pointer;
  transition: border-color 0.2s, background 0.2s; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-ghost-dark:hover { border-color: var(--text-dark); background: rgba(14,30,53,0.04); }

.btn-cta-gold {
  background: var(--gold); color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s; border: none; display: inline-block;
}
.btn-cta-gold:hover { background: var(--gold-light); }
.btn-cta-outline {
  background: transparent; color: rgba(255,255,255,0.78); font-size: 14px;
  padding: 11px 22px; border-radius: 2px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22); transition: all 0.2s; display: inline-block;
}
.btn-cta-outline:hover { border-color: rgba(255,255,255,0.55); color: var(--white); }

.link-all {
  color: var(--gold); font-size: 15px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(212,137,26,0.3); padding-bottom: 2px;
  transition: border-color 0.2s;
}
.link-all:hover { border-color: var(--gold); }

/* Medidor de nivel (4 barras) */
.lvl-bars { display: inline-flex; gap: 3px; align-items: flex-end; }
.lvl-bars i { width: 5px; background: rgba(128,140,160,0.25); }
.lvl-bars i:nth-child(1) { height: 7px; }
.lvl-bars i:nth-child(2) { height: 10px; }
.lvl-bars i:nth-child(3) { height: 13px; }
.lvl-bars i:nth-child(4) { height: 16px; }
.lvl-bars i.on { background: var(--c, var(--gold)); }

/* ════════════════════════════════════════
   SIDEBAR — contenedor vertical
   ════════════════════════════════════════ */
.sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.sticky-inner #site-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Widget base */
.widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--card-radius); overflow: hidden;
}
.widget-header {
  background: var(--ink); padding: 20px 20px 18px;
  position: relative; overflow: hidden;
}
.widget-header::after { /* rejilla de chart */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.widget-header-glow {
  position: absolute; top: -50px; right: -50px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,137,26,0.28) 0%, transparent 70%);
}
.widget-header-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; position: relative; z-index: 2;
}
.widget-header-title {
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800;
  color: var(--white); line-height: 1.25; position: relative; z-index: 2;
}
.widget-body { padding: 16px 18px 18px; }

.btn-widget-gold {
  display: block; width: 100%; text-align: center;
  background: var(--gold); color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px;
  padding: 12px; border-radius: 2px; text-decoration: none; transition: background 0.2s;
}
.btn-widget-gold:hover { background: var(--gold-light); }
.btn-widget-navy {
  display: block; width: 100%; text-align: center;
  background: var(--navy); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px;
  padding: 12px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s; margin-top: 8px; border: none; cursor: pointer;
}
.btn-widget-navy:hover { background: var(--navy-light); }

/* ── Widget: Ruta de cursos (DOM ladder) ── */
.ladder { display: flex; flex-direction: column; margin-bottom: 16px; border: 1px solid var(--border); }
.ladder-row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 11px 12px; text-decoration: none; color: var(--text-dark);
  border-bottom: 1px solid var(--border); position: relative;
  transition: background 0.2s;
}
.ladder-row:last-child { border-bottom: none; }
.ladder-row::before { /* barra de "volumen" */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w, 30%); background: var(--c); opacity: 0.09; transition: opacity 0.2s;
}
.ladder-row:hover::before { opacity: 0.2; }
.ladder-lvl { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-muted); position: relative; }
.ladder-name { font-size: 13px; font-weight: 600; line-height: 1.25; position: relative; }
.ladder-name small { display: block; font-weight: 400; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ladder-row .lvl-bars { position: relative; }

/* ── Widget: Servicios ── */
.widget-servicios .svc-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.widget-servicios .svc-list li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px; color: var(--text-mid); padding: 9px 0;
  border-bottom: 1px dashed var(--border); line-height: 1.45;
}
.widget-servicios .svc-list li:last-child { border-bottom: none; }
.widget-servicios .svc-list li b { font-family: var(--mono); font-size: 11px; color: var(--gold); font-weight: 600; }
.widget-note { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }

/* ── Widget: Autor ── */
.widget-author .widget-body { padding: 22px 20px; }
.author-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.author-avatar-big {
  width: 54px; height: 54px; border-radius: 2px;
  background: var(--ink); display: flex; align-items: center;
  justify-content: center; font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--gold); flex-shrink: 0;
}
.author-meta-name { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--text-dark); }
.author-meta-title { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.author-vendor-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(212,137,26,0.12); border: 1px solid rgba(212,137,26,0.3);
  color: var(--gold); font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 3px 8px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px;
}
.author-bio { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.author-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.author-stat { background: var(--cream); padding: 12px; text-align: center; }
.author-stat-num { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--text-dark); }
.author-stat-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ── Widget: Posts relacionados ── */
.widget-related .widget-body { padding: 14px 18px 18px; }
.related-list { display: flex; flex-direction: column; gap: 2px; }
.related-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: opacity 0.2s;
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item:hover { opacity: 0.75; }
.related-num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold); line-height: 1.6; flex-shrink: 0; min-width: 22px; }
.related-info { flex: 1; }
.related-cat { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.related-title { font-size: 13px; font-weight: 500; color: var(--text-dark); line-height: 1.45; }
.related-date  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ════════════════════════════════════════
   WIDGET CALENDARIO ECONÓMICO
   ════════════════════════════════════════ */
.cal-list { display: flex; flex-direction: column; }
.cal-list .cal-event:nth-child(n+7) { display: none; }
.cal-event {
  display: grid; grid-template-columns: 8px 1fr auto;
  align-items: start; gap: 10px; padding: 11px 18px;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.cal-event:last-child { border-bottom: none; }
.cal-event:hover { background: var(--cream); }
.cal-dot { width: 8px; height: 8px; margin-top: 5px; flex-shrink: 0; }
.cal-dot.high   { background: #E8372A; }
.cal-dot.medium { background: #F0A030; }
.cal-dot.low    { background: #8898A8; }
.cal-name { font-size: 13px; font-weight: 500; color: var(--text-dark); line-height: 1.3; margin-bottom: 3px; }
.cal-meta { font-size: 11px; color: var(--text-muted); }
.cal-meta .cal-country { font-weight: 600; color: var(--text-mid); }
.cal-actual { font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: right; margin-top: 2px; color: var(--text-muted); white-space: nowrap; }
.cal-actual.beat { color: #1E9E5A; }
.cal-actual.miss { color: #E8372A; }
.cal-event.later .cal-name { color: var(--text-mid); font-weight: 400; }
.cal-foot { padding: 9px 18px 11px; font-size: 10.5px; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--cream); line-height: 1.5; }
.cal-empty, .cal-loading { padding: 20px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ════════════════════════════════════════
   TICKER (cinta) — reutilizable como marquee
   ════════════════════════════════════════ */
.ticker-band {
  border-bottom: 1px solid rgba(212,137,26,0.22);
  background: var(--ink); overflow: hidden; padding: 11px 0;
}
.ticker {
  display: flex; white-space: nowrap;
  animation: tick 60s linear infinite;
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
  width: max-content;
}
.ticker .ti { padding: 0 26px; display: inline-flex; align-items: center; gap: 6px; }
.ticker .ti + .ti::before { content: '◆'; font-size: 7px; color: rgba(212,137,26,0.55); margin-right: 26px; }
.ticker .up { color: var(--green); }
.ticker .dn { color: var(--red); }
.ticker .kw { color: var(--gold-light); }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Ticker de mercado (landing, bajo el nav) ── */
.market-band {
  margin-top: var(--nav-h); position: relative; display: flex; align-items: stretch;
  background: #050C17; border-bottom: 1px solid rgba(255,255,255,0.07); overflow: hidden;
  font-family: var(--mono); font-size: 12px; height: 38px;
}
.market-band.off { display: none; }
.market-label {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 4%;
  background: #050C17; color: var(--gold-light); letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 10.5px; font-weight: 600; position: relative; z-index: 2;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.market-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--slate); }
.market-band.live .market-label::before { background: var(--green); animation: pulse 2s infinite; }
.market-label small { color: rgba(255,255,255,0.35); font-weight: 400; letter-spacing: 0.06em; }
.market-track { flex: 1; overflow: hidden; display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.market-band .ticker { animation-duration: 55s; color: rgba(255,255,255,0.45); }
.market-band:not(.live) .ticker { animation: none; padding-left: 20px; }
.market-band:hover .ticker { animation-play-state: paused; }
.market-band .ti { gap: 10px; }
.market-band .ti b { color: rgba(255,255,255,0.8); font-weight: 600; }
.market-band .ti .px { color: var(--white); }
.market-band:not(.off) + .hero { padding-top: 56px; }
@media (max-width: 600px) {
  .market-label small { display: none; }
  .market-band { font-size: 11px; }
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer {
  background: var(--ink); padding: 0 5% 40px;
  color: rgba(255,255,255,0.6); position: relative;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: block; }
.footer-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--line-dark); margin-bottom: 56px;
}
.footer-cta-title {
  font-family: 'Syne', sans-serif; font-weight: 800; color: var(--white);
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em;
}
.footer-cta-title em { font-style: normal; color: var(--gold); }
.footer-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800;
  color: var(--white); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand img { height: 46px; width: auto; display: block; }
.footer-brand-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.footer-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.45); max-width: 300px; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px;
}
.footer-col a {
  display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: rgba(255,255,255,0.6);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a span { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--line-dark); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }
.footer-risk { font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.6; max-width: none; margin-bottom: 10px; }
.footer-risk:last-child { margin-bottom: 0; }
.footer-copyright { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.3); }

/* ════════════════════════════════════════
   REVEAL (animación de entrada)
   ════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker { animation: none; }
  html { scroll-behavior: auto; }
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
  .widget-strip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr 280px; gap: 36px; }
  .nav-logo-sub { display: none; }
}
@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .content-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .sidebar { position: static; top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-template-columns: 1fr; }
  :root { --section-pad: 84px 0; }
}
@media (max-width: 600px) {
  .widget-strip-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .content-layout { padding: 24px 4% 60px; }
  .widget-strip { padding: 60px 5%; }
  :root { --section-pad: 68px 0; }
}

/* ════════════════════════════════════════
   CONTACT MODAL (acotado a .contact-modal)
   ════════════════════════════════════════ */
.contact-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.contact-modal[hidden] { display: none; }
.contact-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(8,17,31,0.8); backdrop-filter: blur(4px); cursor: pointer;
}
.contact-modal-box {
  position: relative; z-index: 1;
  background: var(--white); border-radius: 4px; border-top: 3px solid var(--gold);
  padding: 40px 44px; width: 100%; max-width: 540px;
  box-shadow: 0 32px 80px rgba(8,17,31,0.35);
  max-height: 90vh; overflow-y: auto;
}
.contact-modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--text-muted); line-height: 1; transition: color 0.2s; padding: 4px 8px;
}
.contact-modal-close:hover { color: var(--text-dark); }
.contact-modal-header { margin-bottom: 26px; }
.contact-modal-header .tag-mono { color: var(--gold); display: block; margin-bottom: 8px; }
.contact-modal-header h2 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; letter-spacing: -0.02em; }
.contact-modal-header p { font-size: 14px; color: var(--text-muted); }
.contact-modal .contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-modal .form-row { display: flex; flex-direction: column; gap: 6px; }
.contact-modal .form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-modal .form-row label { font-size: 13px; font-weight: 500; color: var(--text-dark); }
.contact-modal .form-row .req { color: var(--gold); }
.contact-modal .form-row .opt { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.contact-modal .form-row input,
.contact-modal .form-row select,
.contact-modal .form-row textarea {
  padding: 11px 14px; border-radius: 2px; border: 1px solid var(--border); font-size: 14px;
  font-family: 'DM Sans', sans-serif; color: var(--text-dark);
  background: var(--white); outline: none; transition: border-color 0.2s; width: 100%;
}
.contact-modal .form-row input:focus,
.contact-modal .form-row select:focus,
.contact-modal .form-row textarea:focus { border-color: var(--gold); }
.contact-modal .form-row input.invalid,
.contact-modal .form-row textarea.invalid { border-color: #FF6B6B; }
.contact-modal .form-row textarea { resize: vertical; min-height: 100px; }
.form-error {
  background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.3);
  color: #c0392b; font-size: 13px; padding: 10px 14px;
}
.form-success {
  background: rgba(61,220,151,0.12); border: 1px solid rgba(61,220,151,0.35);
  color: #1a7a4a; font-size: 15px; padding: 20px; text-align: center;
}
.btn-contact-submit {
  width: 100%; padding: 14px; border-radius: 2px;
  background: var(--gold); color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-contact-submit:hover { background: var(--gold-light); }
.btn-contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 600px) {
  .contact-modal-box { padding: 28px 20px; }
  .contact-modal .form-row-2col { grid-template-columns: 1fr; }
}
