/*
Theme Name: BURK — Cluster de Investigación
Theme URI: https://draalmaherrera.com
Author: Dra. Alma Delia Herrera Márquez
Description: Tema oficial del Blog BURK. Colores de marca: negro, rojo, dorado y blanco.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: burk
*/

/* ============================================================
   VARIABLES DE MARCA BURK
============================================================ */
:root {
  --red:        #CC0000;
  --red-fluor:  #FF1A1A;
  --red-dark:   #8B0000;
  --gold:       #C9A84C;
  --gold-light: #F5D060;
  --gold-dark:  #9A7B22;
  --black:      #0A0A0A;
  --black-soft: #1A1A1A;
  --white:      #FFFFFF;
  --text:       #1A1A1A;
  --text-mid:   #444444;
  --text-muted: #777777;
  --border:     #E8E8E8;
  --bg:         #FFFFFF;
  --bg-soft:    #F9F9F9;
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.16,1,0.3,1);
}

/* ============================================================
   BARRA ADMIN WORDPRESS (cuando estás logueada)
============================================================ */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   HEADER / NAVEGACIÓN
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-title span { color: var(--red); }
.site-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 12px;
  margin-left: 4px;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 6px 14px;
  border-radius: 100px;
  transition: var(--transition);
  text-decoration: none;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-nav .btn-primary {
  background: var(--red);
  color: #fff;
  padding: 7px 18px;
}
.site-nav .btn-primary:hover { background: var(--red-fluor); }

/* ============================================================
   HERO DEL BLOG
============================================================ */
.blog-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 60%, #0a0a0a 100%);
  padding: 72px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "BLOG";
  position: absolute;
  font-family: var(--font-head);
  font-size: 200px;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  white-space: nowrap;
  pointer-events: none;
}
.blog-hero__series {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.blog-hero__series span {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.blog-hero h1 em { color: var(--red-fluor); font-style: normal; }
.blog-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   CONTENEDOR PRINCIPAL
============================================================ */
.site-main { max-width: 1100px; margin: 0 auto; padding: 60px 32px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ============================================================
   TARJETAS DE ARTÍCULO
============================================================ */
.post-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.post-card:hover {
  border-color: rgba(204,0,0,0.3);
  box-shadow: 0 8px 40px rgba(204,0,0,0.1);
  transform: translateY(-4px);
  text-decoration: none;
}
.post-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.post-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
}
.post-card__no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  letter-spacing: -0.02em;
}
.post-card__body { padding: 24px; }
.post-card__meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}
.post-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--black);
}
.post-card__excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.post-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-card__link {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.post-card:hover .post-card__link { gap: 12px; }
.post-card__pdf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  transition: var(--transition);
}
.post-card__pdf:hover { background: rgba(201,168,76,0.2); }

/* ============================================================
   ARTÍCULO INDIVIDUAL (single post)
============================================================ */
.post-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 60%, #0a0a0a 100%);
  padding: 72px 32px 56px;
  position: relative;
  overflow: hidden;
}
.post-hero__inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.post-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.post-hero__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.post-hero__meta span {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.post-hero__meta strong { color: rgba(255,255,255,0.8); font-weight: 600; }
.post-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  padding: 13px 26px; border-radius: 100px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(204,0,0,0.4);
}
.btn-red:hover { background: var(--red-fluor); transform: translateY(-2px); text-decoration: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.7);
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: var(--transition); text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }

/* Layout artículo */
.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: start;
}

/* TOC sidebar */
.toc {
  position: sticky;
  top: 84px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.toc__label {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.toc__label::before {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.toc__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc__list li a {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  transition: var(--transition);
  border-left: 2px solid transparent;
  text-decoration: none;
}
.toc__list li a:hover {
  color: var(--red);
  background: rgba(204,0,0,0.06);
  border-color: var(--red);
}
.toc__pdf {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.toc__pdf a {
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  padding: 11px 16px; border-radius: 10px;
  transition: var(--transition); text-decoration: none;
}
.toc__pdf a:hover { background: var(--red-fluor); text-decoration: none; }

/* Contenido del artículo */
.post-content { min-width: 0; }
.post-content h2 {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 800;
  color: var(--black);
  margin: 48px 0 16px;
  line-height: 1.2;
  scroll-margin-top: 90px;
}
.post-content h2::before {
  content: "";
  display: block;
  width: 32px; height: 3px;
  background: var(--red);
  margin-bottom: 12px;
  border-radius: 2px;
}
.post-content h3 {
  font-family: var(--font-head);
  font-size: 19px; font-weight: 700;
  color: var(--black);
  margin: 32px 0 12px;
  scroll-margin-top: 90px;
}
.post-content p { color: var(--text-mid); margin-bottom: 20px; line-height: 1.85; }
.post-content ul, .post-content ol {
  padding-left: 20px; margin-bottom: 20px; color: var(--text-mid);
}
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content blockquote {
  background: rgba(204,0,0,0.05);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.post-content blockquote p { margin: 0; font-style: italic; color: var(--text); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-content a { color: var(--red); font-weight: 600; }
.post-content img { border-radius: 12px; margin: 28px 0; }
.post-content strong { color: var(--black); font-weight: 700; }

/* Bloque descarga PDF en post */
.pdf-download-block {
  background: linear-gradient(135deg, #0a0a0a, #1a0000);
  border-radius: var(--radius);
  padding: 32px 36px;
  text-align: center;
  margin: 40px 0;
  color: #fff;
}
.pdf-download-block h3 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  margin-bottom: 10px; color: #fff;
}
.pdf-download-block p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px; font-size: 15px;
}

/* Caja autor */
.author-box {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 48px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-box__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.author-box__name {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 800;
  color: var(--black); margin-bottom: 4px;
}
.author-box__role {
  font-size: 12px; font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.author-box__bio { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px;
  text-align: center;
}
.site-footer__logo {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 900;
  color: #fff; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.site-footer__logo span { color: var(--red); }
.site-footer__text { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; }
.site-footer__text a { color: rgba(255,255,255,0.5); }
.site-footer__text a:hover { color: var(--red); }

/* ============================================================
   PAGINACIÓN
============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  transition: var(--transition); text-decoration: none;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 860px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 32px; }
  .site-header { padding: 0 20px; }
  .site-tagline { display: none; }
  .site-main { padding: 40px 20px; }
  .blog-hero, .post-hero { padding: 52px 20px 40px; }
  .post-layout { padding: 40px 20px; }
  .author-box { flex-direction: column; }
}
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
  .site-nav .btn-primary { display: none; }
}
