/* ═══════════════════════════════════════════════════════
   STALIN LUDEÑA — css/main.css
   Misma estética exacta que los archivos HTML del sitio
   Navy #001830 · Corp #005DAA · Cyan #00AEEF
   Manrope (display) · Inter (body) · Montserrat (números)
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:    #001830;
  --bg2:   #001220;
  --corp:  #005DAA;
  --tech:  #00AEEF;
  --deep:  #003B73;
  --card:  rgba(0,93,170,.09);
  --cardh: rgba(0,93,170,.18);
  --bdr:   rgba(0,174,239,.16);
  --glow:  rgba(0,174,239,.32);
  --t1:    #FFFFFF;
  --t2:    rgba(255,255,255,.66);
  --t3:    rgba(255,255,255,.36);
  --fd:    'Manrope', sans-serif;
  --fb:    'Inter', sans-serif;
  --fn:    'Montserrat', sans-serif;
  --r8:    8px;
  --r16:   16px;
  --r24:   24px;
  --r32:   32px;
  --tr:    .25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--tr); }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* ── CONTENEDOR ── */
.wrap,
.container,
.site-content .wp-block-group,
.entry-content > *,
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ── GRADIENT TEXT ── */
.gr,
.text-gradient {
  background: linear-gradient(135deg, var(--tech) 0%, #7DDBFF 50%, var(--corp) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
#masthead,
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .85rem 0;
  background: rgba(0,18,32,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  transition: background var(--tr), box-shadow var(--tr);
}
#masthead.scrolled { background: rgba(0,12,24,.97); box-shadow: 0 1px 0 var(--bdr); }

.hdr-inner,
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Logo */
.custom-logo-link img,
.site-logo img,
.logo-img {
  height: 44px;
  width: auto;
  transition: opacity var(--tr);
}
.custom-logo-link:hover img,
.site-logo:hover img { opacity: .82; }

/* Navegación */
#site-navigation,
#primary-menu-wrap { display: flex; align-items: center; }

#primary-menu,
.nav-menu {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
  margin: 0; padding: 0;
}

#primary-menu li a,
.nav-menu li a {
  font-family: var(--fb);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: var(--r8);
  color: var(--t2);
  display: block;
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item > a,
#primary-menu li.current_page_item > a,
.nav-menu li a:hover { color: var(--t1); background: rgba(0,174,239,.09); }

#primary-menu li.current-menu-item > a,
#primary-menu li.current_page_item > a { color: var(--tech) !important; }

/* Item CTA del menú */
#primary-menu li.menu-cta > a,
#primary-menu li:last-child > a {
  background: linear-gradient(135deg, var(--corp), var(--tech)) !important;
  color: var(--t1) !important;
  padding: .45rem 1.1rem !important;
}
#primary-menu li.menu-cta > a:hover { opacity: .88; }

/* Sub-menús */
#primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0,18,32,.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bdr);
  border-radius: var(--r16);
  padding: .5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--tr);
  flex-direction: column;
  gap: .2rem;
}
#primary-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
#primary-menu .sub-menu li a { border-radius: var(--r8); font-size: .85rem; }
#primary-menu li { position: relative; }

/* Hamburger */
.menu-toggle,
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.menu-toggle span,
#hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: var(--tr);
}
.menu-toggle.active span:nth-child(1),
#hamburger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2),
#hamburger.on span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3),
#hamburger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════ */
.btn,
.wp-block-button__link,
.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fb);
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r8);
  border: none;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-p,
.wp-block-button .wp-block-button__link {
  background: linear-gradient(135deg, var(--corp), var(--tech));
  color: var(--t1) !important;
  box-shadow: 0 4px 20px rgba(0,93,170,.5);
}
.btn-p:hover,
.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,174,239,.55);
}
.btn-o {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--bdr) !important;
}
.btn-o:hover { border-color: var(--tech) !important; color: var(--tech); background: rgba(0,174,239,.07); }
.btn-w {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
}
.btn-w:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.btn-lg { padding: .9rem 2rem !important; font-size: 1rem !important; }

/* ═══════════════════════════════════════
   CONTENT WRAPPER (espacio para header fijo)
   ═══════════════════════════════════════ */
.site-content,
#content { padding-top: 76px; }

/* ═══════════════════════════════════════
   PÁGINA ESTÁNDAR (page.php)
   ═══════════════════════════════════════ */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--bg) 0%, #002244 50%, var(--bg) 100%);
  border-bottom: 1px solid var(--bdr);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(0,93,170,.2), transparent 65%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tech); margin-bottom: .75rem;
}
.page-hero h1 {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero p { font-size: 1.05rem; color: var(--t2); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ═══════════════════════════════════════
   CONTENIDO DE ENTRADA (entry-content)
   ═══════════════════════════════════════ */
.entry-content {
  padding: 3rem 0 5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
}
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h1,
.entry-content h2 {
  font-family: var(--fd); font-weight: 800; letter-spacing: -.02em;
  color: var(--t1); padding-bottom: .7rem; border-bottom: 1px solid var(--bdr);
  margin-top: 2.5rem; line-height: 1.2;
}
.entry-content h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.entry-content h3 {
  font-family: var(--fd); font-size: 1.3rem; font-weight: 700;
  color: var(--t1); margin-top: 2rem;
}
.entry-content h4 {
  font-family: var(--fd); font-size: 1.1rem; font-weight: 700;
  color: var(--tech); margin-top: 1.75rem;
}
.entry-content p { margin-bottom: 1.1rem; }
.entry-content a { color: var(--tech); text-decoration: underline; text-decoration-color: rgba(0,174,239,.4); }
.entry-content a:hover { text-decoration-color: var(--tech); }
.entry-content strong { color: var(--t1); font-weight: 700; }
.entry-content em { font-style: italic; color: rgba(255,255,255,.75); }

/* Listas */
.entry-content ul { padding-left: .5rem; display: flex; flex-direction: column; gap: .4rem; }
.entry-content ul li::before { content: '→'; color: var(--tech); margin-right: .6rem; font-weight: 700; }
.entry-content ol { padding-left: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }

/* Blockquote */
.entry-content blockquote {
  margin: 2rem 0; padding: 1.5rem 2rem;
  border-left: 3px solid var(--tech);
  background: rgba(0,174,239,.06);
  border-radius: 0 var(--r16) var(--r16) 0;
  font-style: italic; color: rgba(0,200,239,.9); font-size: 1.05rem; line-height: 1.72;
}
.entry-content blockquote cite { display: block; margin-top: .7rem; font-size: .82rem; font-style: normal; color: var(--t3); }

/* Código */
.entry-content code {
  font-family: 'Fira Code', monospace; font-size: .84rem;
  background: rgba(0,59,113,.35); border: 1px solid var(--bdr);
  border-radius: 4px; padding: .15rem .45rem; color: var(--tech);
}
.entry-content pre {
  background: rgba(0,10,20,.85); border: 1px solid var(--bdr);
  border-radius: var(--r16); padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0;
}
.entry-content pre code { background: none; border: none; padding: 0; color: #7DDBFF; }

/* Imágenes */
.entry-content img { border-radius: var(--r16); border: 1px solid var(--bdr); margin: 1.5rem 0; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption { text-align: center; font-size: .78rem; color: var(--t3); margin-top: .5rem; font-style: italic; }

/* Tablas */
.entry-content table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 1.5rem 0; }
.entry-content th { background: rgba(0,93,170,.2); color: var(--tech); font-weight: 700; padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--bdr); }
.entry-content td { padding: .65rem 1rem; border-bottom: 1px solid rgba(0,174,239,.08); color: var(--t2); }
.entry-content tr:hover td { background: rgba(0,93,170,.06); }

/* ═══════════════════════════════════════
   WIDGETS GUTENBERG
   ═══════════════════════════════════════ */
/* Cards */
.sl-card {
  background: var(--card); border: 1px solid var(--bdr);
  border-radius: var(--r24); padding: 2rem;
  transition: all var(--tr); position: relative; overflow: hidden;
}
.sl-card:hover { border-color: var(--glow); transform: translateY(-4px); background: var(--cardh); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.sl-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tech), transparent); opacity: 0; transition: opacity var(--tr); }
.sl-card:hover::before { opacity: 1; }

/* Secciones */
.sl-section { padding: 4rem 0; }
.sl-section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); }

/* Section header */
.sl-sh { text-align: center; margin-bottom: 3rem; }
.sl-ey { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tech); margin-bottom: .7rem; }
.sl-title { font-family: var(--fd); font-size: clamp(1.75rem, 3.5vw, 2.65rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin-bottom: .9rem; }
.sl-desc { color: var(--t2); max-width: 560px; margin: 0 auto; font-size: .97rem; line-height: 1.7; }

/* Grids */
.sl-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.sl-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.sl-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ═══════════════════════════════════════
   BLOG / ARCHIVE
   ═══════════════════════════════════════ */
.blog-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, var(--bg) 0%, #002244 50%, var(--bg) 100%);
  border-bottom: 1px solid var(--bdr);
  text-align: center; position: relative; overflow: hidden;
}
.blog-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(0,93,170,.2), transparent 65%); }
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero h1 { font-family: var(--fd); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.blog-hero p { font-size: 1.05rem; color: var(--t2); max-width: 560px; margin: 0 auto 1.75rem; line-height: 1.7; }

/* Category filter */
.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 0; }
.cat-filter a {
  font-size: .78rem; font-weight: 600; padding: .38rem .9rem;
  border-radius: 100px; border: 1px solid var(--bdr);
  color: var(--t2); background: var(--card); transition: all var(--tr);
}
.cat-filter a:hover, .cat-filter a.active { border-color: var(--tech); color: var(--tech); background: rgba(0,174,239,.1); }

/* Posts layout */
.posts-wrap { padding: 3.5rem 0 5rem; }
.posts-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.posts-feed { display: flex; flex-direction: column; gap: 1.75rem; }

/* Post card */
.post-card {
  background: var(--card); border: 1px solid var(--bdr);
  border-radius: var(--r24); overflow: hidden;
  display: grid; grid-template-columns: 1fr;
  transition: all var(--tr); position: relative;
}
.post-card.has-thumb { grid-template-columns: 260px 1fr; }
.post-card:hover { border-color: var(--glow); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.45); background: var(--cardh); }
.post-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tech), transparent); opacity: 0; transition: opacity var(--tr); }
.post-card:hover::before { opacity: 1; }
.post-card.is-featured { grid-template-columns: 1fr !important; border-color: rgba(0,174,239,.22); }
.post-card.is-featured .card-thumb { min-height: 280px; }
.post-card.is-featured .card-body { padding: 2rem 2.5rem; }
.post-card.is-featured .card-title a { font-size: 1.6rem; }
.featured-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #FFD87A; background: rgba(255,216,122,.1); border: 1px solid rgba(255,216,122,.25); border-radius: 100px; padding: .3rem .75rem; margin-bottom: .75rem; width: fit-content; }

.card-thumb { position: relative; overflow: hidden; background: var(--bg2); display: block; min-height: 200px; }
.post-card:not(.has-thumb):not(.is-featured) .card-thumb { display: none; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.post-card:hover .card-thumb img { transform: scale(1.05); }
.card-cat-badge { position: absolute; top: .85rem; left: .85rem; z-index: 2; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 100px; background: rgba(0,18,32,.82); backdrop-filter: blur(8px); border: 1px solid rgba(0,174,239,.3); color: var(--tech); }

.card-body { padding: 1.75rem 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: .9rem; min-width: 0; }
.post-card:not(.has-thumb):not(.is-featured) .card-body { padding: 2rem; }
.card-meta { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--t3); flex-wrap: wrap; }
.card-title { font-family: var(--fd); font-size: 1.18rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--t1); transition: color var(--tr); margin: 0; }
.card-title a { color: inherit !important; text-decoration: none !important; }
.card-title:hover, .card-title a:hover { color: var(--tech) !important; }
.card-excerpt { font-size: .875rem; color: var(--t2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--bdr); margin-top: auto; }
.card-author { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--t2); }
.author-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--corp), var(--tech)); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; overflow: hidden; }
.author-av img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.read-more { font-size: .78rem; font-weight: 600; color: var(--tech); display: inline-flex; align-items: center; gap: .3rem; transition: gap var(--tr); }
.read-more:hover { gap: .6rem; }

/* Paginación */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--bdr); flex-wrap: wrap; }
.blog-pagination .page-numbers { width: 42px; height: 42px; border-radius: var(--r8); display: inline-flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 600; border: 1px solid var(--bdr); background: var(--card); color: var(--t2); transition: all var(--tr); }
.blog-pagination .page-numbers:hover { border-color: var(--tech); color: var(--tech); background: rgba(0,174,239,.08); }
.blog-pagination .page-numbers.current { background: linear-gradient(135deg, var(--corp), var(--tech)); border-color: transparent; color: #fff; }
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 1rem; }

/* ═══════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════ */
.single-hero { padding: 4rem 0 0; background: linear-gradient(180deg, var(--bg), var(--bg2)); border-bottom: 1px solid var(--bdr); }
.single-top { padding-bottom: 2.5rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--t3); margin-bottom: 1.25rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--tech); } .breadcrumb a:hover { opacity: .75; }
.breadcrumb .sep { color: var(--t3); }
.post-cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.post-cat-badge { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .26rem .68rem; border-radius: 100px; background: rgba(0,174,239,.12); border: 1px solid rgba(0,174,239,.25); color: var(--tech); }
.single-title { font-family: var(--fd); font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.13; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.post-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.1rem 0; border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); font-size: .82rem; color: var(--t2); }
.meta-author { display: flex; align-items: center; gap: .65rem; }
.meta-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--corp), var(--tech)); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }
.meta-av img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.meta-item { display: flex; align-items: center; gap: .4rem; color: var(--t2); }
.single-featured-img { width: 100%; border-radius: 0 0 var(--r24) var(--r24); object-fit: cover; max-height: 520px; border-left: 1px solid var(--bdr); border-right: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.single-body { padding: 4rem 0 6rem; }
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }

/* Tags */
.post-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bdr); }
.tags-label { font-size: .78rem; color: var(--t3); font-weight: 600; }
.post-tags a { font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 100px; border: 1px solid var(--bdr); color: var(--t2); background: var(--card); transition: all var(--tr); }
.post-tags a:hover { border-color: var(--tech); color: var(--tech); }

/* Compartir */
.post-share { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.5rem; background: var(--card); border: 1px solid var(--bdr); border-radius: var(--r16); }
.share-label { font-size: .82rem; font-weight: 700; color: var(--t2); }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; padding: .45rem .9rem; border-radius: var(--r8); border: 1px solid var(--bdr); color: var(--t2); background: var(--card); transition: all var(--tr); cursor: pointer; }
.share-btn:hover { border-color: var(--tech); color: var(--tech); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* Posts relacionados */
.related-posts { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--bdr); }
.related-title { font-family: var(--fd); font-size: 1.3rem; font-weight: 800; margin-bottom: 1.75rem; display: flex; align-items: center; gap: .75rem; }
.related-title::after { content: ''; flex: 1; height: 1px; background: var(--bdr); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
.related-card { background: var(--card); border: 1px solid var(--bdr); border-radius: var(--r16); overflow: hidden; transition: all var(--tr); display: block; }
.related-card:hover { border-color: var(--glow); transform: translateY(-3px); background: var(--cardh); }
.related-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.related-card:hover .related-thumb img { transform: scale(1.06); }
.related-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: linear-gradient(135deg, rgba(0,59,115,.4), rgba(0,30,60,.6)); }
.related-body { padding: 1rem; }
.related-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--tech); margin-bottom: .35rem; }
.related-post-title { font-family: var(--fd); font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--t1); transition: color var(--tr); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card:hover .related-post-title { color: var(--tech); }
.related-date { font-size: .7rem; color: var(--t3); margin-top: .3rem; }

/* Autor box */
.author-box { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 3rem; padding: 2rem; background: var(--card); border: 1px solid var(--bdr); border-radius: var(--r24); }
.author-box img, .author-av-lg { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.author-av-lg { background: linear-gradient(135deg, var(--corp), var(--tech)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; }
.author-box-name { font-family: var(--fd); font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.author-box-role { font-size: .8rem; color: var(--tech); margin-bottom: .6rem; }
.author-box-bio { font-size: .875rem; color: var(--t2); line-height: 1.65; }

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.sidebar-wrap { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.widget-box { background: var(--card); border: 1px solid var(--bdr); border-radius: var(--r24); padding: 1.6rem; transition: border-color var(--tr); }
.widget-box:hover { border-color: rgba(0,174,239,.25); }
.widget-label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tech); margin-bottom: 1.1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--bdr); }
.widget-box .widget-title { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tech); margin-bottom: 1.1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--bdr); font-family: var(--fb); }

/* Perfil sidebar */
.wb-profile { text-align: center; }
.wb-profile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bdr); margin: 0 auto .85rem; }
.wb-profile-name { font-family: var(--fd); font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.wb-profile-bio { font-size: .82rem; color: var(--t2); line-height: 1.6; margin-bottom: .85rem; }
.wb-social { display: flex; gap: .45rem; justify-content: center; }
.wb-social a { width: 32px; height: 32px; border-radius: var(--r8); background: rgba(0,93,170,.2); border: 1px solid var(--bdr); display: flex; align-items: center; justify-content: center; color: var(--t2); transition: all var(--tr); }
.wb-social a:hover { border-color: var(--tech); color: var(--tech); background: rgba(0,174,239,.1); }
.wb-social svg { width: 14px; height: 14px; fill: currentColor; }

/* Search widget */
.widget_search .search-form { display: flex; gap: .4rem; }
.widget_search .search-field { flex: 1; background: rgba(0,59,115,.2); border: 1px solid var(--bdr); border-radius: var(--r8); padding: .6rem .9rem; font-size: .875rem; color: var(--t1); font-family: var(--fb); outline: none; transition: border-color var(--tr); }
.widget_search .search-field::placeholder { color: var(--t3); }
.widget_search .search-field:focus { border-color: var(--tech); }
.widget_search .search-submit { background: linear-gradient(135deg, var(--corp), var(--tech)); border: none; border-radius: var(--r8); padding: .6rem .95rem; color: #fff; cursor: pointer; font-size: .875rem; font-weight: 600; transition: opacity var(--tr); }
.widget_search .search-submit:hover { opacity: .85; }

/* Categories widget */
.widget_categories ul { display: flex; flex-direction: column; gap: .4rem; }
.widget_categories ul li { padding: 0; }
.widget_categories ul li a { display: flex; align-items: center; justify-content: space-between; padding: .55rem .8rem; border-radius: var(--r8); font-size: .85rem; color: var(--t2); background: rgba(0,59,115,.15); border: 1px solid transparent; transition: all var(--tr); }
.widget_categories ul li a:hover { border-color: var(--bdr); color: var(--tech); background: rgba(0,174,239,.08); }

/* Recent posts widget */
.widget_recent_entries ul { display: flex; flex-direction: column; gap: .8rem; }
.widget_recent_entries ul li { border-bottom: 1px solid var(--bdr); padding-bottom: .8rem; }
.widget_recent_entries ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget_recent_entries ul li a { font-size: .82rem; font-weight: 600; color: var(--t2); line-height: 1.4; transition: color var(--tr); }
.widget_recent_entries ul li a:hover { color: var(--tech); }
.widget_recent_entries ul li .post-date { font-size: .72rem; color: var(--t3); display: block; margin-top: .2rem; }

/* Tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tagcloud a { font-size: .72rem !important; font-weight: 600; padding: .28rem .68rem; border-radius: 100px; border: 1px solid var(--bdr); color: var(--t2); background: rgba(0,59,115,.15); transition: all var(--tr); }
.tagcloud a:hover { border-color: var(--tech); color: var(--tech); background: rgba(0,174,239,.08); }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
#colophon,
.site-footer {
  border-top: 1px solid var(--bdr);
  padding: 3.5rem 0 2rem;
  background: var(--bg2);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.f-brand p { color: var(--t3); font-size: .875rem; line-height: 1.65; margin-top: .65rem; }
.f-logo { height: 40px; width: auto; }
.f-loc { color: var(--t2) !important; margin-top: .35rem; }
.f-col h4 { font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-bottom: 1rem; }
.f-col ul { display: flex; flex-direction: column; gap: .5rem; }
.f-col ul a { font-size: .875rem; color: var(--t2); transition: color var(--tr); }
.f-col ul a:hover { color: var(--tech); }
.f-col p, .f-col address { font-size: .875rem; color: var(--t2); margin-bottom: .4rem; font-style: normal; }
.f-col a { font-size: .875rem; color: var(--t2); transition: color var(--tr); }
.f-col a:hover { color: var(--tech); }
.f-social { display: flex; gap: .5rem; margin-top: .85rem; }
.f-social a { width: 34px; height: 34px; border-radius: var(--r8); background: var(--card); border: 1px solid var(--bdr); display: flex; align-items: center; justify-content: center; color: var(--t2); transition: all var(--tr); }
.f-social a:hover { border-color: var(--tech); color: var(--tech); background: rgba(0,174,239,.08); }
.f-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--bdr); font-size: .77rem; color: var(--t3); }

/* ═══════════════════════════════════════
   FLOATING BUTTONS
   ═══════════════════════════════════════ */
.wa-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #25D366, #128C7E); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 24px rgba(37,211,102,.4); transition: all var(--tr); }
.wa-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,.5); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.btt { position: fixed; bottom: 2rem; left: 2rem; z-index: 999; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--bdr); color: var(--t2); font-size: 1rem; cursor: pointer; display: none; align-items: center; justify-content: center; transition: all var(--tr); }
.btt.on { display: flex; }
.btt:hover { border-color: var(--tech); color: var(--tech); transform: translateY(-2px); }

/* ═══════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════ */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
[data-aos].in { opacity: 1; transform: translateY(0); }
[data-aos="fr"] { transform: translateX(-24px); } [data-aos="fr"].in { transform: translateX(0); }
[data-aos="fl"] { transform: translateX(24px); } [data-aos="fl"].in { transform: translateX(0); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1200px) {
  .posts-layout { grid-template-columns: 1fr 280px; }
  .single-layout { grid-template-columns: 1fr 270px; }
}
@media (max-width: 1024px) {
  .posts-layout { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar-wrap { position: static; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .sl-grid-4 { grid-template-columns: repeat(2,1fr); }
  .sl-grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  #site-navigation,
  #primary-menu-wrap {
    position: fixed; top: 0; right: -100%; width: min(300px,82vw); height: 100vh;
    background: rgba(0,12,24,.97); backdrop-filter: blur(24px);
    flex-direction: column; justify-content: center; padding: 2rem;
    transition: right var(--tr); border-left: 1px solid var(--bdr); z-index: 999;
  }
  #site-navigation.open,
  #primary-menu-wrap.open { right: 0; }
  #primary-menu, .nav-menu { flex-direction: column; gap: .35rem; width: 100%; }
  #primary-menu li a, .nav-menu li a { font-size: 1.05rem; padding: .85rem 1rem; display: block; }
  .menu-toggle { display: flex; }
  .post-card { grid-template-columns: 1fr !important; }
  .post-card .card-thumb { min-height: 200px; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }
  .sidebar-wrap { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; gap: 1rem; }
  .sl-grid-2, .sl-grid-3, .sl-grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-content, #content { padding-top: 72px; }
  .blog-pagination .page-numbers { width: 36px; height: 36px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
