/* ─── BLOG HEADER (HOLOGRAPHIC REDESIGN) ─── */
.blog-hero {
  padding: 150px 5% 100px;
  text-align: center;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
}

/* El area donde flotan los hologramas */
.hologram-viewport {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  perspective: 1000px;
}

/* Enhancing the Planet / Circle */
.holo-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border: 4px solid rgba(0, 229, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.2), inset 0 0 60px rgba(0, 229, 255, 0.2);
  animation: rotateCircle 40s linear infinite;
  pointer-events: none;
}

.holo-circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 75%;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  animation: rotateCircleRev 20s linear infinite;
}

@keyframes rotateCircle {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCircleRev {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Glassmorphism Cards */
.holo-card {
  position: absolute;
  width: 160px;
  height: 100px;
  background: rgba(0, 229, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 15px rgba(0, 229, 255, 0.1);
  animation: holoFloat 6s ease-in-out infinite;
  z-index: 2;
}

.holo-inner {
  text-align: center;
}

.holo-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.holo-stats {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00e5ff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* Posiciones y variaciones */
.holo-1 { top: 20%; left: 10%; animation-delay: 0s; transform: rotateX(10deg) rotateY(15deg); }
.holo-2 { top: 15%; right: 12%; animation-delay: -2s; transform: rotateX(5deg) rotateY(-10deg); }
.holo-3 { bottom: 20%; left: 15%; animation-delay: -4s; transform: rotateX(-10deg) rotateY(10deg); }

@keyframes holoFloat {
  0%, 100% { transform: translateY(0) rotateX(var(--rx, 5deg)) rotateY(var(--ry, 10deg)); opacity: 0.8; }
  50% { transform: translateY(-20px) rotateX(var(--rx, 8deg)) rotateY(var(--ry, 12deg)); opacity: 1; }
}

.holo-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px dashed rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  animation: rotateCircle 30s linear infinite;
  pointer-events: none;
}

@keyframes rotateCircle {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Glassmorphism Central Card */
.blog-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.blog-hero-content:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 
    0 35px 70px rgba(0,0,0,0.6),
    0 0 30px rgba(0, 229, 255, 0.1),
    inset 0 0 40px rgba(255,255,255,0.04);
}

.blog-hero-content .section-label {
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 2rem;
  background: rgba(0, 229, 255, 0.1);
  padding: 8px 24px;
  border-radius: 50px;
  display: inline-block;
}

.blog-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.1;
  margin: 15px 0 20px;
  color: #fff;
  letter-spacing: 1px;
}

.blog-title span {
  color: #a855f7 !important;
}

.blog-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── BLOG GRID ─── */
.blog-grid-section {
  padding: 40px 5% 100px;
  position: relative;
  z-index: 10;
}

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

/* ─── BLOG CARDS ─── */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.4s ease,
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  border-color: rgba(69, 137, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(69, 137, 255, 0.1);
}

.blog-card-img-wrap {
  width: 100%;
  height: 220px;
  background: #0f111a;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Placeholder temporal para imágenes */
.blog-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 100%);
  transition: transform 0.5s ease;
}

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

/* Imágenes reales en las tarjetas */
.blog-card-actual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.blog-tag {
  color: #4589ff;
  background: rgba(69, 137, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.blog-date {
  color: rgba(255, 255, 255, 0.5);
}

.blog-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.blog-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #4589ff;
}

.blog-card-excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto;
}

.blog-read-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: #4589ff;
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

.blog-hero .hero-title {
  animation: heroFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.blog-hero .hero-sub {
  animation: heroFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 140px 5% 80px;
    min-height: 50vh;
  }

  .blog-hero-content {
    padding: 30px 20px;
    width: 90%;
  }

  .holo-card {
    width: 120px;
    height: 80px;
    padding: 10px;
  }

  .holo-icon { font-size: 1.4rem; }
  .holo-stats { font-size: 0.6rem; }

  .holo-1 { top: 10%; left: 5%; }
  .holo-2 { top: 5%; right: 5%; }
  .holo-3 { display: none; }

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