/* Theme variables: automatic follows device preference through the companion script. */
:root{--nm-page:#d2eaff;--nm-surface:#e4f2ff;--nm-surface-2:#d9edff;--nm-input:#f0f8ff;--nm-text:#112b49;--nm-secondary:#355775;--nm-border:#9dbfda;--nm-link:#065a98;--nm-focus:#076da8;--nm-error:#9d224c;--nm-success:#096746;color-scheme:light}
:root[data-nm-theme="night"]{--nm-page:#06172c;--nm-surface:#102b47;--nm-surface-2:#153552;--nm-input:#09213a;--nm-text:#eef7ff;--nm-secondary:#b4cee3;--nm-border:#375b78;--nm-link:#87d6ff;--nm-focus:#6ee8dc;--nm-error:#ffafc8;--nm-success:#77edbf;color-scheme:dark}
html[data-nm-theme] body:is(.nm-home,.nm-product,.nm-affiliates,.nm-utility){--fondo:var(--nm-page);--panel:var(--nm-surface);--panel2:var(--nm-surface-2);--linea:var(--nm-border);--texto:var(--nm-text);--suave:var(--nm-secondary);--campo:var(--nm-input);--turquesa:var(--nm-link);--rojo:var(--nm-error);background:var(--nm-page);color:var(--nm-text);color-scheme:inherit}
html[data-nm-theme] body a{color:var(--nm-link)}
html[data-nm-theme] :is(.nm-home .marca-texto strong,.nm-home .navegacion a,.nm-card-body h3,.nm-card-price,.nm-product h1,.nm-product .brand,.nm-affiliates .brand,.nm-utility .marca){color:var(--nm-text)}
html[data-nm-theme] :is(.nm-home .marca-texto small,.nm-small,.nm-strip span,.nm-card-format,.nm-product .desc,.nm-product .format,.nm-product .notice,.nm-product .status,.nm-product .test-note,.nm-product .crumb,.nm-three p,.nm-presentation details p,.nm-share p,.nm-affiliates .tile span,.nm-affiliates .note,.nm-affiliates .status,.nm-affiliates .commission span,.nm-product .foot,.nm-affiliates .foot,.nm-home .pie,.nm-home .asistente-respuesta,.nm-home .asistente-soporte){color:var(--nm-secondary)}
html[data-nm-theme] :is(.nm-home .panel,.nm-home .producto,.nm-catalog-card,.nm-home .nm-strip,.nm-product .card,.nm-product .checkout,.nm-product .top,.nm-affiliates .top,.nm-three article,.nm-presentation details,.nm-affiliates .panel,.nm-affiliates .tile,.nm-utility .panel){background:var(--nm-surface);border-color:var(--nm-border)}
html[data-nm-theme] :is(.nm-cover-frame,.nm-product .cover){background:var(--nm-surface-2)}
html[data-nm-theme] :is(.nm-search input,.nm-home input,.nm-home select,.nm-home textarea,.nm-affiliates input,.nm-affiliates select,.nm-affiliates textarea,.nm-utility input,.nm-utility select,.nm-utility textarea){background:var(--nm-input);color:var(--nm-text);border-color:var(--nm-border)}
html[data-nm-theme] .nm-product input{background:var(--nm-input)!important;color:var(--nm-text)!important;border-color:var(--nm-border)!important}
html[data-nm-theme] :is(.nm-search input,.nm-affiliates input,.nm-home input)::placeholder{color:var(--nm-secondary);opacity:1}
html[data-nm-theme] .nm-filters button{background:var(--nm-surface);color:var(--nm-text);border-color:var(--nm-border)}
html[data-nm-theme] .nm-filters button[aria-pressed=true]{background:#075592;color:#fff;border-color:#075592}
html[data-nm-theme] :is(.nm-card-topic,.nm-number,.nm-product .tag,.nm-affiliates .tile strong,.nm-affiliates .stats strong){color:var(--nm-link)}
html[data-nm-theme] :is(.nm-home .nm-eyebrow,.nm-product .nm-eyebrow){color:var(--nm-link)!important}
html[data-nm-theme] :is(.nm-btn.nm-outline,.nm-affiliates .nm-btn.nm-outline,.nm-home .boton,.nm-affiliates .secondary,.nm-utility .volver,.nm-utility .boton){background:var(--nm-surface-2);color:var(--nm-link);border-color:var(--nm-border)}
html[data-nm-theme] :is(.nm-home .boton-principal,.nm-home .navegacion .boton-principal){background:#075592;color:#fff}
html[data-nm-theme] .nm-product .checkout h2{color:var(--nm-text)}
html[data-nm-theme] .nm-product .yape-live{background:var(--nm-surface-2)}
html[data-nm-theme] .nm-product .yape-price{color:var(--nm-link)}
html[data-nm-theme] .nm-product .mp-pro-section{background:var(--nm-surface-2);border-color:var(--nm-border)}
html[data-nm-theme] .nm-product .mp-pro-section :is(h2,p,small,label){color:var(--nm-text)}
html[data-nm-theme] .nm-product .mp-pro-section .mp-pro-price{color:var(--nm-link)}
html[data-nm-theme] .nm-product .nm-share{background:var(--nm-surface-2);border-color:var(--nm-border)}
html[data-nm-theme] :is(.nm-affiliates .commission,.nm-promo,.nm-strip){border-color:var(--nm-border)}
html[data-nm-theme] :is(.nm-affiliates .error,.nm-home .error,.nm-utility .error){color:var(--nm-error)}
html[data-nm-theme] .nm-affiliates .ok{color:var(--nm-success)}
/* Preserve the high-contrast cover and the gold purchase actions in both modes. */
html[data-nm-theme] .nm-home .cabecera h1{color:#fff}html[data-nm-theme] .nm-home .cabecera h1 em{color:#61eadc}
html[data-nm-theme] .nm-home .cabecera .descripcion{color:#dbeafa}
html[data-nm-theme] .nm-home .cabecera .nm-eyebrow,html[data-nm-theme] .nm-affiliate-banner .nm-eyebrow{color:#ffd052!important}
html[data-nm-theme] .nm-home .cabecera .nm-small{color:#d0e3f3}
html[data-nm-theme] :is(.nm-home .cabecera .nm-btn:not(.nm-outline),.nm-home .nm-catalog-card .nm-btn,.nm-affiliate-banner .nm-btn,.nm-product .nm-actions .nm-btn:not(.nm-outline)){background:linear-gradient(110deg,#ffe27a,#ffc247);color:#172b45;border-color:#ecc14a}
html[data-nm-theme] .nm-home .cabecera .nm-outline{background:transparent;color:#fff;border-color:#6dacc8}
html[data-nm-theme] .nm-affiliate-banner p{color:#e0eef6}html[data-nm-theme] .nm-affiliate-banner .nm-small,html[data-nm-theme] .nm-affiliate-banner span{color:#c9e3ee}
html[data-nm-theme] .nm-affiliates .hero p{color:#dbeafa}html[data-nm-theme] .nm-affiliates .hero .accent{color:#ffd052}
/* The assistant is part of the page theme; payment provider pages remain external. */
html[data-nm-theme] :is(.nx-assistant,.nx-card,.nx-form,.nx-prompts button){background:var(--nm-surface);color:var(--nm-text);border-color:var(--nm-border)}
html[data-nm-theme] .nx-message{background:var(--nm-surface-2);color:var(--nm-text)}html[data-nm-theme] .nx-user{background:var(--nm-input)}
html[data-nm-theme] :is(.nx-meta,.nx-notice){color:var(--nm-secondary)}
html[data-nm-theme] .nx-form input{background:var(--nm-input);color:var(--nm-text);border-color:var(--nm-border)}
html[data-nm-theme] :is(.nx-card a,.nx-support){background:#075592;color:#fff}
.nm-theme-picker{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:7px 9px;border:1px solid var(--nm-border);border-radius:12px;background:var(--nm-surface);color:var(--nm-text);font:12px/1.5 Arial;max-width:100%}
.nm-theme-label{font-weight:700;margin-right:3px}.nm-theme-picker button{font:700 12px/1.5 Arial;cursor:pointer;border:1px solid transparent;border-radius:7px;min-height:36px;padding:7px 10px;background:transparent;color:var(--nm-text)}
.nm-theme-picker button[aria-pressed=true]{background:#075592;color:#fff;border-color:#075592}
.nm-theme-picker button:hover{border-color:var(--nm-border)}.nm-theme-picker button:focus-visible{outline:3px solid var(--nm-focus);outline-offset:2px}
.nm-theme-hint{font-size:11px;color:var(--nm-secondary);padding:0 4px}.nm-theme-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-nm-theme] .nm-home .barra{flex-wrap:wrap}html[data-nm-theme] :is(.nm-product .top .wrap,.nm-affiliates .top .wrap){flex-wrap:wrap}
@media(max-width:600px){.nm-theme-picker{width:100%;justify-content:center}.nm-theme-label{font-size:12px}.nm-theme-hint{display:none}}
.nm-theme-picker{width:280px;flex:0 0 auto}.nm-theme-picker button{flex:0 0 auto;width:54px;white-space:nowrap}.nm-theme-hint{display:none}@media(max-width:600px){.nm-theme-picker{width:100%}}
html[data-nm-theme="day"] body:is(.nm-home,.nm-utility){--amarillo:#725006}html[data-nm-theme="night"] body:is(.nm-home,.nm-utility){--amarillo:#ffd052}
html[data-nm-theme] .nm-home .ficha-ebook{background:var(--nm-surface-2);border-color:var(--nm-border)}html[data-nm-theme] .nm-home .ficha-ebook strong{color:var(--nm-link)}html[data-nm-theme] .nm-home .ficha-ebook ul{color:var(--nm-text)}
