/* =========================================================
   SERVICIOS DESTACADOS — estilos aislados de .svc-card
   Agregar al final de assets/styles.css
   ========================================================= */

.featured-games {
  position: relative;
  padding: clamp(64px, 7vw, 96px) 0 clamp(58px, 6vw, 84px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 85, 196, .10), transparent 58%),
    linear-gradient(180deg, #111522 0%, var(--bg) 100%);
  overflow: hidden;
}

.featured-games__heading {
  margin: 0 0 30px;
}

.featured-games__heading h2 {
  margin: 0;
  color: var(--tx);
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.featured-games__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.featured-game {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 350px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--surf);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
  transform: translateY(0);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.featured-game__image,
.featured-game__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-game__image {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.featured-game__shade {
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(9, 12, 21, .06) 0%,
    rgba(9, 12, 21, .12) 30%,
    rgba(9, 12, 21, .72) 66%,
    rgba(9, 12, 21, .96) 100%
  );
}

.featured-game--spotlight {
  border-color: rgba(71, 229, 160, .82);
  box-shadow:
    0 0 0 1px rgba(71, 229, 160, .10),
    0 18px 42px rgba(0, 0, 0, .25);
}

.featured-game__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 6px 10px;
  border: 1px solid rgba(71, 229, 160, .48);
  border-radius: 999px;
  background: rgba(12, 28, 27, .84);
  color: var(--acc);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

.featured-game__content {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-game__content h3 {
  margin: 0 0 9px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.featured-game__content p {
  max-width: 32ch;
  margin: 0 0 19px;
  color: rgba(235, 240, 252, .88);
  font-family: var(--sans);
  font-size: .94rem;
  line-height: 1.55;
}

.featured-game__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(133, 156, 199, .42);
  border-radius: 7px;
  background: rgba(22, 27, 42, .78);
  color: var(--tx);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.featured-game__button:hover {
  border-color: var(--blue-l);
  background: var(--blue-d);
  color: #fff;
}

.featured-game--spotlight .featured-game__button {
  border-color: rgba(71, 229, 160, .56);
  background: rgba(21, 68, 57, .84);
  color: #eafff5;
}

.featured-game--spotlight .featured-game__button:hover {
  border-color: var(--acc);
  background: #174b3e;
}

.featured-games__more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.featured-games__more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  color: var(--blue-g);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.featured-games__more-link:hover {
  color: var(--acc);
}

.featured-games__more-link span {
  font-size: 1.2em;
  transition: transform 180ms ease;
}

.featured-games__more-link:hover span {
  transform: translateX(4px);
}

@media (hover: hover) and (pointer: fine) {
  .featured-game:hover {
    transform: translateY(-4px);
    border-color: rgba(133, 156, 199, .55);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .28);
  }

  .featured-game--spotlight:hover {
    border-color: var(--acc);
  }

  .featured-game:hover .featured-game__image {
    transform: scale(1.045);
  }
}

@media (max-width: 900px) {
  .featured-games__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .featured-game {
    min-height: 320px;
    aspect-ratio: 4 / 4.5;
  }

  .featured-game__content {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .featured-game__content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .featured-games {
    padding: 56px 0 60px;
  }

  .featured-games__heading {
    margin-bottom: 22px;
  }

  .featured-games__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .featured-game {
    min-height: 0;
    aspect-ratio: 1.18 / 1;
  }

  /* Orden móvil solicitado: SCP, Minecraft, CS 1.6 */
  .featured-game--spotlight { order: 0; }
  .featured-game--minecraft { order: 1; }
  .featured-game--cs16 { order: 2; }

  .featured-game__content {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .featured-game__content h3 {
    font-size: 1.35rem;
  }

  .featured-game__content p {
    margin-bottom: 15px;
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-game,
  .featured-game__image,
  .featured-game__button,
  .featured-games__more-link,
  .featured-games__more-link span {
    transition: none !important;
    animation: none !important;
  }
}
