/* Hero */
  .gx-hero {
    position: relative;
    z-index: 5; /* establece contexto de apilado: el dropdown del buscador queda por
                   encima del banner "Empieza a vender" de la sección siguiente */
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 16px;
    text-align: left;
    /* SIN overflow:hidden — recortaba el .gx-search-drop justo en el borde inferior
       del hero (donde arranca el banner de vendedor). El ::before usa inset:0, así
       que queda contenido sin necesidad de clip. */
  }
  .gx-hero::before {
    content: '';
    position: absolute; inset: 0;
    display: none;
    z-index: 0;
  }
  .gx-hero > * { position: relative; z-index: 1; }
  .gx-hero h1 {
    font-family:inherit;
    max-width: 760px;
    font-size:clamp(1.75rem,3vw,2.4rem);
    font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--gx-text-1);
  }
  .gx-hero p { color: var(--gx-text-2); font-size: 16px; max-width: 700px; margin: 0; line-height:1.6; }

  /* Consoles grid — en desktop ancho (≥1100px) las 8 consolas caben en una
     única línea (8 columnas iguales). Se redistribuye en pantallas medianas
     y se compacta a 3 cols en móvil. */
  .gx-consoles {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 40px;
  }
  .gx-console-card {
    position: relative; padding: 16px 8px;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
    transition: border-color .15s ease, background-color .15s ease;
    overflow: hidden;
    text-align: center;
  }
  .gx-console-card::before {
    display:none;
  }
  .gx-console-card:hover { border-color: var(--gx-accent); background:var(--gx-card-2); }
  .gx-console-card > * { position: relative; z-index: 1; }
  .gx-console-card img {
    height: 32px; width: auto; max-width: 75%;
    margin-bottom: 6px; object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
  }
  .gx-console-card h3 {
    font-family:inherit;
    font-size: 13px; font-weight: 700; margin: 0 0 2px;
    letter-spacing: 0.2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gx-console-card .meta { color: var(--gx-text-3); font-size:12px; }

  @media (max-width: 1100px) {
    .gx-consoles { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .gx-console-card { padding: 18px 14px; }
    .gx-console-card img { height: 38px; margin-bottom: 8px; }
    .gx-console-card h3 { font-size: 15px; }
    .gx-console-card .meta { font-size:12px; }
  }
  @media (max-width: 700px) {
    .gx-consoles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .gx-console-card { padding: 12px 8px; border-radius: 8px; }
    .gx-console-card img { height: 28px; margin-bottom: 6px; }
    .gx-console-card h3 { font-size: 12px; }
    .gx-console-card .meta { font-size:12px; }
  }
  @media (max-width: 380px) {
    .gx-consoles { grid-template-columns: repeat(2, 1fr); }
  }

  /* Bestseller sections */
  .gx-section { margin-bottom: 48px; }
  .gx-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 16px;
  }
  .gx-section-head h2 {
    font-family:inherit;
    font-size: 28px; font-weight: 700;
    margin: 0; display: flex; align-items: center; gap: 12px;
  }
  .gx-section-head h2 img { height: 30px; filter: brightness(0) invert(1); opacity: 0.95; }
  .gx-section-head a { color: var(--gx-accent-text); font-size: 14px; font-weight: 500; }
  .gx-section-head a:hover { text-decoration: underline; }

  .gx-slider-wrap { position: relative; }
  .gx-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 200px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gx-slider::-webkit-scrollbar { display: none; }
  .gx-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--gx-card);
    border: 1px solid var(--gx-border-mid);
    border-radius: 50%;
    color: var(--gx-text-1);
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: opacity .15s ease, transform .15s ease, background .15s ease;
  }
  .gx-slider-btn:hover { background: var(--gx-card-2); transform: translateY(-50%) scale(1.06); }
  .gx-slider-btn[disabled] { opacity: 0; pointer-events: none; }
  .gx-slider-btn.left  { left: -10px; }
  .gx-slider-btn.right { right: -10px; }
  .gx-slider-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  @media (max-width: 720px) {
    .gx-slider-btn { width: 44px; height: 44px; }
    .gx-slider-btn.left  { left: -6px; }
    .gx-slider-btn.right { right: -6px; }
  }
  .gx-game-card {
    scroll-snap-align: start;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
  }
  .gx-game-card:hover { transform: translateY(-3px); border-color: var(--gx-accent); }
  .gx-game-cover {
    aspect-ratio: 3 / 4;
    background: var(--gx-bg-2);
    position: relative;
  }
  .gx-game-cover > img { position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block; }
  .gx-game-cover-fallback {
    position:absolute;inset:0;width: 100%; height: 100%;
    display: grid; place-items: center;
    color: var(--gx-text-3); font-size: 32px;
  }
  .gx-game-badge {
    position: absolute; z-index:2; top: 8px; left: 8px;
    background: rgba(0,0,0,0.7);
    color:#fff;
    padding: 3px 8px; border-radius: 999px;
    font-size:12px; font-weight: 600;
  }
  .gx-game-info { padding: 12px; }
  .gx-game-info h3 {
    font-size: 14px; font-weight: 600; margin: 0 0 4px;
    color: var(--gx-text-1); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gx-game-price { font-size: 13px; color: var(--gx-accent-text); font-weight: 600; }
  .gx-game-price.empty { color: var(--gx-text-3); font-weight: 400; }

  .gx-empty {
    padding: 40px 20px; text-align: center;
    color: var(--gx-text-3); font-size: 14px;
    border: 1px dashed var(--gx-border); border-radius: 12px;
  }

  /* Trust badges — sección al final del home */
  .gx-trust-section {
    margin: 48px 0 16px;
    padding-top: 28px;
    border-top: 1px solid var(--gx-border);
  }
  .gx-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
  .gx-trust-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
  }
  .gx-trust-card img {
    width: 28px; height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    flex-shrink: 0;
  }
  .gx-trust-card strong {
    display: block; font-size: 14px; color: var(--gx-text-1); font-weight: 600;
  }
  .gx-trust-card small { display: block; font-size:12px; color: var(--gx-text-3); line-height: 1.3; }

  @media (max-width: 600px) {
    .gx-trust { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gx-trust-card { padding: 10px 12px; gap: 8px; }
    .gx-trust-card img { width: 22px; height: 22px; }
    .gx-trust-card strong { font-size: 12px; }
    .gx-trust-card small { font-size:12px; }
  }

  /* Reviews carousel */
  .gx-slider-reviews { grid-auto-columns: minmax(280px, 320px) !important; }
  .gx-slider-reviews:focus-visible { outline: 2px solid var(--gx-accent); outline-offset: 3px; }
  .gx-review-card {
    scroll-snap-align: start;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    display: flex; flex-direction: column;
    gap: 12px;
  }
  .gx-review-stars { color:var(--warn); font-size: 18px; letter-spacing: 2px; }
  .gx-review-text {
    color: var(--gx-text-2); font-size: 13.5px; line-height: 1.55;
    margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gx-review-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
  .gx-review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background:var(--accent-solid);
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 14px;
    flex-shrink: 0;
  }
  .gx-review-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .gx-review-author strong { display: block; font-size: 13px; color: var(--gx-text-1); }
  .gx-review-author small { display: block; font-size:12px; color: var(--gx-text-3); }
  @media (max-width:720px) {
    .gx-hero { padding:24px 16px 12px; }
    .gx-hero h1 {
      margin-bottom:10px;color:var(--gx-text-1);font-size:1.6rem;
      line-height:1.25;letter-spacing:-.02em;
    }
    .gx-hero p { max-width:34ch;font-size:.94rem;line-height:1.55; }
    .gx-search { margin-top:18px; }
    .gx-search-form { min-height:48px;padding-inline:12px; }
    .gx-seller-banner { margin:10px 0 24px;padding:16px;align-items:stretch; }
    .gx-seller-banner .gx-seller-banner-cta { min-height:44px;display:flex;align-items:center;justify-content:center; }
    .gx-consoles { margin:16px 0 32px; }
    .gx-section { margin-bottom:36px; }
    .gx-section-head { margin-bottom:14px; }
    .gx-section-head h2 { font-size:1.35rem; }
    .gx-section-head a { min-height:44px;display:inline-flex;align-items:center; }
  }

.gx-search { position: relative; max-width: 620px; margin: 26px 0 0; text-align: left; }
  .gx-search-form { display: flex; align-items: center; gap: 10px; background: var(--gx-card); border: 1px solid var(--gx-border-mid); border-radius: 12px; padding: 0 14px; }
  .gx-search-form:focus-within { border-color: var(--gx-accent); box-shadow: 0 0 0 3px rgba(155,72,237,0.18); }
  .gx-search-ic { color: var(--gx-text-3); flex-shrink: 0; }
  .gx-search-form input { min-width:0; flex: 1; background: none; border: none; outline: none; color: var(--gx-text-1); font-size: 16px; padding: 13px 0; font-family: inherit; }
  .gx-search-form input::placeholder { color: var(--gx-text-3); }
  .gx-search-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: var(--gx-card); border: 1px solid var(--gx-border-mid); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.35); max-height: 420px; overflow-y: auto; padding: 6px; }
  .gx-search-msg { padding: 14px 12px; color: var(--gx-text-3); font-size: 14px; }
  .gx-search-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; }
  .gx-search-item.is-hi,.gx-search-item:hover { background: rgba(155,72,237,0.16); }
  .gx-search-cover { position: relative; width: 42px; height: 56px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--gx-bg-2); display: grid; place-items: center; }
  .gx-search-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
  .gx-search-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gx-text-3); }
  .gx-search-meta { min-width: 0; }
  .gx-search-meta .nm { display: block; font-size: 14px; font-weight: 600; color: var(--gx-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gx-search-meta .sub { display: block; font-size: 12px; color: var(--gx-text-3); margin-top: 2px; }
  .gx-search-all { display: block; text-align: center; padding: 11px; margin-top: 4px; border-top: 1px solid var(--gx-border); color:var(--gx-accent-text); font-size: 13px; font-weight: 600; }
  .gx-search-all:hover { color: var(--gx-text-1); }

.gx-seller-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
      background: var(--gx-card);
      border: 1px solid var(--gx-border-mid); border-radius: 10px; padding: 18px 22px; margin: 22px 0 30px;
      transition: border-color .15s ease; }
    .gx-seller-banner:hover { border-color: var(--gx-accent); }
    .gx-seller-banner strong { display: block; font-size: 16px; color: var(--gx-text-1); }
    .gx-seller-banner span { color: var(--gx-text-2); font-size: 13.5px; }
    .gx-seller-banner .gx-seller-banner-cta { background:var(--accent-solid); color: #fff; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; white-space: nowrap; }

.gx-search-submit { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border:0; border-radius:8px; color:#fff; background:var(--accent-solid); font:inherit; font-size:.875rem; font-weight:600; cursor:pointer; }
.gx-search-form { padding:4px 6px 4px 14px; }
.gx-search-msg p { margin:0 0 12px; }
.gx-search-drop { max-height:min(420px,55dvh); }
.gx-search-cover { pointer-events:none; }
.gx-slider { scroll-padding-inline:1px; }
@media(prefers-reduced-motion:reduce) { .gx-slider { scroll-behavior:auto; } .gx-console-card,.gx-game-card,.gx-slider-btn { transition:none; } .gx-game-card:hover,.gx-slider-btn:hover { transform:none; } }
