/* ==========================================================================
   SISTEMA DE INTERFAZ DEL BLOG PREMIUM - INDUSTRIAL TECH
   ========================================================================== */

#telware-blog-root {
  background-color: #030712 !important;
  color: #f3f4f6 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  overflow-x: hidden !important;
}

#telware-blog-root * {
  box-sizing: border-box !important;
}

#telware-blog-root .blog-container {
  width: 90% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* 1. HERO DEL BLOG */
#telware-blog-root .premium-blog-hero {
  padding: 70px 0 30px 0 !important;
  position: relative !important;
  text-align: center !important;
}

#telware-blog-root .blog-blur-ambient {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 600px !important;
  height: 300px !important;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%) !important;
  filter: blur(50px) !important;
  pointer-events: none !important;
}

#telware-blog-root .hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 6px 16px !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #fff !important;
  margin-bottom: 20px !important;
}

#telware-blog-root .badge-dot {
  width: 6px !important;
  height: 6px !important;
  background-color: #3b82f6 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #3b82f6 !important;
}

#telware-blog-root .premium-blog-hero h1 {
  font-size: 40px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 15px 0 !important;
}

#telware-blog-root .premium-blog-hero p {
  font-size: 16.5px !important;
  color: #9ca3af !important;
  max-width: 740px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

/* 2. REJILLA DEL BLOG */
#telware-blog-root .blog-showroom-section {
  padding: 20px 0 80px 0 !important;
}

#telware-blog-root .blog-main-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  width: 100% !important;
}

/* TARJETAS PREMIUM */
#telware-blog-root .blog-premium-card {
  background: #090f1f !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Post Destacado (Fila superior horizontal de impacto) */
#telware-blog-root .blog-main-grid .post-card-featured {
  grid-column: span 3 !important; /* Toma las 3 columnas enteras arriba */
  flex-direction: row !important;
  background: linear-gradient(90deg, #0b1329 0%, #060b18 100%) !important;
}

#telware-blog-root .blog-premium-card:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-4px) !important;
}

/* MULTIMEDIA - CONTENEDOR DE IMÁGENES */
#telware-blog-root .blog-card-image-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  background-color: #030712 !important;
}

#telware-blog-root .post-card-featured .blog-card-image-wrapper {
  width: 50% !important;
  height: 100% !important;
  min-height: 300px !important;
}

#telware-blog-root .blog-card-image-src {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.5s ease !important;
}

#telware-blog-root .blog-premium-card:hover .blog-card-image-src {
  transform: scale(1.04) !important;
}

/* INYECCIÓN DE IMÁGENES ULTRA-REALISTAS POR ID ASOCIADO A TU DATA */
#telware-blog-root .img-bg-1, #telware-blog-root .img-bg-01 { background-image: url('https://images.unsplash.com/photo-1587202372775-e229f172b9d7?w=600&auto=format&fit=crop&q=80') !important; }
#telware-blog-root .img-bg-2, #telware-blog-root .img-bg-02 { background-image: url('https://images.unsplash.com/photo-1591488320449-011701bb6704?w=600&auto=format&fit=crop&q=80') !important; }
#telware-blog-root .img-bg-3, #telware-blog-root .img-bg-03 { background-image: url('https://images.unsplash.com/photo-1626218174358-7769486c4b79?w=600&auto=format&fit=crop&q=80') !important; }
#telware-blog-root .img-bg-4, #telware-blog-root .img-bg-04 { background-image: url('https://images.unsplash.com/photo-1547082299-de196ea013d6?w=600&auto=format&fit=crop&q=80') !important; }
#telware-blog-root .img-bg-5, #telware-blog-root .img-bg-05 { background-image: url('https://images.unsplash.com/photo-1562813733-b31f71025d54?w=600&auto=format&fit=crop&q=80') !important; }
#telware-blog-root .img-bg-6, #telware-blog-root .img-bg-06 { background-image: url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?w=600&auto=format&fit=crop&q=80') !important; }
#telware-blog-root .img-bg-7, #telware-blog-root .img-bg-07 { background-image: url('https://images.unsplash.com/photo-1517430816045-df4b7de11d1d?w=600&auto=format&fit=crop&q=80') !important; }
#telware-blog-root .img-bg-8, #telware-blog-root .img-bg-08 { background-image: url('https://images.unsplash.com/photo-1600132806370-bf17e65e942f?w=600&auto=format&fit=crop&q=80') !important; }
/* Respaldo por si tus IDs usan letras o nombres */
#telware-blog-root .blog-card-image-src:not([style]) { background-image: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important; }

/* Etiquetas flotantes */
#telware-blog-root .blog-card-category-tag {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important;
  background: rgba(3, 7, 18, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px) !important;
  color: #60a5fa !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 600;
}

/* CUERPO TEXTUAL */
#telware-blog-root .blog-card-body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

#telware-blog-root .post-card-featured .blog-card-body {
  width: 50% !important;
  padding: 35px !important;
  justify-content: center !important;
}

#telware-blog-root .blog-card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  color: #9ca3af !important;
  margin-bottom: 12px !important;
}

#telware-blog-root .blog-card-meta svg { vertical-align: middle !important; opacity: 0.6; }

#telware-blog-root .blog-card-body h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 10px 0 !important;
}

#telware-blog-root .post-card-featured .blog-card-body h3 { font-size: 26px !important; margin-bottom: 14px !important; }
#telware-blog-root .blog-card-body h3 a { color: #ffffff !important; text-decoration: none !important; }
#telware-blog-root .blog-card-body h3 a:hover { color: #3b82f6 !important; }

#telware-blog-root .blog-card-excerpt {
  font-size: 13.5px !important;
  color: #9ca3af !important;
  line-height: 1.55 !important;
  margin: 0 0 20px 0 !important;
}

#telware-blog-root .blog-card-footer { margin-top: auto !important; }

#telware-blog-root .blog-readmore-link {
  color: #3b82f6 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

#telware-blog-root .blog-premium-card:hover .blog-readmore-link { color: #60a5fa !important; }

/* 3. CTA DE ASESORÍA INFERIOR */
#telware-blog-root .blog-premium-cta {
  padding: 80px 0 !important;
  background: radial-gradient(circle at bottom center, #0a142c 0%, #030712 70%) !important;
  text-align: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  position: relative !important;
}

#telware-blog-root .bottom-radial-glow {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 500px !important;
  height: 120px !important;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%) !important;
  filter: blur(40px) !important;
}

#telware-blog-root .blog-premium-cta h2 { font-size: 34px !important; font-weight: 800 !important; color: #ffffff !important; margin-bottom: 15px !important; }
#telware-blog-root .blog-premium-cta p { color: #9ca3af !important; max-width: 600px !important; margin: 0 auto 30px auto !important; }

#telware-blog-root .cta-action-buttons { display: flex !important; justify-content: center !important; gap: 16px !important; }
#telware-blog-root .btn-cta-primary { background: linear-gradient(90deg, #3b82f6, #1d4ed8) !important; color: #fff !important; padding: 15px 32px !important; text-decoration: none !important; border-radius: 6px !important; font-weight: 600 !important; }
#telware-blog-root .btn-cta-outline { background: transparent !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; padding: 15px 32px !important; text-decoration: none !important; border-radius: 6px !important; font-weight: 600 !important; }

/* 4. RESPONSIVE */
@media (max-width: 1024px) {
  #telware-blog-root .blog-main-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #telware-blog-root .blog-main-grid .post-card-featured { grid-column: span 2 !important; }
}
@media (max-width: 768px) {
  #telware-blog-root .blog-main-grid { grid-template-columns: 1fr !important; }
  #telware-blog-root .blog-main-grid .post-card-featured { grid-column: span 1 !important; flex-direction: column !important; }
  #telware-blog-root .post-card-featured .blog-card-image-wrapper { width: 100% !important; }
  #telware-blog-root .post-card-featured .blog-card-body { width: 100% !important; }
  #telware-blog-root .cta-action-buttons { flex-direction: column !important; }
}




/* ==========================================================================
   NUEVO SISTEMA DE ÍCONOS DE RESPALDO TECH
   ========================================================================== */

#telware-blog-root .blog-fallback-icon-layer {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1 !important;
  background: radial-gradient(circle at center, rgba(13, 25, 51, 0.2) 0%, rgba(3, 7, 18, 0.6) 100%) !important;
  pointer-events: none !important;
}

#telware-blog-root .blog-fallback-icon-layer svg {
  width: 54px !important;
  height: 54px !important;
  color: rgba(59, 130, 246, 0.35) !important; /* Azul tecnológico sutil por defecto */
  transition: color 0.3s ease, transform 0.4s ease !important;
}

/* Modificación especial para el post horizontal destacado */
#telware-blog-root .post-card-featured .blog-fallback-icon-layer svg {
  width: 70px !important;
  height: 70px !important;
}

/* Animación interactiva: el ícono cobra vida cuando pasas el mouse por la tarjeta */
#telware-blog-root .blog-premium-card:hover .blog-fallback-icon-layer svg {
  color: #3b82f6 !important;
  transform: scale(1.1) rotate(3deg) !important;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6)) !important;
}

/* Estilo extra para asegurar que las imágenes queden detrás del ícono */
#telware-blog-root .blog-card-image-src {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}