/* =========================================================
   MFL Productions · diseño v2 (2026-11-28)
   Misma paleta, estilo sobrio: fondos planos, bordes finos, sin brillos
   ni estrellas, botones rectos y tipografía clara. Se carga después de
   style.css y lo pisa. Para volver al diseño anterior, quitar este <link>.
   ========================================================= */
:root {
  --surface: #151619;
  --surface-2: #1B1C20;
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-xl: 14px;
  --page: 1200px;
  --header-h: 64px;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); }
::selection { background: rgba(79, 140, 255, .35); }

/* ---------- Fuera: cielo, nebulosas, grano, meteoros, brillos ---------- */
.site-atmosphere, .site-grain, .hero__backdrop, .product-atmosphere, .meteor, .cursor-dot, .cursor-ring,
.tilt__glare, .tilt__edge, .hero__copy::after, .hero-handoff::before, .hero-handoff::after { display: none !important; }
html.has-cursor, html.has-cursor * { cursor: auto; }
html.has-cursor a, html.has-cursor button { cursor: pointer; }
.glitch::before, .glitch::after { display: none !important; }
.glitch.accent, .display .accent { color: inherit; }
.mod-thumb::after, .tier__media::after { display: none !important; }
.btn-primary::after { display: none !important; }
.section--bloom::before, .section--bloom::after, .community::before, .community::after { display: none !important; }

/* ---------- Aparición: corta y discreta ---------- */
body.reveal-on .reveal,
body.reveal-on .mod-card.reveal, body.reveal-on .cat-card.reveal, body.reveal-on .tier.reveal, body.reveal-on .card.reveal {
  opacity: 0; transform: translateY(8px); filter: none; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
body.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.page-enter { animation: none !important; }
.hero__count, .hero .pill, .hero .display, .hero .lead, .hero__cta, .hero .actions { animation: none !important; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { letter-spacing: -.02em; }
.display { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
h2, .h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.lead { font-size: 1.05rem; line-height: 1.65; color: var(--fg-2); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head .lead { margin-top: 8px; }
.label { font-family: var(--font); font-size: .8rem; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--accent-hi); }
.label::before { content: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .88rem; font-weight: 600; color: var(--fg-2); }
.dot { box-shadow: none; }

/* Insignia redonda de las páginas internas → texto simple */
.pill { padding: 0; border: 0; background: none; font-family: var(--font); font-size: .88rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.chip { border-radius: 6px; font-weight: 600; }

/* ---------- Botones ---------- */
.btn { border-radius: var(--r); padding: 11px 18px; font-size: .94rem; font-weight: 600; letter-spacing: -.005em; box-shadow: none !important; }
.btn-lg { padding: 13px 22px; font-size: 1rem; min-width: 0; }
.btn-sm { padding: 8px 13px; font-size: .86rem; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: #3D74DB; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); border-color: var(--line-3); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn-outline:hover { background: rgba(255, 255, 255, .04); border-color: var(--line-3); }
.btn-discord:hover { background: #4752C4; }
.link-arrow { font-size: .92rem; color: var(--fg-2); }
.link-arrow:hover { color: var(--fg); }

/* ---------- Header: barra fija de ancho completo ---------- */
.header {
  position: sticky; top: 0; z-index: 60; padding: 0; pointer-events: auto;
  background: rgba(14, 15, 18, .9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.header::before { display: none !important; }
.header__shell, .header.is-compact .header__shell { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.header__inner, .header.is-stuck .header__inner, .header.is-compact .header__inner {
  min-height: 64px; padding: 0; gap: 32px; justify-content: flex-start;
  border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.brand, .header.is-compact .brand { transform: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-size: 1.05rem; }
.nav, .header.is-compact .nav { position: static; transform: none; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { background: rgba(255, 255, 255, .04); }
.nav a.is-active { color: var(--fg); background: rgba(255, 255, 255, .06); }
.nav a.is-active::after { display: none; }
.nav .soon-tag { font-family: var(--font); font-size: .68rem; font-weight: 600; letter-spacing: .02em; border: 0; padding: 0; margin-left: 6px; color: var(--fg-3); }
.header__actions, .header.is-compact .header__actions { margin-left: auto; transform: none; }
.user-btn { border-radius: var(--r); padding: 3px 12px 3px 3px; background: transparent; }
.user-btn img, .avatar-fallback { width: 28px; height: 28px; border-radius: 6px; }
.user-menu { border-radius: var(--r-lg); top: calc(100% + 8px); background: var(--surface-2); backdrop-filter: none; }
.user-menu a { border-radius: var(--r-sm); }
.burger { border-radius: var(--r); width: 40px; height: 40px; }
@media (max-width: 1080px) { .header__inner { min-height: 60px; } }

/* Las páginas ya no van debajo del header */
.hero-handoff { margin-top: 0; }
.hero { padding-top: 0; overflow: visible; }

/* ---------- Hero de páginas internas: a la izquierda, con línea abajo ---------- */
.hero--page { text-align: left; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero--page .hero__copy { max-width: none; margin: 0; padding: 48px 0 40px; transform: none !important; opacity: 1 !important; }
.hero--page .display { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 10px 0 10px !important; }
.hero--page .lead { margin: 0; max-width: 62ch; }
.hero--page .hero__cta { justify-content: flex-start; }
.hero-handoff + .section-sm { padding-top: 36px !important; }
/* Editor y 404 */
.hero:not(.hero--page) .hero__copy { transform: none !important; opacity: 1 !important; }

/* ---------- Inicio: hero ---------- */
.home-hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.home-hero .display { margin-bottom: 18px; max-width: 16ch; }
.home-hero .lead { max-width: 54ch; margin-bottom: 28px; }
.home-hero .hero__cta { justify-content: flex-start; gap: 10px; }
.trust { display: grid; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--fg-2); }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--ok); }

.feature { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface-2); overflow: hidden; color: var(--fg); transition: border-color .2s; }
.feature:hover { border-color: var(--line-3); }
.feature__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--fg-3); }
.feature__thumb { margin: 0; border: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.feature__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.feature__info { min-width: 0; }
.feature__cat { font-size: .78rem; font-weight: 600; color: var(--accent-hi); }
.feature h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.feature p { font-size: .88rem; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature .btn { flex: none; }
.feature__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--fg-3); }
.feature__foot span { display: inline-flex; align-items: center; gap: 6px; }
.feature__foot svg { width: 13px; height: 13px; color: var(--ok); }

/* ---------- Inicio: números ---------- */
.stats-band { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; color: var(--fg); line-height: 1.2; }
.stat span { font-size: .86rem; color: var(--fg-3); }

/* ---------- Inicio: categorías ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat-tile {
  position: relative; display: grid; gap: 2px; padding: 18px 44px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--fg); transition: border-color .2s, background .2s;
}
.cat-tile:hover { border-color: var(--accent-line); background: var(--surface-2); }
.cat-tile__name { font-weight: 600; font-size: 1rem; }
.cat-tile__count { font-size: .84rem; color: var(--fg-3); }
.cat-tile svg { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--fg-3); transition: transform .2s, color .2s; }
.cat-tile:hover svg { color: var(--accent-hi); transform: translate(3px, -50%); }

/* ---------- Inicio: cómo se instala ---------- */
.how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.how__step { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.how__n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px; border-radius: var(--r-sm); background: var(--accent-wash); color: var(--accent-hi); font-weight: 700; font-size: .9rem; }
.how__step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.how__step p { font-size: .92rem; }
.how .path { margin-top: 14px; }

/* ---------- Inicio: preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid__intro .lead { margin-top: 10px; }
.faq { max-width: none; margin: 0; }
.faq__item { border-color: var(--line); }
.faq__q { font-size: 1rem; padding-block: 18px; }

/* ---------- Inicio: banda de Discord ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); }
.cta-band .lead { margin-top: 8px; max-width: 56ch; }

/* ---------- Tarjetas de mod ---------- */
.mod-grid { gap: 16px; }
.mod-card { border-radius: var(--r-lg); background: var(--surface); border-color: var(--line); transition: border-color .2s; }
.mod-card:hover { border-color: var(--line-3); }
.mod-thumb { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.mod-card:hover .mod-thumb img { transform: none; }
.mod-tag, .mod-size { border-radius: var(--r-sm) !important; }
.mod-meta { font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.mod-body h3 { font-size: 1.02rem; }

/* ---------- Catálogo ---------- */
.lib, .lib-bar, .lib-search, .dropdown__btn { border-radius: var(--r-lg); }
.lib { background: var(--surface); box-shadow: none; }
.lib-search, .dropdown__btn { border-radius: var(--r); }

/* ---------- Varios ---------- */
.path { border-radius: var(--r); }
.path button { border-radius: var(--r-sm); }
.faq__icon { opacity: .7; }
.skeleton { border-radius: var(--r-lg); }
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer__disclaimer { border: 0; background: none; padding: 0; }
.idioma-flot { border-radius: var(--r); background: var(--surface-2); backdrop-filter: none; }
.cookies { border-radius: var(--r-lg); background: var(--surface-2); }
.visor { border-radius: var(--r-lg); }
.visor__botones button { border-radius: var(--r-sm); }

/* ---------- Celular ---------- */
@media (max-width: 960px) {
  .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero .display { max-width: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-band .btn { width: 100%; }
}

/* ---------- Etiquetas: sin letra mono en mayúsculas (estilo "terminal") ---------- */
.label, .community__stat span, .filter-group h4, .tl-day h3, .dropdown__btn small, .cookie-table th, .adm-stat small, .adm-card h4,
.mod-tag, .mod-size, .mod-meta, .crumbs, .mod-block__head h2, .mod-block__head span, .mod-block__head a, .files-more,
.mod-page .spec dt, .lib-bar .result, .lib-cols, .mod-row__name span {
  font-family: var(--font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
.mod-tag, .mod-size { font-size: .74rem !important; font-weight: 600; line-height: 1; padding: 5px 8px; border-color: var(--line-2) !important; color: var(--fg) !important; background: rgba(14, 15, 18, .8) !important; }
.mod-meta { font-size: .8rem !important; }
.crumbs { font-size: .84rem !important; }
.mod-block__head h2 { font-size: .95rem !important; font-weight: 600; color: var(--fg); }
.mod-block__head span, .mod-block__head a { font-size: .86rem !important; }
.mod-page .spec dt { font-size: .86rem !important; color: var(--fg-3); }
.lib-bar .result, .lib-cols { font-size: .8rem !important; }
.mod-row__name span { font-size: .78rem !important; }
.tl-day h3 { font-size: .9rem !important; font-weight: 600; color: var(--fg-2); }
.dropdown__btn small { font-size: .8rem !important; color: var(--fg-3); }
.filter-group h4, .adm-card h4, .adm-stat small, .community__stat span { font-size: .82rem !important; }
.cookie-table th { font-size: .82rem !important; }
.step-n { font-family: var(--font); }
.mod-row::before { display: none; }
.mod-row:hover { background: rgba(255, 255, 255, .025); }

/* Categorías: una sola fila en escritorio */
@media (min-width: 1000px) { .cat-tiles { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 999px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Guía, instalación y páginas especiales ---------- */
.hero .display, .display { text-shadow: none !important; }
.step { background: var(--surface); grid-template-columns: 40px 1fr; gap: 18px; }
.step-n { width: 34px; height: 34px; border-radius: var(--r-sm); transform: none !important; box-shadow: none !important; font-family: var(--font); font-size: .9rem; border: 0; }
.step-n span { transform: none; }
.steps-mini li::before { content: counter(paso); font-family: var(--font); font-size: .82rem; border-radius: var(--r-sm); box-shadow: none; }
.soon-badge { transform: none !important; box-shadow: none !important; border-radius: var(--r-lg) !important; background: var(--surface-2) !important; border: 1px solid var(--line-2) !important; animation: none !important; }
.soon-badge::before, .soon-badge::after { display: none !important; }
.soon-badge svg { transform: none; }

/* =========================================================
   v2.1 · más moderno: hero centrado con buscador, tipografía grande,
   tarjetas con algo de profundidad
   ========================================================= */
.display { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.hero--page .display { font-size: clamp(2rem, 3.8vw, 2.9rem); letter-spacing: -.04em; }

/* Hero */
.home-hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 0%, rgba(79, 140, 255, .09), transparent 70%), linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.home-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(64px, 10vw, 120px) clamp(48px, 7vw, 80px); }
.home-hero .eyebrow { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .02); font-size: .84rem; margin-bottom: 24px; }
.home-hero .display { max-width: 14ch; margin: 0 auto 20px; }
.home-hero .lead { max-width: 56ch; margin: 0 auto 32px; font-size: 1.1rem; }

.hero-search {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; padding: 7px 7px 7px 18px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 16px 40px -16px rgba(0, 0, 0, .6);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px rgba(79, 140, 255, .14), 0 16px 40px -16px rgba(0, 0, 0, .6); }
.hero-search > svg { width: 18px; height: 18px; flex: none; color: var(--fg-3); }
.hero-search input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: 1rem; }
.hero-search input::placeholder { color: var(--fg-3); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search .btn { height: 44px; padding: 0 20px; }

.hero-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hero-cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--fg-2); background: rgba(255, 255, 255, .015); transition: color .15s, border-color .15s, background .15s;
}
.hero-cat span { font-size: .76rem; color: var(--fg-3); }
.hero-cat:hover { color: var(--fg); border-color: var(--line-3); background: rgba(255, 255, 255, .04); }

.home-hero .trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 36px; padding-top: 0; border-top: 0; }
.home-hero .trust li { font-size: .9rem; }

/* Números: más grandes */
.stat { padding-block: 30px; }
.stat b { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.035em; }

/* Tarjetas de mod: un poco de profundidad al pasar el mouse */
.mod-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mod-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.mod-card:hover { transform: translateY(-3px); border-color: var(--line-3); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -18px rgba(0, 0, 0, .8); }
.mod-body { padding: 14px 16px 16px; }

/* Pasos, preguntas y Discord con el mismo acabado */
.how__step, .cta-band, .feature, .step, .lib { box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset; }
.how__step { transition: border-color .2s; }
.how__step:hover { border-color: var(--line-2); }
.cta-band { background: radial-gradient(80% 120% at 100% 0%, rgba(88, 101, 242, .12), transparent 60%), var(--surface); }
.header { background: rgba(14, 15, 18, .78); }

@media (max-width: 560px) {
  .hero-search { padding-left: 14px; }
  .hero-search .btn { padding: 0 14px; }
  .home-hero .trust { flex-direction: column; align-items: center; gap: 8px; }
}

/* =========================================================
   Selector de vehículo (autos): botón en la ficha + ventana con fotos
   ========================================================= */
.veh-pick { display: grid; gap: 8px; }
.veh-pick__label { font-size: .86rem; color: var(--fg-3); }
.veh-pick__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; text-align: left;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.veh-pick__btn:hover { border-color: var(--accent-line); }
.veh-pick__img { flex: none; width: 72px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #1A1B1E; display: grid; place-items: center; }
.veh-pick__img img { width: 100%; height: 100%; object-fit: cover; }
.veh-pick__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.veh-pick__txt b { font-size: .92rem; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.veh-pick__txt code, .veh-card__txt code { font-family: var(--mono); font-size: .74rem; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.veh-pick__cambiar { flex: none; font-size: .82rem; font-weight: 600; color: var(--accent-hi); }
.veh-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--fg-3); }
.veh-ph svg { width: 28px; height: 28px; }
.mod-page .veh-pick .arma-note { margin: 0; }

.veh-modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 6, 9, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .18s var(--ease);
}
.veh-modal.is-open { opacity: 1; }
.veh-modal[hidden] { display: none; }
.veh-modal__panel {
  display: flex; flex-direction: column; width: min(920px, 100%); max-height: min(780px, calc(100vh - 40px));
  border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  transform: translateY(8px); transition: transform .18s var(--ease);
}
.veh-modal.is-open .veh-modal__panel { transform: none; }
.veh-modal__head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; }
.veh-modal__head h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.veh-modal__head p { margin-top: 4px; font-size: .88rem; color: var(--fg-2); max-width: 60ch; }
.veh-modal__x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r); color: var(--fg-2); border: 1px solid var(--line-2); }
.veh-modal__x:hover { color: var(--fg); border-color: var(--line-3); }
.veh-modal__x svg { width: 16px; height: 16px; }
.veh-search { display: flex; align-items: center; gap: 10px; margin: 0 20px 14px; padding: 0 14px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.veh-search:focus-within { border-color: var(--accent-line); }
.veh-search svg { width: 16px; height: 16px; color: var(--fg-3); flex: none; }
.veh-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: .95rem; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; padding: 0 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.veh-card {
  position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); transition: border-color .15s, transform .15s var(--ease);
}
.veh-card[hidden] { display: none; }
.veh-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.veh-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.veh-card__img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 40%, #3a3b42, #1b1c20); }
.veh-card__img img { width: 100%; height: 100%; object-fit: contain; }
.veh-card__txt { display: grid; gap: 2px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.veh-card__txt b { font-size: .88rem; font-weight: 600; color: var(--fg); line-height: 1.3; }
.veh-card__ok { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: none; place-items: center; border-radius: 6px; background: var(--accent); color: #fff; }
.veh-card__ok svg { width: 13px; height: 13px; }
.veh-card[aria-pressed="true"] .veh-card__ok { display: grid; }
.veh-empty { grid-column: 1 / -1; padding: 24px 0; text-align: center; color: var(--fg-3); font-size: .9rem; }
@media (max-width: 560px) {
  .veh-modal { padding: 0; align-items: end; }
  .veh-modal__panel { max-height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .veh-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Que las tarjetas no se aplasten dentro de la grilla con scroll */
.veh-grid { min-height: 0; flex: 1 1 auto; align-content: start; grid-auto-rows: max-content; }
.veh-card__img, .veh-card__txt { flex: none; }

/* Barras de desplazamiento: finas y oscuras, con los colores de la web (sin flechas blancas de Windows) */
html, .veh-grid, .dropdown__menu, .user-menu, .drawer, textarea { scrollbar-width: thin; scrollbar-color: #36373A transparent; }
html { scrollbar-color: #36373A var(--bg); }
.veh-grid:hover { scrollbar-color: #48494C transparent; }

/* Selector: espacio arriba para que la tarjeta elegida (borde y elevación) no se corte */
.veh-grid { padding-top: 6px; padding-right: 14px; margin-right: 6px; }
.veh-search { margin-bottom: 8px; }
.veh-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* =========================================================
   Editor 3D de armas
   ========================================================= */
.ed-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hero-cat.is-on { color: var(--fg); border-color: var(--accent-line); background: var(--accent-wash); }
.ed { padding: 20px var(--gutter) 40px; max-width: 1560px; margin: 0 auto; }
.ed__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.ed__acciones { display: flex; gap: 8px; }
.ed__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
.ed__lienzo {
  position: relative; min-height: 560px; height: calc(100vh - 180px); max-height: 820px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: radial-gradient(ellipse 75% 70% at 50% 42%, #44464d 0%, #2b2d32 45%, #18191d 100%);
}
.ed__lienzo canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.ed__barra { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(14, 15, 18, .78); backdrop-filter: blur(8px); }
.ed__barra button { padding: 7px 11px; border-radius: 6px; font-size: .84rem; font-weight: 600; color: var(--fg-2); }
.ed__barra button:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.ed__barra button.is-on { color: var(--fg); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.ed__sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.ed__ayuda { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; padding: 6px 12px; border-radius: var(--r); background: rgba(14, 15, 18, .7); font-size: .78rem; color: var(--fg-2); white-space: nowrap; pointer-events: none; }
.ed__carga { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 12px; font-size: .9rem; color: var(--fg-2); }
.ed__carga i { display: block; width: 120px; height: 2px; position: relative; overflow: hidden; border-radius: 2px; background: rgba(236, 236, 238, .1); }
.ed__carga i::after { content: ''; position: absolute; top: 0; bottom: 0; width: 34%; background: var(--accent-hi); animation: barra-carga 1.25s var(--ease) infinite; }

/* Rombos sobre cada pieza */
.ed-marcas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ed-marca {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: auto; display: grid; place-items: center;
}
.ed-marca::before { content: ''; width: 10px; height: 10px; border: 2px solid #fff; background: rgba(14, 15, 18, .35); transform: rotate(45deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); transition: transform .15s, background .15s; }
.ed-marca:hover::before { transform: rotate(45deg) scale(1.25); }
.ed-marca.is-on::before { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ed-marca[hidden] { display: none; }

/* Panel */
.ed__panel { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 180px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.ed-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ed-tabs button { padding: 13px 10px; font-size: .88rem; font-weight: 600; color: var(--fg-3); border-bottom: 2px solid transparent; }
.ed-tabs button.is-on { color: var(--fg); border-bottom-color: var(--accent); }
.ed-tab { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #36373A transparent; }
.ed-tab[hidden] { display: none; }
.ed-lista { list-style: none; padding: 8px; display: grid; gap: 2px; }
.ed-item { display: flex; align-items: center; border-radius: var(--r); }
.ed-item:hover { background: rgba(255, 255, 255, .03); }
.ed-item.is-on { background: var(--accent-wash); }
.ed-item.is-off .ed-item__nombre { color: var(--fg-3); text-decoration: line-through; text-decoration-color: rgba(236, 236, 238, .25); }
.ed-item__nombre { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; text-align: left; font-size: .9rem; font-weight: 500; color: var(--fg); }
.ed-item__nombre span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-item__nombre small { margin-left: auto; font-size: .72rem; color: var(--accent-hi); }
.ed-rombo { flex: none; width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); color: var(--fg-3); }
.ed-item.is-on .ed-rombo { background: var(--accent); border-color: var(--accent); }
.ed-item__ojo { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--fg-3); }
.ed-item__ojo:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.ed-item__ojo svg { width: 16px; height: 16px; }
.ed-sel { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 14px; }
.ed-vacio { font-size: .86rem; color: var(--fg-3); padding: 4px 2px; }
.ed-sel__head b { display: block; color: var(--fg); font-size: 1rem; }
.ed-sel__head small { font-size: .8rem; color: var(--fg-3); }
.ed-campo { display: grid; gap: 8px; }
.ed-campo > span { font-size: .82rem; font-weight: 600; color: var(--fg-2); }
.ed-campo > span small { font-weight: 400; color: var(--fg-3); }
.ed-ejes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-ejes label { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.ed-ejes i { font-style: normal; font-size: .74rem; font-weight: 700; padding: 0 8px; }
.eje-x { color: #F0584F; } .eje-y { color: #3FB96F; } .eje-z { color: #6ba8ff; }
.ed-ejes input, .ed-escala input[type="number"] { width: 100%; min-width: 0; height: 34px; padding: 0 8px 0 0; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: .86rem; }
.ed-escala { display: grid; grid-template-columns: 1fr 72px; gap: 10px; align-items: center; }
.ed-escala input[type="range"] { accent-color: var(--accent); width: 100%; }
.ed-escala input[type="number"] { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); padding: 0 8px; }
.ed-botones { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-peligro { color: #F0584F !important; }
.ed-tipos { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0; }
.ed-buscar { margin: 12px; }
.ed-lib { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; }
.ed-att { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; transition: border-color .15s; }
.ed-att:hover { border-color: var(--accent-line); }
.ed-att__img.mod-thumb { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.ed-att__txt { display: grid; gap: 2px; padding: 8px 10px 10px; }
.ed-att__txt b { font-size: .82rem; font-weight: 600; color: var(--fg); line-height: 1.3; }
.ed-att__txt small { font-size: .72rem; color: var(--fg-3); }
@media (max-width: 1000px) {
  .ed__grid { grid-template-columns: 1fr; }
  .ed__lienzo { height: 60vh; min-height: 380px; }
  .ed__panel { max-height: none; }
}
.ed-aviso { position: relative; margin-bottom: 14px; padding: 14px 48px 14px 16px; border: 1px solid rgba(63, 185, 111, .3); border-radius: var(--r-lg); background: var(--ok-wash); font-size: .9rem; color: var(--fg-2); }
.ed-aviso b { color: var(--fg); }
.ed-aviso code { font-family: var(--mono); font-size: .82rem; color: var(--accent-hi); }
.ed-aviso ul { margin-top: 8px; display: grid; gap: 4px; padding-left: 18px; list-style: disc; font-size: .84rem; }
.ed-aviso__x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--fg-2); }
.ed-aviso__x svg { width: 15px; height: 15px; }

/* Catálogo: las filas por categoría no se estiran más que el catálogo (se desplazan) */
.lib > *, .shelves, .shelf { min-width: 0; }
.shelves { grid-template-columns: minmax(0, 1fr); }

/* Editor: piezas eliminadas */
.ed-elim { padding: 12px 10px 4px; font-size: .74rem; font-weight: 600; color: var(--fg-3); border-top: 1px solid var(--line); margin-top: 6px; }
.ed-item.is-elim .ed-item__nombre { color: var(--fg-3); cursor: default; }
.ed-item__rec { flex: none; padding: 6px 10px; margin-right: 4px; border-radius: 6px; font-size: .78rem; font-weight: 600; color: var(--accent-hi); }
.ed-item__rec:hover { background: var(--accent-wash); }

/* Editor: arma que reemplaza */
.ed-arma { display: flex; align-items: center; gap: 8px; margin-right: 6px; }
.ed-arma > span { font-size: .84rem; color: var(--fg-3); white-space: nowrap; }
.ed-arma .dropdown__btn { min-width: 200px; justify-content: space-between; }
.ed-arma .dropdown__menu { right: 0; left: auto; min-width: 260px; max-height: 340px; overflow-y: auto; z-index: 30; }
.ed-arma .dropdown__opt small { color: var(--fg-3); font-size: .76rem; }
@media (max-width: 700px) { .ed__acciones { flex-wrap: wrap; } .ed-arma { width: 100%; } .ed-arma .dropdown { flex: 1; } }

/* Barra de arriba: fondo sólido (no se ve lo que pasa por debajo) */
.header { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Editor: la lista de piezas entra entera en el panel (sin desplazarse hacia los costados) */
.ed-tab { overflow-x: hidden; }
.ed-lista { grid-template-columns: minmax(0, 1fr); }
.ed-item { min-width: 0; }
.ed-item__nombre { align-items: flex-start; }
.ed-item__nombre span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
.ed-item__nombre small { flex: none; margin-top: 2px; }
.ed-rombo { margin-top: 5px; }
.ed-sel__head b { overflow-wrap: anywhere; }

/* Catálogo: cada categoría es una grilla que baja en filas (sin desplazarse hacia el costado) */
.shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 14px; padding: 8px 18px 14px; }
.shelf__grid .tile { min-width: 0; }
.shelf__nav { display: none !important; }
.shelf__mas { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 36px); margin: 0 18px 18px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: .86rem; font-weight: 600; color: var(--fg-2); transition: color .15s, border-color .15s; }
.shelf__mas:hover { color: var(--fg); border-color: var(--line-3); }
.shelf__mas svg { width: 13px; height: 13px; }
/* Al pasar el cursor la foto sube un poco: espacio para que no se recorte */
.tiles { padding-top: 22px; }
.tile .mod-thumb { will-change: transform; }
