/* Alfa Shop — identidad: negro, gris oscuro, rojo vino, rojo neón y blanco. */
:root {
  --black: #050506;
  --ink: #0b0b0d;
  --panel: #101013;
  --panel-2: #16161a;
  --line: #2b2b31;
  --line-soft: #1e1e23;
  --text: #ffffff;
  --muted: #a8a8b2;
  --wine: #6d0a1b;
  --wine-deep: #3a0510;
  --red: #e0122f;
  --neon: #ff1f3d;
  --neon-soft: #ff5169;
  --glow: 0 0 22px rgba(255, 31, 61, .45);
  --radius: 16px;
  --dock-space: 92px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Recortes de las imágenes de referencia aprobadas */
  --ref-auth: url(./assets/referencia-acceso.webp);
  --ref-home: url(./assets/referencia-inicio.webp);
}
* { box-sizing: border-box; }
html { background: var(--black); color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--black); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
h1, h2, h3, h4, p { margin: 0; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* ---------- Marca ---------- */
.brand-shield { display: block; aspect-ratio: 236 / 232; background-image: var(--ref-auth); background-size: 708.5% 405.6%; background-position: 52.72% 1.69%; clip-path: polygon(50% 0, 66% 3%, 70% 22%, 97% 26%, 94% 62%, 78% 86%, 50% 100%, 22% 86%, 6% 62%, 3% 26%, 30% 22%, 34% 3%); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-shield-sm { width: 84px; margin: -6px 0 -10px; }
.wordmark { display: grid; line-height: .86; font-style: italic; font-weight: 900; letter-spacing: .5px; transform: skewX(-6deg); text-align: left; }
.wordmark b { font-size: 40px; background: linear-gradient(180deg, #fff 20%, #b9b9c2 60%, #f2f2f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark strong { font-size: 25px; color: var(--neon); padding-left: 30px; text-shadow: 0 0 14px rgba(255, 31, 61, .55); }

/* ---------- Acceso ---------- */
body.is-auth { background: radial-gradient(60% 70% at 50% 45%, #2a0509 0%, #100204 45%, #050506 100%); }
.auth-shell { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 86px 20px 70px; overflow: hidden; isolation: isolate; }
.auth-art { position: absolute; top: 0; bottom: 0; z-index: -1; background-image: var(--ref-auth); background-repeat: no-repeat; pointer-events: none; }
.auth-art-left { left: 0; aspect-ratio: 550 / 941; background-size: 304% 100%; background-position: 0 0; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%); }
.auth-art-right { right: 0; aspect-ratio: 477 / 941; background-size: 350.5% 100%; background-position: 100% 0; -webkit-mask-image: linear-gradient(270deg, #000 70%, transparent 100%); mask-image: linear-gradient(270deg, #000 70%, transparent 100%); }
.auth-card { position: relative; width: min(626px, 100%); padding: 0 64px 36px; border-radius: 30px; border: 1.5px solid rgba(255, 60, 85, .75); background: linear-gradient(180deg, rgba(34, 8, 12, .86), rgba(10, 10, 12, .9) 38%, rgba(8, 8, 10, .94)); box-shadow: 0 0 0 1px rgba(255, 31, 61, .18), 0 0 46px rgba(255, 31, 61, .38), inset 0 0 60px rgba(255, 31, 61, .07); backdrop-filter: blur(10px); text-align: center; }
.auth-shield { width: 236px; margin: -52px auto -34px; filter: drop-shadow(0 8px 22px rgba(255, 31, 61, .45)); }
.auth-title { font-size: 68px; line-height: 1; font-style: italic; font-weight: 900; letter-spacing: -1px; transform: skewX(-6deg); }
.auth-title span { color: #fff; text-shadow: 0 2px 0 #b7b7c0; }
.auth-title em { color: var(--neon); font-style: inherit; text-shadow: 0 0 22px rgba(255, 31, 61, .6); }
.auth-tagline { margin-top: 14px; font-size: 22px; font-weight: 600; }
.auth-tagline em { color: var(--neon); font-weight: 700; }
.auth-rule { display: block; width: 130px; height: 2px; margin: 20px auto 26px; background: linear-gradient(90deg, transparent, var(--neon), transparent); }
.auth-field { position: relative; display: flex; align-items: center; height: 56px; margin-bottom: 14px; border-radius: 12px; border: 1.5px solid #6c6c75; background: rgba(8, 8, 10, .72); transition: border-color .15s, box-shadow .15s; }
.auth-field:focus-within { border-color: var(--neon); box-shadow: var(--glow); }
.auth-field-icon { display: grid; place-items: center; width: 68px; color: #fff; }
.auth-field:nth-of-type(2) .auth-field-icon, .auth-field input[type="password"] ~ * { color: #fff; }
.auth-field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 18px; }
.auth-field input::placeholder { color: #e4e4ea; opacity: 1; }
.auth-eye { display: grid; place-items: center; width: 62px; height: 100%; color: #fff; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 18px; font-size: 17px; }
.auth-remember { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.auth-remember input { appearance: none; width: 23px; height: 23px; margin: 0; border: 2px solid #f4f4f6; border-radius: 5px; display: grid; place-items: center; }
.auth-remember input:checked { background: var(--neon); border-color: var(--neon); }
.auth-remember input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.auth-link { color: var(--neon); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; height: 60px; margin-top: 4px; border-radius: 14px; border: 1.5px solid #ff6b80; background: linear-gradient(180deg, #ff2a47 0%, #d50d2a 48%, #a40618 100%); box-shadow: 0 0 26px rgba(255, 31, 61, .55), inset 0 1px 0 rgba(255, 255, 255, .35); font-size: 25px; font-weight: 700; transition: filter .15s, transform .1s; }
.auth-submit:hover { filter: brightness(1.12); }
.auth-submit:active { transform: translateY(1px); }
.auth-divider { display: flex; align-items: center; gap: 18px; margin: 30px 0 16px; color: #e9e9ee; font-size: 17px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #5c5c64; }
.auth-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; width: min(364px, 100%); height: 50px; border-radius: 999px; border: 1.5px solid var(--neon); background: rgba(8, 8, 10, .6); font-size: 22px; font-weight: 700; transition: background .15s, box-shadow .15s; }
.auth-secondary:hover { background: rgba(255, 31, 61, .14); box-shadow: var(--glow); }
.auth-warranty { display: flex; align-items: center; gap: 16px; margin: 30px -16px 0; padding: 14px 22px; border-radius: 16px; border: 1px solid #45454d; background: rgba(14, 14, 17, .8); text-align: left; }
.auth-warranty svg { color: var(--neon); }
.auth-warranty b { font-size: 19px; white-space: nowrap; }
.auth-warranty i { width: 1.5px; align-self: stretch; background: #d9d9de; margin: 0 8px; }
.auth-warranty span { font-size: 14.5px; color: #e9e9ee; line-height: 1.35; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(5, 5, 6, .92); backdrop-filter: blur(12px); border-bottom: 1px solid #3a2a2e; box-shadow: 0 1px 0 rgba(255, 31, 61, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 96px; padding: 0 18px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.pill, .icon-pill { position: relative; display: inline-flex; align-items: center; gap: 11px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #4a4a52; background: #0e0e11; font-size: 15.5px; font-weight: 700; white-space: nowrap; transition: border-color .15s, box-shadow .15s, background .15s; }
.pill:hover, .icon-pill:hover, .pill.active { border-color: var(--neon); box-shadow: 0 0 16px rgba(255, 31, 61, .3); }
.pill svg { color: #fff; }
.pill[data-route="reports"] svg, .pill[data-route="admin"] svg { color: var(--neon-soft); }
.icon-pill { width: 54px; padding: 0; justify-content: center; }
.pill.balance { height: 48px; padding: 0 6px 0 22px; gap: 14px; border-color: var(--neon); font-size: 18px; box-shadow: 0 0 14px rgba(255, 31, 61, .28); }
.pill.balance svg:first-child { color: var(--neon-soft); }
.balance-plus { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 2px; border-radius: 50%; background: linear-gradient(180deg, #ff2a47, #b10a1e); }
.pill.exit { border-color: var(--neon); color: var(--neon-soft); background: rgba(255, 31, 61, .08); }
.pill.exit svg { color: var(--neon-soft); }
.badge { position: absolute; top: -8px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--neon); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 10px rgba(255, 31, 61, .7); }

/* ---------- Barra flotante derecha ---------- */
.dock { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 45; display: grid; gap: 15px; }
.dock-link { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--tone-line); background: radial-gradient(circle at 35% 30%, var(--tone-bg), #08080a 72%); color: var(--tone); box-shadow: 0 0 14px var(--tone-glow), inset 0 0 12px rgba(0, 0, 0, .6); transition: transform .15s, box-shadow .15s; }
.dock-link:hover { transform: scale(1.07); }
.dock-link.active { box-shadow: 0 0 22px var(--tone-glow), 0 0 0 2px var(--tone-line), inset 0 0 14px var(--tone-glow); }
/* Cada icono con una tonalidad distinta dentro de la paleta */
.tone-1 { --tone: #ffffff; --tone-line: #ff1f3d; --tone-bg: #3a0812; --tone-glow: rgba(255, 31, 61, .45); }
.tone-2 { --tone: #ffb3bd; --tone-line: #c2132c; --tone-bg: #2c0710; --tone-glow: rgba(194, 19, 44, .45); }
.tone-3 { --tone: #ff6b80; --tone-line: #8f0d22; --tone-bg: #24060d; --tone-glow: rgba(143, 13, 34, .55); }
.tone-4 { --tone: #ff3554; --tone-line: #6d0a1b; --tone-bg: #1c0509; --tone-glow: rgba(109, 10, 27, .7); }
.tone-5 { --tone: #ff8a4c; --tone-line: #b3261a; --tone-bg: #2a0b06; --tone-glow: rgba(179, 38, 26, .5); }
.tone-6 { --tone: #d9d9e0; --tone-line: #5b5b66; --tone-bg: #1c1c22; --tone-glow: rgba(140, 140, 155, .35); }

/* ---------- Página ---------- */
.page { padding: 0 var(--dock-space) 96px 0; max-width: 1700px; margin: 0 auto; }
.page > :not(.hero) { margin-left: 44px; }
.page-home > .categories { margin-left: 0; }

/* ---------- Portada ---------- */
.hero { position: relative; height: 304px; margin-right: calc(var(--dock-space) * -1); overflow: hidden; isolation: isolate; background: radial-gradient(70% 120% at 62% 30%, #4d0810 0%, #1c0306 45%, #070708 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, transparent, var(--black)); z-index: 1; pointer-events: none; }
.hero-tiles, .hero-art { position: absolute; top: 0; background-image: var(--ref-home); background-repeat: no-repeat; z-index: 0; }
.hero-tiles { left: 0; height: 100%; aspect-ratio: 255 / 303; background-size: 627% 310.6%; background-position: 0 15.2%; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.hero-art { right: 0; height: 100%; aspect-ratio: 665 / 303; background-size: 240.45% 310.56%; background-position: 92.08% 15.2%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%), radial-gradient(ellipse 30% 44% at 0% 100%, transparent 72%, #000 100%); mask-image: linear-gradient(90deg, transparent, #000 15%), radial-gradient(ellipse 30% 44% at 0% 100%, transparent 72%, #000 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-copy { position: absolute; left: 16.2%; top: 44px; z-index: 2; }
.hero-copy h1 { font-size: 86px; line-height: 1; font-style: italic; font-weight: 900; letter-spacing: -1px; transform: skewX(-8deg); white-space: nowrap; }
.hero-copy h1 span { background: linear-gradient(180deg, #ffffff 15%, #9c9ca6 55%, #f5f5f7 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy h1 em { font-style: inherit; color: var(--neon); text-shadow: 0 0 26px rgba(255, 31, 61, .6); }
.hero-copy p { margin: 8px 0 0 8px; font-size: 25px; font-style: italic; font-weight: 600; }
.hero-swoosh { display: block; width: 210px; height: 5px; margin: 14px 0 0 130px; border-radius: 50%; background: linear-gradient(90deg, transparent, var(--neon) 40%, transparent); transform: rotate(-3deg); }
.hero-search { position: absolute; left: 29.5%; right: 38.5%; min-width: 300px; bottom: 26px; z-index: 3; }
.searchbox { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 0 0 24px; border-radius: 999px; border: 1.5px solid #8e1f2e; background: rgba(8, 8, 10, .88); box-shadow: 0 0 20px rgba(255, 31, 61, .22); }
.searchbox:focus-within { border-color: var(--neon); box-shadow: var(--glow); }
.searchbox input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 18px; padding-left: 14px; }
.searchbox input::placeholder { color: #c9c9d1; }
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox button { display: grid; place-items: center; width: 66px; height: 60px; margin: -1.5px; border-radius: 999px; background: linear-gradient(180deg, #ff2a47, #c70c26); box-shadow: 0 0 16px rgba(255, 31, 61, .55); }

/* ---------- Categorías ---------- */
.categories { display: flex; justify-content: center; gap: 17px; padding: 6px 20px 0; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 172px; height: 52px; padding: 0 26px; border-radius: 12px; border: 1.5px solid #3c3c44; background: #0e0e11; font-size: 16.5px; font-weight: 700; transition: border-color .15s, box-shadow .15s; }
.chip:hover { border-color: var(--neon); }
.chip.active { border-color: #ff6b80; background: linear-gradient(180deg, #d81a33, #8f0a1c); box-shadow: 0 0 22px rgba(255, 31, 61, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; margin-bottom: 18px; }
.section-heading h2 { display: flex; align-items: center; gap: 14px; font-size: 25px; font-weight: 800; }
.section-heading h2 svg { color: var(--neon); }
.count-chip { padding: 5px 13px; border-radius: 9px; border: 1px solid #34343b; background: #0e0e11; font-size: 14.5px; color: #e4e4ea; }

/* ---------- Fichas de catálogo ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 13px; }
.product-card { position: relative; border-radius: var(--radius); border: 1.5px solid #34343b; background: linear-gradient(180deg, #121215, #0b0b0d); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.product-card:hover { border-color: var(--neon); box-shadow: 0 0 24px rgba(255, 31, 61, .3); transform: translateY(-3px); }
.product-link { display: block; width: 100%; text-align: left; }
.type-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 11px; border-radius: 999px; border: 1px solid #70707a; background: rgba(8, 8, 10, .82); font-size: 12.5px; font-weight: 800; letter-spacing: .3px; }
.type-badge.full { border-color: #ff6b80; background: linear-gradient(180deg, #e0122f, #a30a1d); }
.art { position: relative; height: 138px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(90% 120% at 50% 110%, var(--a3) 0%, var(--a2) 42%, var(--a1) 100%); }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 45%, rgba(255, 255, 255, .13), transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 40%, rgba(0, 0, 0, .45)); }
.mark { position: relative; color: var(--mark); font-weight: 900; font-size: 46px; letter-spacing: -1px; text-shadow: 0 3px 18px rgba(0, 0, 0, .65); white-space: nowrap; }
.mark-tall { font-size: 104px; line-height: 1; transform: scaleX(.72); font-family: Impact, "Arial Narrow", var(--font); }
.mark-script { font-family: "Segoe Script", "Brush Script MT", cursive; font-weight: 700; font-size: 40px; letter-spacing: 0; }
.mark-round { font-size: 58px; letter-spacing: -3px; }
.mark-wide { font-size: 50px; font-style: italic; }
.mark-small { font-size: 31px; letter-spacing: 0; }
.product-body { padding: 16px 16px 14px; }
.product-body h3 { font-size: 16.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { margin-top: 6px; font-size: 16.5px; font-weight: 800; color: var(--neon-soft); }
.price.pending { color: #b9b9c2; font-weight: 600; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; }
.warranty-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 9px; border: 1px solid #2f2f36; background: #131317; font-size: 13px; color: #e9e9ee; white-space: nowrap; }
.go-pill { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 9px; border: 1.5px solid var(--neon); color: #fff; background: rgba(255, 31, 61, .08); }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 54px 20px; border-radius: var(--radius); border: 1px dashed #3c3c44; color: var(--muted); text-align: center; }
.empty svg { color: var(--neon-soft); }
.empty h3 { color: #fff; font-size: 19px; }
.empty.small { padding: 26px 14px; }

/* ---------- Ficha de producto ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: #e4e4ea; font-weight: 600; }
.back-link:hover { color: var(--neon-soft); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; margin-top: 18px; }
.art-detail { height: 330px; border-radius: 20px; border: 1.5px solid #34343b; }
.art-detail .mark { transform-origin: center; scale: 1.7; }
.panel { padding: 22px; border-radius: var(--radius); border: 1.5px solid #2b2b31; background: linear-gradient(180deg, #121215, #0b0b0d); }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.detail-left .panel { margin-top: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-grid .art { height: 88px; }
.related-grid .mark { scale: .62; }
.related-grid .warranty-pill { display: none; }
.related-grid .product-foot { justify-content: flex-end; margin-top: 8px; }
.related-grid .product-body { padding: 11px; }
.related-grid .type-badge { font-size: 10px; top: 8px; left: 8px; padding: 2px 8px; }
.eyebrow { display: inline-block; color: var(--neon-soft); font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.detail-info h1 { margin-top: 8px; font-size: 40px; line-height: 1.1; font-weight: 900; }
.summary { margin-top: 10px; color: var(--muted); font-size: 17px; }
.fact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.fact { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid #2b2b31; background: #101013; }
.fact > span { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255, 31, 61, .12); color: var(--neon-soft); }
.fact b { display: block; font-size: 15.5px; }
.fact small { color: var(--muted); }
.purchase-box { margin-top: 20px; padding: 20px; border-radius: 18px; border: 1.5px solid #7a1626; background: linear-gradient(180deg, rgba(109, 10, 27, .32), rgba(12, 12, 14, .9)); box-shadow: 0 0 26px rgba(255, 31, 61, .14); }
.purchase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.purchase-head strong { font-size: 38px; font-weight: 900; color: #fff; }
.purchase-head strong.pending { font-size: 26px; color: #c9c9d1; }
.purchase-head small { font-size: 17px; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.purchase-controls { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; height: 48px; border-radius: 12px; border: 1.5px solid #3c3c44; background: #0b0b0d; }
.qty button { display: grid; place-items: center; width: 42px; height: 100%; }
.qty button:hover { color: var(--neon-soft); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.btn-primary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 800; font-size: 16px; transition: filter .15s, box-shadow .15s, background .15s; }
.btn-primary { flex: 1; border: 1.5px solid #ff6b80; background: linear-gradient(180deg, #ff2a47, #b10a1e); box-shadow: 0 0 20px rgba(255, 31, 61, .4); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn-outline { flex: 1; border: 1.5px solid var(--neon); background: rgba(255, 31, 61, .06); }
.btn-outline:hover:not(:disabled) { background: rgba(255, 31, 61, .16); box-shadow: var(--glow); }
.btn-outline.danger { border-color: #b3261a; color: #ffb39c; }
.wide { width: 100%; flex: none; }
.tabs { display: flex; gap: 6px; margin-top: 24px; border-bottom: 1.5px solid #2b2b31; }
.tabs button { padding: 11px 16px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.tabs button.active { color: #fff; border-color: var(--neon); }
.description { padding-top: 16px; color: #d9d9e0; }
.bullet { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.bullet svg { color: var(--neon-soft); }

/* ---------- Páginas de cuenta ---------- */
.page-head { display: flex; align-items: center; gap: 18px; margin-top: 28px; margin-bottom: 22px; padding: 22px 24px; border-radius: 20px; border: 1.5px solid #5a1220; background: radial-gradient(80% 160% at 85% 0%, rgba(255, 31, 61, .22), transparent 60%), linear-gradient(180deg, #17070a, #0b0b0d); }
.page-head-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 16px; border: 1.5px solid var(--neon); background: rgba(255, 31, 61, .12); color: var(--neon-soft); box-shadow: 0 0 18px rgba(255, 31, 61, .3); }
.page-head h1 { font-size: 30px; font-weight: 900; }
.page-head p { color: var(--muted); }
.list { display: grid; gap: 13px; }
.row-card, .order-main { display: flex; align-items: center; gap: 16px; }
.row-card, .order { padding: 14px; border-radius: var(--radius); border: 1.5px solid #2b2b31; background: linear-gradient(180deg, #121215, #0b0b0d); }
.order.open { border-color: #7a1626; }
.art-thumb { width: 118px; height: 76px; flex: none; border-radius: 12px; }
.art-thumb .mark { scale: .5; }
.row-main { flex: 1; min-width: 0; }
.row-main h3 { font-size: 17px; font-weight: 800; }
.row-main p { color: var(--muted); font-size: 14.5px; }
.row-price { min-width: 84px; text-align: right; font-size: 18px; color: var(--neon-soft); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1.5px solid #3c3c44; color: #e4e4ea; }
.icon-btn:hover { border-color: var(--neon); color: var(--neon-soft); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #222228; color: #d9d9e0; }
.kv b { color: #fff; text-align: right; overflow-wrap: anywhere; }
.kv.total { border: 0; font-size: 20px; }
.kv.total b { color: var(--neon-soft); }
.summary-panel .btn-primary { margin-top: 10px; }
.note { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.status { padding: 4px 10px; border-radius: 9px; border: 1px solid #3c3c44; font-size: 13px; color: var(--muted); }
.status.on { border-color: #1f7a45; color: #6fe3a0; }
.order-meta { display: flex; gap: 22px; }
.order-meta span { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; font-weight: 700; font-size: 15px; }
.order-meta svg { grid-row: span 2; color: var(--neon-soft); }
.order-meta small { color: var(--muted); font-weight: 500; }
.order-access { margin-top: 14px; padding-top: 14px; border-top: 1px solid #2b2b31; }
.order-access h4 { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.tag { padding: 2px 9px; border-radius: 999px; border: 1px solid #7a1626; color: var(--neon-soft); font-size: 12px; font-weight: 700; }
.access-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.access-field { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; border: 1.5px solid #2b2b31; background: #0b0b0d; min-width: 0; }
.access-field > svg { color: var(--neon-soft); }
.access-field div { flex: 1; min-width: 0; }
.access-field small { display: block; color: var(--muted); }
.access-field b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.order-actions .btn-outline { flex: none; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.big-money { margin: 6px 0 18px; font-size: 44px; font-weight: 900; }
.big-money small { font-size: 18px; color: var(--muted); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 7px; font-weight: 700; font-size: 14.5px; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid #3c3c44; background: #0b0b0d; font-weight: 500; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--neon); box-shadow: var(--glow); }
.moves { display: grid; }
.move { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #222228; }
.move:last-child { border: 0; }
.move small { display: block; color: var(--muted); }
.move .pos { color: #6fe3a0; }
.move .neg { color: var(--neon-soft); }
.support-card { display: grid; gap: 10px; justify-items: start; }
.support-card p { color: var(--muted); }
.profile-card { text-align: center; }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--neon); background: radial-gradient(circle at 35% 30%, #5c0c18, #12040a); font-size: 36px; font-weight: 900; box-shadow: var(--glow); }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid #5b5b66; font-size: 13px; font-weight: 700; }
.role-admin { border-color: var(--neon); color: var(--neon-soft); background: rgba(255, 31, 61, .1); }
.role-reseller { border-color: #b3261a; color: #ffb39c; }
.profile-card .role-chip { margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat small { color: var(--muted); font-size: 14px; }
.stat b { display: block; font-size: 34px; font-weight: 900; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #222228; white-space: nowrap; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }

/* ---------- Capas ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start end; padding: 104px 110px 20px 20px; background: rgba(0, 0, 0, .55); }
.modal { width: min(380px, 100%); padding: 18px; border-radius: 18px; border: 1.5px solid var(--neon); background: #0e0e11; box-shadow: var(--glow); }
.modal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid #222228; color: #e4e4ea; }
.notice svg { color: var(--neon-soft); margin-top: 2px; }
#toast-layer { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 13px 18px; border-radius: 14px; border: 1.5px solid var(--neon); background: #120609; box-shadow: var(--glow); font-weight: 600; text-align: center; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.demo-bar { position: fixed; left: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 999px; border: 1px solid #4a4a52; background: rgba(10, 10, 12, .92); backdrop-filter: blur(8px); font-size: 13px; color: #d9d9e0; }
.demo-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.demo-bar div { display: flex; gap: 3px; }
.demo-bar button { padding: 5px 12px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.demo-bar button.active { background: var(--wine); color: #fff; box-shadow: inset 0 0 0 1px var(--neon); }

/* ---------- Tablet ---------- */
@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pill span { display: none; }
  .pill { padding: 0 15px; }
  .pill.exit span { display: inline; }
  .hero-copy { left: 9%; }
  .hero-copy h1 { font-size: 70px; }
  .hero-copy p { font-size: 21px; }
  .hero-tiles { display: none; }
  .hero-search { left: 9%; right: 44%; }
  .chip { min-width: 0; }
}
@media (max-width: 1024px) {
  :root { --dock-space: 78px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page > :not(.hero) { margin-left: 22px; }
  .dock-link { width: 50px; height: 50px; }
  .dock { gap: 11px; right: 10px; }
  .detail-grid, .cart-layout { grid-template-columns: 1fr; }
  .order-main { flex-wrap: wrap; }
  .order-meta { order: 3; width: 100%; justify-content: space-between; }
  .auth-art-right { display: none; }
  .auth-art-left { opacity: .55; }
  /* En tablet y celular el recorte muestra solo al pastor alemán */
  .hero-art { opacity: .75; aspect-ratio: 300 / 303; background-size: 533% 310.56%; background-position: 67.74% 15.2%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
  .product-foot .w-extra { display: none; }
  .hero-search { right: 30%; }
  .categories { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 6px 22px 6px; scrollbar-width: none; }
  .categories::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
/* ---------- Celular ---------- */
@media (max-width: 720px) {
  :root { --dock-space: 62px; }
  body { font-size: 15px; }
  .header-inner { height: 68px; padding: 0 10px; gap: 8px; }
  .brand-shield-sm { width: 52px; margin: -4px 0 -6px; }
  .wordmark b { font-size: 23px; }
  .wordmark strong { font-size: 15px; padding-left: 16px; }
  .header-actions { gap: 7px; }
  .pill, .icon-pill { height: 38px; padding: 0 10px; }
  .icon-pill { width: 38px; padding: 0; }
  .pill.exit span { display: none; }
  .pill.balance { height: 38px; padding: 0 4px 0 11px; gap: 7px; font-size: 14px; }
  .pill.balance svg:first-child { display: none; }
  .balance-plus { width: 28px; height: 28px; }
  .pill[data-route="reports"] { display: none; }
  .dock { right: 7px; gap: 9px; }
  .dock-link { width: 44px; height: 44px; }
  .dock-link svg { width: 20px; height: 20px; }
  .page { padding-bottom: 110px; }
  .page > :not(.hero) { margin-left: 12px; }
  .hero { height: 236px; }
  .hero-art { opacity: .6; }
  .count-chip { white-space: nowrap; font-size: 13px; }
  .hero-copy { left: 16px; top: 26px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy p { font-size: 15.5px; margin-left: 3px; }
  .hero-swoosh { width: 120px; margin-left: 60px; }
  .hero-search { left: 12px; right: calc(var(--dock-space) + 4px); min-width: 0; bottom: 20px; }
  .searchbox { height: 50px; padding-left: 16px; }
  .searchbox button { width: 54px; height: 50px; }
  .searchbox input { font-size: 16px; padding-left: 4px; }
  .categories { padding: 4px 12px 6px; gap: 9px; }
  .chip { height: 44px; padding: 0 16px; font-size: 14.5px; }
  .section-heading { margin-top: 20px; }
  .section-heading h2 { font-size: 18px; gap: 8px; white-space: nowrap; }
  .section-heading h2 svg { width: 22px; height: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .art { height: 104px; }
  .art .mark { scale: .74; }
  .product-body { padding: 11px 11px 10px; }
  .product-body h3, .price { font-size: 14px; }
  .product-foot { margin-top: 10px; }
  .warranty-pill { font-size: 11px; padding: 4px 7px; gap: 5px; }
  .warranty-pill svg { width: 13px; height: 13px; }
  .go-pill { width: 28px; height: 28px; }
  .type-badge { font-size: 10px; top: 8px; left: 8px; padding: 2px 8px; }
  .two-col, .three-col, .access-fields, .fact-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-detail { height: 210px; }
  .art-detail .mark { scale: 1.15; }
  .detail-info h1 { font-size: 29px; }
  .page-head { padding: 16px; gap: 13px; }
  .page-head h1 { font-size: 23px; }
  .page-head-icon { width: 46px; height: 46px; }
  .row-card { flex-wrap: wrap; }
  .art-thumb { width: 84px; height: 56px; }
  .art-thumb .mark { scale: .36; }
  .order-meta { flex-wrap: wrap; gap: 12px; }
  .purchase-controls > * { flex: 1 1 100%; }
  .qty { justify-content: space-between; }
  .modal-backdrop { padding: 78px 12px 12px; place-items: start center; }
  .demo-bar { left: 8px; bottom: 8px; padding: 4px 4px 4px 10px; gap: 6px; font-size: 12px; }
  .demo-bar > span { font-size: 0; gap: 0; }
  .demo-bar button { padding: 5px 9px; }
  #toast-layer { bottom: 62px; }
  /* Acceso */
  .auth-shell { padding: 70px 14px 64px; }
  .auth-art-left { opacity: .3; }
  .auth-card { padding: 0 20px 24px; border-radius: 24px; }
  .auth-shield { width: 168px; margin: -42px auto -24px; }
  .auth-title { font-size: 46px; }
  .auth-tagline { font-size: 16.5px; }
  .auth-rule { margin: 14px auto 18px; }
  .auth-field { height: 52px; }
  .auth-field-icon { width: 52px; }
  .auth-field input { font-size: 16px; }
  .auth-eye { width: 50px; }
  .auth-row { font-size: 14.5px; flex-wrap: wrap; }
  .auth-submit { height: 54px; font-size: 20px; gap: 14px; }
  .auth-divider { font-size: 14.5px; margin: 22px 0 14px; gap: 10px; }
  .auth-secondary { height: 46px; font-size: 18px; }
  .auth-warranty { margin: 22px 0 0; padding: 12px 14px; gap: 10px; }
  .auth-warranty svg { width: 28px; height: 28px; }
  .auth-warranty b { font-size: 15px; }
  .auth-warranty i { margin: 0 2px; }
  .auth-warranty span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Portada aprobada. El arte y los controles interactivos comparten la misma escala. */
.header-inner { height: 97px; padding: 0 16px 0 10px; }
.header-brand { display: block; width: 230px; height: auto; }
.header-actions .pill { padding-inline: 16px; background: linear-gradient(#161618, #09090a); border-color: #575659; }
.header-actions .pill.balance { padding: 0 8px 0 18px; border-color: #c51a27; }
.header-actions .balance-plus { background: linear-gradient(#fa191e, #aa000b); }
.header-actions .pill.exit { border-color: #ff202c; border-radius: 17px; background: #210507; box-shadow: 0 0 13px #f312253b; }

.dock { top: 52.25vh; }
.dock-link { color: white; }
.dock-link.active { box-shadow: 0 0 16px var(--tone-glow), inset 0 0 12px var(--tone-glow); }
.tone-1 { --tone-line: #ff3843; --tone-bg: #300909; --tone-glow: #ff001e65; }
.tone-2 { --tone-line: #873039; --tone-bg: #190d0f; --tone-glow: #ad242c33; }
.tone-3 { --tone-line: #86797e; --tone-bg: #202023; --tone-glow: #d8a0af35; }
.tone-4 { --tone-line: #9c222e; --tone-bg: #190b0e; --tone-glow: #d5183338; }
.tone-5 { --tone-line: #bf2632; --tone-bg: #1e0c10; --tone-glow: #df102936; }
.tone-6 { --tone-line: #595961; --tone-bg: #202024; --tone-glow: #d1ccd532; }

.page-home .demo-bar { position: static; width: fit-content; margin: 24px 0 0; }
.auth-shell + .demo-bar { position: static; width: fit-content; margin: 0 auto 14px; }
.catalog-art { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; border-bottom: 1px solid #252529; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.page-home .product-body { padding: 9px 12px 12px 17px; }
.page-home .product-body h3 { font-weight: 700; }
.page-home .price { color: #ffc1c6; margin-top: 5px; }
.page-home .price.pending { color: #b9b9c2; }
.page-home .product-foot { margin-top: 9px; }
.page-home .warranty-pill { border-radius: 999px; background: #1a1b20; }
.page-home .go-pill { background: #3b0b0e; box-shadow: 0 0 12px #ed13284d; }
.page-home .chip.active { border-color: #ff2a36; background: linear-gradient(115deg, #ad080c, #540407); box-shadow: 0 0 16px #ef09165c, inset 0 0 6px #ff1c273b; }

@media (min-width: 1025px) {
  .page-home .hero {
    height: auto;
    aspect-ratio: 1599 / 305;
    background: #070708 url(./assets/portada/banner.png) left top / 95.56% 100% no-repeat;
  }
  .page-home .hero::after, .page-home .hero-tiles, .page-home .hero-art { display: none; }
  .page-home .hero-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-home .hero-search { left: 29.4%; right: 38.48%; top: 70.6%; bottom: auto; min-width: 0; height: 20.9%; }
  .page-home .searchbox { height: 100%; background: #0a0a0c; border-color: #d50d1b; }
  .page-home .searchbox button { height: calc(100% + 2px); width: 13%; background: #e5161c; }
  .page-home .categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 74.1%; margin-left: 12.75%; padding: 2px 0 0; gap: clamp(8px, 1vw, 17px); }
  .page-home .chip { min-width: 0; padding-inline: 4px; gap: clamp(5px, .7vw, 12px); height: clamp(40px, 3.25vw, 54px); }
  .page-home .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .page-home .section-heading { margin-top: clamp(21px, 1.9vw, 32px); margin-bottom: 16px; }
}
@media (min-width: 1050px) {
  .header-actions .pill span { display: inline; }
  .header-actions .pill .balance-plus { display: grid; }
}
@media (max-width: 1024px) {
  .header-brand { width: 184px; }
  .page-home .categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-left: 22px; padding: 4px 0; }
  .page-home .chip { gap: 6px; padding-inline: 4px; }
}
@media (max-width: 720px) {
  .header-inner { height: 68px; }
  .header-brand { width: clamp(78px, 24vw, 134px); }
  .header-actions .pill { padding-inline: 8px; }
  .header-actions .pill.balance { padding: 0 7px; }
  .page-home .categories { margin-left: 12px; }
  .page-home .chip { font-size: 11px; }
  .page-home .chip svg { width: 14px; }
  .page-home .product-body { padding: 8px; }
  .page-home .product-body h3 { white-space: normal; }
  .page-home .product-foot { gap: 4px; }
  .auth-warranty { display: grid; grid-template-columns: auto 1fr; }
  .auth-warranty i { display: none; }
  .auth-warranty span { grid-column: 2; }
}

/* Ventanas sobre el catálogo */
body.section-open:not(.is-auth) { overflow: hidden; }
.section-window {
  position: fixed; inset: 0; margin: auto; width: min(94vw, 1740px); max-width: none;
  max-height: 90dvh; padding: 0; color: white; background: #0c0b0e;
  border: 1px solid #8f2536; border-radius: 23px; box-shadow: 0 0 40px #c4072833;
  overscroll-behavior: contain;
}
.section-window::backdrop { background: #050407b8; backdrop-filter: blur(7px); }
.section-content { padding: clamp(14px, 2vw, 28px); overflow-wrap: anywhere; }
.section-close { position: sticky; top: 10px; z-index: 2; margin: 10px 12px -4px auto; display: grid; background: #281016; }
.detail-image { border: 1px solid #463338; border-radius: 18px; }
.page-home .product-body h3 { white-space: normal; overflow-wrap: anywhere; }
.page-home .warranty-pill { white-space: normal; gap: 5px; }
.page-home .warranty-pill svg { flex: none; }

@media (min-width: 721px) {
  .header-inner { height: clamp(63px, 5.8vw, 97px); }
  .header-brand { width: clamp(145px, 14vw, 230px); }
  .header-actions { gap: clamp(7px, .85vw, 15px); }
  .header-actions .pill, .header-actions .icon-pill { height: clamp(34px, 3vw, 46px); font-size: clamp(12px, 1vw, 15.5px); }
  .header-actions .pill { gap: 8px; padding-inline: clamp(9px, 1vw, 16px); }
  .header-actions .icon-pill { width: clamp(38px, 3.4vw, 54px); }
  .header-actions svg { width: clamp(14px, 1.25vw, 20px); height: auto; }
  .header-actions .balance-plus { width: clamp(24px, 2.1vw, 34px); height: auto; aspect-ratio: 1; }
}
@media (min-width: 1050px) {
  .auth-shell { padding: 7vh 20px 5.5vh; }
  .auth-card { zoom: clamp(.65, calc(100dvh / 941px), 1); transform: translateX(2.4vw); }
  .auth-art-left { mask-image: linear-gradient(90deg, #000 89%, transparent); }
}
.auth-card { border-color: #bb2439; background: linear-gradient(155deg, #280c12, #100d0e 50%, #20090f); box-shadow: 0 0 22px #ff153734, inset 0 0 32px #e9143634; }
.auth-submit { background: linear-gradient(#d30720, #950010 76%, #b80016); box-shadow: 0 0 19px #fa002d80, inset 0 0 14px #ff153e91; }
.auth-warranty { border-color: #75323d; background: linear-gradient(100deg,#361016,#121013 48%,#301017); }
.admin-hero { background: linear-gradient(90deg,#0d0a0ff7 24%,#21070cc4), url(./assets/portada/banner.png) center / cover; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.admin-nav button[aria-pressed="true"] { border-color: #ef2945; background: #571020; }
.admin-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin: 14px 0; }
.admin-filters :is(input, select) { min-width: 0; width: 100%; background: #100d12; border: 1px solid #694051; color: white; border-radius: 9px; padding: 10px; }
.admin-clients { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(150px,100%),1fr)); gap: 8px; }
.admin-client { display: grid; gap: 2px; text-align: left; padding: 8px 10px; line-height: 1.25; border: 1px solid #61313b; border-radius: 12px; background: #201219; }
.admin-client small { color: #d6b9c4; }
@media (max-width: 600px) { .admin-filters { grid-template-columns: 1fr; } }
.admin-hero .page-head h1 { overflow-wrap: normal; }
.admin-nav .btn-outline { white-space: normal; overflow-wrap: normal; }
@media (max-width: 600px) {
  .admin-nav { display: grid; grid-template-columns: minmax(0, 1fr); }
  .admin-nav .btn-outline { justify-content: flex-start; }
  .admin-hero .page-head { align-items: flex-start; }
  .admin-hero .page-head h1 { font-size: clamp(16px, 5vw, 23px); }
}

.ops-stack { display:grid; gap:16px; min-width:0; }
.ops-hero .page-head, .admin-hero .page-head {
  min-height:clamp(108px,12vw,175px);
  background:linear-gradient(90deg,#10090efc 30%,#17050bc7 72%,#10070bb3),
    url(./assets/portada/banner.png) 76% 45% / cover;
  border-color:#66303e;
}
.ops-hero .page-head h1, .admin-hero .page-head h1 {
  color:#fff4f6; font-size:clamp(24px,3.1vw,50px); line-height:1.09;
}
.ops-panel { min-width:0; }
.ops-panel h2 { margin-bottom:12px; }
.ops-toolbar, .ops-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.ops-toolbar { justify-content:space-between; margin-block:12px; min-width:0; }
.ops-toolbar label { display:grid; gap:4px; }
.ops-controls .btn-outline, .ops-toolbar .btn-outline { min-height:39px; padding:7px 12px; }
.ops-button[aria-pressed="true"], .admin-client[aria-pressed="true"] {
  border-color:#f35269; background:#511320; box-shadow:0 0 12px #f52f5130;
}
.ops-button, .admin-nav button, .dock-menu button, .ops-code-tiles label {
  transition:background .16s, border-color .16s, box-shadow .16s, transform .16s;
}
.ops-button:hover, .admin-nav button:hover, .ops-code-tiles label:hover {
  transform:translateY(-2px); border-color:#f44c65; box-shadow:0 0 14px #f420483a;
}
.ops-input, .ops-toolbar input, .ops-toolbar select {
  min-width:0; padding:9px 12px; border-radius:10px; border:1px solid #5e3946; background:#130e14;
}
input.ops-input { flex:1 1 200px; }
.ops-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:10px; }
.ops-metric { display:flex; align-items:center; gap:12px; min-width:0; padding:14px; }
.ops-metric svg { flex:none; color:#ff718a; }
.ops-metric span { display:grid; gap:3px; }
.ops-metric b { font-size:clamp(18px,1.75vw,28px); }
.ops-metric small { color:#cfb4bc; }
.ops-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr)); gap:12px; margin-block:12px; }
.ops-grid .panel p + p { margin-top:8px; }
.ops-panel .table-wrap { overflow-x:auto; max-width:100%; }
.ops-panel th { background:#29121b; color:#f0b5c3; }
.ops-legend { display:flex; flex-wrap:wrap; gap:14px; color:#cfb4bc; }
.ops-legend span::before { content:""; display:inline-block; width:9px; height:9px; margin-right:6px; border-radius:3px; background:#f64061; }
.ops-legend span:nth-child(2)::before { background:#ffc07b; }
.ops-legend span:nth-child(3)::before { background:#53c8a6; }
.ops-chart { display:flex; align-items:stretch; gap:3px; height:clamp(130px,24vh,265px); margin-top:16px; }
.ops-day { display:grid; grid-template-rows:minmax(0,1fr) auto; align-items:end; min-width:0; flex:1; text-align:center; }
.ops-day span { justify-self:center; width:min(16px,80%); height:var(--height); background:linear-gradient(#ff4569,#a31635); border-radius:5px 5px 0 0; }
.ops-day small { color:#cbb0ba; border-top:1px solid #5b303e; font-size:clamp(8px,1vw,13px); }
.ops-counter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); }
.ops-counter-grid .ops-button { min-height:64px; justify-content:flex-start; text-align:left; background:#171016; }
.ops-notice { padding:13px; background:#28121a; border:1px solid #733345; border-radius:11px; }
.ops-notice small { display:block; margin-block:5px; }
.ops-case + .ops-case { margin-top:8px; }
.ops-case summary { cursor:pointer; }
.ops-case summary span { margin-inline-start:10px; color:#ff9eb1; }
.ops-case p { margin-block:10px; }
.ops-fieldset { border:0; min-width:0; }
.ops-fieldset legend { margin-bottom:8px; }
.ops-code-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.ops-code-tiles label { position:relative; isolation:isolate; display:grid; align-items:end; padding:9px; aspect-ratio:2/1; overflow:hidden; border:1px solid #603642; border-radius:12px; cursor:pointer; }
.ops-code-tiles img { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; }
.ops-code-tiles label::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(transparent 38%,#080508f2); }
.ops-code-tiles input[type="radio"] { position:absolute; top:5px; right:5px; width:16px; height:16px; accent-color:#fa3e5f; }
.ops-code-tiles label:has(:checked), .ops-code-tiles label:focus-within { border-color:#ff5672; box-shadow:0 0 0 2px #f34564; }
.section-window[data-route-view="codes"] { width:min(94vw,820px); }
.section-window[data-route-view="report-center"] { width:min(94vw,1250px); }
.purchase-workspace { display:grid; grid-template-columns:minmax(180px,230px) minmax(0,1fr); gap:16px; align-items:start; }
.purchase-sidebar { display:grid; gap:10px; }
.purchase-sidebar p { margin-block:8px; }
.purchase-sidebar small { color:#cfb4bc; }
.purchase-thumb { width:100px; aspect-ratio:1.6; object-fit:cover; border-radius:10px; }
.dock { gap:clamp(6px,1.5vh,14px); }
.dock-item { position:relative; }
.tone-7 { --tone-line:#595961; --tone-bg:#202024; --tone-glow:#d1ccd532; }
.dock-label {
  display:flex; align-items:center; position:absolute; top:0; right:75%; height:100%; padding:0 22px 0 14px;
  z-index:-1; border:1px solid var(--tone-line); border-radius:999px 0 0 999px;
  background:#211019; color:#ffe5ed; font-size:13px; font-weight:700; white-space:nowrap;
  opacity:0; transform:translateX(8px); transition:opacity .16s,transform .16s; pointer-events:none;
}
.dock-item:hover .dock-label, .dock-link:focus-visible .dock-label, .dock-link[aria-expanded="true"] .dock-label { opacity:1; transform:translateX(0); }
.dock-menu {
  display:none; position:absolute; right:calc(100% + 8px); top:50%; translate:0 -50%;
  min-width:190px; max-width:60vw; padding:8px; border:1px solid #a3435a; border-radius:14px;
  background:#1c1019; box-shadow:0 14px 36px #000a;
}
.dock-menu::after { content:""; position:absolute; width:9px; left:100%; inset-block:0; }
.reports-menu:hover .dock-menu, .reports-menu:has([aria-expanded="true"]) .dock-menu { display:grid; }
.reports-menu:has(.dock-menu:hover) .dock-label, .reports-menu:hover .dock-label, .reports-menu:has([aria-expanded="true"]) .dock-label { display:none; }
.dock-menu button { display:flex; align-items:center; gap:10px; text-align:left; padding:9px; border-radius:8px; }
.dock-menu button:hover, .dock-menu button:focus-visible { background:#4b1b2b; }
.dock-menu small { display:block; color:#d8b8c5; }
@media (max-width: 760px) {
  .purchase-workspace { grid-template-columns:minmax(0,1fr); }
  .purchase-sidebar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .purchase-sidebar details { grid-column:1/-1; }
  .ops-code-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ops-chart .ops-day:nth-child(2n) small { color:transparent; }
  .dock-link { width:min(44px,9vh); height:min(44px,9vh); }
}
@media (prefers-reduced-motion:reduce) {
  .ops-button,.admin-nav button,.ops-code-tiles label,.dock-label { transition:none; }
}

/* Cabecera compacta compartida por las ventanas. */
.section-close-row { position:sticky; top:0; height:0; z-index:4; }
.section-close { position:absolute; top:10px; right:12px; margin:0; }
.section-content > .page-head:first-child,
.section-content > :is(.ops-hero,.admin-hero):first-child .page-head { margin-top:0; padding-inline-end:52px; }
.section-content > :not(.page-head,.ops-hero,.admin-hero,.purchase-workspace):first-child { margin-top:18px; }

.dock-label {
  right:0; min-width:max(100%,170px); justify-content:flex-end;
  padding-inline:16px 52px; border-radius:999px; z-index:-1;
  clip-path:inset(0 0 0 100%); opacity:1; transform:none;
  transition:clip-path .24s ease-out,box-shadow .24s ease-out;
}
.dock-item:hover .dock-label, .dock-link:focus-visible .dock-label {
  clip-path:inset(-12px -12px -12px -12px); box-shadow:0 0 14px var(--tone-glow);
}
.dock-link:hover { transform:none; }
.dock-link > svg { position:relative; z-index:1; }
.reports-menu:hover .dock-label, .reports-menu:has(.dock-menu:hover) .dock-label,
.reports-menu:has([aria-expanded="true"]) .dock-label { display:flex; clip-path:inset(-12px); }
.reports-menu .dock-menu { right:170px; }
.reports-menu .dock-menu::after { width:126px; z-index:-1; }
@media (max-width:640px) {
  .reports-menu .dock-menu { right:calc(100% + 7px); }
  .reports-menu .dock-menu::after { width:8px; }
  .reports-menu:hover .dock-label, .reports-menu:has([aria-expanded="true"]) .dock-label { visibility:hidden; }
}
.support-grid .support-card { text-align:left; display:grid; align-content:start; gap:10px; min-height:182px; }
.support-grid .support-card strong { color:#ffa2b6; display:flex; align-items:center; gap:8px; margin-top:6px; }
.support-card:hover,.support-card:focus-visible { border-color:#e24d69; background:#24131b; }
.purchase-workspace { grid-template-columns:minmax(190px,232px) minmax(0,1fr); }
.purchase-identity { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; padding-bottom:12px; border-bottom:1px solid #432a33; }
.purchase-identity .avatar { margin:0; width:42px; height:42px; font-size:21px; }
.purchase-identity small,.purchase-nav small { display:block; font-size:11px; margin-top:3px; }
.purchase-role { display:inline-flex; align-items:center; gap:5px; padding:4px 6px; margin-top:5px; border-radius:7px; background:#491522; color:#ffc6d3; font-size:11px; }
.purchase-sidebar { padding:12px; gap:8px; }
.purchase-sidebar details,.purchase-nav { border:1px solid #53303d; border-radius:11px; background:#171119; }
.purchase-sidebar details summary { cursor:pointer; padding:9px; font-size:12px; font-weight:700; }
.purchase-sidebar details > div { padding:0 10px 7px; border-top:1px solid #432934; font-size:12px; }
.purchase-nav { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; padding:9px; text-align:left; font-size:12px; color:#f8dee7; }
.purchase-nav svg { color:#f795ad; }
.purchase-nav:hover,.purchase-nav[aria-pressed="true"] { border-color:#ef5677; background:#341722; }
.purchase-contact { border-color:#326958; background:#10201e; color:#bff6df; }
.purchase-contact svg { color:#86d5b6; }
.purchase-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:14px; align-items:center; padding:clamp(15px,2vw,27px); padding-inline-end:52px; border:1px solid #64303d; border-radius:14px; background:linear-gradient(90deg,#10080dfc,#18070caf),url(./assets/portada/banner.png) 76% 42% / cover; }
.purchase-hero h1 { font-size:clamp(25px,3.7vw,52px); line-height:1.05; }
.purchase-hero h1 em { color:#ff5978; font-style:normal; }
.purchase-hero p { margin-top:8px; color:#d7bfc6; }
.purchase-hero .ops-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.purchase-hero .ops-metric { padding:8px; border-radius:9px; gap:5px; }
.purchase-hero .ops-metric svg { width:16px; }
.purchase-hero .ops-metric small { font-size:11px; }
.purchase-workspace .ops-toolbar { margin:0; }
.purchase-workspace .ops-toolbar .ops-button { white-space:nowrap; overflow-wrap:normal; font-size:12px; min-height:34px; padding:5px 8px; border-radius:999px; }
.purchase-workspace .order-main { padding-block:9px; }
.platform-picture { position:relative; }
.platform-picture > b { position:absolute; inset:0; display:grid; place-items:center; color:white; text-shadow:0 3px 8px black,0 0 12px black; font-size:clamp(23px,2.5vw,46px); }
.platform-act { display:grid; place-items:center; background:radial-gradient(ellipse at 55% 0%,#40211c,#150d12 70%); color:#f7e3ae; font-size:clamp(28px,3vw,52px); font-weight:900; }
@media (max-width:1150px) { .purchase-hero { grid-template-columns:minmax(0,1fr); } }
@media (max-width:760px) {
  .purchase-workspace { grid-template-columns:minmax(0,1fr); padding-top:36px; }
  .purchase-identity,.purchase-sidebar .eyebrow { grid-column:1/-1; }
  .purchase-hero { padding-inline-end:15px; }
  .purchase-hero .ops-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) { .dock-label { transition:none; } }

/* La etiqueta queda fuera del icono y se revela desde su propio borde izquierdo. */
.dock-link .dock-label {
  right:calc(100% + 5px); min-width:max-content; padding:0 15px;
  border-radius:999px; z-index:2; clip-path:inset(-6px 100% -6px -6px);
  transition:clip-path .26s ease-out; opacity:1; transform:none;
}
.dock-item:hover .dock-label,.dock-link:focus-visible .dock-label,
.reports-menu:has([aria-expanded="true"]) .dock-label { clip-path:inset(-8px); }
.reports-menu .dock-menu { right:calc(100% + 110px); }
.reports-menu .dock-menu::after { width:112px; }
@media(max-width:640px) {
  .reports-menu .dock-menu { right:calc(100% + 7px); }
  .reports-menu .dock-menu::after { width:8px; }
}
@media(prefers-reduced-motion:reduce) { .dock-link .dock-label { transition:none; } }
.detail-picture .detail-image { object-position:center; }
.detail-picture > b { font-size:clamp(30px,5vw,76px); }

.report-center-stack { gap:12px; }
.report-priority .report-metric:nth-child(-n+2) { grid-column:1/-1; min-height:76px; }
.report-metric {
  --metric:#e88a9d; display:flex; align-items:center; gap:12px; text-align:left; min-height:58px;
  border:1px solid #50303b; background:#181218; border-radius:13px; padding:9px 14px; color:#f9e8ef;
}
.report-metric span { display:grid; flex:1; gap:2px; }
.report-metric svg { color:var(--metric); flex:none; }
.report-metric b { font-size:clamp(18px,2.4vw,30px); line-height:1; }
.report-metric:hover,.report-metric[aria-pressed=true] { border-color:var(--metric); }
.report-metric[data-id=new] { --metric:#ff4255; }
.report-metric[data-id=topup] { --metric:#70d5b6; }
.report-metric[data-id=unanswered] { --metric:#78baff; }
.report-metric[data-id=waiting] { --metric:#ffc375; }
.report-metric[data-id=working] { --metric:#db9aff; }
.report-metric[data-id=resolved],.report-metric[data-id=warranty] { --metric:#67d7a7; }
.report-metric[data-id=expired],.report-metric[data-id=replacement] { --metric:#ffb673; }
.report-metric[data-id=history],.report-metric[data-id=affected] { --metric:#78baff; }
.report-metric.has-activity { border-color:var(--metric); background:color-mix(in srgb,var(--metric) 14%,#151015); }
.report-metric[data-id=new].has-activity { background:#620d1a; box-shadow:0 0 16px #ff183e50; }
.report-heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,270px); align-items:center; gap:16px; margin-bottom:16px; }
.section-content > .report-heading:first-child { margin-top:0; padding-inline-end:38px; }
.report-heading .page-head { margin:0; }
.report-heading > h2 { margin:0; }
.report-find { display:flex; align-items:center; gap:6px; }
.report-find input { flex:1; width:0; min-width:0; min-height:40px; padding:8px 12px; border:1px solid #573443; border-radius:10px; background:#150f16; color:inherit; }
.report-find .btn-outline { flex:none; width:40px; min-height:40px; padding:0; }
.notice-window {
  position:fixed; inset:0; margin:auto; width:min(94vw,670px); max-height:88dvh;
  padding:18px; border:1px solid #aa3959; border-radius:23px; background:#191018; color:#fff2f5;
}
.notice-window[open] { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; gap:11px; }
.notice-window::backdrop { background:#050407bb; backdrop-filter:blur(6px); }
.notice-window header { display:flex; gap:10px; align-items:center; justify-content:space-between; }
.notice-window h2 small { font-size:12px; color:#ffa6bb; }
.notice-feed { display:grid; gap:9px; overflow:auto; }
.notice-entry { display:flex; align-items:start; justify-content:space-between; gap:10px; padding:12px; border:1px solid #573443; border-radius:12px; background:#150f16; }
.notice-entry.unread { border-color:#b84c70; background:#331928; }
.notice-entry p { margin:2px 0; color:#e2c5cf; }
.notice-entry small { color:#bd9ca9; }
.notice-entry .btn-outline { padding:5px 8px; font-size:11px; min-height:28px; }
.section-window[data-route-view=purchases] { width:min(97vw,1740px); max-height:94dvh; }
.purchase-workspace .order-main { padding:5px 9px; gap:8px; }
.purchase-workspace .purchase-thumb { width:72px; aspect-ratio:1.8; }
.purchase-workspace .row-main h3 { font-size:14px; }
.purchase-workspace .row-main p,.purchase-workspace .order-meta { font-size:11px; }
.purchase-workspace .tags { margin-top:3px; }
.purchase-workspace .tags > span { padding:2px 5px; font-size:10px; }
.purchase-workspace .list { gap:6px; }
.admin-nav .btn-outline { min-height:34px; padding:5px 9px; font-size:12px; min-width:0; }
.admin-nav .btn-outline svg { width:15px; }
.admin-category-stats .stat { min-height:0; padding:8px 10px; display:flex; align-items:center; gap:9px; text-align:left; }
.admin-category-stats .stat b { font-size:22px; display:block; }
.admin-category-stats .stat[aria-pressed=true] { border-color:#ef5475; }
.admin-client[data-category-tone=reseller] { background:#35131c; border-color:#a84556; }
.admin-client[data-category-tone=customer] { background:#142639; border-color:#396d9b; }
.admin-client[data-category-tone=admin] { background:#142b22; border-color:#3b896c; }
.admin-client:hover,.admin-client[aria-pressed=true] { outline:1px solid #ffbaca; }
@media(max-width:600px) {
  .admin-nav { display:flex; }
  .admin-nav .btn-outline { flex:0 1 auto; width:auto; }
  .notice-entry { flex-wrap:wrap; }
}
.detail-picture[data-platform=netflix] > b { color:#ed102b; font-family:Impact,"Arial Black",sans-serif; font-size:clamp(55px,12vw,160px); text-shadow:0 0 28px #ff152e90,0 5px 14px #000; }


#finance-range { align-items:flex-end; gap:12px 20px; margin:0; padding:14px; }
#finance-range .ops-controls { align-items:flex-end; }
#finance-range .btn-outline { flex:none; white-space:nowrap; font-size:13px; }
#finance-range label { font-size:12px; }
#finance-range input { min-height:39px; font-size:13px; }
#finance-range + .note { margin:0; }
#finance-range ~ .ops-metrics .ops-metric { min-height:76px; padding:12px; }

.report-center-stack .ops-counter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.notice-entry .btn-outline { flex:none; width:112px; }

.recharge-account { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.recharge-account > strong { font-variant-numeric:tabular-nums; letter-spacing:.035em; }
.recharge-account .btn-outline { flex:none; min-height:36px; padding:0 10px; font-size:13px; }
.bank-warning { margin-bottom:0; color:#ffcb80; }

@media (max-width:650px) {
  .report-heading { grid-template-columns:1fr; }
  .report-find { max-width:320px; }
  .report-center-stack .ops-counter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:420px) {
  .report-center-stack .ops-counter-grid { grid-template-columns:1fr; }
}

.cart-thumb { width:122px; max-width:100%; overflow:hidden; border-radius:12px; }
.cart-thumb .catalog-art { width:100%; height:78px; object-fit:cover; }
.cart-thumb .platform-picture b { font-size:16px; }
.notice-client { display:grid; flex:1; gap:4px; text-align:left; }
.notice-client:hover small { text-decoration:underline; }
.renewal-list { display:grid; gap:8px; }
.ops-panel > .renewal-list { grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr)); margin-top:12px; }
.case-details { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); gap:8px; margin-block:12px; }
.case-details dt { color:var(--muted); font-size:.85em; }
.case-details dd { margin:0; overflow-wrap:anywhere; }
.case-evidence { display:block; max-width:100%; max-height:330px; margin-top:12px; border-radius:10px; }

.queue-record { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; padding:13px 16px; text-align:left; }
.queue-record span { display:grid; gap:3px; }
.queue-record small { color:var(--muted); }
.queue-record:hover { border-color:var(--neon-soft); }
.ops-panel .case-evidence { margin-bottom:12px; }
