/* =============================
   SLIDER DESTACADO
   ============================= */
.highlight-slider {
  margin: 2.5rem auto 0 auto;
  max-width: 1100px;
  position: relative;
  overflow: visible;
  z-index: 5;
  min-height: 380px;
  animation: slider-fade-in 1.2s cubic-bezier(.77, 0, .18, 1) 1s both;
}

@keyframes slider-fade-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-slider__container {
  display: flex;
  gap: 2rem;
  transition: transform 0.7s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
  padding: 1rem 0;
  justify-content: flex-start;
}

.highlight-slider__card {
  background: linear-gradient(135deg, #1a0033 60%, #0f0f0f 100%);
  border-radius: 1.5rem;
  box-shadow: 0 0 24px #00fff7aa, 0 0 48px #ff00c8aa;
  min-width: 30vw;
  max-width: 50vw;
  flex: 0 0 70vw;
  margin: 0 2vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.5rem 1.7rem 1.5rem;
  position: relative;
  overflow: hidden;
  border: 2px solid #00fff7;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  cursor: pointer;
  opacity: 1;
  animation: card-pop-in 1.2s cubic-bezier(.77, 0, .18, 1);
}

.highlight-slider__card:hover {
  box-shadow: 0 0 48px #ff00c8, 0 0 96px #00fff7, 0 0 128px #39ff14;
  border-color: #ff00c8;
  transform: scale(1.04) rotate(-1deg);
  z-index: 2;
}

@keyframes card-pop-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
  }

  to {
    opacity: 0.97;
    transform: scale(1) translateY(0);
  }
}

.highlight-slider__subtitle {
  font-size: 1.2rem;
  color: var(--color-cyan);
  text-shadow: var(--glow-cyan);
  margin: 0 0 0.7rem 0;
  font-family: 'Orbitron', 'Audiowide', Arial, sans-serif;
  letter-spacing: 0.08em;
  transition: text-shadow 0.3s;
  text-align: center;
}

.highlight-slider__card:hover .highlight-slider__subtitle {
  text-shadow: 0 0 24px #00fff7, 0 0 48px #ff00c8;
}

.highlight-slider__img {
  width: 100%;
  max-width: 100vw;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 0 24px #00fff7, 0 0 32px #ff00c8;
  transition: box-shadow 0.3s, filter 0.3s;
  filter: brightness(1.1) saturate(1.3);
}

.highlight-slider__card:hover .highlight-slider__img {
  box-shadow: 0 0 48px #ff00c8, 0 0 96px #00fff7;
  filter: brightness(1.3) saturate(1.7) drop-shadow(0 0 16px #39ff14);
}

.highlight-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #00fff7 40%, #ff00c8 100%);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 2rem;
  box-shadow: 0 0 16px #00fff7, 0 0 32px #ff00c8;
  cursor: pointer;
  z-index: 10;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  user-select: none;
}

.highlight-slider__btn:active {
  transform: translateY(-50%) scale(0.95);
}

.highlight-slider__btn--prev {
  left: -1.5rem;
}

.highlight-slider__btn--next {
  right: -1.5rem;
}

.highlight-slider__btn:hover {
  box-shadow: 0 0 32px #39ff14, 0 0 64px #ff00c8;
  background: linear-gradient(135deg, #ff00c8 40%, #00fff7 100%);
  color: var(--color-white);
}

/* === BOTÓN GLITCH LEER MÁS EN SLIDER === */
.section-description__btn {
  --bg-color: #0d0d0d;
  --primary-color: #00f2ea;
  --secondary-color: #a855f7;
  --text-color: #e5e5e5;
  --font-family: 'Fira Code', Consolas, 'Courier New', Courier, monospace;
  --glitch-anim-duration: 0.5s;
  width: 8.5em;
  min-width: 0;
  padding: 0.5em 0.2em;
  margin-top: 1.1rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
  border-radius: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-description__btn .btn-text {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.section-description__btn:hover .btn-text {
  opacity: 0;
}

.section-description__btn::before,
.section-description__btn::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background-color: var(--primary-color);
  transition: opacity 0.2s ease;
}

.section-description__btn:hover::before,
.section-description__btn:focus::before {
  opacity: 1;
  color: var(--secondary-color);
  animation: glitch-anim var(--glitch-anim-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.section-description__btn:hover::after,
.section-description__btn:focus::after {
  opacity: 1;
  color: var(--bg-color);
  animation: glitch-anim var(--glitch-anim-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }

  20% {
    transform: translate(-5px, 3px);
    clip-path: inset(50% 0 20% 0);
  }

  40% {
    transform: translate(3px, -2px);
    clip-path: inset(20% 0 60% 0);
  }

  60% {
    transform: translate(-4px, 2px);
    clip-path: inset(80% 0 5% 0);
  }

  80% {
    transform: translate(4px, -3px);
    clip-path: inset(30% 0 45% 0);
  }

  100% {
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 1100px) {
  .highlight-slider__card {
    min-width: 340px;
    max-width: 380px;
    flex: 0 0 60%;
  }
}

@media (max-width: 900px) {
  .highlight-slider__container {
    gap: 1rem;
  }

  .highlight-slider__card {
    min-width: 90vw;
    max-width: 95vw;
    flex: 0 0 90vw;
    margin: 0 1vw;
  }
}

@media (max-width: 700px) {
  .highlight-slider__container {
    gap: 0.5rem;
  }

  .highlight-slider__card {
    min-width: 98vw;
    max-width: 99vw;
    flex: 0 0 98vw;
    margin: 0 0.5vw;
  }

  .highlight-slider__btn--prev {
    left: 0.2rem;
  }

  .highlight-slider__btn--next {
    right: 0.2rem;
  }
}