* {
  box-sizing: border-box;
}

body {
  background: #131313;
  color: #b9cacb;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
}

.btn-regresar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9cacb;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid #3a494b;
  transition: color 0.2s, border-color 0.2s;
}

.btn-regresar:hover {
  color: #00f2ff;
  border-color: #00f2ff;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  color: #fface8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 32px;
  margin-bottom: 8px;
}

.titulo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #e2e2e2;
  font-size: 40px;
  margin: 0 0 28px 0;
}

/* ── CONTROLES: tabs + buscador ── */
.controles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .controles {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.tabs {
  display: flex;
  gap: 6px;
  background: #1b1b1b;
  border: 1px solid #3a494b;
  border-radius: 9999px;
  padding: 4px;
  width: fit-content;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  color: #b9cacb;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.activa {
  background: #00f2ff;
  color: #00363a;
}

.buscador-wrap {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.buscador-icono {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #b9cacb;
  pointer-events: none;
}

.buscador-icono svg {
  width: 100%;
  height: 100%;
}

.buscador-input {
  width: 100%;
  background: #1f1f1f;
  border: 1px solid #3a494b;
  color: #e2e2e2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  padding: 11px 14px 11px 40px;
  border-radius: 9999px;
  outline: none;
  transition: border-color 0.2s;
}

.buscador-input:focus {
  border-color: #00f2ff;
}

.buscador-input::placeholder {
  color: #b9cacb;
}

/* ── GRID DE PACKS ── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: #1f1f1f;
  border: 1px solid #3a494b;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: #00f2ff;
}

.card__cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card__cover-wrap.con-video {
  cursor: pointer;
}

.card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover .card__cover {
  transform: scale(1.05);
  filter: grayscale(0);
}

.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 0, 229, 0.15);
  border: 1px solid #ff24e4;
  color: #fface8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  z-index: 2;
}

.card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 38px;
  background: #ff0000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card:hover .card__play {
  opacity: 1;
}

.card:hover .card__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.card__play::after {
  content: '';
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.card__body {
  padding: 14px 16px 16px;
}

.card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #e2e2e2;
  line-height: 1.3;
  margin: 0 0 4px 0;
}

.card__desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #b9cacb;
  margin: 0 0 12px 0;
  min-height: 14px;
}

.card__footer {
   display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__btn--full {
  display: block;
  width: 100%;
  text-align: center;
}

.card__precio {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #00f2ff;
}

.card__btn {
  display: inline-block;
  background: #00f2ff;
  color: #00363a;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.card__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.sin-resultados {
  text-align: center;
  color: #b9cacb;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 2rem 0;
}

/* ── PAGINACION ── */
.paginacion {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagina-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #3a494b;
  background: #1f1f1f;
  color: #b9cacb;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagina-btn:hover {
  border-color: #00f2ff;
  color: #fff;
}

.pagina-btn.activa {
  background: #00f2ff;
  border-color: #00f2ff;
  color: #00363a;
}

.pagina-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── MODAL REPRODUCTOR ── */
.player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.player-overlay.active {
  display: flex;
}

.player-wrapper {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #00f2ff;
}

.player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3a494b;
  background: none;
  color: #b9cacb;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.player-close:hover {
  color: #00f2ff;
  border-color: #00f2ff;
}

/* ── BOTÓN DE INFORMACIÓN ── */
.info-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 255, 0.4);
  background: rgba(0, 242, 255, 0.08);
  color: #00f2ff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.info-btn:hover {
  background: rgba(0, 242, 255, 0.2);
  transform: scale(1.08);
}

/* ── MODAL DE INFORMACIÓN ── */
.info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 24px;
}

.info-overlay.active {
  display: flex;
}

.info-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: #1f1f1f;
  border: 1px solid rgba(0, 242, 255, 0.4);
  border-radius: 16px;
  padding: 28px;
}

.info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #3a494b;
  background: none;
  color: #b9cacb;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.info-close:hover {
  color: #00f2ff;
  border-color: #00f2ff;
}

.info-categoria {
  display: inline-block;
  background: rgba(255, 0, 229, 0.15);
  border: 1px solid #ff24e4;
  color: #fface8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.info-titulo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  color: #e2e2e2;
  line-height: 1.3;
  margin: 0 0 18px 0;
  padding-right: 36px;
  word-break: break-word;
}

.info-lista {
  margin: 0 0 8px 0;
}

.info-lista dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #fface8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.info-lista dd {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #d5d5d5;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.info-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #3a494b;
  padding-top: 16px;
}

.info-precio {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #00f2ff;
}

@media (max-width: 400px) {
  .tabs {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}