/* THE MAZON · tema compartido (dark premium, títulos naranja neón) */
:root {
  --bg: #060608;
  --surface: #101216;
  --elevated: #171a20;
  --line: rgba(255, 107, 0, .22);
  --line-strong: rgba(255, 95, 31, .55);
  --text: #f5f6f8;
  --muted: #9aa3ae;
  --neon: #FF5F1F;
  --neon-2: #FF6B00;
  --amber: #FFA726;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --wa: #25D366;
  --grad: linear-gradient(135deg, #FF5F1F 0%, #FF6B00 55%, #FFA726 100%);
  --glow: 0 0 6px rgba(255, 95, 31, .55), 0 0 18px rgba(255, 107, 0, .35);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --ink: 255, 255, 255;          /* tinta para hairlines/superficies translúcidas */
  --topbar: rgba(6, 6, 8, .82);
  --ok-text: #4ade80;
  --placeholder: rgba(245, 246, 248, .4);
  color-scheme: dark;
}
/* Modo claro: papel cálido, naranja quemado legible (≥3:1 en títulos, ≥4.5:1 en texto) */
:root[data-theme="light"] {
  --bg: #f6f3ef;
  --surface: #ffffff;
  --elevated: #efebe6;
  --line: rgba(196, 72, 12, .18);
  --line-strong: rgba(196, 72, 12, .42);
  --text: #17191e;
  --muted: #565d69;
  --neon: #D9480F;
  --amber: #A84E06;
  --glow: none;
  --shadow: 0 1px 2px rgba(23, 25, 30, .06), 0 8px 24px rgba(23, 25, 30, .07);
  --ink: 23, 25, 30;
  --topbar: rgba(246, 243, 239, .88);
  --ok-text: #15803d;
  --placeholder: rgba(23, 25, 30, .45);
  color-scheme: light;
}
::selection { background: rgba(255, 95, 31, .35); color: var(--text); }
html { scrollbar-color: rgba(255, 95, 31, .45) transparent; accent-color: var(--neon); }
.num, .price, .tnum { font-variant-numeric: tabular-nums; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh;
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(255, 95, 31, .12), transparent 70%);
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Encabezados principales y de sección: naranja neón con glow sutil */
h1, h2, h3, .neon-title {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  color: var(--neon); text-shadow: var(--glow); letter-spacing: -.02em; line-height: 1.15;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }

/* Iconos */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
[data-icon] { display: inline-flex; }

/* Marca */
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-strong); box-shadow: 0 0 14px rgba(255, 95, 31, .35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: 'Sora', 'Inter', sans-serif; font-size: 16px; color: var(--neon); text-shadow: var(--glow); letter-spacing: .02em; }
.brand-text small { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Focus visible accesible */
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 8px; }
h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; }
h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 800; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Tarjetas / superficies */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: 14px; text-decoration: none; transition: transform .12s, filter .12s, opacity .12s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(255, 95, 31, .35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--neon); color: var(--neon); }
.btn-wa { background: var(--wa); color: #06260f; }
.btn-danger { background: transparent; color: var(--err); border: 1px solid rgba(239, 68, 68, .5); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; background: var(--elevated); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; min-height: 44px; }
.input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255, 95, 31, .18); }
.input:hover:not(:disabled):not(:focus) { border-color: var(--line-strong); }
.input:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.input:disabled { opacity: .55; cursor: not-allowed; }
input[type="date"].input { appearance: none; -webkit-appearance: none; min-height: 44px; font-variant-numeric: tabular-nums; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
input[type="date"].input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
/* Selects con flecha propia (Safari/macOS y móvil: sin apariencia nativa, 16px evita el zoom de iOS) */
:root { --sel-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239aa3ae' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); }
:root[data-theme="light"] { --sel-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23565d69' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); }
select.input, .field select:not([class]), select.sel-sm {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: var(--sel-arrow); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  padding-right: 38px; text-overflow: ellipsis; }
.field select:not([class]) { width: 100%; background-color: var(--elevated); border: 1px solid var(--line); border-radius: 12px; padding: 11px 38px 11px 14px; min-height: 44px; outline: none; }
.field select:not([class]):focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255, 95, 31, .18); }
select.input option, .field select:not([class]) option { background: var(--surface); color: var(--text); }
select.input::-ms-expand { display: none; }
@media (max-width: 720px) { .input, select.input, textarea.input, input[type="date"].input { font-size: 16px; } }
.input::placeholder { color: var(--placeholder); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pill-ok { background: rgba(34, 197, 94, .14); color: var(--ok-text); }
.pill-warn { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.pill-err { background: rgba(239, 68, 68, .14); color: #f87171; }
.pill-neon { background: rgba(255, 95, 31, .14); color: var(--neon); }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--topbar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: #0b0b0b; border: 2px solid var(--neon); box-shadow: var(--glow);
  display: grid; place-items: center; font-size: 9px; line-height: 1; color: var(--neon); font-weight: 900; text-align: center; }
.brand-name { color: var(--neon); text-shadow: var(--glow); }

/* Toasts */
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--elevated); border: 1px solid var(--line-strong); border-left: 4px solid var(--neon); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; animation: tin .2s ease-out; }
.toast.err { border-left-color: var(--err); }
.toast.ok { border-left-color: var(--ok); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Skeleton de carga */
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--elevated) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Botón de tema (panel y login) */
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.theme-btn:hover { border-color: var(--neon); color: var(--neon); }
.theme-btn .ico { width: 20px; height: 20px; }

/* ── Selector de moneda (bandera en la barra superior) ── */
.cur { position: relative; flex: none; }
.cur[hidden] { display: none; }
.cur-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 13px/1 inherit; letter-spacing: .02em; cursor: pointer; }
.cur-btn:hover, .cur-btn[aria-expanded="true"] { border-color: var(--neon); color: var(--neon); }
.cur-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(128, 128, 128, .35); flex: none; }
.cur-chev { width: 14px; height: 14px; opacity: .7; }
.cur-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.cur-menu[hidden] { display: none; }
.cur-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cur-menu button:hover, .cur-menu button.on { background: rgba(255, 95, 31, .12); }
.cur-menu strong { display: block; font-size: 13px; }
.cur-menu small { display: block; color: var(--muted); font-size: 12px; }
.cur-auto { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.cur-auto button { color: var(--muted); font-size: 12.5px; }
@media (max-width: 520px) { .cur-code { display: none; } .cur-btn { padding: 0 9px; } }

/* Imagen de combo con los logos de sus plataformas (TMZ.comboArt) */
.cmb-art { position: relative; display: inline-grid; overflow: hidden; vertical-align: middle; aspect-ratio: 1; background: #0b0b0b; isolation: isolate; }
.cmb-art img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; box-shadow: none; }
.cmb-art.n2 img { position: absolute; inset: 0; }
.cmb-art.n2 img:first-child { clip-path: polygon(0 0, 100% 0, 0 100%); }
.cmb-art.n2 img:last-of-type { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.cmb-art.n2::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top left, transparent calc(50% - 1.5px), #FF5F1F calc(50% - 1px), #FFA726 50%, #FF5F1F calc(50% + 1px), transparent calc(50% + 1.5px));
  filter: drop-shadow(0 0 3px rgba(255, 95, 31, .9)); }
.cmb-art.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #FF5F1F; }
.cmb-art.n3 img:first-child { grid-row: 1 / 3; object-fit: contain; background: #0b0b0b; }
.cmb-art.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #FF5F1F; }
.cmb-art i { position: absolute; right: 3px; bottom: 3px; z-index: 2; font: 800 10px/1 'Sora', sans-serif; font-style: normal; color: #fff; background: rgba(0, 0, 0, .75); padding: 3px 5px; border-radius: 6px; }
