/* ============================================================
   BLOG.CSS — Índice del blog y artículos
   Depende de: estilos.css

   00. HERO BLOG
   01. ÍNDICE — GRID DE CARDS
   02. CARD DE ARTÍCULO
   03. ARTÍCULO INDIVIDUAL
   04. SIDEBAR / CTA INLINE
   05. NAV ACTIVE + OVERRIDES
   06. RESPONSIVE
   ============================================================ */


/* ============================================================
   00. HERO BLOG
   ============================================================ */

.blog-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding: 140px 80px 60px;
  background: #0a0d12;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 188, 212, 0.12), transparent 60%);
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: white;
  letter-spacing: -1.5px;
  margin: 8px 0 16px;
}

.blog-hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  line-height: 1.7;
  margin: 0;
}


/* ============================================================
   01. ÍNDICE — GRID DE CARDS
   ============================================================ */

.blog-index {
  padding: 80px;
  background: #0d131c;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}


/* ============================================================
   02. CARD DE ARTÍCULO
   ============================================================ */

.blog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.blog-card-img-link {
  display: block;
}

.blog-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-tag {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.blog-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.blog-card-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin: 0 0 12px;
}

.blog-card-body h2 a {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-body h2 a:hover {
  color: #00e5ff;
}

.blog-card-body > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0 0 auto;
  padding-bottom: 20px;
}

.blog-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #00e5ff;
  text-decoration: none;
  margin-top: 16px;
  transition: 0.2s;
}

.blog-card-link:hover {
  text-decoration: underline;
}


/* ============================================================
   03. ARTÍCULO INDIVIDUAL
   ============================================================ */

.articulo-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 80px 60px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.articulo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.articulo-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.articulo-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.articulo-hero h1 {
  font-size: 46px;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}

.articulo-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 80px 100px;
}

.articulo-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.articulo-body h2:first-child {
  border-top: none;
  margin-top: 0;
}

.articulo-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #00e5ff;
  margin: 28px 0 10px;
}

.articulo-body p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.85;
  margin: 0 0 18px;
}

.articulo-body ul,
.articulo-body ol {
  padding-left: 20px;
  margin: 0 0 20px;
}

.articulo-body li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 8px;
}

.articulo-body strong {
  color: white;
  font-weight: 600;
}

.articulo-callout {
  background: rgba(0, 229, 255, 0.07);
  border-left: 3px solid #00e5ff;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.articulo-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.articulo-cta {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 36px 40px;
  margin-top: 60px;
  text-align: center;
}

.articulo-cta h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px;
}

.articulo-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 24px;
}

.articulo-nav {
  padding: 40px 80px 60px;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.articulo-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #00e5ff;
  text-decoration: none;
}

.articulo-nav a:hover {
  text-decoration: underline;
}


/* ============================================================
   04. CTA BLOG
   ============================================================ */

.blog-cta {
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.blog-cta h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0a0d12;
  margin-bottom: 14px;
}

.blog-cta p {
  font-size: 17px;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 32px;
}

.blog-cta .btn.primary {
  background: #0a0d12;
  color: #00e5ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-cta .btn.primary:hover {
  background: #111824;
}

.srv-cta-band {
  padding: 80px;
  text-align: center;
}

.srv-cta-band-content {
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================================
   05. NAV ACTIVE + LABELS
   ============================================================ */

.nav-active {
  color: #00e5ff !important;
  position: relative;
}

.nav-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00e5ff;
  border-radius: 2px;
}

.srv-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00e5ff;
  margin: 0 0 8px;
  display: block;
}

.articulo-page {
  background: #0a0d12;
}


/* ============================================================
   06. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .blog-hero {
    padding: 120px 20px 50px;
    min-height: auto;
  }

  .blog-hero h1 {
    font-size: 38px;
  }

  .blog-index {
    padding: 60px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .articulo-hero {
    padding: 120px 20px 40px;
    min-height: auto;
  }

  .articulo-hero h1 {
    font-size: 30px;
  }

  .articulo-body {
    padding: 50px 20px 60px;
  }

  .articulo-body h2 {
    font-size: 22px;
  }

  .articulo-nav {
    padding: 30px 20px 40px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .srv-cta-band {
    padding: 60px 20px;
  }

  .blog-cta h2 {
    font-size: 26px;
  }

}
