:root {
  --primary: #00f0ff;
  --primary-dark: #00a8ff;
  --secondary: #ff2d75;
  --dark: #0a0e17;
  --light: #ffffff;
  --gray: #8a8f98;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --section-spacing: 150px;
}

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

body {
  background-color: var(--dark);
  color: var(--light);
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 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);
}

h1,
h2,
h3,
h4 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.article-hero {
  height: 80vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--section-spacing);
  padding: 60px 20px;
}

.article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 23, 0.7),
    rgba(10, 14, 23, 0.95)
  );
  z-index: 1;
}

.nebula-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(0, 112, 255, 0.15) 0%,
    transparent 50%
  );
  animation: nebula-pulse 15s infinite alternate;
  z-index: 0;
}

.article-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.article-hero-category {
  background: var(--primary);
  color: var(--dark);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

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

.article-hero-meta {
  color: var(--gray);
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.6s;
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body {
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 0 20px;
  position: relative;
}

.article-content-section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
}

.article-content-section.animated {
  animation: fadeInUp 1s forwards;
}

.article-content-section:nth-child(1) {
  animation-delay: 0.2s;
}
.article-content-section:nth-child(2) {
  animation-delay: 0.4s;
}
.article-content-section:nth-child(3) {
  animation-delay: 0.6s;
}
.article-content-section:nth-child(4) {
  animation-delay: 0.8s;
}

.article-content-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--light);
  position: relative;
  padding-bottom: 15px;
}

.article-content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--primary);
}

.article-content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 25px;
  margin-top: 25px;
}

.article-content-section h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin: 40px 0 25px 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  position: relative;
  padding-left: 20px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.article-content-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.article-content-section ul {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.article-content-section li {
  position: relative;
  padding: 15px 0 15px 40px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding-left: 50px;
  padding-right: 20px;
  border-left: 2px solid rgba(0, 240, 255, 0.1);
  transition: var(--transition);
}

.article-content-section li:hover {
  background: rgba(0, 240, 255, 0.05);
  border-left-color: var(--primary);
  transform: translateX(5px);
  color: var(--light);
}

.article-content-section li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
  transition: var(--transition);
}

.article-content-section li:hover::before {
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.article-highlight {
  background: rgba(0, 240, 255, 0.05);
  border-left: 4px solid var(--primary);
  padding: 30px;
  margin: 40px 0;
  border-radius: 0 10px 10px 0;
  position: relative;
  overflow: hidden;
}

.article-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.1),
    transparent
  );
  z-index: -1;
  animation: highlightGlow 3s infinite alternate;
}

.article-highlight p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--light);
  margin: 0;
  line-height: 1.6;
}

.article-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.metric-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: var(--transition);
  backdrop-filter: blur(5px);
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.metric-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.1);
}

.metric-value {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transition: var(--transition);
}

.metric-item:hover .metric-value {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.metric-label {
  font-size: 1.1rem;
  color: var(--light);
  font-weight: 600;
}

.article-image-full {
  width: 100%;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  margin: 50px 0;
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.article-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s ease;
}

.article-image-full:hover img {
  transform: scale(1.08);
}

.article-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: rgba(10, 14, 23, 0.8);
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(5px);
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  margin: 80px 0 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  max-width: 45%;
  padding: 15px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 240, 255, 0.1);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.prev {
  text-align: left;
}

.nav-link.next {
  text-align: right;
  margin-left: auto;
}

.nav-link i {
  transition: var(--transition);
}

.nav-link:hover i {
  transform: translateX(-5px);
}

.nav-link.next:hover i {
  transform: translateX(5px);
}

.related-articles {
  margin-top: 100px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-articles h3 {
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: var(--light);
  text-align: center;
  position: relative;
}

.related-articles h3::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary);
}

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

.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(30px);
}

.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-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: 20px;
  display: block;
}

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

.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);
}

.article-cta {
  margin: 60px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

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

@keyframes nebula-pulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes highlightGlow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .article-hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 992px) {
  .article-hero-title {
    font-size: 2.8rem;
  }

  .article-body {
    margin: 0 auto 80px;
  }

  .article-image-full {
    height: 400px;
  }

  .metric-value {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .article-hero {
    height: 70vh;
    min-height: 600px;
    margin-bottom: 80px;
    padding: 80px 15px;
  }

  .article-hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 2rem;
  }

  .article-hero-meta {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .article-content-section h2 {
    font-size: 1.9rem;
  }
  .article-content-section h3 {
    font-size: 1.4rem;
    margin: 35px 0 20px 0;
    padding-left: 15px;
  }

  .article-content-section h3::before {
    width: 3px;
  }

  .article-content-section li {
    padding-left: 40px;
    padding-right: 15px;
    font-size: 1rem;
  }

  .article-content-section li::before {
    left: 15px;
    width: 6px;
    height: 6px;
  }
  .article-image-full {
    height: 350px;
  }

  .article-navigation {
    flex-direction: column;
    gap: 30px;
  }

  .nav-link {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .article-hero {
    height: 60vh;
    min-height: 500px;
    padding: 100px 10px;
  }

  .article-hero-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 2.5rem;
  }

  .article-hero-content {
    padding: 40px 10px;
  }

  .article-content-section h2 {
    font-size: 1.7rem;
  }

  .article-content-section h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
  }

  .article-content-section li {
    padding: 12px 15px 12px 35px;
    font-size: 0.95rem;
  }

  .article-content-section li::before {
    left: 12px;
  }

  .article-image-full {
    height: 280px;
  }

  .article-highlight p {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) or (max-height: 600px) {
  .article-hero {
    min-height: 450px;
    padding: 120px 10px;
  }

  .article-hero-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}
