/* ===== Blog - Areya Creaciones ===== */

/* HERO BLOG */
.blog-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0e1a 0%, #050810 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

@media (min-width: 992px) {
  .blog-hero {
    padding-top: 0;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(107, 74, 124, 0.12), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(233, 165, 58, 0.10), transparent 50%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: float-glow 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(77, 208, 225, 0.3), transparent);
  top: 15%;
  left: 10%;
}

.hero-glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(171, 71, 188, 0.25), transparent);
  bottom: 20%;
  right: 15%;
  animation-delay: 10s;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--starlight);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(248, 247, 243, 0.8);
  font-weight: 600;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  text-wrap: pretty;
}

/* Search */
.search-wrapper {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.blog-search .search-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}

.blog-search .search-box:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(77, 208, 225, 0.5);
  box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.1);
}

.blog-search .search-box i {
  font-size: 1.2rem;
  color: rgba(248, 247, 243, 0.5);
}

.blog-search .form-control {
  flex: 1;
  background: none;
  border: none;
  color: var(--starlight);
  font-weight: 600;
  padding: 0.5rem;
}

.blog-search .form-control:focus {
  outline: none;
  box-shadow: none;
}

.blog-search .form-control::placeholder {
  color: rgba(248, 247, 243, 0.4);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  max-width: 500px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--liquid-cyan), var(--liquid-purple), var(--liquid-pink), var(--amber-glow));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 8s ease infinite;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(248, 247, 243, 0.7);
  font-weight: 600;
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* CATEGORÍAS */
.categorias-section {
  background: linear-gradient(180deg, #f8f7f3 0%, #e8e7e3 100%);
  padding: 4rem 0 2rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber-glow);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--areya-text);
  margin-bottom: 0.5rem;
}

.categorias-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.categoria-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.08);
  color: var(--areya-text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.categoria-btn i {
  font-size: 1.1rem;
}

.categoria-btn:hover {
  border-color: rgba(77, 208, 225, 0.5);
  background: rgba(77, 208, 225, 0.05);
  transform: translateY(-2px);
}

.categoria-btn.active {
  background: linear-gradient(135deg, var(--liquid-cyan), var(--liquid-purple));
  border-color: transparent;
  color: white;
}

/* DESTACADOS */
.destacados-section {
  background: linear-gradient(180deg, #e8e7e3 0%, #f8f7f3 100%);
  padding: 4rem 0;
}

/* Article Featured */
.article-featured {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s;
}

.article-featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(77, 208, 225, 0.15);
}

.featured-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.article-featured:hover .featured-media img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.featured-badge {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--liquid-cyan), var(--liquid-purple));
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--areya-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.meta-categoria {
  color: var(--amber-glow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.meta-divider {
  color: rgba(0, 0, 0, 0.2);
}

.featured-title {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-title a {
  color: var(--areya-text);
  text-decoration: none;
  transition: color 0.2s;
}

.featured-title a:hover {
  color: var(--liquid-purple);
}

.featured-excerpt {
  color: var(--areya-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex: 1;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--liquid-cyan), var(--liquid-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
  color: var(--areya-text);
  font-size: 0.9rem;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(77, 208, 225, 0.1);
  color: var(--liquid-purple);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-read-more:hover {
  background: linear-gradient(135deg, var(--liquid-cyan), var(--liquid-purple));
  color: white;
  transform: translateX(4px);
}

/* Articles Sidebar */
.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-sidebar {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  display: flex;
  gap: 1rem;
}

.article-sidebar:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 32px rgba(77, 208, 225, 0.12);
}

.sidebar-media {
  width: 120px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

.sidebar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-sidebar:hover .sidebar-media img {
  transform: scale(1.1);
}

.sidebar-body {
  padding: 1rem 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.sidebar-title a {
  color: var(--areya-text);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-title a:hover {
  color: var(--liquid-purple);
}

/* TODOS LOS ARTÍCULOS */
.articulos-section {
  background: linear-gradient(180deg, #f8f7f3 0%, #e8e7e3 100%);
  padding: 4rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(77, 208, 225, 0.15);
}

.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: block;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.article-card:hover .card-media img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 208, 225, 0.9), rgba(171, 71, 188, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.article-card:hover .card-overlay {
  opacity: 1;
}

.overlay-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--liquid-purple);
  font-size: 1.5rem;
  transform: scale(0.8);
  transition: transform 0.4s;
}

.article-card:hover .overlay-icon {
  transform: scale(1);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}

.card-title a {
  color: var(--areya-text);
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--liquid-purple);
}

.card-excerpt {
  color: var(--areya-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  font-size: 0.95rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.article-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--areya-muted);
  font-weight: 600;
}

/* Empty State */
.empty-state {
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: var(--areya-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-weight: 800;
  color: var(--areya-text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--areya-muted);
}

/* NEWSLETTER */
.newsletter-section {
  background: var(--space-deep);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(107, 74, 124, 0.12), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(233, 165, 58, 0.10), transparent 50%);
}

.newsletter-box {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
}

.newsletter-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--liquid-cyan), var(--liquid-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--starlight);
  margin-bottom: 1rem;
}

.newsletter-description {
  color: rgba(248, 247, 243, 0.8);
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 0;
}


.newsletter-note {
  font-size: 0.85rem;
  color: rgba(248, 247, 243, 0.6);
  margin: 0;
  gap: 0.3rem;
}

.newsletter-section ul li{
  text-decoration: none;
  color: rgba(248, 247, 243, 0.8);
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .articles-sidebar {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  
  .article-sidebar {
    flex-direction: column;
    min-width: 280px;
    scroll-snap-align: start;
  }
  
  .sidebar-media {
    width: 100%;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 767.98px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-divider {
    width: 100%;
    height: 1px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form .form-group {
    flex-direction: column;
  }
  
  .newsletter-box {
    padding: 2rem 1.5rem;
  }
}

/* ANIMATIONS */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}