@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Poppins:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #FFD700;
  --gold2: #FFA500;
  --green: #22c55e;
  --cyan: #4ECDC4;
  --white: #f0f4fa;
  --card-bg: rgba(8, 14, 30, 0.68);
  --card-border: rgba(255,255,255,0.12);
}

html, body { width: 100%; overflow-x: hidden; }
* { font-family: 'Poppins', sans-serif !important; }

body {
  font-family: 'Poppins', sans-serif;
  background: #060b18;
  color: var(--white);
  min-height: 100vh;
}

/* FONDO FIJO */
#bg-scene { position: fixed; inset: 0; z-index: 0; }
#bg-scene img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ================================================================
   TRAYECTORIA SVG
================================================================ */
#tray-svg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 5; pointer-events: none;
}

/* ================================================================
   NAVE
================================================================ */
#nave {
  position: fixed;
  width: clamp(68px, 5vw, 100px);
  z-index: 6; pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(100,255,200,0.6));
  transition: transform 0.3s ease;
}

/* ================================================================
   LOGO
================================================================ */
#logo-link {
  position: fixed; top: 40px; left: 40px;
  z-index: 50; text-decoration: none;
  transition: transform 0.2s;
  pointer-events: all;
}
#logo-link:hover { transform: scale(1.03) rotate(-2deg); }
#logo-link img {
  width: 250px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.75));
  display: block;
}
#logo-subtitle {
  position: fixed; top: 105px; left: 50px;
  margin-top: 6px; max-width: 220px;
  line-height: 1.45; z-index: 50;
  pointer-events: none;
}
#logo-subtitle .logo-sub-bold {
  display: block; font-weight: 700; font-size: 1rem;
  color: var(--gold); letter-spacing: 0.2px;
}
#logo-subtitle .logo-sub-normal {
  display: block; font-weight: 400; font-size: 1rem;
  color: rgba(255,255,255,0.55); margin-top: 2px;
}

@media (max-width: 600px) {
  #logo-subtitle { display: none; }
  #logo-link { top: 14px; left: 14px; }
  #logo-link img { width: 140px; }
  #main-wrap { padding-top: 70px; }
}

/* ================================================================
   PLANETAS — WRAP + SISTEMA COMPLETO
================================================================ */
#planetas-wrap {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

#planetas-wrap .planeta {
  pointer-events: all;
}

.planeta {
  position: fixed;
  cursor: pointer;
  text-decoration: none;
  overflow: visible;
}

.planeta img {
  width: 100%;
  display: block;
  border-radius: 50%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.planeta:hover img {
  transform: scale(1.1);
  filter: brightness(1.3) saturate(1.3) drop-shadow(0 0 18px rgba(255,255,255,0.45));
}

/* ── MERCARI (grande, top-right) ── */
#planeta-mercari {
  top: 5%; right: 2%;
  width: clamp(90px, 15vw, 230px);
  animation: float-mercari 6s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(230,57,70,0.65));
}
@keyframes float-mercari {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}
#planeta-mercari:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 0 34px rgba(230,57,70,0.95)) brightness(1.22);
}

/* ── FRI (decorativo) ── */
#planeta-fri {
  bottom: -5%; left: 0%;
  width: clamp(90px, 18vw, 280px);
  pointer-events: none;
  position: fixed; z-index: 2;
  animation: float-fri 8s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(100,200,255,0.38));
}
@keyframes float-fri {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-9px) rotate(1deg); }
  66%      { transform: translateY(5px) rotate(-1deg); }
}

/* ── GOODSMILE ── */
#planeta-goodsmile {
  top: 40%; left: 82%;
  width: clamp(55px, 7vw, 105px);
  animation: float-gs 7s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(180,140,255,0.55));
}
@keyframes float-gs {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

/* ── TIKTOK ── */
#planeta-tiktok {
  top: 33%; left: 12%;
  width: clamp(56px, 7vw, 100px);
  animation: float-tk 9s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(255,0,80,0.55));
}
@keyframes float-tk {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.05); }
}

/* ── FACEBOOK ── */
#planeta-fb {
  top: 38%; left: 3%;
  width: clamp(48px, 5.5vw, 88px);
  animation: float-fb 11s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(66,103,178,0.55));
}
@keyframes float-fb {
  0%,100% { transform: translateY(0); }
  33%      { transform: translateY(-7px) rotate(2deg); }
  66%      { transform: translateY(4px) rotate(-1deg); }
}

/* ── PAYPAY ── */
#planeta-paypay {
  top: 82%; left: 20%;
  width: clamp(48px, 5.5vw, 85px);
  animation: float-pp 8.5s ease-in-out infinite;
  filter: drop-shadow(0 0 13px rgba(255,50,50,0.5));
}
@keyframes float-pp {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-3deg); }
}

/* ── YAHOO ── */
#planeta-yahoo {
  bottom: 6%; right: 25%;
  width: clamp(55px, 6.5vw, 100px);
  animation: float-yh 9.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(120,40,200,0.55));
}
@keyframes float-yh {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-11px) rotate(2deg); }
}

/* ── SURUGA-YA ── */
#planeta-sugura {
  bottom: 20%; left: 6%;
  width: clamp(48px, 5.5vw, 88px);
  animation: float-sg 12s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255,200,50,0.5));
}
@keyframes float-sg {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-8px) rotate(1deg); }
  66%      { transform: translateY(4px) rotate(-2deg); }
}

/* ── ANIMATE ── */
#planeta-animate {
  bottom: 15%; right: 10%;
  width: clamp(52px, 6.5vw, 95px);
  animation: float-anim 13s ease-in-out infinite;
  filter: drop-shadow(0 0 13px rgba(100,220,200,0.4));
}
@keyframes float-anim {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

/* ── RAKUTEN ── */
#planeta-rakuten {
  bottom: 28%; right: 3%;
  width: clamp(48px, 5.8vw, 88px);
  animation: float-rk 14s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(200,150,255,0.4));
}
@keyframes float-rk {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-3deg); }
}

/* ================================================================
   TOOLTIP PLANETA
================================================================ */
.planeta-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(6,11,24,0.92); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px; padding: 5px 12px;
  font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.92);
  white-space: nowrap; pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.planeta:hover .planeta-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0px);
}

/* ================================================================
   LAYOUT PRINCIPAL
================================================================ */
#main-wrap {
  position: relative; z-index: 20;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 80px 14px 48px; gap: 12px;
  pointer-events: none;
}

#main-wrap > * {
  pointer-events: all;
}

/* ================================================================
   NAV TABS
================================================================ */
.nav-tabs {
  display: flex; gap: 8px;
  background: rgba(8,14,30,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 50px; padding: 5px 8px;
  pointer-events: all;
}
.nav-tab {
  padding: 8px 22px; border-radius: 40px;
  font-weight: 700; font-size: 0.82rem;
  cursor: pointer; border: none; transition: all 0.22s;
  color: rgba(255,255,255,0.65); background: transparent;
  pointer-events: all;
}
.nav-tab.active {
  background: var(--gold); color: #060b18;
  box-shadow: 0 4px 14px rgba(255,215,0,0.3);
}
.nav-tab:not(.active):hover { background: rgba(255,255,255,0.1); color: white; }

.section { display: none; flex-direction: column; gap: 12px; align-items: center; width: 100%; pointer-events: all; }
.section.active { display: flex; }

/* ================================================================
   BANNER PROMO
================================================================ */
.promo-banner {
  width: 100%; max-width: 520px;
  background: rgba(8,14,30,0.75);
  backdrop-filter: blur(18px);
  border: 1px solid var(--card-border); border-radius: 20px;
  padding: 14px 20px; font-size: 0.82rem;
  color: rgba(255,255,255,0.72); line-height: 1.6; text-align: center;
  pointer-events: all;
}
.promo-banner strong { color: var(--gold); }
.promo-banner a { color: var(--gold); text-decoration: underline; pointer-events: all; }

/* ================================================================
   CARD GLASS
================================================================ */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border); border-radius: 28px;
  width: 100%; max-width: 520px; padding: 24px 24px 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.07);
  pointer-events: all;
}

/* ================================================================
   CALCULADORA
================================================================ */
.calc-header {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 4px;
}
.calc-header img { width: 38px; border-radius: 50%; }
.calc-header h1 {
  font-family: 'Bangers', cursive; font-size: 2.1rem; letter-spacing: 3px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.calc-sub {
  text-align: center; font-size: 0.65rem; font-weight: 500;
  color: rgba(255,255,255,0.4); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}
.ig { margin-bottom: 11px; }
.ig label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.8px;
  color: rgba(255,255,255,0.5); display: block; margin-bottom: 5px;
  text-transform: uppercase;
}
.ig input {
  width: 100%; padding: 11px 15px;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px; color: white; font-size: 0.93rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  pointer-events: all;
}
.ig input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,0.13); }
.ig input::placeholder { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

.pago-section { margin: 14px 0 6px; display: flex; flex-direction: column; gap: 9px; }
.pago-contado {
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,140,0,0.07));
  border: 1px solid rgba(255,215,0,0.35); border-radius: 18px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 4px 20px rgba(255,215,0,0.1);
}
.pago-contado-left { display: flex; flex-direction: column; gap: 2px; }
.pago-tag { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.45); }
.pago-label { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.pago-nota { font-size: 0.6rem; font-weight: 500; color: rgba(255,255,255,0.45); margin-top: 1px; }
.pago-amount { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.pago-sym { font-size: 1rem; font-weight: 700; color: var(--gold); }
.pago-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.pago-sep {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.3); font-size: 0.68rem; font-weight: 600;
}
.pago-sep::before, .pago-sep::after { content: ''; flex: 1; border-top: 1px dashed rgba(255,255,255,0.18); }
.pago-partes {
  background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.28);
  border-radius: 18px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 4px 20px rgba(34,197,94,0.08);
}
.pago-partes .pago-sym { color: var(--green); }
.pago-partes .pago-num {
  background: linear-gradient(135deg, #4ade80, var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pago-pills { display: flex; gap: 7px; margin-top: 10px; }
.pago-pill {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 9px 6px; text-align: center;
}
.pago-pill-lbl {
  font-size: 0.55rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.4); margin-bottom: 4px;
}
.pago-pill-val {
  font-size: 1.05rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pago-pill-desc { font-size: 0.5rem; color: rgba(255,255,255,0.3); margin-top: 2px; font-weight: 500; }

.btn-img {
  width: 100%; padding: 12px; border-radius: 40px; border: none;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white; font-weight: 800; font-size: 0.83rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(168,85,247,0.3);
  transition: transform 0.15s, box-shadow 0.15s; margin-top: 8px;
  pointer-events: all;
}
.btn-img:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(168,85,247,0.45); }

/* ================================================================
   BADGES
================================================================ */
.badges-row {
  display: flex; flex-direction: row; gap: 9px;
  width: 100%; max-width: 800px;
}
.badges-row .badge {
  flex: 1; flex-direction: column; align-items: flex-start;
  background: var(--card-bg); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 18px; padding: 13px 12px;
  display: flex; gap: 6px;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.07), inset 0 2px 20px rgba(255,255,255,0.05);
}
.badges-row .badge:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.13), inset 0 2px 25px rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.badge .bi { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.badge-text { display: flex; flex-direction: column; gap: 2px; }
.badge-title { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.badge-desc { font-size: 0.62rem; font-weight: 400; color: rgba(255,255,255,0.52); line-height: 1.4; }

@media (max-width: 400px) {
  .badges-row { flex-wrap: wrap; }
  .badges-row .badge { flex: 0 0 calc(50% - 5px); }
}

/* ================================================================
   INPUTS BÚSQUEDA
================================================================ */
.s-input {
  width: 100%; padding: 14px 18px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; color: white; font-size: 0.9rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s; margin-bottom: 10px;
  caret-color: #4ade80; pointer-events: all;
}
.s-input:focus {
  border-color: rgba(74,222,128,0.5);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.1), 0 8px 24px rgba(0,0,0,0.3);
}
.s-input::placeholder { color: rgba(255,255,255,0.22); font-size: 0.83rem; }

.btn-search {
  width: 100%; padding: 14px; border: none; border-radius: 16px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #065f46 100%);
  color: white; font-weight: 800; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 8px 18px rgba(21,128,61,0.32);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  margin-bottom: 14px; position: relative; overflow: hidden; letter-spacing: 0.3px;
  pointer-events: all;
}
.btn-search::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-15deg); transition: left 0.5s ease;
}
.btn-search:hover::before { left: 150%; }
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,163,74,0.5); filter: brightness(1.08); }

#opciones {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 14px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  min-height: 4px;
}

.opt-btn {
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-weight: 600; font-size: 0.75rem; cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap; text-align: left;
  display: flex; align-items: center; gap: 6px;
  pointer-events: all;
}
.opt-btn:hover {
  background: linear-gradient(135deg, rgba(74,222,128,0.18), rgba(22,163,74,0.12));
  border-color: rgba(74,222,128,0.5); color: #86efac;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(34,197,94,0.2);
}

.rec-title {
  font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.35);
  display: flex; align-items: center; gap: 6px; margin: 14px 0 8px;
  letter-spacing: 1px; text-transform: uppercase;
}
#recientes {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px;
  background: rgba(0,0,0,0.2); border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 14px; min-height: 44px;
}
.rec-btn {
  padding: 5px 13px; border-radius: 28px;
  border: 1px solid rgba(59,130,246,0.28); background: rgba(59,130,246,0.15);
  color: #c7d9ff; font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: all 0.22s;
  pointer-events: all;
}
.rec-btn:hover { background: #3b82f6; color: white; transform: translateY(-2px); }

.footer-bar {
  background: rgba(8,14,30,0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--card-border); border-radius: 40px; padding: 8px 20px;
  font-size: 0.61rem; font-weight: 500; color: rgba(255,255,255,0.35);
  text-align: center; width: 100%; max-width: 520px;
}
.empty { color: rgba(255,255,255,0.28); font-size: 0.75rem; padding: 8px; text-align: center; }

/* ================================================================
   EXPLORADOR JP
================================================================ */
.explorador-hero { text-align: center; padding: 6px 0 18px; position: relative; }
.explorador-kana {
  font-size: 0.6rem; letter-spacing: 6px; color: rgba(255,255,255,0.25);
  font-weight: 500; text-transform: uppercase; margin-bottom: 6px; display: block;
}
.explorador-title {
  font-family: 'Bangers', cursive; font-size: 2.6rem; letter-spacing: 6px; line-height: 1;
  background: linear-gradient(135deg, #e0f2fe 0%, #a5f3fc 35%, #ffd700 70%, #ff9f43 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px; display: block;
}
.explorador-tagline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.38); letter-spacing: 0.5px;
}
.explorador-tagline span { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.25); display: inline-block; }

.plat-active-badge {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 18px; padding: 10px 20px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px; font-size: 0.7rem; color: rgba(255,255,255,0.4);
  position: relative; overflow: hidden;
}
.plat-active-badge::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.04), transparent);
  animation: badge-shimmer 3s ease-in-out infinite;
}
@keyframes badge-shimmer { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
.plat-active-badge .plat-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 6px #4ade80; animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.75); } }
.plat-active-badge .plat-name { font-weight: 800; color: #ffd700; font-size: 0.78rem; }
#plat-badge-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.15); }

.sec-sep {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.58rem; font-weight: 800; color: rgba(255,255,255,0.22); text-transform: uppercase;
  letter-spacing: 2px; margin: 6px 0 12px;
}
.sec-sep::before, .sec-sep::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 16px; }
.cat-btn {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 14px 8px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03);
  cursor: pointer; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); overflow: hidden;
  pointer-events: all;
}
.cat-btn::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,215,0,0.18) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.cat-btn:hover::before, .cat-btn.active::before { opacity: 1; }
.cat-btn:hover, .cat-btn.active {
  border-color: rgba(255,215,0,0.5); transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,215,0,0.2);
}
.cat-btn.active { background: rgba(255,215,0,0.08); }
.cat-btn .cat-icon {
  font-size: 1.8rem; line-height: 1; position: relative; z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.cat-btn:hover .cat-icon, .cat-btn.active .cat-icon { transform: scale(1.2) rotate(-5deg); }
.cat-btn .cat-lbl { font-size: 0.64rem; font-weight: 700; color: rgba(255,255,255,0.75); text-align: center; line-height: 1.2; position: relative; z-index: 1; }
.cat-btn.active .cat-lbl { color: #ffd700; }
.cat-btn .cat-jp { font-size: 0.54rem; color: rgba(255,255,255,0.28); font-weight: 400; position: relative; z-index: 1; }

.plat-tabs-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.plat-btn-new {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 14px 8px 12px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  cursor: pointer; transition: all 0.25s ease; overflow: hidden;
  pointer-events: all;
}
.plat-btn-new::after {
  content: ''; position: absolute; bottom: 0; left: 10%; right: 10%;
  height: 2px; border-radius: 2px 2px 0 0; background: #4ade80;
  transform: scaleX(0); transition: transform 0.3s ease;
}
.plat-btn-new.active::after { transform: scaleX(1); }
.plat-btn-new img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1); transition: all 0.25s ease;
}
.plat-btn-new.active img { border-color: rgba(74,222,128,0.6); box-shadow: 0 0 14px rgba(74,222,128,0.35); }
.plat-btn-new .pbn-lbl { font-size: 0.64rem; font-weight: 700; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.plat-btn-new.active { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.3); }
.plat-btn-new.active .pbn-lbl { color: #4ade80; }
.plat-btn-new:not(.active):hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }

.tip-box-new {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.15);
  border-radius: 16px; padding: 12px 14px; margin-bottom: 14px;
  font-size: 0.74rem; font-weight: 500; color: rgba(255,255,255,0.65); line-height: 1.6;
}
.tip-box-new .tip-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.tip-box-new strong { color: #ffd700; font-weight: 700; }
.tip-box-new .hl { color: #86efac; font-weight: 700; }

.tienda-link-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  cursor: pointer; transition: all 0.22s; text-decoration: none;
  font-size: 1.3rem; line-height: 1; pointer-events: all;
}
.tienda-link-btn:hover {
  border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.06);
  transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.tienda-lbl {
  font-size: 0.52rem; font-weight: 700; color: rgba(255,255,255,0.4);
  text-align: center; display: block; letter-spacing: 0.3px;
}
.tienda-link-btn:hover .tienda-lbl { color: rgba(255,215,0,0.8); }

/* ================================================================
   MODALES
================================================================ */
#modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  pointer-events: all;
}
#modal-overlay.show { display: flex; animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
#modal-box {
  background: rgba(8,14,30,0.92); border: 1px solid rgba(255,215,0,0.35);
  border-radius: 24px; padding: 32px 28px 24px; max-width: 320px; width: 90%;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.07);
  animation: popIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: all;
}
@keyframes popIn { from { transform: scale(0.85); opacity:0 } to { transform: scale(1); opacity:1 } }
#modal-icon { font-size: 2.2rem; margin-bottom: 10px; }
#modal-msg { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.85); line-height: 1.5; margin-bottom: 22px; }
#modal-btn {
  padding: 11px 40px; border: none; border-radius: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #060b18; font-weight: 800; font-size: 0.88rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,215,0,0.3); transition: transform 0.15s, box-shadow 0.15s;
  pointer-events: all;
}
#modal-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,215,0,0.45); }

#modal-pago {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  pointer-events: all;
}
#modal-pago-box {
  background: rgba(8,14,30,0.95); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px; padding: 32px 28px 24px; max-width: 340px; width: 90%;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  animation: popIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: all;
}
.mp-icon { font-size: 2.4rem; margin-bottom: 10px; }
.mp-title { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 4px; }
.mp-sub { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.mp-opciones { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mp-btn {
  padding: 13px; border-radius: 40px; border: none;
  font-weight: 800; font-size: 0.88rem; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s; pointer-events: all;
}
.mp-btn.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #060b18; box-shadow: 0 4px 14px rgba(255,215,0,0.3); }
.mp-btn.gold:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,215,0,0.45); }
.mp-btn.green { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 4px 14px rgba(34,197,94,0.3); }
.mp-btn.green:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,197,94,0.45); }
.mp-cancel {
  background: transparent; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.45); border-radius: 40px; padding: 9px 28px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; pointer-events: all;
}
.mp-cancel:hover { background: rgba(255,255,255,0.08); color: white; }

/* ================================================================
   COTIZACIÓN IMAGEN
================================================================ */
#cotizacion-img {
  position: fixed; left: -9999px; top: 0;
  width: 520px; background: #0d1526; border-radius: 24px; overflow: hidden;
}
.cot-header { background: #060b18; padding: 18px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cot-header img { height: 40px; }
#cot-badge { margin: 16px 20px 0; background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,140,0,0.1)); border: 2px solid rgba(255,215,0,0.5); border-radius: 14px; padding: 12px 16px; text-align: center; }
#cot-badge-label { font-weight: 800; font-size: 0.85rem; color: #FFD700; margin-bottom: 4px; }
#cot-badge-monto { font-size: 1.1rem; font-weight: 700; color: white; }
.cot-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.cot-art-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.cot-art-item span:last-child {
  font-weight: 800;
  font-size: 1rem;
  color: #FFD700;
  background: none;
  -webkit-text-fill-color: unset;
}
.cot-totales { display: flex; flex-direction: column; gap: 8px; }
.cot-fila { display: flex; justify-content: space-between; align-items: center; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 0.9rem; }
.cot-fila.gold { background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.35); color: white; }
.cot-fila.gold span:last-child { color: #FFD700; font-size: 1.3rem; }
.cot-fila.green { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: white; }
.cot-fila.green span:last-child { color: #22c55e; font-size: 1.3rem; }
.cot-pills { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.cot-pill { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 8px 4px; text-align: center; }
.cp-lbl { font-size: 0.52rem; color: rgba(255,255,255,0.4); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.cp-val { font-size: 0.9rem; font-weight: 800; color: #FFD700; }
.cot-footer { text-align: center; font-size: 0.6rem; color: rgba(255,255,255,0.3); padding-top: 4px; }

/* ================================================================
   EXPLORADOR 3 COLUMNAS + RESPONSIVE
================================================================ */
.explorador-3col {
  display: flex; gap: 12px;
  width: 100%; max-width: 900px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .explorador-3col { flex-direction: column; gap: 10px; }
  .col-cats, .col-plats { flex: none !important; width: 100% !important; max-width: 100% !important; }
  .col-cats .sec-sep { display: none; }
  .col-cats > div {
    flex-direction: row !important; overflow-x: auto !important;
    padding-bottom: 4px !important; gap: 6px !important;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .col-cats > div::-webkit-scrollbar { display: none; }
  .col-cats .cat-btn {
    flex: 0 0 auto !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    gap: 3px !important; padding: 8px 10px !important;
    min-width: 64px !important; border-radius: 14px !important;
  }
  .col-cats .cat-btn .cat-icon { font-size: 1.4rem !important; }
  .col-cats .cat-btn .cat-lbl { font-size: 0.58rem !important; }
  .col-cats .cat-btn .cat-jp { display: none !important; }
  #cat-none-hint { display: none !important; }
  .col-plats .sec-sep { display: none; }
  .col-plats > div {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important;
  }
  .col-plats .plat-btn-new {
    flex-direction: column !important; justify-content: center !important;
    align-items: center !important; gap: 4px !important;
    padding: 8px 4px !important; border-radius: 12px !important;
  }
  .col-plats .plat-btn-new img { width: 26px !important; height: 26px !important; }
  .col-plats .plat-btn-new .pbn-lbl { font-size: 0.55rem !important; text-align: center; line-height: 1.2; }
  .col-cats.card, .col-plats.card { padding: 12px 10px !important; }
  .explorador-3col .card { max-width: 100%; }
}

@media (max-width: 480px) {
  #planeta-goodsmile, #planeta-tiktok, #planeta-paypay,
  #planeta-fb, #planeta-sugura, #planeta-animate,
  #planeta-rakuten, #planeta-yahoo { display: none; }
  #planeta-mercari {
    width: clamp(80px, 22vw, 120px) !important;
    top: 2% !important; right: 2% !important;
  }
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 21, 255, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 64, 255, 0.132);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 85, 255, 0.4) transparent;
}
.cot-owner-bar {
  background: #FFD700;
  color: #060b18;
  font-weight: 900;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.5px;
}

.contacto-hint {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  padding: 10px 14px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.contacto-hint a {
  color: #4ade80;
  font-weight: 700;
  text-decoration: none;
}
.contacto-hint a:hover { text-decoration: underline; }

#planeta-sugura {
  top: 70%; left: 15%;
  width: clamp(48px, 5.5vw, 88px);
  animation: float-sg 12s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255,200,50,0.5));
}
@keyframes float-sg {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-8px) rotate(1deg); }
  66%      { transform: translateY(4px) rotate(-2deg); }
}
