/* ==========================================================================
   GADEXLABS — ESTILOS DE COMPONENTES CLAYMORPHISM MINIMALISTA
   ========================================================================== */

/* ==========================================
   1. NAVEGACIÓN (BARRA FLOTANTE CLAY)
   ========================================== */
.gx-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.gx-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.gx-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gx-brand-logo:hover {
  transform: translateY(-1px);
}

.gx-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 1px 1px 2px rgba(255, 255, 255, 0.15);
}

.gx-brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.gx-brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--gold-primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 600;
}

/* ==========================================
   BÚSQUEDA CLAY (RANURA HUNDIDA TÁCTIL)
   ========================================== */
.gx-search-bar {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.gx-search-input {
  width: 100%;
  background: var(--bg-recessed);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.1rem 0.65rem 2.6rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  outline: none;
  box-shadow: var(--clay-recessed-shadow);
  transition: var(--spring-transition);
}

.gx-search-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.gx-search-input:focus {
  border-color: var(--gold-border);
  box-shadow: var(--clay-recessed-shadow), 0 0 0 3px rgba(229, 178, 93, 0.15);
  background: #0B0F18;
}

.gx-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gx-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.gx-nav-actions .btn-icon {
  position: relative !important;
}

#gx-nav-vault-badge,
#gx-nav-cart-badge {
  display: contents;
}

/* Badge de Conteo Inflado en Oro (Fijo en la esquina del botón) */
.gx-badge-count {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  background: var(--clay-btn-gold);
  color: #07090E;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 1px 1px 1.5px rgba(255, 255, 255, 0.6), inset -1px -1px 2px rgba(120, 80, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 5;
}

/* ==========================================
   2. HERO SECTION & VENTAJAS
   ========================================== */
.gx-hero {
  position: relative;
  padding: 4.5rem 2rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

.gx-hero-header {
  max-width: 900px;
  margin-bottom: 3.5rem;
}

.gx-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.gx-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gx-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.gx-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--clay-recessed-shadow);
  margin-top: 2.5rem;
}

.gx-tele-item {
  border-left: 2px solid var(--border-hairline);
  padding-left: 1.25rem;
}

.gx-tele-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gx-tele-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ==========================================
   3. CATEGORÍAS (CARRUSEL DE PÍLDORAS CLAY)
   ========================================== */
.gx-categories-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
}

.gx-categories-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}
.gx-categories-scroll::-webkit-scrollbar { display: none; }

.gx-cat-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4), inset 1px 1px 1.5px rgba(255, 255, 255, 0.08), inset -1.5px -1.5px 3px rgba(0, 0, 0, 0.5);
  transition: var(--spring-transition);
  user-select: none;
}

.gx-cat-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.5), inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.12), inset -1.5px -1.5px 3px rgba(0, 0, 0, 0.5);
}

.gx-cat-tab.active {
  background: var(--clay-btn-gold);
  color: #07090E;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--clay-btn-gold-shadow);
  transform: translateY(-1px);
}

.gx-cat-tab.active:hover {
  box-shadow: var(--clay-btn-gold-shadow-hover);
  transform: translateY(-2px);
}

/* ==========================================
   4. CATÁLOGO & TARJETAS CLAYMORPHISM
   ========================================== */
.gx-catalog-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 2rem 6rem;
}

.gx-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.gx-app-card {
  background: linear-gradient(160deg, #131B2B 0%, #0E1422 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--clay-card-shadow);
  transition: var(--spring-transition);
}

.gx-app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--pointer-x, 50%) var(--pointer-y, 25%),
    rgba(229, 178, 93, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
  z-index: 1;
}

.gx-app-card:hover::before,
.gx-app-card:active::before {
  opacity: 1;
}

.gx-app-card > * {
  position: relative;
  z-index: 2;
}

.gx-app-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--clay-card-shadow-hover);
  transform: translateY(-4px);
}

.gx-sheet-handle {
  display: none;
  width: 48px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 1.25rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gx-app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.gx-app-icon-wrap {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-highlight);
  background: linear-gradient(135deg, #1C263A, #121927);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  box-shadow: 0 6px 14px -3px rgba(0, 0, 0, 0.5), inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.12), inset -2px -2px 4px rgba(0, 0, 0, 0.6);
  transition: var(--spring-transition);
}

.gx-app-card:hover .gx-app-icon-wrap {
  border-color: var(--gold-border);
  transform: scale(1.04);
}

.gx-app-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gx-app-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: #FFF;
}

.gx-app-desc, .gx-app-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.gx-app-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.gx-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.gx-feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(229, 178, 93, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 1.5px rgba(229, 178, 93, 0.2);
}

/* Bloque de Especificaciones Hundido */
.gx-card-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-recessed);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--clay-recessed-shadow);
  margin-bottom: 1.5rem;
}

.gx-spec-row {
  display: flex;
  flex-direction: column;
}

.gx-spec-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gx-spec-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 600;
}

.gx-app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
  margin-top: auto;
  gap: 0.75rem;
}

.gx-app-price-box {
  display: flex;
  flex-direction: column;
}

.gx-price-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.gx-app-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ==========================================
   5. MODALES Y GAVETA CLAYMORPHISM
   ========================================== */
.gx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gx-modal-card {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #131A29 0%, #0C111C 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 30px 65px -15px rgba(0, 0, 0, 0.85), inset 2px 2px 3px rgba(255, 255, 255, 0.1), inset -3px -3px 8px rgba(0, 0, 0, 0.7);
}

.gx-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--clay-btn-sec);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--clay-btn-sec-shadow);
  transition: var(--spring-transition);
}

.gx-modal-close:hover {
  color: #FFF;
  border-color: var(--border-highlight);
  transform: scale(1.05);
}

.gx-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
}

.gx-drawer-panel {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: linear-gradient(180deg, #111724 0%, #090D15 100%);
  border-left: 1px solid var(--border-light);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7), inset 2px 0 3px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

/* ==========================================
   6. BÓVEDA & LICENCIAS
   ========================================== */
.gx-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gx-license-box {
  background: var(--bg-recessed);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.85rem 0;
  box-shadow: var(--clay-recessed-shadow);
}

.gx-admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.gx-admin-table th {
  text-align: left;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
}

.gx-admin-table td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.85rem;
}

/* ==========================================
   7. FORMULARIOS, TABS & FEEDBACK
   ========================================== */
.gx-auth-tabs {
  display: flex;
  background: var(--bg-recessed);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  box-shadow: var(--clay-recessed-shadow);
  padding: 4px;
  margin-bottom: 1.5rem;
}

.gx-auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: var(--spring-transition);
}

.gx-auth-tab.active {
  background: var(--clay-btn-gold);
  color: #07090E;
  font-weight: 700;
  box-shadow: var(--clay-btn-gold-shadow);
}

.gx-form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  box-shadow: inset 1px 1px 2px rgba(239, 68, 68, 0.2);
}

.gx-form-success {
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.3);
  color: #86EFAC;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  box-shadow: inset 1px 1px 2px rgba(52, 168, 83, 0.2);
}

/* ==========================================
   8. TOASTS CLAY NOTIFICATIONS
   ========================================== */
.gx-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.gx-toast {
  pointer-events: auto;
  min-width: 290px;
  max-width: 420px;
  background: linear-gradient(145deg, #151D2C, #0F1623);
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.8), inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.1), inset -2px -2px 4px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.gx-toast-success {
  border-left: 4px solid #34A853;
}

.gx-toast-error {
  border-left: 4px solid #EF4444;
}

.gx-toast-info {
  border-left: 4px solid var(--gold-primary);
}

.gx-toast-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 3px;
}

.gx-toast-msg {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ==========================================
   9. PERFIL & COOKIES
   ========================================== */
.gx-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1.5rem;
}

.gx-avatar-large {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.15);
}

.gx-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-profile-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 0.75rem;
}

.gx-profile-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: var(--spring-transition);
  border-radius: var(--radius-pill);
}

.gx-profile-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.gx-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 460px;
  background: linear-gradient(145deg, #131B2A, #0B1019);
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gx-cookie-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gx-cookie-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================
   10. ANALYTICS & MÉTRICAS ADMIN CLAY
   ========================================== */
.gx-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gx-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--clay-card-shadow);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.gx-metric-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
  margin-top: 0.25rem;
}

.gx-screenshot-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: 0.5rem;
  background: #030508;
  box-shadow: var(--clay-recessed-shadow);
}

/* ==========================================
   CLAYMORPHIC WORKSPACE SCREENSHOT PREVIEW
   ========================================== */
.gx-preview-section {
  position: relative;
}

.gx-preview-frame {
  position: relative;
  background: var(--bg-surface-elevated, #0B0E14);
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), inset 1px 1px 2px rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.gx-preview-frame:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 178, 93, 0.4);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75), 0 0 24px -4px rgba(229, 178, 93, 0.12), inset 1px 1px 2px rgba(255, 255, 255, 0.12);
}

.gx-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(7, 9, 14, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.gx-preview-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gx-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.85;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.gx-preview-dot.dot-red {
  background: #EF4444;
}

.gx-preview-dot.dot-amber {
  background: #F59E0B;
}

.gx-preview-dot.dot-green {
  background: #10B981;
}

.gx-preview-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 60%;
}

.gx-preview-zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gx-preview-zoom-btn:hover {
  background: var(--clay-btn-gold);
  color: #07090E;
  border-color: transparent;
  transform: scale(1.08);
}

.gx-preview-canvas {
  position: relative;
  background: #030508;
  min-height: 180px;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gx-screenshot-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gx-screenshot-img.loaded {
  opacity: 1;
}

.gx-preview-frame:hover .gx-screenshot-img.loaded {
  transform: scale(1.015);
}

.gx-preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  gap: 0.5rem;
  width: 100%;
  color: var(--text-muted);
}

.gx-preview-fallback-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(229, 178, 93, 0.08);
  border: 1px solid rgba(229, 178, 93, 0.2);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.gx-preview-fallback-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gx-preview-fallback-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ==========================================
   LIGHTBOX DIALOG (ZOOM PANTALLA COMPLETA)
   ========================================== */
.gx-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 6, 10, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}

.gx-lightbox-dialog {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  width: 1100px;
  background: var(--bg-surface-elevated, #0B0E14);
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.85), 0 0 40px -10px rgba(229, 178, 93, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: claySmoothRise 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gx-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(7, 9, 14, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gx-lightbox-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFF;
}

.gx-lightbox-close {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transition: all 0.2s ease;
}

.gx-lightbox-close:hover {
  background: #EF4444;
  color: #FFF;
  transform: rotate(90deg);
}

.gx-lightbox-body {
  flex: 1;
  overflow: auto;
  background: #020305;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  max-height: calc(92vh - 120px);
}

.gx-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.gx-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(7, 9, 14, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gx-badge-select {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.gx-admin-subtabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.gx-admin-subtab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--spring-transition);
}

.gx-admin-subtab-btn.active {
  background: var(--clay-btn-gold);
  color: #07090E;
  font-weight: 700;
  box-shadow: var(--clay-btn-gold-shadow);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   11. ADAPTABILIDAD RESPONSIVE ANDROID & MÓVIL
   ========================================== */
@media (max-width: 860px) {
  .gx-nav-container {
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .gx-brand-logo {
    order: 1;
  }

  .gx-nav-actions {
    order: 2;
    margin-left: auto;
    gap: 0.6rem;
  }

  .gx-search-bar {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .gx-hero {
    padding: 2.75rem 1.25rem 2rem;
  }

  .gx-hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .gx-catalog-section {
    padding: 1.5rem 1.25rem 4rem;
  }

  .gx-catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gx-telemetry-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .gx-cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 640px) {
  .gx-nav-container {
    padding: 0.65rem 1rem;
  }

  .gx-brand-title {
    font-size: 1.05rem;
  }

  .gx-brand-subtitle {
    display: none;
  }

  .gx-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .gx-hero-title {
    font-size: 1.95rem;
    line-height: 1.15;
  }

  .gx-hero-desc {
    font-size: 0.92rem;
  }

  .gx-categories-wrap {
    padding: 1.25rem 1rem 1rem;
  }

  .gx-categories-scroll {
    gap: 0.5rem;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .gx-categories-scroll::after {
    content: '';
    min-width: 1rem;
    flex-shrink: 0;
  }

  .gx-cat-tab {
    padding: 8px 16px;
    font-size: 0.78rem;
    min-height: 38px;
  }

  .gx-app-card {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .gx-app-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .gx-app-price-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .gx-app-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .gx-app-actions button {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  /* Bottom Sheet Paradigm para Android */
  .gx-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .gx-modal-card {
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    border-radius: 28px 28px 0 0;
    padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 16px));
    animation: bottomSheetIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: none;
    border-left: none;
    border-right: none;
  }

  .gx-sheet-handle {
    display: block;
  }

  /* Lightbox Mobile Adjustments */
  .gx-lightbox-backdrop {
    padding: 0.75rem;
  }

  .gx-lightbox-dialog {
    max-width: 100%;
    width: 100%;
    max-height: 94vh;
    border-radius: 18px;
  }

  .gx-lightbox-body {
    padding: 0.4rem;
    max-height: calc(94vh - 110px);
  }

  .gx-preview-frame {
    border-radius: 12px;
  }

  .gx-preview-canvas {
    min-height: 140px;
    max-height: 240px;
  }

  .gx-screenshot-img {
    max-height: 240px;
  }

  .gx-drawer-panel {
    max-width: 100%;
    width: 100%;
  }

  .gx-telemetry-strip {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .gx-tele-item {
    border-left: 2px solid var(--gold-border);
    padding-left: 0.85rem;
  }

  .gx-toast-container {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .gx-toast {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .gx-hero-title {
    font-size: 1.7rem;
  }

  .gx-nav-actions {
    gap: 0.35rem;
  }

  .gx-nav-actions .btn-icon {
    width: 36px;
    height: 36px;
  }
}


