:root {
  --accent: #00b400;
  --accent-dark: #006b00;
  --bar: #0a0a0a;
  --header-h: 100px; /* alto aproximado del header + franja de colores */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #111111;
  font-family: 'Inter', system-ui, sans-serif;
}

a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 14px 32px;
  background: var(--bar);
  border-bottom: 2px solid var(--accent);
  font-family: 'Silkscreen', monospace;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-cat  { height: 56px; width: auto; display: block; }
.brand-name { height: 60px; width: auto; display: block; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav a { color: #ffffff; padding: 12px 0; }
.nav a:hover { color: var(--accent); }

/* Botón Donar con la cara de la skin de fondo */
.btn-donar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--accent-dark);
  background-color: #000000;
  background-image: url('assets/cara-pixel.png');
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  color: #ffffff;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000,
    2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}
.btn-donar:hover { filter: brightness(1.3); }
.btn-donar-big { min-height: 56px; padding: 0 44px; font-size: 18px; }

/* ---------- Franja de píxeles ---------- */
.pixel-strip { display: flex; height: 8px; }
.pixel-strip span { flex: 1; }

/* ---------- Fondo de píxeles (bienvenida y donaciones) ---------- */
.hero-bg {
  background-color: #0a0a0a;
  background-image: url('assets/fondo-pixeles.svg');
  background-size: cover;
  background-position: center;
}

/* ---------- Botones ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--accent);
  color: #000000;
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--accent-dark);
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 15px; box-shadow: none; }

.btn-dark {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 4px;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-dark:hover { background: var(--accent-dark); }

/* ---------- Bienvenida ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 80px;
  padding: 72px 32px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}
.hero-text {
  flex: 1 1 340px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero h1 {
  margin: 0;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.1;
  color: #ffffff;
}
.hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #d9d9d9;
}
.hero-thanks { color: #3be529; font-weight: 600; }
.heart { display: inline-block; vertical-align: -3px; margin-left: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.skin-panel {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skin-panel img {
  height: min(62vh, 560px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(0, 180, 0, 0.35));
}

/* ---------- Secciones ---------- */
.section { padding: 64px 32px; background: #ffffff; }
.section-gray { background: #f2f2f2; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-title {
  margin: 0;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  color: #0a0a0a;
}
.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 12px;
  background: var(--accent);
}

.cards { display: flex; flex-wrap: wrap; gap: 32px; }

/* Tarjetas Java / Bedrock: esquinas pixeladas */
.version-card {
  flex: 1 1 300px;
  display: flex;
  filter: drop-shadow(8px 8px 0 var(--vc-shadow));
  transition: transform 0.15s;
  scroll-margin-top: 16px;
}
.version-card:hover { transform: translateY(-6px); }

.version-java    { --vc: var(--accent); --vc-shadow: #006b00; --vc-text: #3be529; }
.version-bedrock { --vc: #28c8b4;       --vc-shadow: #138a7a; --vc-text: #28c8b4; }
.version-instalador { --vc: #e000e0;    --vc-shadow: #8a008a; --vc-text: #f060f0; }

.vc-border {
  flex: 1;
  display: flex;
  padding: 4px;
  background: var(--vc);
  clip-path: polygon(
    0 12px, 4px 12px, 4px 8px, 8px 8px, 8px 4px, 12px 4px, 12px 0,
    calc(100% - 12px) 0, calc(100% - 12px) 4px, calc(100% - 8px) 4px, calc(100% - 8px) 8px, calc(100% - 4px) 8px, calc(100% - 4px) 12px, 100% 12px,
    100% calc(100% - 12px), calc(100% - 4px) calc(100% - 12px), calc(100% - 4px) calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) calc(100% - 4px), calc(100% - 12px) calc(100% - 4px), calc(100% - 12px) 100%,
    12px 100%, 12px calc(100% - 4px), 8px calc(100% - 4px), 8px calc(100% - 8px), 4px calc(100% - 8px), 4px calc(100% - 12px), 0 calc(100% - 12px)
  );
}
.vc-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: #0a0a0a;
  clip-path: polygon(
    0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)
  );
}
.vc-icon { display: block; }
.version-card h3 {
  margin: 0;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 25px;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}
.version-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #d0d0d0;
}
.vc-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vc-count {
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--vc-text);
}
.vc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--vc);
  color: #000000;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.vc-btn:hover { filter: brightness(1.1); }

/* Tarjetas de mods (se generan desde mods.js) */
.mods-grid { justify-content: flex-start; }

.mod-card {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  filter: drop-shadow(6px 6px 0 var(--mc-shadow));
  transition: transform 0.15s;
}
.mod-card:hover { transform: translateY(-6px); }

.mod-java    { --mc: var(--accent); --mc-shadow: #006b00; }
.mod-bedrock { --mc: #28c8b4;       --mc-shadow: #138a7a; }
.mod-instalador { --mc: #e000e0;    --mc-shadow: #8a008a; }

.mc-border {
  flex: 1;
  display: flex;
  padding: 4px;
  background: #0a0a0a;
  clip-path: polygon(
    0 12px, 4px 12px, 4px 8px, 8px 8px, 8px 4px, 12px 4px, 12px 0,
    calc(100% - 12px) 0, calc(100% - 12px) 4px, calc(100% - 8px) 4px, calc(100% - 8px) 8px, calc(100% - 4px) 8px, calc(100% - 4px) 12px, 100% 12px,
    100% calc(100% - 12px), calc(100% - 4px) calc(100% - 12px), calc(100% - 4px) calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) calc(100% - 4px), calc(100% - 12px) calc(100% - 4px), calc(100% - 12px) 100%,
    12px 100%, 12px calc(100% - 4px), 8px calc(100% - 4px), 8px calc(100% - 8px), 4px calc(100% - 8px), 4px calc(100% - 12px), 0 calc(100% - 12px)
  );
}
.mc-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  clip-path: polygon(
    0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)
  );
}

.mc-media {
  position: relative;
  height: 180px;
  background: #0a0a0a;
  overflow: hidden;
}
.mc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  background-image: url('assets/fondo-pixeles.svg');
  background-size: cover;
  background-position: center;
}
.mc-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  background: var(--mc);
  color: #000000;
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.mc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 24px;
}
.mc-body h3 {
  margin: 0;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: #0a0a0a;
}
.mc-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #444444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mc-meta li {
  padding: 3px 8px;
  background: #f0f0f0;
  border: 1px solid #cfcfcf;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
}
.mc-actions {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.mc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--mc);
  color: #000000;
  box-shadow: 0 3px 0 var(--mc-shadow);
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mc-btn:hover { filter: brightness(1.1); }
.mc-link {
  padding: 12px 0;
  color: #0a0a0a;
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: underline;
}
.mc-link:hover { color: var(--accent-dark); }

/* Cuando todavía no hay mods */
.mods-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  background: #ffffff;
  border: 3px dashed #0a0a0a;
  font-size: 16px;
  color: #444444;
}
.mods-empty strong {
  font-family: 'Silkscreen', monospace;
  font-size: 20px;
  text-transform: uppercase;
  color: #0a0a0a;
}

/* ---------- Donaciones ---------- */
.donate {
  padding: 88px 32px;
  border-top: 2px solid var(--accent);
}
.donate-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.heart-big { display: block; }
.donate h2 {
  margin: 0;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
}
.donate p {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: #dcdcdc;
}
.donate-thanks {
  font-family: 'Silkscreen', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3be529;
}

/* ---------- Pie de página ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 32px;
  background: #0a0a0a;
  border-top: 1px solid #333333;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 36px; width: auto; display: block; }
.footer-brand span { font-size: 14px; color: #c9c9c9; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-nav a { color: #ffffff; padding: 10px 0; }
.footer-nav a:hover { color: var(--accent); }

.footer-legal {
  flex-basis: 100%;
  padding-top: 16px;
  border-top: 1px solid #333333;
  font-size: 13px;
  line-height: 1.6;
  color: #a8a8a8;
}
.footer-legal p { margin: 0; }

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  .site-header { padding: 14px 16px; justify-content: center; }
  .brand-cat  { height: 44px; }
  .brand-name { height: 48px; }
  .hero { padding: 48px 20px; }
  .section, .donate { padding-left: 20px; padding-right: 20px; }
  .skin-panel img { height: 360px; }
}

/* Mensaje mientras cargan los mods */
.mods-cargando {
  margin: 0;
  font-size: 16px;
  color: #595959;
}

/* ---------- Enlaces de las tarjetas ---------- */
.mc-media-link { display: block; }
.mc-titulo-link { color: inherit; text-decoration: none; }
.mc-titulo-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Página de un mod ---------- */
.mp-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.mp-banner {
  height: clamp(180px, 26vw, 320px);
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
}
.mp-banner.hero-bg { background-size: cover; }

.mp-cabecera { background: #ffffff; border-bottom: 4px solid #0a0a0a; }
.mp-cabecera .mp-wrap { display: flex; align-items: flex-end; gap: 28px; padding-bottom: 22px; }
.mp-icono {
  flex: none;
  width: 150px;
  height: 150px;
  margin-top: -75px;
  border-radius: 50%;
  border: 6px solid var(--mc);
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #0a0a0a;
}
.mp-icono img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-icono svg { width: 70%; height: 70%; }
.mp-titulo { min-width: 0; padding-top: 14px; }
.mp-volver {
  display: inline-block;
  margin-bottom: 6px;
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #444444;
  text-decoration: none;
}
.mp-volver:hover { color: var(--accent-dark); }
.mp-titulo h1 {
  margin: 0;
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  color: #0a0a0a;
  overflow-wrap: anywhere;
}

.mp-cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 40px;
}
.mp-bloque { margin-bottom: 36px; }
.mp-bloque h2, .mp-caja h2, .mp-descargas h2 {
  margin: 0 0 14px;
  font-family: 'Silkscreen', monospace;
  font-size: 20px;
  text-transform: uppercase;
  color: #0a0a0a;
}
.mp-bloque h2::after, .mp-descargas h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  margin-top: 8px;
  background: var(--mc);
}
.mp-resumen { margin: 0 0 14px; font-size: 18px; line-height: 1.6; color: #222222; overflow-wrap: anywhere; }
.mp-detalle { font-size: 16px; line-height: 1.75; color: #333333; white-space: pre-line; overflow-wrap: anywhere; }

.mp-caja {
  padding: 22px;
  background: #f2f2f2;
  border: 4px solid #0a0a0a;
  box-shadow: 6px 6px 0 var(--mc-shadow);
}
.mp-datos { margin: 0; display: grid; gap: 14px; }
.mp-datos dt { font-family: 'Silkscreen', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #666666; }
.mp-datos dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: #0a0a0a; overflow-wrap: anywhere; }

.mp-video { position: relative; aspect-ratio: 16 / 9; background: #0a0a0a; border: 4px solid #0a0a0a; }
.mp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Carrusel */
.carrusel { outline: none; }
.carrusel:focus-visible .car-vista { outline: 3px solid var(--mc); outline-offset: 3px; }
.car-vista { position: relative; aspect-ratio: 16 / 9; background: #0a0a0a; border: 4px solid #0a0a0a; overflow: hidden; }
.car-slide { display: none; margin: 0; width: 100%; height: 100%; }
.car-slide.activa { display: block; }
.car-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-flecha {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 56px;
  margin-top: -28px;
  padding: 0;
  border: 3px solid #0a0a0a;
  background: var(--mc);
  cursor: pointer;
}
.car-flecha:hover { filter: brightness(1.1); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-flecha::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -9px 0 0 -6px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 12px solid #0a0a0a;
}
.car-next::before { margin-left: -6px; border-right: 0; border-left: 12px solid #0a0a0a; }
.car-cuenta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  background: #0a0a0a;
  color: #ffffff;
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
}
.car-minis { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; scroll-behavior: smooth; }
.car-mini {
  flex: none;
  width: 96px;
  height: 56px;
  padding: 0;
  border: 3px solid #cfcfcf;
  background: #0a0a0a;
  cursor: pointer;
  opacity: 0.7;
}
.car-mini.activa { border-color: var(--mc); opacity: 1; }
.car-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Descargas */
.mp-descargas { background: #f2f2f2; padding: 40px 0 48px; border-top: 4px solid #0a0a0a; }
.mp-botones { display: flex; flex-wrap: wrap; gap: 16px; }
.mp-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 230px;
  padding: 14px 22px;
  background: #ffffff;
  border: 4px solid #0a0a0a;
  box-shadow: 4px 4px 0 #0a0a0a;
  color: #0a0a0a;
  text-decoration: none;
  transition: transform 0.12s;
}
.mp-btn:hover { transform: translate(-2px, -2px); }
.mp-btn strong { font-family: 'Silkscreen', monospace; font-size: 16px; text-transform: uppercase; }
.mp-btn small { font-size: 13px; color: #555555; overflow-wrap: anywhere; }
.mp-btn-principal { background: var(--mc); box-shadow: 4px 4px 0 var(--mc-shadow); }
.mp-btn-principal small { color: #002a00; }

@media (max-width: 820px) {
  .mp-cuerpo { grid-template-columns: 1fr; }
  .mp-lateral { order: -1; }
}
@media (max-width: 560px) {
  .mp-cabecera .mp-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mp-icono { width: 110px; height: 110px; margin-top: -55px; }
  .mp-titulo { padding-top: 0; }
  .mp-titulo h1 { font-size: 26px; }
  .mp-btn { min-width: 100%; }
}

/* ---------- Páginas de categoría (Java, Bedrock, Instaladores) ---------- */
.cat-cabecera { padding: 56px 32px 8px; background: #ffffff; }
.cat-cabecera .container { padding: 0; }
.cat-texto { max-width: 640px; margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: #444444; }
.cat-lista { padding: 28px 32px 72px; }
.cat-lista .container { padding: 0; }
.cat-vacio { width: 100%; }

/* ---------- Buscador y filtro de las categorías ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cat-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.buscador { position: relative; flex: 1 1 280px; max-width: 460px; display: block; }
.busc-icono { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.buscador input, .filtro-sel select {
  width: 100%;
  height: 50px;
  border: 4px solid #0a0a0a;
  border-radius: 0;
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  color: #0a0a0a;
  appearance: none;
  -webkit-appearance: none;
}
.buscador input { padding: 0 14px 0 46px; }
.buscador input:focus, .filtro-sel select:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.filtro-sel { flex: 0 1 230px; position: relative; display: block; }
.filtro-sel select {
  padding: 0 40px 0 14px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #0a0a0a 50%), linear-gradient(135deg, #0a0a0a 50%, transparent 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.cat-conteo { margin: 0; font-family: 'Silkscreen', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #555555; }

/* ---------- Idiomas ---------- */
html.i18n-pend body { visibility: hidden; }
.header-der { display: flex; align-items: center; gap: 14px; }
.idioma { position: relative; display: block; }
.idioma select {
  height: 40px;
  padding: 0 32px 0 12px;
  border: 3px solid #ffffff;
  border-radius: 0;
  background: #0a0a0a;
  color: #ffffff;
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%), linear-gradient(135deg, #ffffff 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.idioma select:hover { border-color: var(--accent); }
.idioma select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.idioma option { font-family: Inter, sans-serif; text-transform: none; }
