/* ==========================================================================
   ASIMARC GHOST THEME SYSTEM - DESIGN TOKENS & CSS
   ========================================================================== */

:root {
  /* Color Palette */
  --color-navy-dark: #06101e;
  --color-navy-primary: #0b192c;
  --color-cobalt: #1e3e62;
  --color-cobalt-light: #2c5282;
  --color-gold-accent: #d4af37;
  --color-gold-hover: #b48310;
  --color-amber-badge: #f59e0b;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-light: #e2e8f0;
  --border-focus: #1e3e62;
  
  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 25, 44, 0.12);
  --shadow-hover: 0 18px 36px rgba(11, 25, 44, 0.16);
  --glass-bg: rgba(11, 25, 44, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-brand-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(212, 175, 55, 0.4);
  transition: transform var(--transition-fast);
}

.site-logo:hover .header-brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.3px;
  line-height: 1.05;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gold-accent);
  letter-spacing: 1.5px;
  margin-top: 3px;
}

/* Navigation Menu (Desktop) */
.site-nav {
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.site-nav .nav-menu,
.site-nav .nav,
.site-nav ul {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-item,
.site-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.site-nav .nav-link,
.site-nav li a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 0.5rem 0.25rem;
  position: relative;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.site-nav .nav-link:hover,
.site-nav li a:hover,
.site-nav .nav-current a {
  color: var(--color-gold-accent);
}

.site-nav .nav-link::after,
.site-nav li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-gold-accent);
  transition: width var(--transition-fast);
}

.site-nav .nav-link:hover::after,
.site-nav li a:hover::after,
.site-nav .nav-current a::after {
  width: 100%;
}

.mobile-nav-cta {
  display: none;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-search-trigger {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.btn-search-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-subscribe {
  background: linear-gradient(135deg, var(--color-gold-accent) 0%, #b48310 100%);
  color: var(--color-navy-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
  transition: all var(--transition-fast);
}

.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-account {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-primary) 50%, var(--color-cobalt) 100%);
  color: var(--text-white);
  padding: 4.5rem 1.5rem 6.5rem 1.5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 10% 80%, rgba(30, 62, 98, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-gold-accent);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 1.5rem;
}

.hero-badge-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-weight: 400;
}

/* ==========================================================================
   FLOATING SEARCH & FILTER CARD
   ========================================================================== */
.filter-box-wrapper {
  max-width: var(--container-max);
  margin: -3.5rem auto 3rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 20;
}

.filter-box-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-bar-row {
  width: 100%;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.search-input-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-field {
  width: 100%;
  padding: 0.85rem 4rem 0.85rem 3rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-input-box:hover .search-input-field {
  border-color: var(--color-cobalt);
  background: #ffffff;
}

.search-shortcut {
  position: absolute;
  right: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.category-pills-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.pills-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pills-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  background: var(--color-navy-primary);
  color: var(--text-white);
  border-color: var(--color-navy-primary);
}

/* ==========================================================================
   CONTENT LAYOUT & FEATURED POST
   ========================================================================== */
.content-container {
  max-width: var(--container-max);
  margin: 0 auto 5rem auto;
  padding: 0 1.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* Featured Card Hero */
.featured-post-section {
  margin-bottom: 3.5rem;
}

.featured-card-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.featured-card-hero:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.featured-image-wrapper {
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card-hero:hover .featured-image-wrapper img {
  transform: scale(1.04);
}

.featured-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.75rem 0 1rem 0;
  color: var(--color-navy-primary);
}

.featured-title a:hover {
  color: var(--color-cobalt);
}

.featured-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.btn-read-more {
  color: var(--color-cobalt);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-read-more:hover {
  color: var(--color-gold-hover);
}

/* ==========================================================================
   POST CARDS GRID
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 62, 98, 0.2);
}

.post-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: var(--color-navy-primary);
}

.post-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.06);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

/* Badges */
.post-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(30, 62, 98, 0.1);
  color: var(--color-cobalt);
}

.badge-noticias, .badge-negociacion { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.badge-normativa, .badge-conciliacion { background: rgba(16, 185, 129, 0.15); color: #047857; }
.badge-jurisprudencia, .badge-arbitraje { background: rgba(212, 175, 55, 0.18); color: #92400e; }
.badge-jprd { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }
.badge-guias, .badge-capacitacion { background: rgba(139, 92, 246, 0.15); color: #6d28d9; }
.badge-featured { background: var(--color-gold-accent); color: var(--color-navy-dark); }

.reading-time {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--color-navy-primary);
}

.post-card-title a:hover {
  color: var(--color-cobalt);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.author-avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-secondary);
}

.post-date {
  color: var(--text-light);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  background: var(--color-navy-primary);
  color: var(--text-white);
  border-color: var(--color-navy-primary);
}

.pagination-number {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SINGLE POST PAGE & GHOST CONTENT STYLING
   ========================================================================== */
.single-post-article {
  padding-bottom: 5rem;
}

.single-post-header {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-primary) 100%);
  color: var(--text-white);
  padding: 4rem 1.5rem 5rem 1.5rem;
}

.post-header-container {
  max-width: 820px;
  margin: 0 auto;
}

.post-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.post-breadcrumbs a:hover {
  color: var(--text-white);
}

.breadcrumb-current {
  color: var(--text-white);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin: 1rem 0;
  color: var(--text-white);
}

.single-post-excerpt {
  font-size: 1.18rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-gold-accent);
}

.author-avatar-fallback-lg {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name-text {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-white);
}

.post-date-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Feature Image Container */
.single-post-image-container {
  max-width: 960px;
  margin: -3.5rem auto 3rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.post-feature-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.post-feature-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-image-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

/* Post Content Formatting */
.single-post-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gh-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.gh-content p {
  margin-bottom: 1.75rem;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-primary);
  font-weight: 800;
  line-height: 1.28;
  margin: 2.5rem 0 1rem 0;
  letter-spacing: -0.4px;
}

.gh-content h2 { font-size: 2rem; border-bottom: 2px solid var(--bg-subtle); padding-bottom: 0.5rem; }
.gh-content h3 { font-size: 1.5rem; }
.gh-content h4 { font-size: 1.25rem; }

.gh-content blockquote {
  border-left: 4px solid var(--color-gold-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-navy-primary);
  font-size: 1.15rem;
}

.gh-content ul, .gh-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.gh-content li {
  margin-bottom: 0.5rem;
}

.gh-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.gh-content hr {
  border: none;
  border-top: 2px solid var(--border-light);
  margin: 3rem 0;
}

/* Post Subscribe Box */
.post-subscribe-card {
  background: linear-gradient(135deg, var(--color-navy-primary) 0%, var(--color-cobalt) 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin: 3.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.subscribe-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.subscribe-card-content p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin: 0 auto 1.5rem auto;
}

.btn-subscribe-cta {
  display: inline-block;
  background: var(--color-gold-accent);
  color: var(--color-navy-dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  transition: all var(--transition-fast);
}

.btn-subscribe-cta:hover {
  transform: translateY(-2px);
  background: #e5be48;
}

/* Post Navigation (Prev/Next) */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.nav-post-item a {
  display: block;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-post-item a:hover {
  border-color: var(--color-cobalt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-navy-primary);
  line-height: 1.3;
}

/* ==========================================================================
   TAG HEADER & PAGE VIEWS
   ========================================================================== */
.tag-header-section,
.single-page-header {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-primary) 100%);
  color: var(--text-white);
  padding: 4rem 1.5rem 4.5rem 1.5rem;
  margin-bottom: 3rem;
}

.tag-header-container,
.page-header-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.tag-title,
.single-page-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem 0;
  color: var(--text-white);
}

.tag-description,
.single-page-excerpt {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
}

.tag-count {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Static Page Content */
.single-page-content-wrapper {
  max-width: 860px;
  margin: 0 auto 5rem auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  border-top: 4px solid var(--color-gold-accent);
}

.footer-top {
  padding: 4rem 1.5rem 3rem 1.5rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
}

.footer-subtitle {
  font-size: 0.68rem;
  color: var(--color-gold-accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-gold-accent);
  color: var(--color-navy-dark);
}

.footer-col-title {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--color-gold-accent);
}

.footer-info-item {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer-mail-link {
  color: var(--color-gold-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-mail-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.powered-by {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.powered-by strong {
  color: var(--color-gold-accent);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */
@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .featured-card-hero {
    grid-template-columns: 1fr;
  }
  .featured-image-wrapper {
    min-height: 240px;
  }
  .footer-top .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .site-header {
    padding: 0.65rem 0;
  }
  .header-container {
    padding: 0 1rem;
    gap: 0.65rem;
  }
  .header-brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 1px;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .btn-search-trigger {
    padding: 0.5rem;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .btn-search-trigger .search-text {
    display: none;
  }
  .btn-subscribe {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  /* Nav Desplegable Mobile */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 25, 47, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    animation: slideDownNav 0.25s ease forwards;
    z-index: 100;
  }

  .site-nav.active {
    display: block;
  }

  .site-nav .nav-menu,
  .site-nav .nav,
  .site-nav .nav-links,
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .site-nav .nav-item,
  .site-nav li {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
  }

  .site-nav .nav-link,
  .site-nav li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    transition: all var(--transition-fast);
  }

  .site-nav .nav-link:hover,
  .site-nav li a:hover,
  .site-nav .nav-current a {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold-accent);
  }

  .site-nav .nav-link::after,
  .site-nav li a::after {
    display: none;
  }

  .mobile-nav-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: linear-gradient(135deg, var(--color-gold-accent) 0%, #b48310 100%);
    color: var(--color-navy-dark);
    font-weight: 800;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  }

  /* Hero Mobile */
  .hero-section {
    padding: 2.75rem 1rem 4.5rem 1rem;
  }
  .hero-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
    margin-bottom: 1rem;
    line-height: 1.35;
    flex-wrap: wrap;
  }
  .hero-badge-logo {
    width: 18px;
    height: 18px;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
    letter-spacing: -0.4px;
    margin-bottom: 0.85rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Floating Filter & Search Box - Mobile Carousel */
  .filter-box-wrapper {
    margin: -2.75rem auto 2rem auto;
    padding: 0 1rem;
  }
  .filter-box-card {
    padding: 0.85rem;
    gap: 0.75rem;
    border-radius: var(--radius-md);
  }
  .search-shortcut {
    display: none;
  }
  .search-input-field {
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    font-size: 0.88rem;
  }
  .search-input-icon {
    left: 0.85rem;
    width: 18px;
    height: 18px;
  }
  .category-pills-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.5rem;
  }
  .pills-label {
    font-size: 0.7rem;
  }
  .pills-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 0.2rem 0.1rem 0.5rem 0.1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.45rem;
    scroll-snap-type: x mandatory;
  }
  .pills-list::-webkit-scrollbar {
    display: none;
  }
  .category-pill {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
    scroll-snap-align: start;
  }

  /* Content & Posts Grid */
  .content-container {
    padding: 0 1rem;
    margin-bottom: 3.5rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .featured-card-hero {
    border-radius: var(--radius-md);
  }
  .featured-card-body {
    padding: 1.25rem 1rem;
  }
  .featured-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0.5rem 0 0.75rem 0;
  }
  .featured-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
  .post-card {
    border-radius: var(--radius-md);
  }
  .post-card-content {
    padding: 1.25rem 1rem;
  }
  .post-card-title {
    font-size: 1.15rem;
  }
  .post-card-excerpt {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  /* Single Post Page */
  .single-post-header {
    padding: 2.5rem 1rem 3.5rem 1rem;
  }
  .single-post-title {
    font-size: 1.85rem;
    line-height: 1.22;
  }
  .single-post-excerpt {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  .single-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .single-post-image-container {
    margin: -2.5rem auto 2rem auto;
    padding: 0 1rem;
  }
  .single-post-content-wrapper {
    padding: 0 1rem;
  }
  .gh-content {
    font-size: 1.05rem;
    line-height: 1.75;
  }
  .gh-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem 0; }
  .gh-content h3 { font-size: 1.25rem; margin: 1.75rem 0 0.6rem 0; }
  .gh-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Tag & Static Page */
  .tag-header-section,
  .single-page-header {
    padding: 2.5rem 1rem 3rem 1rem;
    margin-bottom: 2rem;
  }
  .tag-title,
  .single-page-title {
    font-size: 1.85rem;
  }
  .tag-description,
  .single-page-excerpt {
    font-size: 0.95rem;
  }
  .single-page-content-wrapper {
    padding: 0 1rem;
    margin-bottom: 3.5rem;
  }

  /* Footer Mobile */
  .footer-top {
    padding: 3rem 1rem 2rem 1rem;
  }
  .footer-top .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    display: none;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .btn-subscribe {
    display: none;
  }
}

/* ==========================================================================
   GHOST KOENIG EDITOR & CARD SUPPORT
   ========================================================================== */
.kg-width-wide {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  position: relative;
  max-width: 100vw;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-wide img,
.kg-width-full img {
  max-width: 100%;
  height: auto;
  display: block;
}

.kg-card {
  margin: 2rem 0;
}

.kg-image-card figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Empty category state */
.empty-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 2rem auto 4rem auto;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--color-navy-primary);
  margin-bottom: 0.75rem;
}

.empty-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.btn-empty-home {
  display: inline-block;
  background: var(--color-navy-primary);
  color: var(--text-white);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}

.btn-empty-home:hover {
  background: var(--color-cobalt);
}
