/* Danielectro · sistema visual "atardecer" (v2). Se carga DESPUÉS de app.css. Público y /user. No se inyecta en /admin. */
body{--night:#241552;--night-2:#2f1c68;--night-3:#40298a;--cream:#fff3e6;--dim:#b9aad6;--line:rgba(255,243,230,.14);
--pink:#ff3f8e;--orange:#ff8a3d;--sun:#ffcf4a;--teal:#14d2c3;--sky:#6fb1ff;--ok:#2ee6a6;--warn:#ffcf4a;--bad:#ff5468;
--sunset:linear-gradient(135deg,#ff3f8e 0%,#ff8a3d 70%,#ffcf4a 120%);
--disp:"Archivo","Arial Narrow",system-ui,sans-serif;--ui:"Archivo",system-ui,sans-serif;--mono:"DM Mono",ui-monospace,monospace;--r:14px}
body{background:linear-gradient(180deg,rgba(36,21,82,.08) 0%,rgba(36,21,82,.34) 42%,rgba(36,21,82,.78) 100%) fixed,url(../assets/bg-sunset.webp) center top/cover fixed,var(--night);color:var(--cream);font-family:var(--ui);font-size:16px;line-height:1.55}
body .row-container,body .main-menu,body footer{position:relative;z-index:1}
body a{color:var(--teal);text-underline-offset:3px}body a:hover{color:var(--sun)}
body :focus-visible{outline:2px solid var(--teal);outline-offset:2px}
body h1,body h2,body h3{font-family:var(--disp);font-variation-settings:"wdth" 118;font-weight:900;text-transform:uppercase;letter-spacing:.01em;line-height:1.02;color:var(--cream)}
body h2{font-size:clamp(1.7rem,4.5vw,2.6rem)}
body h4,body h5{font-family:var(--ui);font-weight:700;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--sun)}
/* navegación */
body .main-menu{background:rgba(48,28,108,.62);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
body .main-menu a{color:var(--cream);font-weight:600;font-size:.88rem;letter-spacing:.04em;text-decoration:none}
body .main-menu a:hover{color:var(--sun)}
body .main-menu li.active>a{color:var(--sun);box-shadow:0 2px 0 var(--pink)}
/* superficies */
body .block.item,body .card,body .well,body .panel{background:rgba(66,42,132,.62);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);border:1px solid var(--line);border-radius:var(--r);color:var(--cream);box-shadow:0 12px 32px rgba(8,3,24,.45)}
body .service-group .title{font-size:1.15rem;color:var(--cream);padding:18px 2px 8px;display:flex;align-items:center;gap:10px}
/* tablas */
body .table{color:var(--cream);background:transparent;border-color:var(--line)}
body .table thead th{background:var(--night-3);color:var(--dim);font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border-color:var(--line)}
body .table td,body .table th{border-color:var(--line);vertical-align:middle}
body .table-striped tbody tr:nth-of-type(odd){background:transparent}
body .table tbody tr:hover{background:rgba(255,63,142,.1)}
body .mono,body td.mono{font-family:var(--mono);font-size:.88em}
/* formularios */
body .form-control,body select,body textarea,body input[type=text],body input[type=password],body input[type=email]{background:rgba(34,19,80,.62);border:1.5px solid rgba(255,243,230,.3);color:var(--cream);border-radius:12px;min-height:46px}
body .form-control:focus{background:rgba(34,19,80,.9);border-color:var(--teal);box-shadow:0 0 0 3px rgba(20,210,195,.25);color:#fff}
body .form-control.is-invalid{border-color:var(--bad)}body .form-control.is-valid{border-color:var(--ok)}
body label{color:var(--cream);font-weight:600;font-size:.88rem}
body .help{color:var(--dim);font-size:.82rem;margin-top:6px}
body .help.ok{color:var(--ok)}body .help.bad{color:var(--bad)}
body ::placeholder{color:#8f80b4}
/* botones: liquid glass afinado. --t es el tinte RGB de cada variante; --mx/--my siguen al cursor (ui-motion.js) */
@property --a{syntax:"<angle>";inherits:false;initial-value:0deg}
body .btn{--t:255,63,142;--mx:50%;--my:-20%;position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:.78rem 1.7rem;border-radius:999px;border:0;color:#fff;font-weight:800;font-size:.84rem;letter-spacing:.09em;text-transform:uppercase;text-decoration:none;cursor:pointer;
background:radial-gradient(130px 70px at var(--mx) var(--my),rgba(255,255,255,.6),rgba(255,255,255,0) 72%),linear-gradient(135deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.04) 48%,rgba(var(--t),.46) 100%),rgba(24,12,56,.36);
-webkit-backdrop-filter:blur(16px) saturate(1.9) brightness(1.08);backdrop-filter:blur(16px) saturate(1.9) brightness(1.08);
box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 0 rgba(255,255,255,.14),inset 0 -14px 22px rgba(var(--t),.34),0 14px 30px rgba(14,6,40,.42),0 2px 6px rgba(14,6,40,.3);
text-shadow:0 1px 2px rgba(18,10,43,.6);-webkit-tap-highlight-color:transparent;
transition:transform .35s cubic-bezier(.3,1.7,.5,1),box-shadow .3s,filter .3s}
/* borde de vidrio: un destello recorre el contorno */
body .btn::before{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;padding:1.2px;pointer-events:none;
background:conic-gradient(from var(--a),rgba(255,255,255,.95),rgba(255,255,255,.12) 22%,rgba(255,255,255,.55) 50%,rgba(255,255,255,.12) 74%,rgba(255,255,255,.95));
-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
animation:glassSpin 7s linear infinite}
@keyframes glassSpin{to{--a:360deg}}
/* brillo diagonal: pasa solo cada pocos segundos y en cada hover */
body .btn::after{content:"";position:absolute;z-index:-1;top:-10%;bottom:-10%;width:34%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.62),transparent);transform:skewX(-20deg);pointer-events:none;animation:glassSheen 6.5s ease-in-out infinite}
@keyframes glassSheen{0%,72%{left:-60%}92%,100%{left:140%}}
body .btn:hover{color:#fff;transform:translateY(-3px) scale(1.04);filter:saturate(1.15);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.2),inset 0 -14px 22px rgba(var(--t),.5),0 20px 38px rgba(14,6,40,.5),0 0 34px rgba(var(--t),.55)}
body .btn:hover::after{animation:glassSheenNow .8s ease-out 1}
@keyframes glassSheenNow{from{left:-60%}to{left:140%}}
body .btn:active{transform:translateY(1px) scale(.95);transition-duration:.12s;box-shadow:inset 0 3px 10px rgba(14,6,40,.5),inset 0 -8px 16px rgba(var(--t),.3),0 4px 12px rgba(14,6,40,.4)}
body .btn:focus-visible{outline:0;box-shadow:inset 0 1px 0 #fff,0 0 0 3px rgba(20,210,195,.9),0 0 0 6px rgba(20,210,195,.25),0 14px 30px rgba(14,6,40,.42)}
body .btn .rip{position:absolute;z-index:0;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(255,255,255,.75),rgba(255,255,255,0) 68%);transform:scale(0);animation:rip .7s ease-out forwards}
@keyframes rip{to{transform:scale(1);opacity:0}}
body .btn:disabled,body .btn.disabled{opacity:.5;cursor:not-allowed;transform:none;filter:saturate(.5);animation:none}
body .btn:disabled::before,body .btn:disabled::after{animation:none}
body .btn-default,body .btn-secondary,body .btn-success,body .btn-info{--t:20,210,195}
body .btn-danger{--t:255,84,104}
body .btn-sm{min-height:36px;padding:.42rem 1.15rem;font-size:.74rem;letter-spacing:.07em}
@media(prefers-reduced-motion:reduce){body .btn::before,body .btn::after{animation:none}body .btn::after{display:none}body .btn:hover{transform:none}}
/* estados: punto + texto, color semántico separado del acento */
body .label,body .badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:.28em .8em;font-size:.76rem;font-weight:700;letter-spacing:.03em;border:1px solid}
body .label::before,body .badge::before{content:"";width:17px;height:17px;flex:none;background:var(--st) center/contain no-repeat}
body .label-success,body .badge-success{color:var(--ok);background:rgba(46,230,166,.12);border-color:rgba(46,230,166,.5)}
body .label-warning,body .badge-warning{color:var(--warn);background:rgba(255,207,74,.12);border-color:rgba(255,207,74,.5)}
body .label-danger,body .badge-danger{color:var(--bad);background:rgba(255,84,104,.12);border-color:rgba(255,84,104,.5)}
body .label-info,body .badge-info,body .label-primary{color:var(--sky);background:rgba(111,177,255,.12);border-color:rgba(111,177,255,.5)}
body .alert{border-radius:12px;border:1px solid;background:rgba(36,21,82,.78);padding:.85rem 1.1rem}
body .alert-message-danger,body .alert-danger{color:#ffb3bd;border-color:var(--bad)}
body .alert-success{color:#a8f5d8;border-color:var(--ok)}
body .alert-warning{color:#ffe49a;border-color:var(--warn)}
body .alert-info{color:#c4defe;border-color:var(--sky)}
body .modal-content{background:var(--night-2);border:1px solid var(--line);border-radius:18px;color:var(--cream)}
body .modal-header,body .modal-footer{border-color:var(--line)}
body .page-link{background:var(--night-2);border-color:var(--line);color:var(--cream)}
body .page-item.active .page-link{background:var(--sunset);border-color:transparent;color:#1a0b2e;font-weight:800}
body footer{color:var(--dim);font-size:.82rem}
/* iconos */
@media(prefers-reduced-motion:reduce){body *{transition:none!important}}
/* inicio: héroe de imagen con scroll animado, sin textos */
body .main-menu.over{position:sticky;top:0;z-index:5;background:transparent;border-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;transition:background .3s,border-color .3s}
body .main-menu.over.solid{background:rgba(48,28,108,.78);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-color:var(--line)}
body .hero2{position:relative;aspect-ratio:16/9;height:auto;max-height:min(88vh,820px);overflow:hidden;margin-top:calc(-1 * var(--mh,64px))}
body .hero2 .layer{position:absolute;inset:-4% 0;--pos:60% 50%;background-image:var(--hero);background-position:var(--pos,center);background-size:var(--size,cover);background-repeat:no-repeat;transform:translate3d(0,calc(var(--p,0)*18%),0) scale(calc(1 + var(--p,0)*.14));will-change:transform}
body .hero2::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(36,21,82,.3) 0%,transparent 28%,transparent 58%,var(--night) 100%);pointer-events:none}
body .hero2 .cue{position:absolute;left:50%;bottom:22px;width:26px;height:42px;margin-left:-13px;border:2px solid rgba(255,243,230,.85);border-radius:99px;z-index:2;opacity:calc(1 - var(--p,0)*4)}
body .hero2 .cue::before{content:"";position:absolute;left:50%;top:7px;width:4px;height:8px;margin-left:-2px;border-radius:4px;background:var(--cream);animation:cue 1.6s infinite}
@keyframes cue{0%{opacity:1;transform:translateY(0)}70%{opacity:0;transform:translateY(14px)}100%{opacity:0}}
body .rv{opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0)*90ms)}
body .rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){body .rv{opacity:1;transform:none}body .hero2 .layer{transform:none}body .hero2 .cue::before{animation:none}}
/* iconos propios (SVG): trazo degradado, acento turquesa, se dibujan al aparecer */
body .ico{width:56px;height:56px;display:block;overflow:visible;margin:0 0 10px}
body .ico .g,body .ico .t{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:ico-draw 1s cubic-bezier(.4,0,.2,1) forwards;animation-delay:calc(var(--k,0)*90ms)}
body .ico .g{stroke:url(#sg);stroke-width:2.6}
body .ico .t{stroke:var(--teal);stroke-width:2.4}
body .ico .d{fill:var(--sun);opacity:0;animation:ico-pop .5s ease forwards;animation-delay:.9s}
@keyframes ico-draw{to{stroke-dashoffset:0}}
@keyframes ico-pop{0%{opacity:0;transform:scale(.2);transform-box:fill-box;transform-origin:center}100%{opacity:1;transform:scale(1);transform-box:fill-box;transform-origin:center}}
body .block.item .ico{transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
body .block.item:hover .ico{transform:translateY(-3px) rotate(-4deg) scale(1.06)}
body .rv .ico .g,body .rv .ico .t,body .rv .ico .d{animation-play-state:paused}
body .rv.in .ico .g,body .rv.in .ico .t,body .rv.in .ico .d{animation-play-state:running}
body .ico.sm{width:34px;height:34px;margin:0}
body .sech{display:flex;align-items:center;gap:14px;margin-bottom:14px}body .sech h2{margin:0}body .sech .ico{margin:0}
/* barra superior pixel art */
body .main-menu .logo{font-family:"Pixelify Sans","Archivo",monospace;font-weight:700;font-size:1.25rem;letter-spacing:.02em;text-transform:uppercase;text-shadow:2px 2px 0 rgba(10,4,30,.7)}
body .pxb{--bv:#6b4bd0;--bd:#1d0f45;--bg:#3b257d;display:inline-flex;align-items:center;gap:9px;padding:9px 15px;border:3px solid #120a2b;background:var(--bg);color:var(--cream);font:700 14px/1 "Pixelify Sans","Archivo",monospace;letter-spacing:.05em;text-transform:uppercase;text-decoration:none;text-shadow:2px 2px 0 rgba(10,4,30,.55);box-shadow:inset 3px 3px 0 var(--bv),inset -3px -3px 0 var(--bd);clip-path:polygon(0 3px,3px 3px,3px 0,calc(100% - 3px) 0,calc(100% - 3px) 3px,100% 3px,100% calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px));cursor:pointer;transition:transform .08s steps(2),background .1s}
body .pxb:hover{--bg:#5a3aa8;--bv:#8a6bf0;color:var(--sun)}
body .pxb:active{transform:translateY(2px);box-shadow:inset 3px 3px 0 var(--bd),inset -3px -3px 0 var(--bv)}
body .main-menu li.active>.pxb{--bg:#e0407f;--bv:#ff8ab8;--bd:#8a1d4f;color:#fff}
body .pxi{width:22px;height:22px;image-rendering:pixelated;flex:none}
body .main-menu .bal.pxb{--bg:#2a1a62;color:var(--sun)}
body .main-menu ul{gap:10px;align-items:center}
/* buscador y chips: liquid glass */
body .search,body .services-search{position:sticky;top:0;z-index:3;display:grid;gap:12px;padding:12px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.05)),rgba(52,30,112,.34);border:1px solid rgba(255,255,255,.38);-webkit-backdrop-filter:blur(16px) saturate(1.7);backdrop-filter:blur(16px) saturate(1.7);box-shadow:inset 0 1.5px 1px rgba(255,255,255,.65),0 12px 30px rgba(14,6,40,.35)}
body .search .form-control,body .services-search .form-control{border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.42);box-shadow:inset 0 1px 1px rgba(255,255,255,.5);color:#fff;padding-left:20px}
body .search .form-control::placeholder,body .services-search .form-control::placeholder{color:rgba(255,243,230,.78)}
body .search .form-control:focus,body .services-search .form-control:focus{background:rgba(255,255,255,.22);border-color:#fff;box-shadow:inset 0 1px 1px rgba(255,255,255,.6),0 0 0 3px rgba(20,210,195,.35)}
body .chip{font:700 .78rem "Archivo",sans-serif;padding:8px 16px;border-radius:999px;color:var(--cream);cursor:pointer;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.04)),rgba(52,30,112,.3);border:1px solid rgba(255,255,255,.4);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 1px 1px rgba(255,255,255,.55);text-shadow:0 1px 2px rgba(18,10,43,.5);transition:transform .2s,background .2s}
body .chip:hover{transform:translateY(-1px);background:rgba(255,255,255,.2)}
body .chip[aria-pressed=true]{background:linear-gradient(135deg,#fff,#ffe3cf);color:#1a0b2e;text-shadow:none;border-color:#fff}
body .count{color:var(--cream);opacity:.85;font-size:.85rem}
body .eta{font:500 .8rem "DM Mono",monospace;padding:3px 9px;border-radius:6px;white-space:nowrap}
body .eta.i{background:rgba(46,230,166,.18);color:#5cf0be}body .eta.h{background:rgba(255,207,74,.18);color:#ffd96e}body .eta.d{background:rgba(255,138,61,.2);color:#ffa466}
/* saldo: tarjeta de vidrio con cifras que ruedan */
body .bal-card{background:linear-gradient(135deg,rgba(255,63,142,.5),rgba(255,138,61,.42) 70%,rgba(255,207,74,.35)),rgba(36,21,82,.5);border:1px solid rgba(255,255,255,.4);-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);box-shadow:inset 0 1.5px 1px rgba(255,255,255,.6),0 14px 34px rgba(14,6,40,.4);color:#fff}
body .bal-card h4{color:#fff6dc;text-shadow:0 1px 3px rgba(18,10,43,.6);opacity:1}
body .bal-card .big{font:500 clamp(2.2rem,9vw,3rem) "DM Mono",monospace;color:#fff;text-shadow:0 2px 12px rgba(18,10,43,.55);margin:6px 0 14px}
body .odo{display:inline-flex;font-variant-numeric:tabular-nums}
body .od{display:inline-block;height:1em;line-height:1em;overflow:hidden;vertical-align:top}
body .rl{display:flex;flex-direction:column;transition:transform 1.5s cubic-bezier(.2,.85,.2,1)}
body .rl i{display:block;height:1em;line-height:1em;font-style:normal}
body .oc{display:inline-block;line-height:1em}
body .stat b{display:block;font:500 clamp(1.5rem,6vw,1.9rem) "DM Mono",monospace;color:var(--sun)}
@media(prefers-reduced-motion:reduce){body .ico .g,body .ico .t{animation:none;stroke-dashoffset:0}body .ico .d{animation:none;opacity:1}}
body .bal-card .big{display:flex}
/* iconos animados de estado y de tiempo de entrega (assets/st-*.svg) */
body .label-success{--st:url(../assets/st-done.svg)}
body .label-info,body .label-primary{--st:url(../assets/st-progress.svg)}
body .label-warning{--st:url(../assets/st-wait.svg)}
body .label-danger{--st:url(../assets/st-reject.svg)}
body .label.st-paid{--st:url(../assets/st-paid.svg)}
body .label.st-pending{--st:url(../assets/st-pending.svg)}
body .badge-success{--st:url(../assets/st-done.svg)}body .badge-info{--st:url(../assets/st-progress.svg)}body .badge-warning{--st:url(../assets/st-wait.svg)}body .badge-danger{--st:url(../assets/st-reject.svg)}
body .eta{display:inline-flex;align-items:center;gap:7px}
body .eta::before{content:"";width:16px;height:16px;flex:none;background:var(--st) center/contain no-repeat}
body .eta.i{--st:url(../assets/st-stopwatch.svg)}
body .eta.i.inst{--st:url(../assets/st-bolt.svg)}
body .eta.h{--st:url(../assets/st-clock.svg)}
body .eta.d{--st:url(../assets/st-calendar.svg)}
@media(max-width:640px){
body .main-menu{padding:10px 12px;gap:8px;flex-wrap:nowrap}
body .main-menu .logo{font-size:1rem;white-space:nowrap}
body .main-menu ul{gap:6px;margin-left:auto;flex-wrap:nowrap}
body .pxb .pl{display:none}
body .pxb{padding:9px 10px}
body .main-menu .bal{display:none}
body h2{font-size:clamp(1.3rem,6.6vw,1.8rem);overflow-wrap:anywhere;hyphens:auto}
body .row-container{padding:16px 14px}
body .hero2{aspect-ratio:auto;max-height:none;height:min(74vh,640px);min-height:380px}
body .hero2 .layer{--pos:24% 4%;--size:auto 135%}
body .search,body .services-search{border-radius:20px;padding:10px}
body table.stack thead{display:none}
body table.stack tr{display:block;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;padding:8px 12px}
body table.stack td{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;padding:5px 0}
body table.stack td::before{content:attr(data-label);color:var(--dim);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}
body .sech .ico{width:44px;height:44px}
body{background:linear-gradient(180deg,rgba(36,21,82,.12) 0,rgba(36,21,82,.5) 140px,var(--night) 300px) no-repeat top/100% 300px,url(../assets/bg-sunset.webp) no-repeat center top/auto 300px,var(--night)}
}
/* Ajustes para el HTML real del panel. El constructor de páginas escribe estilos con clases muy específicas (.class-xxx .main-menu ...),
   por eso aquí se usa !important solo donde hace falta. */
html body{background:linear-gradient(180deg,rgba(36,21,82,.08) 0%,rgba(36,21,82,.34) 42%,rgba(36,21,82,.78) 100%) fixed,url(/assets/bg-sunset.webp) center top/cover fixed,#241552 !important;color:#fff3e6}
/* menú */
html body .main-menu,html body .main-menu>ul,html body .main-menu li,html body .main-menu .burger{background:transparent !important}
html body .main-menu>ul{gap:10px;justify-content:center;padding:12px 8px}
html body .main-menu li.active>a{--bg:#e0407f;--bv:#ff8ab8;--bd:#8a1d4f}
html body .main-menu a span{-webkit-text-fill-color:#fff3e6 !important;font-family:inherit;font-weight:700 !important;font-size:14px !important}
html body .main-menu li>ul{background:rgba(48,28,108,.94) !important;border:1px solid rgba(255,243,230,.14);border-radius:12px;padding:8px !important;gap:8px}
html body .main-menu li>ul li{padding:2px !important}
@media(max-width:768px){html body .main-menu>ul{background:rgba(36,21,82,.97) !important}html body .main-menu .burger{color:#fff3e6 !important}}
/* texto */
html body .row-container :is(p,span,label,td,th,li,small,h1,h2,h3,h4,h5,h6):not(.btn):not(.btn *):not(.label):not(.eta):not(.pxb):not(.pxb *):not(.alert *):not(.main-menu *):not(.nav-link.active *){color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .row-container a:not(.btn):not(.pxb):not(.pxb *){color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .row-container a:not(.btn):not(.pxb):hover{color:#ffcf4a !important;-webkit-text-fill-color:#ffcf4a !important}
html body .service-group .title{color:#fff3e6 !important}
/* tablas */
html body .table td,html body .table th{border-color:rgba(255,243,230,.14) !important}
html body .table-bordered,html body .table-bordered td,html body .table-bordered th{border-color:rgba(255,243,230,.14) !important}
html body .table thead th,html body .table thead th span{background:rgba(64,41,138,.55) !important;color:#b9aad6 !important;-webkit-text-fill-color:#b9aad6 !important}
html body tr.block.item{background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
html body .table tbody tr:hover{background:rgba(255,63,142,.1) !important}
html body .table .eta.i{color:#5cf0be !important;-webkit-text-fill-color:#5cf0be !important}
html body .table .eta.h{color:#ffd96e !important;-webkit-text-fill-color:#ffd96e !important}
html body .table .eta.d{color:#ffa466 !important;-webkit-text-fill-color:#ffa466 !important}
/* formularios */
html body .form-control,html body select.form-control,html body textarea.form-control{background:rgba(34,19,80,.62) !important;border:1.5px solid rgba(255,243,230,.3) !important;color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important;border-radius:12px !important}
html body .services-search .form-control{background:rgba(255,255,255,.14) !important;border-radius:999px !important}
html body .form-control::placeholder{color:rgba(255,243,230,.65) !important;-webkit-text-fill-color:rgba(255,243,230,.65) !important}
html body input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #2a1a62 inset !important;-webkit-text-fill-color:#fff3e6 !important}
/* botones del constructor: .btn.btn-x-editable */
html body .btn.btn-x-editable{--t:255,63,142;background:radial-gradient(130px 70px at var(--mx,50%) var(--my,-20%),rgba(255,255,255,.6),rgba(255,255,255,0) 72%),linear-gradient(135deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.04) 48%,rgba(var(--t),.46) 100%),rgba(24,12,56,.36) !important;border:0 !important;border-radius:999px !important;padding:.78rem 1.7rem !important;color:#fff !important;font-size:.84rem !important}
html body .btn.btn-x-editable span,html body .btn.btn-x-editable *{color:#fff !important;-webkit-text-fill-color:#fff !important}
html body .btn.btn-x-editable.forgot-password{--t:20,210,195}
html body .form-switch span{color:#fff3e6 !important}
html body .row-container .column,html body .row-container .row,html body .row-container .element{background-color:transparent !important;background-image:none !important}
@media(max-width:640px){html body{background:linear-gradient(180deg,rgba(36,21,82,.12) 0,rgba(36,21,82,.5) 140px,#241552 300px) no-repeat top/100% 300px,url(/assets/bg-sunset.webp) no-repeat center top/auto 300px,#241552 !important}}
/* productos: buscador y categorías de vidrio, tarjeta de producto */
html body .products-search{display:grid;padding:12px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.05)),rgba(52,30,112,.34);border:1px solid rgba(255,255,255,.38);-webkit-backdrop-filter:blur(16px) saturate(1.7);backdrop-filter:blur(16px) saturate(1.7);box-shadow:inset 0 1.5px 1px rgba(255,255,255,.65),0 12px 30px rgba(14,6,40,.35)}
html body .products-search .form-control{background:rgba(255,255,255,.14) !important;border:1px solid rgba(255,255,255,.42) !important;border-radius:999px !important;padding-left:20px !important}
html body .products-categories{display:flex !important;flex-direction:row !important;flex-wrap:wrap;gap:8px;background:transparent !important}
html body .products-categories .nav-link{background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.04)),rgba(52,30,112,.3) !important;border:1px solid rgba(255,255,255,.4) !important;border-radius:999px !important;padding:.55rem 1.2rem !important;font-weight:700;letter-spacing:.06em;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 1px 1px rgba(255,255,255,.55);transition:transform .2s}
html body .products-categories .nav-link:hover{transform:translateY(-1px)}
html body .products-categories .nav-link,html body .products-categories .nav-link span{color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .products-categories .nav-link.active{background:linear-gradient(135deg,#fff,#ffe3cf) !important;border-color:#fff !important}
html body .products-categories .nav-link.active,html body .products-categories .nav-link.active span{color:#1a0b2e !important;-webkit-text-fill-color:#1a0b2e !important}
html body .product-card{background:rgba(66,42,132,.62) !important;border:1px solid rgba(255,243,230,.14) !important;border-radius:16px !important;overflow:hidden;box-shadow:0 12px 32px rgba(8,3,24,.45);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);transition:transform .3s cubic-bezier(.3,1.5,.5,1),box-shadow .3s}
html body .product-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(8,3,24,.55),0 0 30px rgba(255,63,142,.25)}
html body .product-card img{border-radius:12px;padding:10px}
html body .product-card .card-body,html body .product-card .card-body *{color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .ribbon.ribbon-red{background:linear-gradient(135deg,#ff3f8e,#ff8a3d) !important;color:#fff !important}
html body .ribbon.ribbon-red:before,html body .ribbon.ribbon-red:after{border-top-color:#8a1d4f !important;border-left-color:transparent !important;border-right-color:transparent !important}
html body .product-card .card-header{background:transparent !important;border:0 !important}
html body .row-container .products-categories .nav-link.active.active,html body .row-container .products-categories .nav-link.active.active span{color:#1a0b2e !important;-webkit-text-fill-color:#1a0b2e !important}
html body .product-card .card-body,html body .product-card .card-footer{background:transparent !important}
/* ===== estructura como en la previsualización (la activa glue.js) ===== */
html body #header_wrapper>.row-container:first-child{display:none !important}
html body #header_wrapper .main-menu{display:flex !important;align-items:center;gap:14px;padding:14px 22px;justify-content:flex-start}
html body #header_wrapper .main-menu>ul{display:flex !important;position:static !important;height:auto !important;width:auto !important;margin:0 0 0 auto !important;padding:0 !important;gap:10px;flex-wrap:nowrap;align-items:center;justify-content:flex-end;background:transparent !important;transform:none !important}
html body .main-menu li{display:contents !important}
html body .main-menu li>ul{display:contents !important;background:none !important;border:0 !important;padding:0 !important}
html body .main-menu .dgroup,html body .main-menu .dhide,html body .dhide,html body li.dhide{display:none !important}
html body .main-menu .burger{display:none !important}
html body .dfilter{display:none !important}
html body .dlogo{font:700 1.25rem/1 "Pixelify Sans","Archivo",monospace;text-transform:uppercase;letter-spacing:.02em;text-decoration:none;background:linear-gradient(135deg,#ffcf4a,#ff8a3d 50%,#ff3f8e);-webkit-background-clip:text;background-clip:text;color:transparent !important;-webkit-text-fill-color:transparent !important;filter:drop-shadow(2px 2px 0 rgba(10,4,30,.7))}
html body .dsech{padding:24px 22px 0}
html body .dsech h2{margin:0}
html body .services-search .chips{display:flex;gap:8px;flex-wrap:wrap}
html body .service-group{background:rgba(66,42,132,.62);border:1px solid rgba(255,243,230,.14);border-radius:16px;padding:6px 14px 14px;margin:16px 0;-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);box-shadow:0 12px 32px rgba(8,3,24,.45)}
html body #body_wrapper>.row-container{padding-left:22px;padding-right:22px}
html body .dhome-wrap .hero2{margin-top:calc(-1 * var(--mh,64px))}
html body .dcards{padding:24px 22px}
html body .dcards .row>div{padding:8px}
html body.dhome #header_wrapper{position:sticky;top:0;z-index:60}
html body #footer_wrapper{color:#b9aad6;font-size:.82rem;text-align:center}
html body #footer_wrapper h1{font-size:1.1rem}
@media(max-width:640px){
  html body #header_wrapper .main-menu{padding:10px 12px;gap:8px}
  html body .main-menu .pl{display:none !important}
  html body .main-menu .pxb{padding:9px 10px}
  html body .dlogo{font-size:1rem;white-space:nowrap}
  html body .dsech .ico{width:44px;height:44px}
  html body .dsech h2{font-size:clamp(1.3rem,6.6vw,1.8rem)}
  html body #body_wrapper>.row-container{padding-left:14px;padding-right:14px}
}
/* correcciones tras la prueba en el sitio real */
html body .hero2{width:100% !important}
html body #header_wrapper .main-menu{width:100% !important;max-width:none !important;flex:1 1 100%}
html body #header_wrapper .element{display:block;width:100%}
@media(max-width:640px){
  html body #header_wrapper .main-menu>ul{flex-direction:row !important;opacity:1 !important;visibility:visible !important;pointer-events:auto !important;max-height:none !important;height:auto !important;overflow:visible !important;left:auto !important;right:auto !important}
}
/* móvil: menú de 5 botones en una fila y tarjetas de tabla legibles */
@media(max-width:640px){
  html body #header_wrapper .main-menu{gap:6px;padding:10px 10px}
  html body #header_wrapper .main-menu>ul{gap:5px}
  html body .main-menu .pxb{padding:7px 8px}
  html body .main-menu .pxi{width:20px;height:20px}
  html body .dlogo{font-size:.85rem}
  html body .service-group table.stack td::before{flex:none;white-space:nowrap}
  html body .service-group table.stack td:first-child::before{display:none}
  html body .service-group table.stack td:first-child{display:block}
}
/* flujo de página: el contenido empuja al pie, y tarjetas de formulario del tema */
html body #body_wrapper{display:block !important;height:auto !important;min-height:0 !important}
html body .dhome-wrap{display:block}
html body #footer_wrapper{margin-top:28px;padding-bottom:20px}
html body .dcards .block.item{padding:20px}
html body .dcards .block.item h4{margin:6px 0 8px}
html body .card:not(.product-card){background:rgba(66,42,132,.62) !important;border:1px solid rgba(255,243,230,.14) !important;border-radius:16px !important;box-shadow:0 12px 32px rgba(8,3,24,.45)}
/* campo IMEI del panel: el 15.º dígito lo calcula el panel y aquí se muestra */
html body .input-group{display:flex;flex-wrap:nowrap;align-items:stretch}
html body .input-group>.form-control{flex:1 1 auto;border-radius:12px 0 0 12px !important}
html body .input-group-append{display:flex}
html body .input-group-text{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14) !important;border:1.5px solid rgba(255,243,230,.3) !important;border-left:0 !important;color:#fff3e6 !important;font-family:"DM Mono",monospace;border-radius:0 12px 12px 0 !important;padding:0 14px}
html body .input-group-append .input-group-text:not(:last-child){border-radius:0 !important}
html body .imei-last-digit{color:#ffcf4a !important;min-width:46px;font-size:1.1rem}
html body .add-to-bulk{color:#14d2c3 !important;font-weight:700;text-decoration:none}
html body .form-control.is-valid{border-color:#2ee6a6 !important}
html body .form-control.is-invalid{border-color:#ff5468 !important}
html body .help.dimei{margin-top:8px;min-height:1.2em}
html body .card-header{background:transparent !important;border-bottom:1px solid rgba(255,243,230,.14) !important;font-weight:800;letter-spacing:.1em;text-transform:uppercase;font-size:.78rem}
html body .card-header,html body .card-header *{color:#ffcf4a !important;-webkit-text-fill-color:#ffcf4a !important}
html body .card-body,html body .card-body p,html body .card-body strong,html body .card-body small{color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .card-body a{color:#14d2c3 !important;-webkit-text-fill-color:#14d2c3 !important}
html body .element .card-body,html body .element .card-header{background-color:transparent !important}
html body .order-form,html body .order-form-container{background:transparent !important}
html body .order-form label{color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .order-form small{color:#b9aad6 !important;-webkit-text-fill-color:#b9aad6 !important}
/* el menú aplanado hereda pointer-events:none del desplegable oculto del constructor: se restablece para que los botones se puedan pulsar */
html body .main-menu,html body .main-menu *{pointer-events:auto !important}
html body .main-menu li>ul{opacity:1 !important;visibility:visible !important}
html body .main-menu a.pxb{cursor:pointer}
/* ===== menú con muchas opciones: grupos con desplegable ===== */
html body .main-menu.dgrouped li.dg{display:block !important;position:relative}
html body .main-menu.dgrouped li.dg>ul{display:none !important;position:absolute !important;top:calc(100% + 10px);right:0;left:auto;min-width:240px;flex-direction:column;align-items:stretch;gap:8px;padding:10px !important;background:rgba(48,28,108,.97) !important;border:1px solid rgba(255,243,230,.14) !important;border-radius:14px !important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 18px 40px rgba(8,3,24,.55);z-index:70;height:auto !important;width:auto !important}
html body .main-menu.dgrouped li.dg.open>ul,html body .main-menu.dgrouped li.dg:hover>ul{display:flex !important}
html body .main-menu.dgrouped li.dg>ul li{display:block !important}
html body .main-menu.dgrouped li.dg>ul .pxb{width:100%;justify-content:flex-start;white-space:nowrap}
html body .main-menu .dgbtn::after{content:"";width:0;height:0;border:4px solid transparent;border-top-color:currentColor;margin:4px 0 0 4px}
html body .main-menu li.dg.open>a.dgbtn{--bg:#e0407f;--bv:#ff8ab8;--bd:#8a1d4f}
@media(max-width:640px){
  html body .main-menu.dgrouped li.dg{position:static}
  html body .main-menu.dgrouped li.dg>ul{position:fixed !important;left:10px;right:10px;top:calc(var(--hh,64px) + 6px);min-width:0;max-height:calc(100vh - var(--hh,64px) - 24px);overflow:auto}
  html body .main-menu.dgrouped li.dg>ul .pxb .pl{display:inline !important}
  html body .main-menu .dgbtn::after{margin-left:2px}
}
/* v6: barra siempre encima, submenús que no se cierran al bajar el cursor, logo junto a los botones */
html body #header_wrapper{position:relative !important;z-index:9000 !important}
html body.dhome #header_wrapper{position:sticky !important;top:0}
html body #header_wrapper .main-menu{z-index:9001 !important;overflow:visible !important}
html body #header_wrapper,html body #header_wrapper .row-container,html body #header_wrapper .column,html body #header_wrapper .element{overflow:visible !important}
html body .main-menu.dgrouped li.dg>ul{z-index:9002 !important;top:calc(100% + 8px)}
html body .main-menu.dgrouped li.dg>ul::before{content:"";position:absolute;left:-12px;right:-12px;top:-16px;height:18px;background:transparent}
html body .main-menu.dgrouped li.dg:hover>ul{display:none !important}
html body .main-menu.dgrouped li.dg.open>ul{display:flex !important;animation:dgIn .16s ease-out}
@keyframes dgIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(min-width:641px){
  html body #header_wrapper .main-menu{justify-content:center !important;max-width:1440px !important;margin:0 auto !important;gap:26px}
  html body #header_wrapper .main-menu>ul{margin:0 !important}
}
/* v6: widgets del panel /user (DataTables, select2, desplegables) con el mismo tema */
html body .dt-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
html body .dt-buttons .btn,html body .dataTables_wrapper .btn-default,html body .dataTables_wrapper .buttons-collection{background:rgba(255,255,255,.12) !important;border:1px solid rgba(255,243,230,.38) !important;color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important;box-shadow:inset 0 1px 1px rgba(255,255,255,.45),0 6px 16px rgba(10,4,30,.3);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:999px !important}
html body .dt-buttons .btn *,html body .dataTables_wrapper .btn span{color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .dt-buttons .btn:hover{background:rgba(255,255,255,.2) !important;border-color:#fff !important}
html body .dataTables_wrapper span,html body .dataTables_info,html body .dataTables_length label,html body .reload-group{color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important}
html body .dataTables_filter input,html body .dataTables_length select{background:rgba(255,255,255,.12) !important;border:1px solid rgba(255,255,255,.4) !important;border-radius:999px !important;color:#fff !important;min-height:38px;padding:0 14px}
html body .dataTables_paginate .page-link{background:rgba(48,28,108,.85) !important;border:1px solid rgba(255,243,230,.18) !important;color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important;border-radius:10px !important;margin:0 3px}
html body .dataTables_paginate .page-item.active .page-link{background:linear-gradient(135deg,#ffcf4a,#ff8a3d 50%,#ff3f8e) !important;color:#1a0b2e !important;-webkit-text-fill-color:#1a0b2e !important;border-color:transparent !important;font-weight:800}
html body .dataTables_paginate .page-item.disabled .page-link{opacity:.45}
html body .dataTables_processing{background:rgba(48,28,108,.95) !important;color:#fff3e6 !important;border-radius:14px}
html body :is(.dt-button-collection,.dropdown-menu){background:rgba(48,28,108,.97) !important;border:1px solid rgba(255,243,230,.16) !important;border-radius:14px !important;box-shadow:0 18px 40px rgba(8,3,24,.55) !important;padding:8px !important;z-index:8000 !important}
html body :is(.dt-button-collection,.dropdown-menu) :is(a,button,.dropdown-item,.dt-button){background:transparent !important;color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important;border:0 !important;border-radius:10px !important;box-shadow:none !important;text-transform:none;letter-spacing:0;font-weight:600;justify-content:flex-start;min-height:34px;width:100%}
html body :is(.dt-button-collection,.dropdown-menu) :is(a,button):hover,html body .dt-button-collection .active{background:rgba(255,63,142,.28) !important}
html body .select2-container--default .select2-selection--single,html body .select2-container--default .select2-selection--multiple,html body .select2-container .select2-selection{background:rgba(34,19,80,.62) !important;border:1.5px solid rgba(255,243,230,.3) !important;border-radius:12px !important;min-height:46px;display:flex;align-items:center}
html body .select2-container .select2-selection__rendered{color:#fff3e6 !important;-webkit-text-fill-color:#fff3e6 !important;line-height:44px !important;padding-left:14px !important}
html body .select2-container .select2-selection__arrow{height:44px !important}
html body .select2-container .select2-selection__arrow b{border-top-color:#ffcf4a !important}
html body .select2-container .select2-selection__choice{background:rgba(255,63,142,.3) !important;border:1px solid rgba(255,138,184,.6) !important;color:#fff3e6 !important;border-radius:999px !important;padding:2px 10px !important}
html body .select2-container .select2-selection__choice__remove{color:#ffcf4a !important}
html body .select2-container--open .select2-selection{border-color:#14d2c3 !important;box-shadow:0 0 0 3px rgba(20,210,195,.25)}
html body .select2-dropdown{background:rgba(40,22,92,.98) !important;border:1px solid rgba(255,243,230,.2) !important;border-radius:12px !important;overflow:hidden;z-index:8500 !important;color:#fff3e6}
html body .select2-search__field{background:rgba(255,255,255,.1) !important;border:1px solid rgba(255,255,255,.35) !important;border-radius:10px !important;color:#fff !important}
html body .select2-results__option{color:#fff3e6 !important;background:transparent !important}
html body .select2-results__option--highlighted,html body .select2-results__option[aria-selected=true]{background:rgba(255,63,142,.35) !important;color:#fff !important}
html body .select2-results__group{color:#ffcf4a !important}
html body select option,html body select optgroup{background:#2a1863 !important;color:#fff3e6 !important}
html body .input-group-text{background:rgba(255,255,255,.12) !important;border:1.5px solid rgba(255,243,230,.3) !important;color:#ffcf4a !important}
html body .modal{z-index:9500 !important}html body .modal-backdrop{z-index:9400 !important}
html body .modal-content,html body .modal-header,html body .modal-footer{background:rgba(40,22,92,.98) !important;border-color:rgba(255,243,230,.14) !important;color:#fff3e6 !important}
html body .modal-content .close{color:#fff3e6 !important;text-shadow:none;opacity:.8}
html body .form-switch i{background:rgba(255,255,255,.16) !important;border:1px solid rgba(255,243,230,.35);box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}
html body .form-switch input:checked+i{background:linear-gradient(135deg,#14d2c3,#ff3f8e) !important;border-color:transparent}
html body .form-switch i::before{background:transparent !important}
html body .form-switch i::after{background:#fff3e6 !important;box-shadow:0 2px 6px rgba(10,4,30,.45) !important}
html body .dataTables_wrapper{background:rgba(36,21,82,.72) !important;border:1px solid rgba(255,243,230,.14);border-radius:18px;padding:16px !important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 18px 40px rgba(8,3,24,.35)}
html body .dataTables_wrapper table.dataTable tbody tr:hover{background:rgba(255,63,142,.12) !important}
