/* Mega Voice V3 — rediseño de estructura. Sin degradados, sin alterar la lógica JS/PHP. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');
html body,html body button,html body input,html body select,html body textarea{font-family:'DM Sans',system-ui,sans-serif!important;font-weight:400!important}
html body h1,html body h2,html body h3{font-weight:500!important;letter-spacing:-.025em!important}
/* Login: panel compacto centrado, sin el bloque gigante de V2 */
html body.mv-login-v2{background:#eef2f5!important;display:flex;align-items:center;justify-content:center;padding:22px!important;box-sizing:border-box}
.mv3-auth{width:min(100%,940px);background:#fff;border:1px solid #dce4eb;border-radius:18px;box-shadow:0 20px 65px rgba(23,43,62,.08);overflow:hidden;color:#1b2b3d}
.mv3-auth-head{height:68px;display:flex;align-items:center;gap:11px;padding:0 30px;border-bottom:1px solid #e8edf2;background:#fff}
.mv3-auth-head img{width:36px;height:36px;object-fit:contain}.mv3-auth-head strong{display:block;font-size:16px;font-weight:600}.mv3-auth-head small{display:block;font-size:11px;color:#7d8b9a}
.mv3-auth-body{display:grid;grid-template-columns:.9fr 1.1fr;min-height:410px}
.mv3-intro{background:#e9f0f3;padding:42px 38px 32px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid #dce4e9}
.mv3-kicker{font-size:10px;letter-spacing:.14em;color:#47718a;font-weight:600!important}
.mv3-intro h1{font-size:clamp(26px,3vw,38px)!important;line-height:1.15!important;margin:17px 0 15px!important;color:#163448!important}
.mv3-intro p{font-size:13px;line-height:1.7;color:#607689;max-width:310px}
.mv3-intro-rule{height:1px;background:#cbd8e0;margin:25px 0 18px}.mv3-capabilities{display:grid;gap:11px;font-size:12px;color:#466479}
.mv3-form-panel{padding:38px clamp(30px,4vw,65px);display:flex;flex-direction:column;justify-content:center}
.mv3-form-panel h2{font-size:27px!important;color:#192d40!important;margin:10px 0 6px!important}.mv3-form-sub{font-size:12px;color:#7a8a99;margin:0 0 21px}
.mv3-form-panel form{display:flex;flex-direction:column;gap:8px}.mv3-form-panel label{font-size:12px;color:#4c5e70;margin-top:6px}
.mv3-form-panel input{height:42px;box-sizing:border-box;border:1px solid #d5dfe7!important;border-radius:8px!important;background:#fff!important;padding:0 12px!important;font-size:13px;color:#23394b;outline:none;width:100%}
.mv3-form-panel input:focus{border-color:#39728b!important;box-shadow:0 0 0 3px rgba(57,114,139,.10)!important}
.mv3-form-panel .pass-wrap{position:relative}.mv3-form-panel .pass-wrap input{padding-right:45px!important}.mv3-form-panel .pass-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0!important;background:transparent!important;padding:8px;color:#637b8b;cursor:pointer}
.mv3-login-btn{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:12px 15px;border:0;border-radius:8px;background:#214e65!important;color:#fff!important;font-size:13px;cursor:pointer}
.mv3-login-btn:hover{background:#183e52!important}.mv3-register{display:flex;gap:9px;justify-content:center;margin-top:17px;font-size:12px;color:#7b8b9a}.mv3-register a{color:#235b79;text-decoration:none}
.mv3-auth-foot{display:flex;justify-content:space-between;padding:13px 30px;border-top:1px solid #e8edf2;font-size:10px;color:#8a98a5}
/* Generador: disposición y densidad nuevas; voz como listado editorial */
html body .page{padding:22px clamp(16px,2.4vw,38px)!important}
html body .topbar{min-height:76px!important;padding:12px clamp(16px,2.4vw,38px)!important}
html body .topbar h1{font-size:22px!important;font-weight:500!important}
html body .zs-vista{margin:0 0 19px!important;padding:6px 0 12px!important;border-bottom:1px solid var(--mv3-line,#e2e8ee)!important}
html body .grid-2.gen-pasos{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr)!important;gap:22px!important;align-items:start!important}
html body .grid-2.gen-pasos>.stack{gap:20px!important}
html body .grid-2.gen-pasos .card{border-radius:12px!important;box-shadow:none!important;padding:20px!important;border:1px solid var(--mv3-line,#dce5ed)!important}
html body .card-head{padding-bottom:13px!important;margin-bottom:16px!important;border-bottom:1px solid var(--mv3-line,#e1e7ed)!important}
html body .card-head h2{font-size:16px!important;text-transform:none!important;letter-spacing:-.015em!important}
html body #voiceList.voice-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
html body #voiceList .mv-voice-card{display:flex!important;align-items:center!important;min-height:64px!important;padding:10px 14px!important;border-radius:9px!important;box-shadow:none!important;text-align:left!important;gap:12px!important}
html body #voiceList .mv-voice-photo{width:42px!important;height:42px!important;flex:0 0 42px!important}
html body #voiceList .voice-top{flex:1!important;min-width:0!important;display:flex!important;justify-content:space-between!important;align-items:center!important}
html body #voiceList .voice-desc{display:none!important}
html body #voiceList .voice-name{font-size:13px!important;font-weight:500!important}
html body #voiceList .voice-meta{font-size:11px!important}
html body .seg{border-radius:9px!important}
html body .zs-vista-btn,html body .seg button{border-radius:7px!important}
/* Temas completos con contraste, evitando texto azul oscuro sobre fondo oscuro */
html[data-theme="light"]{--mv3-line:#dce5ed;--mv3-bg:#f3f6f8;--mv3-panel:#fff;--mv3-text:#1c3042;--mv3-muted:#64798c;--mv3-field:#f8fafb}
html[data-theme="dark"]{--mv3-line:#33475b;--mv3-bg:#101923;--mv3-panel:#1c2a38;--mv3-text:#eef4f9;--mv3-muted:#b4c4d2;--mv3-field:#152331}
html[data-theme="dark"][data-variante="cosmic"]{--mv3-line:#4b4566;--mv3-bg:#191827;--mv3-panel:#2a2840;--mv3-text:#f3f0fc;--mv3-muted:#c8c0e4;--mv3-field:#232139}
html[data-theme] body .page{background:var(--mv3-bg)!important;color:var(--mv3-text)!important}
html[data-theme] body .page .card{background:var(--mv3-panel)!important;border-color:var(--mv3-line)!important;color:var(--mv3-text)!important}
html[data-theme] body .page .card-head h2,html[data-theme] body .page .card label,html[data-theme] body .page .card .sub,html[data-theme] body .page .card .voice-name{color:var(--mv3-text)!important}
html[data-theme] body .page .card .tag,html[data-theme] body .page .card small,html[data-theme] body .page .card .voice-desc{color:var(--mv3-muted)!important}
html[data-theme] body .page input:not([type="range"]):not([type="checkbox"]),html[data-theme] body .page textarea,html[data-theme] body .page select{background:var(--mv3-field)!important;color:var(--mv3-text)!important;border-color:var(--mv3-line)!important}
html[data-theme] body .page input::placeholder,html[data-theme] body .page textarea::placeholder{color:var(--mv3-muted)!important;opacity:.9}
html[data-theme] body .page .zs-vista-btn:not(.on),html[data-theme] body .page .seg button:not(.on){color:var(--mv3-text)!important;background:var(--mv3-field)!important;border-color:var(--mv3-line)!important}
html[data-theme] body #voiceList .mv-voice-card{background:var(--mv3-field)!important;color:var(--mv3-text)!important;border:1px solid var(--mv3-line)!important}
html[data-theme] body #voiceList .mv-voice-card.on{background:var(--mv3-panel)!important;border:1.5px solid #4982c0!important;box-shadow:inset 3px 0 #4982c0!important}
html[data-theme] body #voiceList .mv-voice-card .voice-meta .tag{background:var(--mv3-panel)!important;color:var(--mv3-muted)!important}
html[data-theme] body #voiceList .mv-voice-card .prev{color:var(--mv3-text)!important}
html[data-theme="dark"] body .page .card .step-n,html[data-theme="dark"] body .page .card .tag-mute{background:var(--mv3-field)!important;color:var(--mv3-text)!important;border-color:var(--mv3-line)!important}
html[data-theme="dark"] body .page .card .on:not(.mv-voice-card){color:#fff!important}
@media(max-width:1050px){html body .grid-2.gen-pasos{grid-template-columns:1fr!important}}
@media(max-width:760px){html body.mv-login-v2{padding:12px!important}.mv3-auth-body{grid-template-columns:1fr}.mv3-intro{padding:24px 26px}.mv3-intro h1{font-size:26px!important;margin:9px 0!important}.mv3-intro p{margin:0}.mv3-intro-rule,.mv3-capabilities{display:none}.mv3-form-panel{padding:26px}.mv3-auth-head{padding:0 24px}.mv3-auth-foot{padding:13px 24px}.mv3-auth-foot span:last-child{display:none}html body .grid-2.gen-pasos .card{padding:14px!important}}

/* V4: Login editorial, fondo compuesto con formas sólidas (sin degradados). */
html body.mv-login-v2{min-height:100vh!important;margin:0!important;background:#e8eef2!important;padding:38px 20px!important;position:relative;isolation:isolate}
html body.mv-login-v2:before{content:"";position:fixed;z-index:-1;top:0;left:0;right:0;height:34vh;background:#142b3c;pointer-events:none}
html body.mv-login-v2:after{content:"";position:fixed;z-index:-1;bottom:6vh;right:5vw;width:190px;height:190px;border:1px solid #c5d3dc;border-radius:50%;pointer-events:none}
html body.mv-login-v2 .mv3-auth{width:min(100%,980px);border:1px solid #dce5eb;border-radius:16px;box-shadow:0 24px 65px rgba(17,38,53,.16);background:#fff}
html body.mv-login-v2 .mv3-auth-head{height:70px;background:#fff;padding:0 38px}
html body.mv-login-v2 .mv3-auth-body{grid-template-columns:1fr 1fr;min-height:445px}
html body.mv-login-v2 .mv3-intro{background:#18364a!important;border-right:0;padding:42px 45px;color:#e9f4f8;position:relative;overflow:hidden;justify-content:flex-start}
html body.mv-login-v2 .mv3-intro:after{content:"";display:block;position:absolute;right:-50px;bottom:-85px;width:245px;height:245px;border:1px solid rgba(210,234,246,.25);border-radius:50%;pointer-events:none}
html body.mv-login-v2 .mv3-intro .mv3-kicker{color:#9fc9d9!important;font-size:10px!important}
html body.mv-login-v2 .mv3-intro h1{color:#fff!important;font-size:clamp(30px,3.3vw,43px)!important;line-height:1.18!important;font-weight:400!important;letter-spacing:-.045em!important;margin:34px 0 18px!important}
html body.mv-login-v2 .mv3-intro p{color:#c5dce6!important;max-width:320px;font-size:13px!important;line-height:1.8!important}
html body.mv-login-v2 .mv3-intro-rule{background:#466275;margin-top:32px}
html body.mv-login-v2 .mv3-capabilities{color:#d6e7ee!important;font-size:12px!important;gap:14px}
html body.mv-login-v2 .mv3-form-panel{padding:44px clamp(30px,4.4vw,66px)!important}
html body.mv-login-v2 .mv3-form-panel h2{font-size:30px!important;font-weight:400!important;letter-spacing:-.04em!important;margin:13px 0 8px!important}
html body.mv-login-v2 .mv3-form-panel .mv3-kicker{color:#55758a!important}
html body.mv-login-v2 .mv3-form-panel input{background:#f7f9fb!important;height:46px!important;border-radius:8px!important;color:#18354b!important}
html body.mv-login-v2 .mv3-login-btn{height:46px!important;background:#17647a!important;border-radius:8px!important;font-weight:500!important}
html body.mv-login-v2 .mv3-auth-foot{background:#fff}
/* Carga de entrada: escenario de pantalla completa, sin caja flotante. */
html body .mv-entry-splash{background:#152d40!important;align-items:center!important;justify-content:center!important}
html body .mv-entry-box{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;width:min(520px,86vw)!important;padding:35px 12px!important}
html body .mv-entry-box img{max-height:92px!important;max-width:190px!important;margin:0 auto 28px!important;filter:drop-shadow(0 8px 18px rgba(0,0,0,.1))}
html body .mv-entry-name{color:#fff!important;font-size:32px!important;font-weight:400!important;letter-spacing:-.035em!important}
html body .mv-entry-sub{color:#9fc8d9!important;font-size:11px!important;font-weight:400!important;letter-spacing:.2em!important}
html body .mv-entry-track{background:#38566b!important;height:4px!important;margin:35px auto 13px!important;max-width:350px!important}
html body .mv-entry-track span{background:#79d0dc!important}
html body .mv-entry-pct{color:#d9ebf3!important;font-size:12px!important;font-weight:400!important}
/* Visibilidad real de controles en temas oscuros. */
html[data-theme="dark"] body .sidebar,html[data-theme="dark"] body .sidebar a,html[data-theme="dark"] body .sidebar span,html[data-theme="dark"] body .sidebar small{color:#263d54!important}
html[data-theme="dark"] body .sidebar a.active,html[data-theme="dark"] body .sidebar a.on{color:#8b203b!important}
html[data-theme="dark"] body .page #voiceList .voice-name,html[data-theme="dark"] body .page #voiceList .voice-top,html[data-theme="dark"] body .page #voiceList .voice-meta{color:#edf5fc!important}
html[data-theme="dark"] body .page #voiceList .mv-voice-card .prev{color:#e4eff7!important}
html[data-theme="dark"] body .page #voiceList .mv-voice-card.on .voice-name{color:#fff!important}
html[data-theme="dark"] body .page .card .hint,html[data-theme="dark"] body .page .card .muted,html[data-theme="dark"] body .page .card .sub{color:#bdccda!important}
html[data-theme="dark"] body .page .card button:not(.on):not(.primary):not(.btn-primary){color:#e3edf6!important}
html[data-theme="dark"] body .page .card button.on{color:#fff!important}
html[data-theme="dark"] body .page .card input[type="file"]{color:#e6eff7!important}
@media(max-width:740px){html body.mv-login-v2{padding:15px!important;align-items:flex-start!important}html body.mv-login-v2 .mv3-auth-body{grid-template-columns:1fr!important}html body.mv-login-v2 .mv3-intro{padding:24px 28px!important}html body.mv-login-v2 .mv3-intro h1{font-size:28px!important;margin:13px 0 9px!important}html body.mv-login-v2 .mv3-intro p{margin:0!important}html body.mv-login-v2 .mv3-form-panel{padding:30px 27px!important}html body.mv-login-v2 .mv3-auth-head{padding:0 27px!important}}

/* V5: sistema coherente de superficies; sin degradados. */
html[data-theme="light"] {--mv5-side:#ffffff;--mv5-side-text:#20384d;--mv5-side-line:#dce5ec;--mv5-side-hover:#edf4f8;--mv5-button:#f2f6f9;--mv5-button-text:#1a3449;--mv5-top:#ffffff;--mv5-top-text:#1d3347}
html[data-theme="dark"] {--mv5-side:#172635;--mv5-side-text:#e5eef6;--mv5-side-line:#354b60;--mv5-side-hover:#263c50;--mv5-button:#26394d;--mv5-button-text:#f0f6fc;--mv5-top:#152332;--mv5-top-text:#edf4fa}
html[data-theme="dark"][data-variante="cosmic"] {--mv5-side:#24223a;--mv5-side-text:#f2edff;--mv5-side-line:#4b4868;--mv5-side-hover:#35314d;--mv5-button:#393653;--mv5-button-text:#f6f1ff;--mv5-top:#242139;--mv5-top-text:#f7f2ff}
html[data-theme] body .sidebar,html[data-theme] body .sidebar .side-top,html[data-theme] body .sidebar .side-bottom,html[data-theme] body .sidebar .side-foot{background:var(--mv5-side)!important;border-color:var(--mv5-side-line)!important;color:var(--mv5-side-text)!important}
html[data-theme] body .sidebar :is(a,span,small,strong,b,.side-label,.side-section,.nav-section,.brand-name){color:var(--mv5-side-text)!important}
html[data-theme] body .sidebar a:hover{background:var(--mv5-side-hover)!important}
html[data-theme] body .sidebar a.active,html[data-theme] body .sidebar a.on{background:var(--mv5-side-hover)!important;color:var(--mv5-side-text)!important;border-left-color:#bb3853!important}
html[data-theme] body .sidebar :is(button,.side-toggle){color:var(--mv5-side-text)!important;border-color:var(--mv5-side-line)!important}
html[data-theme] body .topbar{background:var(--mv5-top)!important;border-bottom:1px solid var(--mv5-side-line)!important;color:var(--mv5-top-text)!important}
html[data-theme] body .topbar :is(h1,.sub,label,.tag){color:var(--mv5-top-text)!important}
html[data-theme] body .topbar #zsTema{background:var(--mv5-button)!important;color:var(--mv5-button-text)!important;border:1px solid var(--mv5-side-line)!important;min-width:118px}
html[data-theme] body .page :is(.btn-ghost,.btn-sm,.prev,.voice .prev,#btnProbar){background:var(--mv5-button)!important;color:var(--mv5-button-text)!important;border:1px solid var(--mv5-side-line)!important;opacity:1!important}
html[data-theme] body .page #voiceList .mv-voice-card .prev{background:var(--mv5-button)!important;color:var(--mv5-button-text)!important;border:1px solid var(--mv5-side-line)!important;opacity:1!important}
html[data-theme] body .page #voiceList .mv-voice-card .voice-name{color:var(--mv3-text)!important;opacity:1!important}
html[data-theme] body .page :is(.card .hint,.card .muted,.card .sub,.card .tag){color:var(--mv3-muted)!important;opacity:1!important}
html[data-theme] body .page .card .seg button.on,html[data-theme] body .page .card .btn-primary{color:#fff!important}
html[data-theme] body .page :is(.card,.voice-grid,.stack){min-width:0}
html[data-theme] body .page #resCard{margin-top:16px}
html[data-theme] body .page .tag-mute{font-weight:500!important}
html[data-theme] body .page .card-head :is(h2,h3){font-weight:500!important}
html[data-theme] body .sidebar .mv-brand-first{color:var(--mv5-side-text)!important}
html[data-theme] body .sidebar .mv-brand-second{color:#ad3550!important}
@media(max-width:800px){html body .topbar{flex-wrap:wrap!important;gap:9px!important}html body .topbar h1{font-size:18px!important}html body .grid-2.gen-pasos{grid-template-columns:minmax(0,1fr)!important}}
