:root {
  --primary: #00f0ff;
  --primary-dark: #00a8ff;
  --secondary: #ff2d75;
  --accent: #9c27b0;
  --dark: #0a0e17;
  --dark-card: #141825;
  --light: #ffffff;
  --gray: #8a8f98;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --section-spacing: 120px;
  --blur-strength: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Cursor personalizado */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.cursor-hover .cursor-follower {
  width: 48px;
  height: 48px;
  background: rgba(0, 240, 255, 0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--primary), var(--light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Sección Hero del Blog */
.blog-hero {
  height: 70vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 240, 255, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 45, 117, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(156, 39, 176, 0.2) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #0a0e17 0%, #1a1f2e 50%, #0f1419 100%);
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(0, 240, 255, 0.1) 50%,
      transparent 70%
    ),
    linear-gradient(
      -45deg,
      transparent 30%,
      rgba(255, 45, 117, 0.08) 50%,
      transparent 70%
    );
  z-index: 1;
  animation: lightSweep 8s ease-in-out infinite;
}

.blog-hero::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(0, 240, 255, 0.15) 0deg,
    transparent 60deg,
    rgba(255, 45, 117, 0.1) 120deg,
    transparent 180deg,
    rgba(156, 39, 176, 0.12) 240deg,
    transparent 300deg,
    rgba(0, 240, 255, 0.15) 360deg
  );
  z-index: 0;
  animation: cosmicSpin 30s linear infinite;
  filter: blur(60px);
  opacity: 0.8;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 4;
  padding: 0 20px;
  backdrop-filter: blur(2px);
  border-radius: 20px;
  padding: 40px 20px;
}

.blog-hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--primary), var(--light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

.blog-hero p {
  font-size: 1.5rem;
  color: var(--gray);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.6s;
}

/* Grid de Artículos */
.blog-grid {
  padding: var(--section-spacing) 0;
  position: relative;
}

.blog-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 240, 255, 0.05) 0%,
    transparent 70%
  );
  z-index: -1;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.article-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 240, 255, 0.1);
  position: relative;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(50px);
}

.article-card.animated {
  animation: fadeInUp 0.8s forwards;
}

.article-card:nth-child(1) {
  animation-delay: 0.1s;
}
.article-card:nth-child(2) {
  animation-delay: 0.3s;
}
.article-card:nth-child(3) {
  animation-delay: 0.5s;
}
.article-card:nth-child(4) {
  animation-delay: 0.7s;
}
.article-card:nth-child(5) {
  animation-delay: 0.9s;
}
.article-card:nth-child(6) {
  animation-delay: 1.1s;
}
.article-card:nth-child(7) {
  animation-delay: 1.3s;
}
.article-card:nth-child(8) {
  animation-delay: 1.5s;
}
.article-card:nth-child(9) {
  animation-delay: 1.7s;
}
.article-card:nth-child(10) {
  animation-delay: 1.9s;
}

.article-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--dark);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.article-content {
  padding: 30px;
}

.article-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--light);
  line-height: 1.3;
}

.article-content p {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.6;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.article-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.article-link:hover {
  gap: 15px;
}

.article-link:hover::after {
  width: 100%;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2);
  border-color: var(--primary);
}

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

/* Footer */
.blog-footer {
  padding: 60px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
}

.blog-footer p {
  color: var(--gray);
  font-size: 1rem;
  margin-top: 20px;
}

/* Responsive Design */
@media (min-width: 1350px) and (max-width: 1400px) {
  .nav-links {
    margin-right: -6%;
  }
}
@media (max-width: 1200px) {
  .blog-hero h1 {
    font-size: 4rem;
  }
}
@media (max-width: 1100px) {
  .nav-links {
    gap: 20px;
    margin-right: -4%;
  }
}

@media (max-width: 992px) {
  .blog-hero h1 {
    font-size: 3.5rem;
  }

  .blog-hero p {
    font-size: 1.3rem;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    height: 60vh;
    min-height: 500px;
  }

  .blog-hero h1 {
    font-size: 2.8rem;
  }

  .blog-hero p {
    font-size: 1.1rem;
  }

  .articles-container {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .blog-hero {
    height: 50vh;
    min-height: 400px;
  }

  .blog-hero h1 {
    font-size: 2.2rem;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nebulaPulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@keyframes lightSweep {
  0%,
  100% {
    transform: translateX(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: translateX(100%) rotate(45deg);
    opacity: 1;
  }
}

@keyframes cosmicSpin {
  0% {
    transform: rotate(0deg) scale(0.8);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(0.8);
  }
}
