* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #30084c;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4d0878;
}
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #30084c #0f172a;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
    circle at top,
    #241035 0%,
    #0f172a 45%,
    #0f172a 100%
  );
  color: #f4f4f4;
  font-family: Arial, sans-serif;
}

/* ================================
   HEADER
================================ */
.header {
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  max-width: 1200px;
  margin: auto;
  padding: 18px 20px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.brand-icon {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}
.brand h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.brand p {
  margin: 5px 0 0;
  color: #a5a5b3;
  font-size: 14px;
}

/* ================================
   MAIN
================================ */
.main {
  max-width: 1200px;
  margin: auto;
  padding: 35px 20px 60px;
}

/* ================================
   SEARCH
================================ */
.search-box {
  max-width: 650px;
  margin: 0 auto 45px;
  position: relative;
}
.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #a855f7;
  font-size: 18px;
}
.search-box input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: 12px;
  border: 1px solid #352047;
  outline: none;
  background: #161b2d;
  color: white;
  font-size: 16px;
  transition: 0.25s;
}
.search-box input::placeholder {
  color: #777b89;
}
.search-box input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

/* ================================
   SECTION
================================ */
.section {
  margin-bottom: 55px;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-label {
  display: block;
  color: #a855f7;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.section-title h2 {
  margin: 0;
  font-size: 24px;
}
.section-title h2 i {
  color: #a855f7;
  margin-right: 7px;
}
.contador {
  color: #858999;
  font-size: 14px;
}

/* ================================
   GRID
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ================================
   FEATURED
================================ */
.featured-container {
  display: flex;
  justify-content: center;
}
.featured-container .card {
  width: 100%;
  max-width: 600px;
}

/* ================================
   CARD
================================ */
.card {
  overflow: hidden;
  background: linear-gradient(145deg, #251034, #180c24);
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}
.info {
  padding: 18px;
}
.info h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.info p {
  margin: 7px 0;
  color: #b8bbc7;
  font-size: 14px;
}
.info strong {
  color: white;
}
/* ================================
   CARD IMAGE CONTAINER & BLUR
================================ */
.card-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #12091b;
}
.bg-blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover !important;
  filter: blur(15px) brightness(0.75);
  z-index: 1;
  pointer-events: none;
}
.main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  z-index: 2;
  padding: 8px;
}
/* ================================
   BADGES
================================ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #31104b;
  color: #d9b4ff;
  font-size: 12px;
}
/* ================================
   BUTTON
================================ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 9px;
  background: #a855f7;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.25s;
}
.btn:hover {
  background: #9333ea;
  transform: translateY(-1px);
}
.btn-secondary {
  background: #291436;
  border: 1px solid #4a2760;
  color: #dcbcff;
}
.btn-secondary:hover {
  background: #38194d;
}

/* ================================
   FEATURED CARD
================================ */
.featured-container .card {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: stretch;
}
.featured-container .card .card-image-container {
  height: 100%;
  min-height: 220px;
}
.featured-container .info {
  padding: 25px;
}
.featured-container .info h2 {
  font-size: 25px;
}
/* ================================
   NO RESULTS
================================ */
.sin-resultados {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: #858999;
}

.sin-resultados i {
  font-size: 35px;
  color: #a855f7;
  margin-bottom: 15px;
}

.sin-resultados h3 {
  margin: 0 0 8px;
  color: white;
}

/* ================================
   ABOUT BUTTON
================================ */
.about-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border: 1px solid #a855f7;
  border-radius: 50%;
  background: #1b1026;
  color: #d8a8ff;
  font-size: 18px;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
  transition: 0.25s;
}
.about-btn:hover {
  background: #a855f7;
  color: white;
  transform: scale(1.08);
}

/* ================================
   ABOUT PANEL
================================ */
.about-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 300;
}
.about-panel.active {
  opacity: 1;
  pointer-events: all;
}
.about-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 18px;
  background: #171222;
  border: 1px solid #4a2760;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.about-content h2 {
  margin-top: 0;
  color: #d8a8ff;
}
.about-content h3 {
  margin-top: 25px;
  color: #d8a8ff;
  font-size: 15px;
}
.about-content p {
  color: #aaaebb;
}
.about-content hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 22px 0;
}
.close-about {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: #291436;
  color: #d8a8ff;
  cursor: pointer;
}
/* ================================
   LINKS
================================ */
.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.links a {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #24152f;
  color: #d8a8ff;
  text-decoration: none;
  font-size: 18px;
  transition: 0.25s;
}
.links a:hover {
  background: #a855f7;
  color: white;
  transform: translateY(-3px);
}

/* ================================
   FOOTER
================================ */
.footer {
  margin-top: 30px;
  padding: 35px 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  background: #0c1220;
  text-align: center;
}
.footer-content img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.footer p {
  margin: 5px 0;
  color: #9ca1b1;
}
.footer a {
  color: #c084fc;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer span {
  display: block;
  margin-top: 8px;
  color: #656a78;
  font-size: 12px;
}

/* ================================
   MOBILE
================================ */
@media (max-width: 700px) {
  .main {
    padding: 25px 15px 50px;
  }
  .brand h1 {
    font-size: 21px;
  }
  .brand p {
    font-size: 12px;
  }
  .brand-icon {
    width: 48px;
    height: 48px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .featured-container .card {
    display: flex;
    flex-direction: column;
  }
  .featured-container .card .card-image-container {
    width: 100%;
    height: 200px;
    min-height: 200px;
    position: relative;
  }
  .featured-container .info {
    padding: 18px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .grid .info {
    padding: 13px;
  }
  .grid .info h2 {
    font-size: 16px;
  }
  .grid .info p {
    font-size: 12px;
  }
  .badge {
    font-size: 10px;
    padding: 4px 6px;
  }
  .btn {
    font-size: 13px;
    padding: 10px;
  }
  .about-content {
    padding: 25px 18px;
  }
}
@media (max-width: 400px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

#btnSubir {
  position: fixed;
  bottom: 75px;
  right: 25px;
  width: 45px;
  height: 45px;
  border: 2px solid #c800ff;
  border-radius: 50%;
  color: #4d0878;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 15px #00000059;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}
#btnSubir:hover {
  transform: translateY(-20px);
  background: #151f34;
}
#btnSubir.mostrar {
  opacity: 1;
  visibility: visible;
  background: #1b1026;
}
#btnLimpiar {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #d8a8ff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: none;
  padding: 0;
  margin: 0;
}