/*
Theme Name: AIVARA Blog (Figma)
Theme URI: https://aivara.com
Author: AIVARA
Description: Tema para el blog basado en diseño Figma. Modo claro, hero destacado, grid de entradas, filtros por categoría, búsqueda, scroll infinito, compartir en redes, sin comentarios.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aivara-blog-figma
*/

/* ==========================================================================
   Variables - Estilo Claro AIVARA
   ========================================================================== */
:root {
  /* Colores principales */
  --color-primary: #0071BC;
  --color-primary-hover: #005a96;
  --color-secondary: #58B9F6;
  --color-secondary-hover: #4FB2F0;
  --color-accent: #64C3FE;
  --color-light: #4FB2F0;
  --color-dark: #171717;

  /* Fondos claros */
  --bg-main: #F5F8FA;
  --bg-card: #FFFFFF;
  --bg-header: #FFFFFF;
  --bg-footer: #171717;
  --bg-elevated: #EDF2F7;

  /* Texto */
  --text-primary: #171717;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-footer: #E2E8F0;
  --text-footer-muted: #A0AEC0;

  /* Bordes */
  --border-subtle: #E2E8F0;
  --border-accent: #CBD5E0;
  --border-glow: rgba(88, 185, 246, 0.3);

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Dimensiones */
  --max-width: 1280px;

  /* Bordes */
  --radius: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Sombras suaves */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 10px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(88, 185, 246, 0.15);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Reset y base - Industrial
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-secondary); text-decoration: none; transition: color 0.2s, text-shadow 0.2s; }
a:hover { color: var(--color-primary); text-shadow: 0 0 8px rgba(88, 185, 246, 0.3); }
img { max-width: 100%; height: auto; display: block; }

/* Selección de texto industrial */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   Header - Estilo Industrial Moderno
   ========================================================================== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
/* Linea decorativa superior */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0071BC 0%, #1A86CD 25%, #4FB2F0 50%, #64C3FE 75%, #58B9F6 100%);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.site-branding a:hover { opacity: 0.9; }
.site-branding .custom-logo,
.site-branding .logo-img { height: 32px; width: auto; }
.site-branding .logo-placeholder {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(88, 185, 246, 0.3);
}

/* Footer logo */
.footer-logo {
  height: 28px !important;
  width: auto;
}

/* Navegación principal - Industrial */
.main-navigation { display: none; }
@media (min-width: 1024px) {
  .main-navigation { display: block; }
}
.main-navigation .primary-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.main-navigation a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after { width: 100%; }
.main-navigation a:hover,
.main-navigation .current-menu-item a { color: var(--color-primary); text-shadow: none; }

/* Dropdowns - Industrial */
.nav-dropdown {
  position: relative;
}
.nav-dropdown .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}
.nav-dropdown .dropdown-trigger:hover { color: var(--color-primary); }
.nav-dropdown .dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.75rem;
  min-width: 14rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.nav-dropdown .dropdown-menu a:hover {
  background: rgba(88, 185, 246, 0.1);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-cta {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 2px 8px rgba(88, 185, 246, 0.3);
  transition: all 0.2s;
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(88, 185, 246, 0.4);
  transform: translateY(-1px);
}

/* Botón menú móvil - Industrial */
.header-menu-toggle {
  display: flex;
  padding: 0.625rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.header-menu-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
@media (min-width: 1024px) {
  .header-menu-toggle { display: none; }
}

/* ==========================================================================
   Subnav - Navegación secundaria del blog
   ========================================================================== */
.subnav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: var(--shadow);
}
.subnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Menu de categorías */
.subnav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.subnav-item {
  position: relative;
}
.subnav-item > a,
.subnav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav-item > a:hover,
.subnav-trigger:hover,
.subnav-item.active > a,
.subnav-item.active > .subnav-trigger {
  color: var(--color-primary);
  text-shadow: none;
}
.subnav-item.active > a,
.subnav-item.active > .subnav-trigger {
  border-bottom-color: var(--color-primary);
}
.subnav-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.subnav-item:hover .subnav-trigger svg {
  transform: rotate(180deg);
}

/* Dropdown de subnav */
.subnav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--color-primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
  z-index: 100;
}
.subnav-item:hover .subnav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subnav-dropdown li a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.subnav-dropdown li a:hover,
.subnav-dropdown li.active a {
  background: rgba(88, 185, 246, 0.1);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  text-shadow: none;
}

/* Búsqueda en subnav */
.subnav-search {
  flex-shrink: 0;
  min-width: 220px;
  max-width: 280px;
}
.subnav-search .search-form {
  display: flex;
  position: relative;
}
.subnav-search .search-field {
  width: 100%;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: all 0.2s;
}
.subnav-search .search-field::placeholder {
  color: var(--text-muted);
}
.subnav-search .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(88, 185, 246, 0.15);
  background: var(--bg-elevated);
}
.subnav-search .search-form::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
.subnav-search .search-form:focus-within::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2367B6F3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.subnav-search .search-submit {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Responsive subnav */
@media (max-width: 768px) {
  .subnav-inner {
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .subnav-menu {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }
  .subnav-item > a,
  .subnav-trigger {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
  }
  .subnav-search {
    width: 100%;
    max-width: none;
    min-width: auto;
  }
}

/* ==========================================================================
   Main content - Contenedor Industrial
   ========================================================================== */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.content-wrap {
  display: block;
}
.content-area {
  min-width: 0;
  padding-top: 0.5rem;
}

/* ==========================================================================
   Hero post - Entrada destacada Industrial
   ========================================================================== */
.hero-post {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s;
  border: 1px solid var(--border-subtle);
}
/* Borde superior acentuado */
.hero-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0071BC 0%, #1A86CD 33%, #4FB2F0 66%, #64C3FE 100%);
  z-index: 10;
}
.hero-post:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}
.hero-post .post-thumbnail-link {
  display: block;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.hero-post .post-thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s, filter 0.4s;
  filter: saturate(0.9) contrast(1.05);
}
.hero-post:hover .post-thumbnail-link img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.1);
}
.hero-post .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 20, 25, 0.95) 0%,
    rgba(15, 20, 25, 0.7) 35%,
    rgba(15, 20, 25, 0.3) 60%,
    transparent 100%
  );
  pointer-events: none;
}
.hero-post .entry-content-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  color: #fff;
}
.hero-post .entry-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-post .entry-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-post .entry-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-post .entry-title a { color: #fff; text-shadow: none; }
.hero-post .entry-title a:hover { color: var(--color-primary); }
.hero-post .entry-summary {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  max-width: 48rem;
  line-height: 1.6;
}
.hero-post .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.hero-post .post-tags a {
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.hero-post .post-tags a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  text-shadow: none;
}
.hero-post .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s;
  text-shadow: none;
}
.hero-post .read-more:hover {
  gap: 1rem;
  color: #fff;
}
.hero-post .read-more svg { width: 18px; height: 18px; }

/* ==========================================================================
   Grid de entradas - Industrial
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
  position: relative;
}
/* Indicador lateral */
.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--border-subtle);
  transition: all 0.3s;
  z-index: 5;
}
.post-card:hover::before {
  background: linear-gradient(180deg, #0071BC 0%, #58B9F6 100%);
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.post-card .post-thumbnail-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
/* Overlay sutil en thumbnails */
.post-card .post-thumbnail-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 20, 25, 0.4) 100%);
  pointer-events: none;
}
.post-card .post-thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, filter 0.3s;
  filter: saturate(0.85) contrast(1.05);
}
.post-card:hover .post-thumbnail-link img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.1);
}
.post-card .entry-content-wrap {
  padding: 1.5rem;
  position: relative;
}
.post-card .entry-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}
.post-card .entry-meta svg { width: 13px; height: 13px; }
.post-card .entry-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.post-card .entry-title a { color: var(--text-primary); text-shadow: none; }
.post-card .entry-title a:hover { color: var(--color-primary); }
.post-card .entry-summary {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.post-card .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.post-card .post-tags a {
  padding: 0.3125rem 0.75rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.post-card .post-tags a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  text-shadow: none;
}

/* Loader y fin del scroll infinito - Industrial */
.infinite-loader {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.infinite-loader .spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.infinite-end {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}
.infinite-end::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
  margin: 0 auto 1rem;
}

/* ==========================================================================
   Sidebar - Industrial
   ========================================================================== */
.sidebar .widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-primary);
}
.sidebar .widget-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--text-primary);
}
.sidebar .search-form { display: flex; gap: 0; }
.sidebar .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.875rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.sidebar .search-submit {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.sidebar .search-submit:hover {
  box-shadow: 0 2px 8px rgba(88, 185, 246, 0.4);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar ul li:last-child { border-bottom: none; }
.sidebar ul li a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.sidebar ul li a:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

/* ==========================================================================
   Single post - Industrial
   ========================================================================== */
.single .site-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.single .entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-subtle);
  position: relative;
}
.single .entry-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--color-primary);
}
.single .entry-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.single .entry-meta {
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.single .entry-meta .sep { color: var(--border-accent); margin: 0 0.5rem; }
.single .post-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.single .entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.single .entry-content p { margin-bottom: 1.5rem; }
.single .entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  padding-left: 1rem;
  border-left: 3px solid var(--color-primary);
}
.single .entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}
.single .entry-content ul, .single .entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.single .entry-content li {
  margin-bottom: 0.5rem;
}
.single .entry-content a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.single .entry-content a:hover { color: var(--color-primary); text-shadow: none; }
.single .entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-elevated);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.single .entry-content code {
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--color-secondary);
}
.single .entry-content pre {
  background: var(--bg-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
}
.single .entry-content pre code {
  background: none;
  padding: 0;
}

/* Compartir redes - Industrial */
.share-buttons {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.share-buttons .share-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.share-buttons .share-links { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.share-buttons a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(88, 185, 246, 0.3);
  transform: translateY(-2px);
  text-shadow: none;
}
.share-buttons a svg { width: 18px; height: 18px; }
.comments-area { display: none !important; }

/* ==========================================================================
   Footer - Industrial
   ========================================================================== */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  margin-top: 5rem;
  position: relative;
}
/* Linea superior decorativa */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0071BC 0%, #1A86CD 25%, #4FB2F0 50%, #64C3FE 75%, #58B9F6 100%);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
}
.footer-brand {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) {
  .footer-brand { grid-column: span 1; }
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer-brand .logo-row a {
  display: inline-block;
}
.footer-brand .logo-row a:hover {
  opacity: 0.9;
}
.footer-brand .logo-img {
  height: 28px;
  width: auto;
}
.footer-brand .logo-placeholder {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(88, 185, 246, 0.3);
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-footer-muted);
  margin: 0 0 1.75rem;
  max-width: 18rem;
  line-height: 1.6;
}
.footer-social-links {
  display: flex;
  gap: 0.625rem;
}
.footer-social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-footer);
  transition: all 0.2s;
}
.footer-social-links a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
  text-shadow: none;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 1.25rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.875rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-footer-muted);
  transition: all 0.2s;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--color-primary);
  padding-left: 0.375rem;
  text-shadow: none;
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-footer-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Utilidades - Industrial
   ========================================================================== */
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}
.pagination { display: none; }

/* Scrollbar personalizada - Industrial */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Focus states - Industrial */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Responsive ajustes */
@media (max-width: 767px) {
  .blog-page-title { font-size: 2.25rem; }
  .hero-post .entry-title { font-size: 1.75rem; }
  .hero-post .entry-content-wrap { padding: 1.5rem; }
  .single .entry-title { font-size: 1.75rem; }
}
