/* =========================================================
   BLOG DRABIKA
   Misma identidad visual que la portada.
   PALETA: cambia solo estas 4 líneas si ajustas colores.
   ========================================================= */
:root {
  --acento: #FF5A1F;
  --acento-2: #FF1F4B;
  --fondo: #0A0A0C;
  --tarjeta: #141418;

  --texto: #F5F5F6;
  --suave: #A1A1AA;
  --tenue: #6B6B74;
  --linea: rgba(255,255,255,.09);
  --linea-fuerte: rgba(255,255,255,.16);
  --display: "Sora", "Segoe UI", Arial, sans-serif;
  --cuerpo: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1200px;
  --lectura: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fondo); scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--cuerpo); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
.contenedor { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }
.contenedor--lectura { width: min(var(--lectura), 100% - 40px); }
.salto { position: absolute; left: -9999px; }
.salto:focus { left: 12px; top: 12px; z-index: 200; background: var(--tarjeta); padding: 8px 12px; }

/* ============ BOTONES ============ */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 700 .95rem/1 var(--cuerpo); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, border-color .2s ease; white-space: nowrap; }
.boton:hover { transform: translateY(-1px); }
.boton--acento { background: var(--acento); color: #fff; box-shadow: 0 8px 30px -8px var(--acento); }
.boton--borde { background: rgba(255,255,255,.03); border-color: var(--linea-fuerte); color: var(--texto); }
.boton--borde:hover { border-color: rgba(255,255,255,.35); }

/* ============ NAVEGACIÓN ============ */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease; }
.nav.con-fondo { background: rgba(10,10,12,.85); backdrop-filter: blur(14px); border-bottom-color: var(--linea); }
.nav__fila { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; }
.marca span { color: var(--acento); }
.nav__enlaces { display: flex; gap: 30px; }
.nav__enlaces a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--suave); }
.nav__enlaces a:hover, .nav__enlaces a[aria-current="page"] { color: var(--texto); }
.nav__enlaces a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--acento); padding-bottom: 4px; }
.nav .boton { padding: 10px 18px; font-size: .9rem; }
.menu-boton { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linea-fuerte); background: transparent; color: var(--texto); cursor: pointer; }
.menu-boton span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }
.menu-movil { display: none; padding: 4px 0 20px; }
.menu-movil.abierto { display: block; }
.menu-movil a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linea); text-decoration: none; font-size: 1.1rem; font-weight: 600; }

/* ============ CABECERA DEL BLOG ============ */
.blog-cabecera { position: relative; padding: clamp(48px, 8vw, 96px) 0 40px; overflow: hidden; isolation: isolate; }
.blog-cabecera::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1; background: radial-gradient(35% 60% at 25% 50%, color-mix(in srgb, var(--acento-2) 38%, transparent), transparent 70%), radial-gradient(35% 60% at 75% 60%, color-mix(in srgb, var(--acento) 34%, transparent), transparent 70%); filter: blur(20px); }
.blog-cabecera__titulo { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: .95; }
.blog-cabecera__bajada { margin-top: 18px; color: var(--suave); font-size: 1.15rem; max-width: 52ch; }
.migas { font-size: .9rem; color: var(--tenue); margin-bottom: 14px; }
.migas a { color: var(--suave); text-decoration: none; }
.migas a:hover { color: var(--texto); }
/* ============ TARJETAS ============ */
.listado { padding-bottom: clamp(64px, 10vw, 120px); }
.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============ ESTADO: "el blog está vivo" ============ */
.estado { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: .9rem; color: var(--suave); }
.estado__punto { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: latido 2.2s ease-out infinite; margin-right: -8px; }
.estado__dato { color: var(--tenue); padding-left: 18px; border-left: 1px solid var(--linea-fuerte); }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ============ CATEGORÍAS DESPLEGABLES ============ */
.temas { margin-top: 32px; }
.temas__fila { display: flex; flex-wrap: wrap; gap: 8px; }
.tema { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--cuerpo); color: var(--suave); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--linea); background: var(--tarjeta); text-decoration: none; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.tema:hover { color: var(--texto); border-color: var(--linea-fuerte); }
.tema[aria-current="page"] { color: #fff; background: var(--acento); border-color: var(--acento); }
.tema[aria-expanded="true"], .tema--activo { color: var(--texto); border-color: var(--tono); background: color-mix(in srgb, var(--tono) 16%, var(--tarjeta)); }
.tema__flecha { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.tema[aria-expanded="true"] .tema__flecha { transform: rotate(180deg); }
.temas__panel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 14px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--tono) 40%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--tono) 10%, var(--tarjeta)), var(--tarjeta)); }
.temas__panel[hidden] { display: none; }
.subtema { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: .92rem; font-weight: 600; color: var(--texto); text-decoration: none; background: rgba(255,255,255,.04); border: 1px solid var(--linea); }
.subtema small { font-size: .75rem; font-weight: 700; color: var(--suave); background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 999px; }
a.subtema:hover { border-color: var(--tono); }
.subtema[aria-current="page"] { background: var(--tono); border-color: var(--tono); color: #fff; }
.subtema[aria-current="page"] small { color: #fff; background: rgba(0,0,0,.2); }
.subtema--todo { border-color: color-mix(in srgb, var(--tono) 50%, transparent); }
.subtema--pronto { color: var(--tenue); border-style: dashed; background: transparent; cursor: default; }
.subtema--pronto small { background: transparent; color: var(--tenue); font-weight: 500; padding: 0; }
.blog-cabecera__titulo--tema { background: linear-gradient(90deg, #fff 40%, var(--tono)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }

/* ============ TIPOS DE ENTRADA ============ */
.tipo { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: #fff; background: rgba(10,10,12,.72); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.tipo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acento); }
.tipo--anotacion::before { background: #FACC15; }
.tipo--investigacion::before { background: #22D3EE; }
.tipo--guia::before { background: #22C55E; }
.tipo--radar::before { background: #A78BFA; }
.tipo--opinion::before { background: #F472B6; }
.tipo--actualizacion::before { background: var(--acento); }

/* ============ TARJETAS CON IMAGEN DE FONDO ============ */
.listado { padding-bottom: clamp(64px, 10vw, 120px); }
.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tarjeta { --tono: var(--acento); background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 22px; overflow: hidden; transition: border-color .25s ease, transform .25s ease; }
.tarjeta:hover { border-color: color-mix(in srgb, var(--tono) 55%, transparent); transform: translateY(-3px); }
.tarjeta__enlace { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tarjeta__visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background-size: cover; background-position: center; isolation: isolate;
  background-color: #0E0E11;
  background-image: radial-gradient(70% 90% at 15% 110%, color-mix(in srgb, var(--tono) 70%, transparent), transparent 70%), radial-gradient(50% 60% at 100% 0%, color-mix(in srgb, var(--tono) 30%, transparent), transparent 70%); }
.tarjeta__visual--foto { transition: background-size .5s ease; }
.tarjeta__visual--foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,10,12,.55), transparent 55%); }
.tarjeta__visual::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.tarjeta__visual--foto::before { display: none; }
.tarjeta__marca { position: absolute; left: 18px; bottom: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.05em; line-height: 1; color: rgba(255,255,255,.9); }
.tarjeta__visual .tipo { position: absolute; top: 14px; left: 14px; }
.tarjeta__nuevo { position: absolute; top: 14px; right: 14px; font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; color: #111; }
.tarjeta__texto { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarjeta__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--tenue); }
.tarjeta__tema { color: var(--tono); font-weight: 700; }
.tarjeta__titulo { font-size: 1.22rem; }
.tarjeta__desc { color: var(--suave); font-size: .95rem; }
.tarjeta__leer { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--texto); text-decoration: underline; text-decoration-color: var(--tono); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tarjeta--destacada { margin-bottom: 16px; }
.tarjeta--destacada .tarjeta__enlace { display: grid; grid-template-columns: 1.3fr 1fr; }
.tarjeta--destacada .tarjeta__visual { aspect-ratio: auto; min-height: 380px; }
.tarjeta--destacada .tarjeta__marca { font-size: clamp(3rem, 7vw, 6rem); left: 28px; bottom: 10px; }
.tarjeta--destacada .tarjeta__texto { padding: clamp(24px, 4vw, 48px); justify-content: center; gap: 14px; }
.tarjeta--destacada .tarjeta__titulo { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.tarjeta--destacada .tarjeta__desc { font-size: 1.08rem; }

.vacio { padding: 40px; border-radius: 22px; border: 1px dashed var(--linea-fuerte); display: grid; gap: 10px; justify-items: start; color: var(--suave); }
.vacio__titulo { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--texto); }
.vacio .boton { margin-top: 10px; }

/* ============ PORTADA DEL ARTÍCULO ============ */
.portada-articulo { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 40px; background-size: cover; background-position: center; }
.portada-articulo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 70% at 10% 0%, color-mix(in srgb, var(--tono) 30%, transparent), transparent 70%), radial-gradient(40% 60% at 95% 20%, color-mix(in srgb, var(--tono) 16%, transparent), transparent 70%); }
.portada-articulo--foto { padding-top: clamp(140px, 22vw, 280px); }
.portada-articulo--foto::before { background: linear-gradient(to bottom, rgba(10,10,12,.2) 0%, rgba(10,10,12,.65) 45%, var(--fondo) 100%); }
.portada-articulo .migas { margin-bottom: 18px; }
.portada-articulo .tipo { margin-bottom: 16px; }
.articulo__titulo { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.articulo__bajada { margin-top: 18px; font-size: 1.2rem; color: rgba(255,255,255,.78); }
.articulo__cuerpo { padding-top: 8px; }

/* ============ CAJAS DE CONTENIDO ============ */
.articulo__cuerpo .dato, .articulo__cuerpo .ojo, .articulo__cuerpo .en-corto { padding: 20px 22px; border-radius: 16px; font-size: 1.05rem; line-height: 1.7; }
.articulo__cuerpo .dato { background: color-mix(in srgb, #22D3EE 8%, var(--tarjeta)); border: 1px solid color-mix(in srgb, #22D3EE 30%, transparent); }
.articulo__cuerpo .dato strong { color: #67E8F9; }
.articulo__cuerpo .dato cite { display: block; margin-top: 8px; font-size: .85rem; font-style: normal; color: var(--tenue); }
.articulo__cuerpo .ojo { background: color-mix(in srgb, #FACC15 7%, var(--tarjeta)); border: 1px solid color-mix(in srgb, #FACC15 28%, transparent); }
.articulo__cuerpo .ojo strong { color: #FDE047; }
.articulo__cuerpo .en-corto { background: var(--tarjeta); border: 1px solid var(--linea-fuerte); }
.articulo__cuerpo .en-corto__titulo { font-family: var(--display); font-weight: 700; color: var(--texto); font-size: 1.1rem; margin-bottom: 8px; }
.articulo__cuerpo .en-corto ul { margin: 0; }

/* ============ ARTÍCULO ============ */

.articulo__cuerpo { font-size: 1.125rem; line-height: 1.8; color: #D9D9DE; }
.articulo__cuerpo > * + * { margin-top: 1.25em; }
.articulo__cuerpo h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--texto); margin-top: 2.2em; }
.articulo__cuerpo h3 { font-size: 1.3rem; color: var(--texto); margin-top: 1.8em; }
.articulo__cuerpo strong { color: var(--texto); }
.articulo__cuerpo a { color: var(--acento); text-underline-offset: 3px; }
.articulo__cuerpo ul, .articulo__cuerpo ol { padding-left: 1.3em; }
.articulo__cuerpo li + li { margin-top: .5em; }
.articulo__cuerpo li::marker { color: var(--acento); }
.articulo__cuerpo blockquote { margin-inline: 0; padding: 18px 22px; border-left: 3px solid var(--acento); background: var(--tarjeta); border-radius: 0 14px 14px 0; color: var(--texto); }
.articulo__cuerpo img, .articulo__cuerpo figure { border-radius: 16px; margin-inline: 0; }
.articulo__cuerpo figcaption { font-size: .88rem; color: var(--tenue); margin-top: 8px; }
.articulo__cuerpo .respuesta { font-size: 1.2rem; color: var(--texto); padding: 22px 24px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--acento) 14%, var(--tarjeta)), var(--tarjeta)); border: 1px solid color-mix(in srgb, var(--acento) 35%, transparent); }
.articulo__cuerpo table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.articulo__cuerpo th, .articulo__cuerpo td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); }

.articulo__pie { padding: 48px 0 0; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquetas a { font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--suave); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linea); }
.etiquetas a:hover { color: var(--texto); border-color: var(--linea-fuerte); }
.compartir { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding: 22px 0; border-block: 1px solid var(--linea); }
.compartir span { font-weight: 700; margin-right: 6px; }
.compartir .boton { padding: 9px 16px; font-size: .88rem; }
.caja-autor { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 24px; border-radius: 20px; background: var(--tarjeta); border: 1px solid var(--linea); }
.caja-autor img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; object-position: top; flex-shrink: 0; }
.caja-autor__nombre { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.caja-autor__cargo { color: var(--suave); font-size: .95rem; margin: 4px 0 10px; }
.caja-autor a { color: var(--acento); font-weight: 700; text-decoration: none; }

.llamado-articulo { position: relative; margin-top: clamp(56px, 8vw, 96px); padding: clamp(56px, 8vw, 88px) 0; text-align: center; overflow: hidden; isolation: isolate; border-block: 1px solid var(--linea); }
.llamado-articulo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 120%, color-mix(in srgb, var(--acento) 40%, transparent), transparent 70%); }
.llamado-articulo h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.llamado-articulo p { color: var(--suave); margin: 14px auto 26px; max-width: 46ch; }

.relacionados { padding: clamp(64px, 9vw, 110px) 0; }
.relacionados__titulo { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 32px; }

/* ============ PIE ============ */
.pie { border-top: 1px solid var(--linea); padding-top: 64px; overflow: hidden; }
.pie__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pie__lema { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.15; }
.pie__titulo { font-family: var(--cuerpo); font-size: .85rem; font-weight: 600; color: var(--tenue); letter-spacing: 0; margin-bottom: 14px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie a { text-decoration: none; color: var(--suave); }
.pie a:hover { color: var(--texto); }
.pie__marca { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 22vw, 20rem); letter-spacing: -0.065em; line-height: .78; text-align: center; margin-top: 56px; background: linear-gradient(to bottom, #fff 30%, color-mix(in srgb, var(--acento) 60%, var(--fondo)) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; transform: translateY(12%); }
.pie__legal { position: relative; background: var(--fondo); border-top: 1px solid var(--linea); padding: 18px 0; font-size: .82rem; color: var(--tenue); }
.pie__legal-fila { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .tarjeta--destacada .tarjeta__enlace { grid-template-columns: 1fr; }
  .tarjeta--destacada .tarjeta__visual { min-height: 0; aspect-ratio: 16 / 10; }
  .nav__enlaces, .nav__acciones .boton { display: none; }
  .menu-boton { display: block; }
  .rejilla { grid-template-columns: repeat(2, 1fr); }
  .pie__grid { grid-template-columns: 1fr 1fr; }
  .pie__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .estado__dato { border-left: 0; padding-left: 0; }
  .rejilla { grid-template-columns: 1fr; }
  .caja-autor { flex-direction: column; }
  .pie__marca { font-size: 26vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .tarjeta, .tema, .tema__flecha { transition: none; }
  .estado__punto { animation: none; }
}

/* Portadas editoriales y carga progresiva del listado. */
.listado__carga { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 40px; text-align: center; }
.listado__estado { color: var(--suave); font-size: .9rem; }
.listado__carga .boton { min-width: 160px; }
.listado__carga [aria-disabled="true"] { opacity: .65; cursor: wait; }
.tarjeta__visual--foto::after { display: none; }

/* Estado de lectura privado y acciones de reutilización editorial. */
.estado-lectura { position: relative; isolation: isolate; display: inline-flex; flex-shrink: 0; font-size: .75rem; font-weight: 800; line-height: 1.5; border: 1px solid #D9AE42; border-radius: 30px; padding: 2px 10px; color: #17120A; background: #E9C46A; }
.estado-lectura::before, .estado-lectura::after { content: ''; position: absolute; inset: -2px; border: 1px solid #E9C46A; border-radius: inherit; z-index: -1; pointer-events: none; animation: lectura-ondas 3.6s ease-out infinite; }
.estado-lectura::after { animation-delay: 1.8s; }
@keyframes lectura-ondas { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(1.18, 1.65); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .estado-lectura::before, .estado-lectura::after { animation: none; display: none; } }
.lectura-acciones { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 12px; }
.lectura-acciones__estado { color: var(--suave); font-size: .85rem; }
.lectura-acciones [data-linkedin-respaldo] { width: 100%; }
.lectura-acciones textarea { display: block; width: 100%; margin-top: 12px; padding: 14px; color: var(--texto); background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 12px; font: inherit; }
.lectura-acciones .boton { white-space: normal; text-align: center; }
[hidden] { display: none !important; }
