/* Triodyte — web de presentación v2 (sprint 05_18). Tema sobre Bootstrap 5.3.
   Paleta y fuentes: las del juego (assets/ui/triodyte_theme.tres, assets/fonts). No inventar colores aquí. */

@font-face { font-family: "Lilita One"; src: url("../fonts/lilita_one.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root, [data-bs-theme="dark"] {
  /* Paleta del juego */
  --bg: #120c22;            /* boot_splash/bg_color */
  --bg-2: #1a1030;
  --card: #241640;
  --card-2: #2b1846;        /* font_outline_color */
  --line: #4b3680;
  --violet: #6a3fb5;        /* btn_normal */
  --violet-hover: #7b4fc8;  /* btn_hover */
  --violet-soft: #6a4fb0;
  --gold: #ffc93c;          /* btn_gold_normal / TitleLabel */
  --gold-hover: #ffd45a;
  --gold-dark: #8a5200;
  --gold-text: #4a2400;     /* GoldButton font */
  --green: #34c26f;         /* btn_primary_normal (botón MINAR) */
  --green-hover: #45d27f;
  --green-dark: #0f4d2c;
  --text: #f4eefe;          /* Label */
  --muted: #b9add9;         /* MutedLabel */
  --error: #f24060;
  --font-display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --font-body: "Fredoka", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Variables de Bootstrap mapeadas a la paleta */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.55;
  --bs-secondary-color: var(--muted);
  --bs-tertiary-color: var(--muted);
  --bs-secondary-bg: var(--card);
  --bs-tertiary-bg: var(--card-2);
  --bs-border-color: var(--line);
  --bs-border-width: 3px;
  --bs-border-radius: 18px;
  --bs-border-radius-lg: 22px;
  --bs-border-radius-xl: 28px;
  --bs-link-color: var(--gold);
  --bs-link-hover-color: var(--gold-hover);
  --bs-link-color-rgb: 255, 201, 60;
  --bs-link-hover-color-rgb: 255, 212, 90;
  --bs-primary: var(--gold);
  --bs-primary-rgb: 255, 201, 60;
  --bs-success: var(--green);
  --bs-success-rgb: 52, 194, 111;
  --bs-secondary: var(--violet);
  --bs-secondary-rgb: 106, 63, 181;
  --bs-danger: var(--error);
  --bs-danger-rgb: 242, 64, 96;
  --bs-heading-color: var(--text);
  --bs-emphasis-color: #fff;
  --bs-focus-ring-color: rgba(255, 201, 60, .45);
  --bs-form-valid-color: var(--green);
  --bs-form-valid-border-color: var(--green);
  --bs-form-invalid-color: var(--error);
  --bs-form-invalid-border-color: var(--error);
  color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { overflow-x: hidden; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
:lang(ja), :lang(zh) { line-break: strict; }
h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .navbar-brand { font-family: var(--font-display); font-weight: 400; letter-spacing: .3px; }
h2 { color: var(--gold); text-shadow: 0 3px 0 var(--card-2); }
.text-gold { color: var(--gold) !important; }
.text-muted, .text-body-secondary { color: var(--muted) !important; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.section { padding: clamp(56px, 7vw, 88px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Botones (GoldButton / PrimaryButton / SecondaryButton del tema) ---------- */
.btn { font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; text-transform: uppercase; border-width: 3px; border-radius: 18px; padding: .8rem 1.6rem; font-size: 1.15rem; transition: transform .12s ease, filter .12s ease, background .12s ease; }
.btn:active, .btn:focus:active { transform: translateY(3px); }
.btn-sm { padding: .55rem 1.1rem; font-size: 1rem; border-radius: 14px; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.35rem; }
.btn-gold { --bs-btn-color: var(--gold-text); --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold-dark); --bs-btn-hover-color: var(--gold-text); --bs-btn-hover-bg: var(--gold-hover); --bs-btn-hover-border-color: var(--gold-dark); --bs-btn-active-color: var(--gold-text); --bs-btn-active-bg: var(--gold); --bs-btn-active-border-color: var(--gold-dark); background-image: linear-gradient(var(--gold-hover), var(--gold)); box-shadow: 0 5px 0 var(--gold-dark), 0 10px 24px rgba(0,0,0,.35); }
.btn-gold:hover { background-image: linear-gradient(#ffe07a, var(--gold-hover)); }
.btn-green { --bs-btn-color: #fff; --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green-dark); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--green-hover); --bs-btn-hover-border-color: var(--green-dark); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--green); --bs-btn-active-border-color: var(--green-dark); background-image: linear-gradient(var(--green-hover), var(--green)); box-shadow: 0 5px 0 var(--green-dark), 0 10px 24px rgba(0,0,0,.35); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.btn-violet { --bs-btn-color: #fff; --bs-btn-bg: var(--violet); --bs-btn-border-color: var(--card-2); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--violet-hover); --bs-btn-hover-border-color: var(--card-2); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--violet); --bs-btn-active-border-color: var(--card-2); box-shadow: 0 5px 0 var(--card-2); }
.btn-ghost { --bs-btn-color: var(--text); --bs-btn-bg: rgba(42, 29, 74, .95); --bs-btn-border-color: var(--violet-soft); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(58, 40, 104, .95); --bs-btn-hover-border-color: var(--violet-soft); --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(42, 29, 74, .95); --bs-btn-active-border-color: var(--violet-soft); }

/* ---------- Navbar ---------- */
.navbar { --bs-navbar-padding-y: .55rem; background: rgba(18, 12, 34, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 2px solid rgba(75, 54, 128, .55); }
.navbar-brand { display: flex; align-items: center; gap: 10px; color: var(--gold) !important; font-size: 1.6rem; letter-spacing: 1.5px; text-shadow: 0 3px 0 var(--card-2); white-space: nowrap; }
.navbar-brand img { width: 40px; height: 40px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.navbar .nav-link, .btn, .lang-btn { white-space: nowrap; }
.navbar .nav-link { color: var(--text); font-weight: 500; border-radius: 12px; padding: .5rem .8rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { background: rgba(106, 63, 181, .35); color: #fff; }
.navbar-toggler { border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: .4rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,201,60,.45); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f4eefe' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: .45rem .8rem; font-weight: 500; }
.lang-btn img { width: 20px; height: 20px; }
.dropdown-menu { --bs-dropdown-bg: var(--card); --bs-dropdown-color: var(--text); --bs-dropdown-border-color: var(--line); --bs-dropdown-border-width: 2px; --bs-dropdown-border-radius: 14px; --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-color: #fff; --bs-dropdown-link-hover-bg: rgba(106, 63, 181, .45); --bs-dropdown-link-active-bg: var(--violet); --bs-dropdown-link-active-color: #fff; --bs-dropdown-padding-y: .4rem; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.dropdown-item { font-weight: 500; border-radius: 8px; margin-inline: .4rem; width: auto; }
@media (max-width: 1199.98px) {
  .navbar-collapse { margin-top: .6rem; padding: .6rem 0 .4rem; border-top: 1px solid rgba(75, 54, 128, .5); }
  .navbar .nav-link { font-size: 1.1rem; padding: .7rem .9rem !important; }
}

/* ---------- Cabecera de página (páginas interiores) ---------- */
.page-header { position: relative; padding: 120px 0 40px; overflow: hidden; background: radial-gradient(ellipse at 50% -10%, #3a2170 0%, var(--bg) 62%); text-align: center; }
.page-header .bg { position: absolute; inset: 0; background-position: center 30%; background-size: cover; opacity: .22; }
.page-header .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,12,34,.25), var(--bg)); }
.page-header .container { position: relative; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--gold); text-shadow: 0 4px 0 var(--card-2), 0 10px 30px rgba(0,0,0,.5); }
.page-header p { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0 auto; }
.bg-menu { background-image: url("../img/bg/bg-menu.webp"); } .bg-shop { background-image: url("../img/bg/bg-shop.webp"); }
.bg-mines { background-image: url("../img/bg/bg-mines.webp"); } .bg-missions { background-image: url("../img/bg/bg-missions.webp"); }
.bg-collection { background-image: url("../img/bg/bg-collection.webp"); }

/* ---------- Hero (portada) ---------- */
.hero { position: relative; padding: 120px 0 56px; overflow: hidden; background: radial-gradient(ellipse at 50% -10%, #3a2170 0%, var(--bg) 62%); }
.hero .bg { position: absolute; inset: 0; background: url("../img/bg/bg-menu.webp") center 30% / cover no-repeat; opacity: .22; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,12,34,.2) 0%, rgba(18,12,34,.55) 60%, var(--bg) 100%); }
.hero .container { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(36, 22, 64, .9); border: 2px solid var(--line); color: var(--gold); font-size: .85rem; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); color: #fff; text-shadow: 0 4px 0 var(--card-2), 0 10px 30px rgba(0,0,0,.5); }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-note { color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.badge-store { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; padding: 8px 16px 8px 12px; border-radius: 12px; background: #0d0919; color: #fff; border: 2px solid #5b4a8a; text-decoration: none !important; transition: transform .12s ease, border-color .12s ease; }
.badge-store:hover { transform: translateY(-2px); border-color: var(--gold); color: #fff; }
.badge-store svg { width: 30px; height: 30px; flex: none; }
.badge-store span { display: flex; flex-direction: column; line-height: 1.05; }
.badge-store small { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: #cfc5e8; }
.badge-store b { font-weight: 600; font-size: 1.15rem; }
.badge-store.soon { opacity: .82; cursor: default; }
.badge-store.soon:hover { transform: none; border-color: #5b4a8a; }
@media (max-width: 991.98px) { .hero { text-align: center; } .hero-lead { margin-inline: auto; } .store-badges, .hero-note { justify-content: center; } }

/* teléfono + carrusel */
.phone-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 16; border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #3a2a66, #150d28); border: 3px solid #5b4a8a; box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 0 0 2px #0b0714; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 8px; border-radius: 6px; background: #0b0714; z-index: 3; }
.phone .carousel, .phone .carousel-inner, .phone .carousel-item { height: 100%; border-radius: 30px; }
.phone .carousel-inner { overflow: hidden; background: #0b0714; }
.phone .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.phone .carousel-indicators { margin-bottom: .6rem; }
.phone .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); }
.phone .carousel-indicators .active { background: var(--gold); width: 20px; border-radius: 6px; }
.phone .carousel-control-prev, .phone .carousel-control-next { width: 40px; height: 40px; top: 50%; transform: translateY(-50%); border-radius: 50%; border: 2px solid var(--line); background: rgba(18,12,34,.8); opacity: 1; }
.phone .carousel-control-prev { left: -22px; } .phone .carousel-control-next { right: -22px; }
.phone .carousel-control-prev-icon, .phone .carousel-control-next-icon { width: 18px; height: 18px; }
.slide-caption { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 14px; min-height: 2.6em; max-width: 360px; }
.float-gem { position: absolute; width: 64px; z-index: 0; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; pointer-events: none; }
.float-gem.g1 { left: -6%; top: 8%; } .float-gem.g2 { right: -8%; top: 22%; width: 80px; animation-delay: -2s; }
.float-gem.g3 { left: -10%; bottom: 14%; width: 72px; animation-delay: -4s; } .float-gem.g4 { right: -4%; bottom: 4%; width: 56px; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@media (max-width: 991.98px) { .float-gem { display: none; } }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--card-2); border-block: 3px solid var(--line); padding: 22px 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--violet); display: grid; place-items: center; box-shadow: 0 4px 0 var(--card-2); }
.trust-item .ico img { width: 28px; height: 28px; }
.trust-item h3 { font-size: 1.15rem; margin-bottom: 2px; color: var(--gold); }
.trust-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Tarjetas (PanelContainer del tema) ---------- */
.card { --bs-card-bg: var(--card); --bs-card-border-color: var(--line); --bs-card-border-width: 3px; --bs-card-border-radius: 22px; --bs-card-inner-border-radius: 19px; --bs-card-spacer-y: 1.4rem; --bs-card-spacer-x: 1.4rem; --bs-card-color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.35); height: 100%; }
.card h3, .card .card-title { color: var(--gold); font-size: 1.25rem; }
.card p:last-child { margin-bottom: 0; }
.card .text-muted { color: var(--muted) !important; }
.card-link-wrap { color: inherit; display: block; height: 100%; transition: transform .15s ease; }
.card-link-wrap:hover { transform: translateY(-4px); text-decoration: none; color: inherit; }
.card-link-wrap .card { transition: border-color .15s ease; }
.card-link-wrap:hover .card { border-color: var(--gold); }
.teaser img { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 12px; }
.teaser .more { color: var(--gold); font-weight: 500; }

.highlight img { width: 40px; height: 40px; margin-bottom: 10px; }
.stat { text-align: center; background: var(--card-2); border: 3px solid var(--line); border-radius: 14px; padding: 18px 10px; height: 100%; }
.stat b { display: block; font: 400 2.5rem var(--font-display); color: var(--gold); text-shadow: 0 3px 0 var(--bg); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
.gem-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gem-row img { width: 56px; height: 56px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); transition: transform .15s ease; }
.gem-row img:hover { transform: scale(1.15) rotate(6deg); }

/* ---------- Cómo se juega ---------- */
.step { position: relative; padding-top: 2.2rem; }
.step .num { position: absolute; top: -18px; left: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(var(--gold-hover), var(--gold)); color: var(--gold-text); border: 3px solid var(--gold-dark); font: 400 1.35rem var(--font-display); box-shadow: 0 4px 0 var(--gold-dark); }
.step .ico { width: 56px; height: 56px; margin-bottom: 12px; }
.special-card { display: flex; gap: 14px; align-items: center; }
.special-card img { width: 48px; height: 48px; flex: none; }
.special-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.booster { text-align: center; background: var(--card); border: 3px solid var(--line); border-radius: 22px; padding: 20px 16px; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: border-color .15s ease, transform .15s ease; }
.booster:hover { border-color: var(--gold); transform: translateY(-3px); }
.booster h3 { color: var(--gold); font-size: 1.2rem; margin: 4px 0 6px; }
.booster p { color: var(--muted); font-size: .95rem; margin: 0; }
.booster img { width: 72px; height: 72px; margin: 0 auto 8px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.booster span { font-size: .9rem; font-weight: 500; }

/* ---------- Eventos ---------- */
.feature { display: flex; gap: 14px; align-items: center; }
.feature img { width: 72px; height: 72px; flex: none; border-radius: 16px; object-fit: cover; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.feature img.contain { object-fit: contain; border-radius: 0; }
.feature h3 { font-size: 1.15rem; margin-bottom: 2px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Tienda ---------- */
.cloud-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.cloud-steps li { counter-increment: s; position: relative; padding: 10px 0 10px 54px; }
.cloud-steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(var(--green-hover), var(--green)); border: 3px solid var(--green-dark); color: #fff; font: 400 1.2rem var(--font-display); box-shadow: 0 3px 0 var(--green-dark); }
.cloud-art img { width: min(300px, 70%); filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.pack { text-align: center; }
.pack img { width: 140px; height: 140px; margin: 0 auto 10px; border-radius: 20px; }
.pack img.ico { width: 72px; height: 72px; border-radius: 0; margin-bottom: 14px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }

/* ---------- FAQ (accordion) ---------- */
.accordion { --bs-accordion-bg: var(--card); --bs-accordion-color: var(--text); --bs-accordion-border-color: var(--line); --bs-accordion-border-width: 3px; --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 11px; --bs-accordion-btn-color: var(--text); --bs-accordion-btn-bg: var(--card); --bs-accordion-active-color: var(--gold); --bs-accordion-active-bg: var(--card-2); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(255,201,60,.45); --bs-accordion-body-padding-y: 1rem; --bs-accordion-btn-padding-y: 1rem; --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc93c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon); }
.accordion-item { margin-bottom: 12px; border-radius: 14px !important; overflow: hidden; }
.accordion-button { font-weight: 500; font-size: 1.1rem; }
.accordion-body { color: var(--muted); }

/* ---------- Formulario ---------- */
.form-control, .form-select { background-color: var(--bg); color: var(--text); border: 3px solid var(--line); border-radius: 14px; padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { background-color: var(--bg); color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,201,60,.3); }
.form-control::placeholder { color: rgba(185,173,217,.6); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b9add9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-label { font-weight: 500; }
.form-text { color: var(--muted); }
.form-check-input { width: 1.35em; height: 1.35em; margin-top: .15em; background-color: var(--bg); border: 2px solid var(--line); }
.form-check-input:checked { background-color: var(--green); border-color: var(--green-dark); }
.form-check-label { color: var(--muted); }
.invalid-feedback { color: var(--error); }
.hp { position: absolute; left: -9999px; }
.alert-success { --bs-alert-bg: rgba(52,194,111,.15); --bs-alert-border-color: var(--green); --bs-alert-color: var(--text); border-width: 2px; border-radius: 14px; }
.alert-danger { --bs-alert-bg: rgba(242,64,96,.12); --bs-alert-border-color: var(--error); --bs-alert-color: var(--text); border-width: 2px; border-radius: 14px; }

/* ---------- CTA final ---------- */
.cta { background: linear-gradient(180deg, var(--bg-2), var(--card-2)); border-top: 3px solid var(--line); text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- Pie ---------- */
.footer { background: #0b0714; border-top: 3px solid var(--line); padding: 44px 0 30px; color: var(--muted); font-size: .95rem; }
.footer h4 { color: var(--gold); font-size: 1.15rem; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--text); }
.footer .navbar-brand { font-size: 1.5rem; margin-bottom: 10px; padding: 0; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(75, 54, 128, .5); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
.age { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); font: 400 .95rem var(--font-display); color: var(--text); }

/* ---------- Cookies ---------- */
.cookie { position: fixed; z-index: 1040; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: var(--card); border: 3px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.45); display: none; }
.cookie.show { display: block; }
.cookie h3 { color: var(--gold); font-size: 1.2rem; }
.cookie p { font-size: .95rem; color: var(--muted); }
.modal-content { background: var(--card); border: 3px solid var(--line); border-radius: 22px; color: var(--text); }
.modal-header, .modal-footer { border-color: rgba(75,54,128,.5); }
.modal-title { color: var(--gold); font-family: var(--font-display); font-weight: 400; }
.btn-close { filter: invert(1) grayscale(1); }
.cookie-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(75,54,128,.5); }
.cookie-row:first-child { border-top: 0; }
.cookie-row b { display: block; } .cookie-row span { font-size: .9rem; color: var(--muted); }
.form-switch .form-check-input { width: 3em; height: 1.6em; }

/* ---------- Página legal ---------- */
.legal p { color: #e6ddf7; }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 1030; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--gold-dark); background: var(--gold); color: var(--gold-text); display: none; place-items: center; box-shadow: 0 4px 0 var(--gold-dark); cursor: pointer; }
.to-top.show { display: grid; }
.to-top svg { width: 22px; height: 22px; }

.page-header + .section { padding-top: 40px; }
.booster img { display: block; }

/* ---------- Tienda v2: subnavegación, niveles, precios, compras y avatares ---------- */
.shop-subnav { position: sticky; top: 64px; z-index: 1020; background: rgba(18, 12, 34, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid rgba(75, 54, 128, .5); }
.shop-subnav .container { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.shop-subnav .container::-webkit-scrollbar { display: none; }
.shop-subnav a { flex: none; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-weight: 500; white-space: nowrap; }
.shop-subnav a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.shop-block { scroll-margin-top: 130px; }
.shop-block.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.tier-title { font-size: 1.5rem; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.tier-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }
.price { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 14px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line); font: 400 1.05rem var(--font-display); color: var(--gold); }
.price img { width: 18px; height: 18px; margin: 0 !important; filter: none !important; display: inline-block !important; }
.price-real { color: var(--green); border-color: var(--green-dark); font-family: var(--font-body); font-weight: 600; font-size: .9rem; }
.price-ad { color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: .9rem; }
.price-lock { padding: 5px 10px; }
.item-row .card-body { display: flex; align-items: center; gap: 14px; }
.item-row img { width: 48px; height: 48px; }
.item-row b { flex: 1; }
.item-row .price { margin-top: 0; }
.buy-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.buy-head img { width: 64px; height: 64px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.buy-list { list-style: none; padding: 0; margin: 0; }
.buy-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); border: 2px solid rgba(75,54,128,.6); margin-top: 8px; }
.buy-name { flex: 1; font-weight: 500; }
.buy-qty { display: inline-flex; align-items: center; gap: 6px; font: 400 1.1rem var(--font-display); color: #fff; }
.buy-qty img { width: 20px; height: 20px; object-fit: contain; }
.buy-list .price { margin-top: 0; min-width: 96px; justify-content: center; }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.avatar-grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.avatar-grid figure > img { width: 96px; height: 96px; border-radius: 20px; border: 3px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.45); transition: transform .15s ease, border-color .15s ease; }
.avatar-grid figure:hover > img { transform: translateY(-3px) scale(1.04); border-color: var(--gold); }
.avatar-grid .price { margin-top: 8px; font-size: .95rem; padding: 3px 10px; }
.avatar-grid-inline { flex: none; }
@media (max-width: 575.98px) { .avatar-grid figure > img { width: 80px; height: 80px; } .buy-list li { flex-wrap: wrap; } }
@media (max-width: 575.98px) { .booster { padding: 14px 10px; } .booster img { width: 56px; height: 56px; } .booster h3 { font-size: 1.05rem; } .booster p { font-size: .85rem; } }

/* ---------- Código promocional, páginas del juego (2026-10-14) ---------- */
.promo-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 4vw, 48px); border: 3px solid var(--gold-dark); background: radial-gradient(ellipse at 0% 0%, rgba(255,201,60,.18), transparent 55%), linear-gradient(135deg, var(--card-2), var(--card)); box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,201,60,.15); }
.promo-code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 20px; }
.promo-code-box code { font: 400 clamp(1.8rem, 4vw, 2.6rem) var(--font-display); letter-spacing: 4px; color: var(--gold); background: #160c29; border: 3px dashed var(--gold); border-radius: 18px; padding: 8px 22px; user-select: all; }
.promo-reward-title { font-family: var(--font-display); color: var(--text); margin-bottom: 8px; }
.promo-rewards { display: flex; flex-wrap: wrap; gap: 10px; }
.promo-rewards span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--bg); border: 2px solid var(--line); }
.promo-rewards b { font: 400 1.3rem var(--font-display); color: var(--gold); }
.promo-steps li { padding-top: 12px; padding-bottom: 12px; }
.feature-card .card-body { display: flex; gap: 16px; align-items: flex-start; }
.feature-card .card-body > img { width: 56px; height: 56px; flex: none; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.rank-row { display: flex; flex-wrap: wrap; gap: 8px; flex: none; margin-bottom: 12px; }
.rank-row img { width: 64px; height: 64px; border-radius: 14px; border: 2px solid var(--line); }
.phone-sm { width: 100%; max-width: 260px; }
.phone .w-100.h-100 { object-fit: cover; border-radius: 30px; }
.showcase-shelf { display: flex; justify-content: center; gap: 10px; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, var(--card-2), #160c29); border: 3px solid var(--line); }
.showcase-shelf span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle, rgba(255,201,60,.25), transparent 70%); }
.showcase-shelf img { width: 56px; height: 56px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
@media (max-width: 575.98px) { .showcase-shelf { flex-wrap: wrap; } }
.friend-code-sample { font: 400 2rem var(--font-display); letter-spacing: 4px; color: var(--gold); border: 3px dashed var(--gold); border-radius: 16px; padding: 6px 12px; background: #160c29; }
.quote-card .fst-italic { color: var(--gold); font-size: 1.1rem; }

/* ---------- Mazmorra y novedades (2026-10-17) ---------- */
/* Colores de la temporada: los de data/dungeon_seasons.json → christmas_2026.palette del juego (y docs/datos/mazmorra.md §5). */
:root { --dng-red: #C8102E; --dng-green: #1B5E20; --dng-gold: #FFD54F; --dng-night: #0B3D91; --dng-snow: #F4F7FB; }
.bg-dungeon { background-image: url("../img/bg/bg-dungeon.webp"); background-position: center 35%; }
.dungeon-season { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 4vw, 52px); border: 3px solid var(--dng-gold); background: linear-gradient(135deg, rgba(11,61,145,.92), rgba(27,94,32,.88) 55%, rgba(200,16,46,.85)); box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,213,79,.18); }
.dungeon-season .bg { position: absolute; inset: 0; background: url("../img/bg/bg-dungeon.webp") center 40% / cover no-repeat; opacity: .22; }
.dungeon-season h2 { color: var(--dng-gold); font-size: clamp(2rem, 4.5vw, 3.2rem); text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.dungeon-season .fs-5 { color: var(--dng-snow); }
.dungeon-season .eyebrow { background: rgba(200,16,46,.9); border-color: var(--dng-gold); color: var(--dng-snow); }
.season-dates { font: 400 1.25rem var(--font-display); color: var(--dng-snow); margin-bottom: 8px; }
.season-status { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(18,12,34,.75); border: 2px solid var(--dng-gold); color: var(--dng-gold); font-weight: 600; }
.season-status.live { background: var(--dng-green); color: var(--dng-snow); }
.season-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.season-tiles img, .dungeon-tiles img { filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); transition: transform .15s ease; }
.season-tiles img:hover, .dungeon-tiles img:hover { transform: translateY(-4px) rotate(-6deg); }
.season-boss { width: 100%; max-width: 440px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.6)); animation: boss-float 5s ease-in-out infinite; }
.season-boss-name { font: 400 1.3rem var(--font-display); color: var(--dng-gold); margin: 6px 0 0; }
@keyframes boss-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.dungeon-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 460px; }
.dungeon-tiles img { width: 100%; height: auto; }
.dungeon-zone .card-body { display: flex; gap: 16px; align-items: center; }
.dungeon-zone .card-body > img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.dungeon-zone h3 { margin: 2px 0 0; }
.zone-tag { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.zone-easy { border-left: 6px solid var(--dng-green) !important; }
.zone-normal { border-left: 6px solid var(--dng-red) !important; }
.zone-hard { border-left: 6px solid var(--dng-night) !important; }
.zone-ta { border-left: 6px solid var(--dng-gold) !important; }
.zone-boss { border: 3px solid var(--dng-gold) !important; background: linear-gradient(135deg, rgba(200,16,46,.35), var(--card)) !important; }
.boss-card { border-radius: 28px; padding: clamp(24px, 4vw, 48px); border: 3px solid var(--dng-red); background: radial-gradient(ellipse at 20% 30%, rgba(200,16,46,.3), transparent 60%), linear-gradient(135deg, var(--card-2), #160c29); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.boss-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.boss-card .eyebrow { border-color: var(--dng-red); }
.boss-art { width: 100%; max-width: 480px; filter: drop-shadow(0 14px 28px rgba(0,0,0,.6)); }
.ability { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 12px 14px; border-radius: 16px; background: rgba(18,12,34,.7); border: 2px solid var(--line); }
.ability img { flex: none; }
.ability b { display: block; font: 400 1.15rem var(--font-display); color: var(--gold); }
.ability span { font-size: .92rem; color: var(--muted); }
.reward-card h3 { font-size: 1.2rem; }
.reward-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.reward-line b { font: 400 1.2rem var(--font-display); color: var(--gold); }
.boss-avatar { width: 96px; height: 96px; flex: none; border-radius: 20px; border: 3px solid var(--dng-gold); margin-bottom: 12px; }
.key-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.key-list li { position: relative; padding: 10px 14px 10px 46px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); }
.key-list li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); background: url("../img/dungeon/key.webp") center / contain no-repeat; }
.highlight-new { height: 100%; border-color: var(--gold-dark) !important; }
.highlight-new .btn { width: auto; }
.pack-month { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%; padding: 16px 10px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.pack-month:hover { transform: translateY(-3px); border-color: var(--gold); }
.pack-month img { width: 80px; height: 80px; border-radius: 18px; border: 3px solid var(--line); }
.pack-month span { font-size: .85rem; color: var(--muted); text-transform: capitalize; }
.pack-month b { font: 400 1.1rem var(--font-display); color: var(--gold); line-height: 1.2; }
.style-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.style-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(75,54,128,.6); }
.style-row:first-of-type { border-top: 0; }
@media (max-width: 991.98px) { .dungeon-season { text-align: center; } .season-tiles { justify-content: center; } .dungeon-tiles { margin-inline: auto; } }
@media (max-width: 575.98px) { .dungeon-tiles { grid-template-columns: repeat(4, 1fr); } .boss-avatar { margin-inline: auto; display: block; } .zone-boss .card-body { text-align: center; } }
.price { white-space: nowrap; flex: none; }
@media (max-width: 575.98px) { .season-boss { max-width: 240px; } .boss-art { max-width: 300px; } }
/* Código regalo de la temporada (2026-10-17) */
.dungeon-gift { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 14px 18px; border-radius: 20px; background: rgba(18,12,34,.78); border: 2px dashed var(--dng-gold); text-align: left; }
.dungeon-gift > img { flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.dungeon-gift b { font: 400 1.2rem var(--font-display); color: var(--dng-gold); }
.dungeon-gift p { color: var(--dng-snow); }
.dungeon-gift .promo-code-box code { font-size: clamp(1.3rem, 3vw, 1.8rem); padding: 4px 16px; letter-spacing: 3px; }
@media (max-width: 575.98px) { .dungeon-gift { flex-direction: column; align-items: center; text-align: center; } .dungeon-gift .promo-code-box { justify-content: center; } }

/* ---------- Fichas especiales y tablets (2026-10-20) ---------- */
.special-tile { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.special-tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.special-ico { position: relative; flex: none; width: 72px; height: 72px; }
.special-ico > img:first-child { width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.special-ico-2 { position: absolute; right: -8px; bottom: -8px; width: 40px; height: 40px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.special-from { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--gold-text); background: var(--gold); border-radius: 999px; padding: 1px 10px; margin-bottom: 4px; }
.special-tile h3 { font-size: 1.15rem; margin: 2px 0 4px; }
.special-tile p { font-size: .93rem; color: var(--muted); margin: 0; }
.devices { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; }
.device { margin: 0; text-align: center; }
.device img { display: block; width: 100%; height: auto; border-radius: 22px; border: 10px solid #0b0716; outline: 3px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.device figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.tablet-16-10 { width: min(42%, 290px); }
.tablet-4-3 { width: min(48%, 330px); }
@media (min-width: 576px) { .devices { flex-wrap: nowrap; } }
.news-card .card-body { padding: 22px; }
.news-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.news-icons img { filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.news-tablet { flex: none; width: 120px; height: auto; border-radius: 14px; border: 6px solid #0b0716; outline: 2px solid var(--line); }
@media (max-width: 575.98px) { .tablet-16-10, .tablet-4-3 { width: 80%; } .special-ico, .special-ico > img:first-child { width: 56px; height: 56px; } }
