/* ==================================================
   BASE
================================================== */
* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  background: #000;
  color: #e5e7eb;
  line-height: 1.75;
}

/* ==================================================
   HALO SUPERIOR (estilo DashCOE)
================================================== */
body::before {
  content: "";
  position: fixed;
  top: -35%;
  left: 0;
  right: 0;
  margin: auto;

  width: 100%;
  height: 70%;

  background: radial-gradient(
    ellipse at top,
    rgba(0,120,255,0.45) 0%,
    rgba(0,80,180,0.3) 55%,
    rgba(0,50,120,0.15) 80%,
    transparent 100%
  );

  filter: blur(60px);
  animation: haloPulseArticle 9s ease-in-out infinite alternate;

  z-index: 0;
  pointer-events: none;
}

@keyframes haloPulseArticle {
  0% {
    opacity: 0.35;
    transform: scaleY(0.9);
  }
  50% {
    opacity: 0.6;
    transform: scaleY(1.35);
  }
  100% {
    opacity: 0.35;
    transform: scaleY(0.9);
  }
}

/* ==================================================
   CONTENEDOR
================================================== */
.article-container {
  position: relative;
  z-index: 1;

  max-width: 820px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

/* ==================================================
   VOLVER AL BLOG
================================================== */
.back-link {
  display: inline-block;
  margin-bottom: 35px;

  color: #9ecbff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;

  transition: all 0.3s ease;
}

.back-link:hover {
  color: #00d4ff;
  transform: translateX(-4px);
}

/* ==================================================
   IMAGEN DE PORTADA
================================================== */
.article-cover {
  display: none;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 40px;
}

/* ==================================================
   HEADER ARTÍCULO
================================================== */
.article-header {
  margin-bottom: 50px;
}

.article-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #ffffff;
}

/* ==================================================
   META INFO
================================================== */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.article-category {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;

  background: rgba(0,120,255,0.25);
  color: #9ecbff;
}

/* ==================================================
   CONTENIDO (LECTURA PREMIUM)
================================================== */
.article-content {
  font-size: 1.05rem;
}

/* Párrafos */
.article-content p {
  margin-bottom: 22px;
  color: #e5e7eb;
}

/* Encabezados */
.article-content h2 {
  margin: 50px 0 20px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
}

.article-content h3 {
  margin: 35px 0 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #c7ddff;
}

/* Línea decorativa sutil */
.article-content h2::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, #0078ff, #00d4ff);
}

/* Listas */
.article-content ul,
.article-content ol {
  margin: 20px 0 30px 25px;
}

.article-content li {
  margin-bottom: 10px;
  color: #e5e7eb;
}

/* Páginas legales (aviso de privacidad): texto alineado a la izquierda */
.legal-page .article-content {
  text-align: left;
}

/* Links */
.article-content a {
  color: #00d4ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: #9ecbff;
}

/* Bloques de énfasis */
.article-content blockquote {
  margin: 40px 0;
  padding: 25px 30px;

  background: rgba(255,255,255,0.05);
  border-left: 4px solid #0078ff;
  border-radius: 12px;

  font-style: italic;
  color: #cbd5e1;
}

/* Código inline */
.article-content code {
  background: rgba(0,0,0,0.4);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #9ecbff;
}

/* ==================================================
   EMBED (POWER BI)
================================================== */
.article-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 120, 255, 0.25);
}

.article-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================================================
   MICRO-ANIMACIONES
================================================== */
.article-content > * {
  animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 2.1rem;
  }

  .article-container {
    padding: 40px 18px 60px;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.9rem;
  }

  .article-content {
    font-size: 1rem;
  }
}
