/* ============================================================
   TITAN RX BLOG — SISTEMA DE DISEÑO PREMIUM
   Archivo: /blog/assets/blog.css
   Copia exacta del design system de titanrx.app
   ============================================================ */

/* --- FUENTES (cargan desde HTML) ----------------------------- */

/* --- TOKENS OFICIALES TITAN RX ------------------------------- */
:root {
  --red:          #FF2800;
  --red-dark:     #CC2000;
  --red-glow:     rgba(255, 40, 0, 0.35);
  --red-subtle:   rgba(255, 40, 0, 0.06);
  --red-soft:     rgba(255, 40, 0, 0.12);
  --black:        #000000;
  --z950:         #060608;
  --z900:         #0e0e11;
  --z800:         #1b1b22;
  --z700:         #2d2d38;
  --z400:         #8e8e9f;
  --z300:         #c1c1d1;
  --white:        #ffffff;
}

/* --- RESET Y BASE -------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); color: var(--white); }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  font-size: 16px;
}

/* ============================================================
   CABECERA — SMART APP BANNER
   ============================================================ */
#smart-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0c0c10;
  border-bottom: 1px solid rgba(255, 40, 0, 0.25);
  padding: 10px 28px;
  width: 100%;
  position: relative;
  z-index: 10002;
  box-sizing: border-box;
}
.sb-info { display: flex; align-items: center; gap: 12px; }
.sb-icon { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.sb-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.5px;
}
.sb-sub { font-size: 9.5px; color: var(--z400); margin-top: 2px; }
.sb-actions { display: flex; align-items: center; gap: 10px; }
.sb-btn {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 8px;
  letter-spacing: 0.8px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.sb-btn:hover { background: var(--red-dark); }
.sb-close {
  background: transparent;
  border: none;
  color: var(--z400);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.sb-close:hover { color: var(--white); }

/* ============================================================
   NAVBAR OFICIAL — IDÉNTICO A TITANRX.APP
   ============================================================ */
nav#navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 60px);
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 40, 0, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 40, 0, 0.08);
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo-link:hover { opacity: 0.85; }
.logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(255, 40, 0, 0.55));
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: color 0.25s, text-shadow 0.25s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF2800, #FF6600);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); text-shadow: 0 0 12px rgba(255, 40, 0, 0.5); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-btn-apk {
  background: linear-gradient(135deg, #FF2800 0%, #B30000 100%);
  color: var(--white);
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 24px rgba(255, 40, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-family: 'Inter', sans-serif;
  transition: all 0.25s;
}
.nav-btn-apk:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(255, 40, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Selector de idioma */
.lang-sw { position: relative; z-index: 100005; }
.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn::after { content: '▾'; font-size: 10px; color: rgba(255,255,255,0.5); transition: transform 0.2s; }
.lang-sw.open .lang-btn::after { transform: rotate(180deg); }
.lang-btn:hover, .lang-sw:hover .lang-btn, .lang-sw.open .lang-btn {
  border-color: rgba(255, 40, 0, 0.5);
  background: rgba(255, 40, 0, 0.15);
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #0c0c10;
  border: 1.5px solid rgba(255, 40, 0, 0.35);
  border-radius: 14px;
  padding: 8px;
  min-width: 165px;
  display: none;
  z-index: 100010;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}
/* Puente invisible anti-flicker */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.lang-sw:hover .lang-dropdown,
.lang-sw.open .lang-dropdown,
.lang-sw:focus-within .lang-dropdown { display: block !important; }
.lang-option {
  display: block;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.lang-option:hover, .lang-option.active {
  background: rgba(255, 40, 0, 0.2);
  color: var(--white);
}

/* Responsive navbar */
@media (max-width: 968px) {
  nav#navbar { padding: 12px 20px; }
  .nav-links { display: none; }
}

/* ============================================================
   BARRA DE LECTURA PROGRESIVA
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF2800, #FF6600);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   PORTADA DEL BLOG — HÉROE
   ============================================================ */
.blog-hero {
  padding: 80px 24px 36px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.blog-hero-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
}
.blog-hero p {
  color: var(--z400);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Barra de búsqueda */
.blog-search-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 36px auto 0;
}
.blog-search-input {
  width: 100%;
  padding: 16px 52px 16px 24px;
  background: var(--z900);
  border: 1.5px solid var(--z800);
  border-radius: 16px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.blog-search-input::placeholder { color: var(--z400); }
.blog-search-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 40, 0, 0.15), 0 12px 40px rgba(0, 0, 0, 0.6);
}
.blog-search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--z400);
  font-size: 1.15rem;
  pointer-events: none;
}

/* Filtros de categoría */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px auto 52px;
  max-width: 960px;
  padding: 0 24px;
}
.blog-filter-btn {
  background: var(--z900);
  border: 1.5px solid var(--z800);
  color: var(--z400);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}
.blog-filter-btn:hover {
  border-color: rgba(255, 40, 0, 0.5);
  color: var(--red);
  background: rgba(255, 40, 0, 0.08);
}
.blog-filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px rgba(255, 40, 0, 0.4);
}

/* Contador artículos */
.blog-count {
  text-align: center;
  color: var(--z400);
  font-size: 0.88rem;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================================
   PORTADA DEL BLOG — GRID DE TARJETAS (REVISTA 1 POR FILA)
   ============================================================ */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.blog-card {
  background: var(--z900);
  border: 1px solid var(--z800);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s,
              box-shadow 0.35s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 40, 0, 0.5);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 40, 0, 0.18);
}
.blog-card.hidden { display: none; }

/* Imagen en formato 21:9 */
.blog-card-img-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--z800);
  position: relative;
}
.blog-card-img-wrap img {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.04);
}

/* Cuerpo de la tarjeta */
.blog-card-body { padding: 34px 40px 36px; }

.blog-card-cat {
  display: inline-block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'Orbitron', sans-serif;
}
.blog-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}
.blog-card-desc {
  color: var(--z300);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--z800);
  padding-top: 18px;
  color: var(--z400);
  font-size: 0.88rem;
}
.blog-card-date { color: var(--z400); }
.blog-card-read {
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
}

/* ============================================================
   PÁGINAS DE ARTÍCULO
   ============================================================ */

/* Contenedor centrado estricto a 860px */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 28px 100px;
}

/* Breadcrumbs */
.breadcrumb-nav { margin-bottom: 28px; }
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.84rem;
  color: var(--z400);
  flex-wrap: wrap;
}
.breadcrumb-list a { color: var(--z400); text-decoration: none; transition: color 0.2s; }
.breadcrumb-list a:hover { color: var(--white); }
.breadcrumb-list li + li::before { content: '›'; margin-right: 8px; }
.breadcrumb-list li:last-child { color: var(--z300); }

/* Badge de categoría */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 40, 0, 0.1);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 40, 0, 0.3);
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
}

/* Título del artículo */
.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Párrafo de introducción */
.article-intro {
  font-size: 1.18rem;
  color: var(--z300);
  margin-bottom: 32px;
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--red);
  padding-left: 20px;
  font-family: 'Inter', sans-serif;
}

/* Meta del autor */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--z400);
  font-size: 0.88rem;
  margin-bottom: 40px;
  align-items: center;
}
.article-meta strong { color: var(--z300); font-weight: 700; }
.meta-sep { color: var(--z700); }
.tag {
  display: inline-block;
  background: var(--z800);
  color: var(--z300);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Tabla de Contenidos */
.toc-wrap {
  background: var(--z900);
  border: 1px solid var(--z800);
  border-left: 3px solid var(--red);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 40px;
}
.toc-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}
.toc-list li {
  counter-increment: toc;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}
.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--red);
  min-width: 24px;
  padding-top: 2px;
}
.toc-list a {
  color: var(--z300);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}
.toc-list a:hover { color: var(--white); }

/* Imagen banner del artículo */
.article-banner {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 0 32px;
  display: block;
  border: 1px solid var(--z800);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
}
.article-banner-caption {
  text-align: center;
  font-size: 0.84rem;
  color: var(--z400);
  margin-top: -24px;
  margin-bottom: 32px;
  font-style: italic;
}

/* ============================================================
   CUERPO DEL ARTÍCULO
   ============================================================ */
.article-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--white);
  margin: 60px 0 22px;
  border-left: 4px solid var(--red);
  padding-left: 20px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 400;
}
.article-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.85rem;
  color: var(--white);
  margin: 40px 0 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}
.article-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--z300);
  font-weight: 800;
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.article-body p {
  margin-bottom: 26px;
  font-size: 1.06rem;
  color: var(--z300);
  line-height: 1.88;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.article-body ul,
.article-body ol {
  margin: 0 0 28px 28px;
  color: var(--z300);
  font-size: 1.04rem;
  font-family: 'Inter', sans-serif;
}
.article-body li { margin-bottom: 12px; line-height: 1.8; }
.article-body strong { color: var(--z300); font-weight: 700; }
.article-body em { color: var(--red); font-style: normal; font-weight: 600; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   COMPONENTES PREMIUM DEL ARTÍCULO
   ============================================================ */

/* Callout / destacado */
.callout {
  background: var(--z900);
  border: 1px solid rgba(255, 40, 0, 0.25);
  border-left: 4px solid var(--red);
  padding: 28px 32px;
  border-radius: 16px;
  margin: 44px 0;
  position: relative;
}
.callout-label {
  font-family: 'Orbitron', sans-serif;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.callout p { color: var(--z300); margin: 0; font-size: 1.02rem; line-height: 1.75; }

/* Franja de estadísticas */
.stat-strip {
  display: flex;
  gap: 1px;
  background: var(--z800);
  border-radius: 18px;
  overflow: hidden;
  margin: 48px 0;
}
.stat-item {
  flex: 1;
  background: var(--z900);
  padding: 28px 20px;
  text-align: center;
}
.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.76rem;
  color: var(--z400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
  display: block;
  font-family: 'Inter', sans-serif;
}

/* Tablas — Adaptadas a 100% de ancho sin scrollbar */
.table-wrap {
  width: 100%;
  overflow-x: hidden !important;
  margin: 36px 0;
  border-radius: 16px;
  border: 1px solid var(--z800);
  background: var(--z900);
}
table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  background: var(--z900);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--z800);
  font-size: 0.86rem;
  line-height: 1.5;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
}
th {
  background: rgba(255, 40, 0, 0.12);
  color: var(--white);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
td { color: var(--z300); }
tr:last-child td { border-bottom: none; }

/* ============================================================
   SECCIONES POST-ARTÍCULO
   ============================================================ */

/* Caja del autor */
.author-bio {
  max-width: 860px;
  margin: 64px auto 0;
  background: var(--z900);
  border: 1px solid var(--z800);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.author-avatar, .author-avatar-img {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(255, 40, 0, 0.3) !important;
  background: #111118 !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}
.author-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.author-role {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}
.author-desc { color: var(--z400); font-size: 0.9rem; line-height: 1.65; margin-bottom: 12px; }
.author-link { color: var(--red); text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.author-link:hover { text-decoration: underline; }

/* Botones de compartir */
.share-section {
  max-width: 860px;
  margin: 40px auto;
  text-align: center;
}
.share-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--z400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.share-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--z800);
  color: var(--z300);
  background: var(--z900);
  font-family: 'Inter', sans-serif;
  transition: all 0.25s;
  cursor: pointer;
}
.share-btn:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(255, 40, 0, 0.1);
}

/* Banner CTA */
.cta-banner {
  max-width: 860px;
  margin: 48px auto;
  background: linear-gradient(135deg, #140806 0%, #080408 50%, #0a0508 100%);
  border: 1.5px solid rgba(255, 40, 0, 0.6);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 40, 0, 0.15), inset 0 0 60px rgba(255, 40, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 40, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 400;
}
.cta-banner p {
  color: var(--z300);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF2800 0%, #CC1500 100%);
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(255, 40, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(255, 40, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Artículos relacionados */
.related-posts {
  max-width: 860px;
  margin: 0 auto 60px;
}
.related-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card, .related-post-card {
  background: var(--z900);
  border: 1px solid var(--z800);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.related-card:hover, .related-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 40, 0, 0.4);
}
.related-card img, .related-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.related-card-body, .related-post-body { padding: 18px; }
.related-cat {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 8px;
  display: block;
}
.related-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 400;
}
.related-read {
  font-size: 0.8rem;
  color: var(--z400);
  margin-top: 10px;
  display: block;
}


/* FAQ */
.faq-wrap {
  max-width: 860px;
  margin: 0 auto 60px;
  background: var(--z900);
  border-radius: 20px;
  padding: 44px 40px;
  border: 1px solid var(--z800);
}
.faq-wrap h2 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 36px;
  text-transform: uppercase;
  font-weight: 400;
}
.faq-item {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--z800);
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q {
  font-weight: 700;
  color: var(--white);
  font-size: 1.04rem;
  margin-bottom: 10px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.faq-a { color: var(--z400); font-size: 0.98rem; line-height: 1.78; font-family: 'Inter', sans-serif; }
.article-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  margin: 54px 0 20px;
  border-left: 4px solid var(--red);
  padding-left: 18px;
  line-height: 1.25;
  text-transform: none !important;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 38px 0 14px;
  line-height: 1.3;
  text-transform: none !important;
  letter-spacing: -0.01em;
}
.article-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  margin: 24px 0 10px;
  text-transform: none !important;
}

/* ============================================================
   FOOTER OFICIAL DE LA PÁGINA PRINCIPAL
   ============================================================ */
/* ============================================================
   FOOTER OFICIAL DE LA PÁGINA PRINCIPAL (ESTRICTO Y RESPETADO)
   ============================================================ */
footer {
  position: relative !important;
  z-index: 1 !important;
  background: #040405 !important;
  border-top: 1px solid rgba(255, 40, 0, 0.12) !important;
  padding: 32px clamp(20px, 5vw, 60px) !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 60px !important;
}
@media (max-width: 768px) {
  footer {
    flex-direction: column !important;
    text-align: center !important;
    padding: 28px 20px !important;
  }
}
.foot-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}
.foot-logo-img {
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  display: block !important;
}
.foot-logo span {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 18px !important;
  letter-spacing: 2px !important;
  color: var(--white) !important;
  line-height: 1 !important;
}
.foot-links {
  display: flex !important;
  gap: 20px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}
.foot-links a {
  color: var(--z400) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
  font-family: 'Inter', sans-serif !important;
}
.foot-links a:hover {
  color: var(--white) !important;
}
.foot-social-mini {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}
.foot-social-mini a {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--z400) !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
.foot-social-mini a svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.foot-social-mini a:hover {
  color: #fff !important;
  background: rgba(255, 40, 0, 0.2) !important;
  border-color: var(--red) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 12px rgba(255, 40, 0, 0.4) !important;
}
.foot-copy {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-family: 'Inter', sans-serif !important;
  flex-shrink: 0 !important;
}


/* BOTÓN FLOTANTE "VOLVER ARRIBA" */
.back-to-top {
  display: none !important;
}

/* ============================================================
   PORTADA — CONTADORES Y NO-RESULTS
   ============================================================ */
.blog-results-count {
  text-align: center;
  color: var(--z400);
  font-size: 0.88rem;
  margin: 0 0 40px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.blog-no-results {
  text-align: center;
  padding: 80px 24px;
  display: none;
}
.blog-no-results-icon { font-size: 3.5rem; margin-bottom: 20px; }
.blog-no-results h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 400;
  text-transform: uppercase;
}
.blog-no-results p { color: var(--z400); font-size: 1rem; }

/* ============================================================
   PORTADA — NEWSLETTER
   ============================================================ */
.blog-newsletter {
  max-width: 620px;
  margin: 80px auto 40px;
  background: var(--z900);
  border: 1px solid var(--z800);
  border-top: 3px solid var(--red);
  border-radius: 20px;
  padding: 48px 44px;
  text-align: center;
}
.blog-newsletter h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
}
.blog-newsletter > p {
  color: var(--z400);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 28px;
}
.blog-newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.blog-newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  background: var(--z800);
  border: 1px solid var(--z700);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.blog-newsletter-input:focus {
  outline: none;
  border-color: var(--red);
}
.blog-newsletter-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}
.blog-newsletter-btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.blog-newsletter-privacy { color: var(--z400); font-size: 0.78rem; }
.blog-newsletter-success { color: #4caf50; font-size: 0.9rem; font-weight: 600; display: none; margin-top: 10px; }

@media (max-width: 768px) {
  .blog-card-body { padding: 24px 22px 26px; }
  .blog-card-title { font-size: 1.9rem; }
  .article-wrap { padding: 32px 18px 70px; }
  .article-title { font-size: 2.4rem; }
  .article-body h2 { font-size: 1.9rem; }
  .stat-strip { flex-wrap: wrap; }
  .stat-item { flex: 1 1 calc(50% - 1px); }
  .related-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; }
  .cta-banner { padding: 40px 24px; }
  .faq-wrap { padding: 32px 24px; }
}

/* ============================================================
   NUEVAS 5 MEJORAS UX DE NIVELES PREMIUM
   ============================================================ */

/* 1. BARRA DE PROGRESO DE LECTURA */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #FF2800 0%, #FF6600 50%, #FF0055 100%);
  z-index: 100003;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(255, 40, 0, 0.8);
}

/* 2. BUSCADOR INTERACTIVO Y FILTROS POR CATEGORÍA */
.blog-filter-section {
  max-width: 1200px;
  margin: -10px auto 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.blog-search-box {
  position: relative;
  width: 100%;
  max-width: 650px;
}
.blog-search-input {
  width: 100%;
  background: rgba(14, 14, 17, 0.85);
  border: 1.5px solid rgba(255, 40, 0, 0.25);
  border-radius: 16px;
  padding: 16px 20px 16px 52px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.blog-search-input:focus {
  outline: none;
  border-color: #FF2800;
  box-shadow: 0 0 25px rgba(255, 40, 0, 0.45);
  background: rgba(20, 20, 26, 0.95);
}
.blog-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #8e8e9f;
  font-size: 18px;
  pointer-events: none;
}
.blog-categories-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}
.filter-pill:hover, .filter-pill.active {
  background: linear-gradient(135deg, #FF2800, #CC2000);
  border-color: rgba(255, 40, 0, 0.5);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 40, 0, 0.4);
}

/* 3. TIEMPO DE LECTURA EN LAS TARJETAS */
.blog-card-readtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  margin-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
}

/* 4. ÍNDICE INTERACTIVO DE CONTENIDOS (TOC) */
.article-toc {
  background: linear-gradient(145deg, rgba(27, 27, 34, 0.8), rgba(14, 14, 17, 0.95));
  border: 1px solid rgba(255, 40, 0, 0.3);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 32px 0 40px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
}
.article-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.article-toc-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}
.article-toc-title svg {
  color: #FF2800;
}
.article-toc-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8e8e9f;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}
.article-toc-list {
  margin-top: 16px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-toc-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  line-height: 1.4;
}
.article-toc-list a:hover {
  color: #FF2800;
  transform: translateX(4px);
}

/* 5. BANNER DE CONVERSIÓN DE LA APP */
.titan-app-banner-card {
  background: linear-gradient(135deg, rgba(20, 8, 12, 0.95) 0%, rgba(35, 12, 18, 0.95) 100%);
  border: 1.5px solid rgba(255, 40, 0, 0.4);
  border-radius: 24px;
  padding: 36px clamp(20px, 4vw, 48px);
  margin: 50px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 40, 0, 0.15);
}
.titan-app-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 40, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.banner-content {
  flex: 1;
  z-index: 1;
}
.banner-tag {
  display: inline-block;
  background: rgba(255, 40, 0, 0.15);
  border: 1px solid rgba(255, 40, 0, 0.4);
  color: #FF2800;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.banner-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}
.banner-desc {
  color: #c1c1d1;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  z-index: 1;
}
.banner-btn-primary {
  background: linear-gradient(135deg, #FF2800 0%, #CC2000 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 20px rgba(255, 40, 0, 0.4);
  transition: all 0.25s ease;
}
.banner-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 40, 0, 0.7);
}
@media (max-width: 768px) {
  .titan-app-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .banner-actions {
    justify-content: center;
  }
}

