/* ========================================
   BLOG BILLETAXO - CSS MODULAR SISTEMA
   Referencia: https://billetaxo.com/blog/como-se-envia-una-recarga-a-cuba
   ======================================== */

/* === VARIABLES CSS === */
:root {
  --primary: #1E3A8A;
  --secondary: #22D3EE; /* Cambiado a aqua para coincidir con el gradiente global */
  --accent: #F59E0B;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --background: #FFFFFF;
  --surface: #F9FAFB;
  --surface-elevated: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  --gradient-warning: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* === RESET Y BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-system);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === LOGOS SIN DISTORSIÓN === */
.brand-logo-wrap {
  height: 48px;
  display: inline-block;
}

.brand-logo-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* === THUMBNAILS CUADRADOS === */
.post-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.post-thumb:hover {
  transform: scale(1.02);
}

/* === CONTAINERS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === HEADER === */
/* REMOVIDO: El blog ahora usa los estilos globales de global-components.css sin modificaciones */
/* Todos los estilos del header están en /assets/css/global-components.css */

/* Corrección: Forzar color blanco en el header del blog (sobrescribe recargas-style.css) */
/* Aplica tanto en versión web como móvil */
.header-modern .logo-text,
.logo-section .logo-text,
a.logo-text,
.header-modern .nav-links a,
.header-modern .nav-links li a,
.header-modern .nav-main .nav-links a {
  color: white !important;
}

.header-modern .logo-text:hover,
.logo-section .logo-text:hover,
a.logo-text:hover,
.header-modern .nav-links a:hover,
.header-modern .nav-main .nav-links a:hover {
  color: var(--accent) !important;
}

/* Asegurar color blanco en móvil también */
@media (max-width: 768px) {
  .header-modern .logo-text,
  .logo-section .logo-text,
  a.logo-text,
  .header-modern .nav-links a,
  .header-modern .nav-links li a,
  .header-modern .nav-main .nav-links a,
  .header-modern .hamburger span {
    color: white !important;
  }

  .header-modern .hamburger span {
    background: white !important;
  }
}

/* ========================================
   OCULTAR AUTENTICACIÓN EN EL BLOG
   ======================================== */
/* Ocultar sección de autenticación en el header del blog */
body.blog-page .header-auth,
body.article-page .header-auth,
body.blog-page .auth-buttons,
body.article-page .auth-buttons,
body.blog-page .auth-user,
body.article-page .auth-user,
body.blog-page [data-auth="logged-in"],
body.article-page [data-auth="logged-in"],
body.blog-page [data-auth="logged-out"],
body.article-page [data-auth="logged-out"],
body.blog-page #auth-modal-trigger,
body.article-page #auth-modal-trigger,
body.blog-page #auth-modal-trigger-mobile,
body.article-page #auth-modal-trigger-mobile,
body.blog-page .mobile-auth,
body.article-page .mobile-auth,
body.blog-page .mobile-auth-trigger,
body.article-page .mobile-auth-trigger {
  display: none !important;
}

/* Ocultar modal de autenticación en el blog */
body.blog-page #auth-modal,
body.article-page #auth-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* .header-modern .lang-switch - REMOVIDO: Estilos consolidados en /assets/css/global-components.css */

.blog-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* === LANGUAGE SWITCH === - REMOVIDO: Estilos consolidados en /assets/css/global-components.css */

/* === MAIN LAYOUT === */
.blog-main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 968px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === ARTICLE CARDS === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.article-card {
  background: var(--surface-elevated);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.article-card:not(.article-card-featured):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Article Card Suggestions */
.article-card-suggestions {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.75rem;
  background: var(--surface);
}

.suggestions-header-small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestions-tags-small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-suggestion-small {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.tag-suggestion-small::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: bold;
  line-height: 1;
}

.tag-suggestion-small:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tag-suggestion-small:hover::before {
  background: white;
  color: var(--primary);
}

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.article-card-title a {
  text-decoration: none;
  color: inherit;
}

.article-card:not(.article-card-featured) .article-card-title a:hover {
  color: var(--primary);
}

.article-card-featured .article-card-title a:hover {
  color: inherit !important;
}

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-card-date {
  font-weight: 500;
}

.article-card-author {
  color: var(--text-secondary);
}

/* === FEATURED ARTICLE === */
.featured-section {
  margin: 2rem 0 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
  border-radius: 16px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.article-card-featured {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  transition: none !important;
  transform: none !important;
}

.article-card-featured:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-color: var(--border-light) !important;
}

.article-card-featured .article-card-image {
  height: 300px;
}

.article-card-featured .article-card-image img {
  transition: none !important;
  transform: none !important;
}

.article-card-featured .article-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.article-card-featured .article-card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === ARTICLE DETAIL === */
.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.article-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
}

.article-content code {
  background: var(--surface);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--primary);
}

.article-content pre {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.article-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  text-decoration: none;
}

/* === TABLES === */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.article-table th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: left;
  font-size: 0.9rem;
}

.article-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.article-table tr:hover {
  background: var(--surface);
}

.article-table tr:last-child td {
  border-bottom: none;
}

/* === CALLOUTS === */
.callout {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  border-left: 4px solid;
  background: var(--surface);
}

.callout.info {
  border-color: var(--primary);
  background: rgba(30, 64, 175, 0.05);
}

.callout.success {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.callout.warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.callout.danger {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.05);
}

/* === ADSENSE RESERVA DE ESPACIO === */
.adbox {
  min-height: 280px;
  width: 100%;
  margin: 2rem 0;
  display: block;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  position: relative;
}

.adbox::before {
  content: 'Publicidad';
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adbox-sidebar {
  min-height: 600px;
}

.adbox-footer {
  min-height: 250px;
}

/* === PROMOTIONAL BANNERS === */
.promo-banner {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

/* Excepción: banner de vuelos siempre azul, nunca morado */
.promo-banner.promo-vuelos,
.promo-vuelos {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%) !important;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.promo-banner:hover::before {
  left: 100%;
}

.promo-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.promo-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.promo-banner-cta {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.promo-banner-cta:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Variantes de banner */
.promo-banner.esim-banner {
  background: var(--gradient-primary);
}

.promo-banner.recargas-banner {
  background: var(--gradient-success);
}

.promo-banner.vuelos-banner,
.promo-vuelos {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%) !important;
  color: #FFFFFF !important;
}

.promo-banner.vuelos-banner *,
.promo-banner.vuelos-banner h3,
.promo-banner.vuelos-banner p,
.promo-banner.vuelos-banner span,
.promo-banner.vuelos-banner div,
.promo-vuelos *,
.promo-vuelos h3,
.promo-vuelos .promo-title,
.promo-vuelos p,
.promo-vuelos .promo-description,
.promo-vuelos span,
.promo-vuelos div {
  color: #FFFFFF !important;
}

/* === SHARE BUTTONS === */
.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-btn.whatsapp {
  background: #25D366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #1db954;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.twitter:hover {
  background: #0d8bd4;
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.facebook:hover {
  background: #166fe5;
}

/* === SIDEBAR === */
.blog-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-section {
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-article {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-article:hover {
  background: var(--surface);
}

.sidebar-article-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-article-content {
  flex: 1;
}

.sidebar-article-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.sidebar-article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination-link {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 44px;
  text-align: center;
}

.pagination-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination-link.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  cursor: default;
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === FOOTER === */
/* Estilos del footer están en /assets/css/global-components.css */

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === HERO SECTION === */
/* Estilos globales aplicados - hero con gradiente azul-verde */
.section-hero,
.home-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--primary) 100%) !important;
  color: white;
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.section-hero::before,
.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-hero h1,
.section-hero h2,
.home-hero h1,
.home-hero h2 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-hero p,
.home-hero p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 1rem;
  }

  .header-content {
    flex-direction: row;
    gap: 1rem;
    padding: 0 1rem;
  }

  /* Ocultar nav-links y lang-switch del header en móvil */
  /* REMOVIDO: Estilos del header movidos a global-components.css */

  /* Botones móviles visibles en el blog */
  .blog-mobile-buttons {
    display: none !important;
  }

  @media (max-width: 768px) {
    .blog-mobile-buttons {
      display: flex !important;
      gap: 0.5rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .blog-mobile-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.5rem 0.75rem;
      background: rgba(255, 255, 255, 0.15);
      color: white !important;
      text-decoration: none;
      border-radius: 0.5rem;
      font-size: 0.85rem;
      font-weight: 500;
      white-space: nowrap;
      transition: all 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .blog-mobile-btn:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: translateY(-2px);
      border-color: rgba(255, 255, 255, 0.3);
    }

    /* REMOVIDO: Estilos del header movidos a global-components.css */
  }

  /* Asegurar que el menú móvil funcione */
  #mobileMenu.nav-overlay:not([hidden]) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #mobileMenu.nav-overlay[hidden] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Estilos del selector de idioma en menú móvil - REMOVIDO: Consolidados en /assets/css/global-components.css */
  /* Estilos del menú móvil overlay - REMOVIDO: Consolidados en /assets/css/global-components.css */

  .brand-logo-wrap {
    height: 40px;
  }

  .blog-main {
    padding: 1rem 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .article-card {
    margin-bottom: 1rem;
  }

  .article-card-image {
    height: 180px !important;
  }

  .article-card-content {
    padding: 1rem !important;
  }

  .article-card-title {
    font-size: 1.1rem !important;
    line-height: 1.3;
  }

  .article-title {
    font-size: 1.75rem;
    padding: 0 0.5rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .article-content {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
  }

  .article-content img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
    margin: 1rem 0;
    border-radius: 8px;
    display: block;
  }

  .share-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
  }

  .share-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  /* Featured article mobile styles */
  .featured-section {
    margin: 1rem 0 2rem;
    padding: 0.5rem;
    border-radius: 12px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .article-card-featured {
    max-width: 100%;
    margin: 0;
  }

  .article-card-featured .article-card-image {
    height: 220px;
  }

  .article-card-featured .article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .article-card-featured .article-card-title {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
  }

  .article-card-featured .article-card-title a {
    text-decoration: none;
    color: var(--text-primary);
  }

  .article-card-featured .article-card-content {
    padding: 1rem;
  }

  .article-card-featured .article-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-card-featured .article-card-meta {
    font-size: 0.8rem;
    margin-top: 1rem;
  }

  /* Sidebar responsive */
  .blog-sidebar {
    position: static;
    margin-top: 2rem;
  }

  .sidebar-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }

  /* Related articles responsive */
  .related-articles {
    margin: 2rem 0;
    padding: 0 0.5rem;
  }

  .related-articles h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .related-card h4 {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  /* Promo banners responsive */
  .promo-banner {
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }

  .promo-banner h3 {
    font-size: 1.25rem;
  }

  .promo-banner p {
    font-size: 1rem;
  }

  .promo-banner-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* AdSense boxes responsive */
  .adbox {
    margin: 1.5rem 0;
    min-height: 200px;
  }

  .adbox-sidebar {
    min-height: 300px;
  }

  .adbox-footer {
    min-height: 200px;
  }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 0.75rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-content {
    font-size: 0.95rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
  }

  .article-content h3 {
    font-size: 1.15rem;
  }

  .articles-grid {
    gap: 1rem;
  }

  .article-card-image {
    height: 160px !important;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .related-card {
    max-width: 100%;
  }

  .share-buttons {
    padding: 1rem 0.5rem;
  }

  .promo-banner {
    padding: 1rem 0.75rem;
  }

  .promo-banner h3 {
    font-size: 1.1rem;
  }

  .promo-banner p {
    font-size: 0.9rem;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === FOCUS STYLES === */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
  .blog-header,
  .blog-sidebar,
  .share-buttons,
  .promo-banner,
  .adbox {
    display: none !important;
  }

  .article-content {
    max-width: none;
  }
}