/* ===================================================================================== */
/* CARDS DE NOTICIAS - ESTILO DARK TECH */
/* ===================================================================================== */

.modern-news-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modern-news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-news-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.modern-news-card:hover::before {
  opacity: 1;
}

/* ===================================================================================== */
/* IMAGEN DE LA CARD */
/* ===================================================================================== */

.news-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85) contrast(1.05);
}

.modern-news-card:hover .news-card-img {
  transform: scale(1.04);
  filter: brightness(0.95) contrast(1.1);
}

.news-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(26, 29, 35, 0.9), transparent);
  pointer-events: none;
}

/* Badge de categoría */
.news-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: #00d4ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-card-badge i {
  font-size: 0.7rem;
}

/* ===================================================================================== */
/* CONTENIDO DE LA CARD */
/* ===================================================================================== */

.modern-card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modern-card-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.modern-card-title i {
  color: #00d4ff;
  margin-right: 0.5rem;
  font-size: 1rem;
}

.modern-news-card:hover .modern-card-title {
  color: #ffffff;
}

.modern-card-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  flex: 1;
}

/* ===================================================================================== */
/* BOTÓN LEER MÁS */
/* ===================================================================================== */

.modern-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.modern-news-btn:hover {
  background: rgba(0, 212, 255, 0.22);
  border-color: rgba(0, 212, 255, 0.6);
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}

.modern-news-btn .btn-arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.modern-news-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ===================================================================================== */
/* FOOTER DE LA CARD */
/* ===================================================================================== */

.modern-card-footer {
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  gap: 0.5rem;
}

.modern-card-footer i {
  color: rgba(0, 212, 255, 0.6);
  font-size: 0.75rem;
}

/* ===================================================================================== */
/* RESPONSIVE */
/* ===================================================================================== */

@media (max-width: 768px) {
  .modern-news-card {
    margin-bottom: 1rem;
  }

  .modern-news-card:hover {
    transform: translateY(-4px);
  }

  .news-card-img-wrapper {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .modern-card-body {
    padding: 1.25rem;
  }

  .modern-card-title {
    font-size: 1rem;
  }
}
