:root {
    --edh-blue:#2656a1; --edh-ink:#131c2a; --edh-muted:#526077; --edh-line:#d7e0eb;
    --edh-paper:#fff; --edh-soft:#edf3fb; --edh-label:#e9edf1; --edh-yellow:#f5e21a;
}
:root[data-eldato-theme="dark"] {
    color-scheme:dark;
    --edh-blue:#a8caff; --edh-ink:#eef2fa; --edh-muted:#aab9cf; --edh-line:#34445a;
    --edh-paper:#17212e; --edh-soft:#25374e; --edh-label:#29394e;
    --ed-blue:var(--edh-blue); --ed-ink:var(--edh-ink); --ed-muted:var(--edh-muted);
    --ed-line:var(--edh-line); --ed-paper:#121923;
}

body.eldato-native .edh-top {
    border-bottom:0;
    color:var(--edh-muted);
}
body.eldato-native .edh-top::after,
body.eldato-native .edh-navbar:not(.edsite-is-compact)::before,
body.eldato-native .edh-navbar:not(.edsite-is-compact)::after {
    content:none;
}
body.eldato-native .edh-top>.edsite-container {
    justify-content:flex-start;
    min-height:50px;
    border-bottom:1px solid var(--edh-line);
    gap:14px;
}
.edh-theme {
    position:relative; display:flex; align-items:center; justify-content:flex-start; flex:none;
    width:58px; height:28px; padding:3px 5px; border-radius:18px;
    border:1px solid #547bb4; background:#2656a1; color:#fff;
}
.edh-theme span {width:19px; height:19px; border-radius:50%; background:#fff; transition:transform .2s}
.edh-theme svg {position:absolute; inset-block-start:50%; transform:translateY(-50%); pointer-events:none}
.edh-theme-sun {right:6px}
.edh-theme .edh-theme-moon {display:none; left:6px}
[data-eldato-theme="dark"] .edh-theme {background:#1c2940}
[data-eldato-theme="dark"] .edh-theme span {transform:translateX(27px)}
[data-eldato-theme="dark"] .edh-theme-sun {display:none}
[data-eldato-theme="dark"] .edh-theme .edh-theme-moon {display:block}
.edh-account {
    display:flex; flex:none; align-items:center; gap:12px; margin-left:auto; padding-right:12px;
}
.edh-register {
    color:var(--edh-blue); background:transparent; border:0; padding:4px 6px;
    font:inherit; white-space:nowrap;
}
.edh-account-login {
    display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:112px; height:30px;
    padding:0 11px; border:1px solid currentColor; border-radius:6px; background:var(--edh-paper);
    color:var(--edh-blue); white-space:nowrap; font:16px/1 Arial,Helvetica,sans-serif;
}
.edh-register:hover,.edh-account-login:hover {background:var(--edh-soft); color:var(--edh-blue)}

body.eldato-native .edh-navbar.edsite-nav-bar {border-block:0; background:var(--edh-paper)}
body.eldato-native .edh-navbar.edsite-nav-bar:not(.edsite-is-compact)>.edsite-container {
    display:grid; grid-template-columns:106px minmax(0,1fr) 106px; align-items:center;
    border-block:1px solid var(--edh-line); min-height:52px; padding-block:0; gap:8px;
}
body.eldato-native .edh-navbar:not(.edsite-is-compact) .edsite-social {
    justify-self:end; margin-left:0; gap:8px; color:var(--edh-blue);
}
body.eldato-native .edh-navbar .edsite-header-actions {gap:8px}
.edh-markets {width:100%; min-width:0; color:var(--edh-blue)}
.edh-market-window {position:relative; min-width:0; height:50px; overflow:hidden}
.edh-market-face {
    position:absolute; inset:0; display:flex; justify-content:center; align-items:center;
    min-width:0; white-space:nowrap; font:13px/1 Arial,Helvetica,sans-serif; color:var(--edh-ink);
}
.edh-market-face[aria-hidden="true"] {pointer-events:none}
.edh-market-face[hidden] {display:none!important}
.edh-market-phase {
    display:flex; align-items:center; flex:none; gap:5px;
    padding-right:10px; color:var(--edh-blue); font-size:12px; font-weight:800;
}
.edh-market-phase span {
    display:grid; place-items:center; width:17px; height:17px;
    border-radius:4px; background:var(--edh-soft); font-size:10px;
}
.edh-market-phase[data-phase="sell"] span {background:var(--edh-yellow); color:#1d3863}
.edh-market-cell {
    display:flex; align-items:center; flex:none; gap:4px; padding:1px 8px;
    border-left:1px solid var(--edh-line); color:var(--edh-muted); font-weight:700;
}
.edh-market-phase + .edh-market-cell {padding-left:0; border-left:0}
.edh-market-cell b {color:var(--edh-ink); font-weight:800; font-variant-numeric:tabular-nums}
.edh-market-cell img {width:22px; height:14px; object-fit:cover; flex:none; margin-right:2px}
.edh-market-face.edh-market-in {animation:edh-market-in .46s cubic-bezier(.18,.76,.25,1) both}
.edh-market-face.edh-market-out {animation:edh-market-out .38s ease both}
@keyframes edh-market-in {from {transform:translateY(100%);opacity:.4}}
@keyframes edh-market-out {to {transform:translateY(-100%);opacity:.35}}

.edh-services {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,312px);
    align-items:start; gap:9px; margin-top:15px; margin-bottom:0;
}
.edh-news {
    position:relative; display:flex; align-items:center; min-width:0; height:40px;
    border:1px solid var(--edh-line); border-radius:9px; background:var(--edh-paper);
}
.edh-ribbon {
    position:relative; z-index:1; display:flex; align-items:center; flex:none; gap:10px;
    min-height:45px; margin-left:-15px; padding:0 17px; white-space:nowrap;
    background:var(--edh-yellow); color:#1d4583; font-size:14px; box-shadow:3px 2px 4px #13274e24;
}
.edh-ribbon::after {
    content:""; position:absolute; top:100%; left:0;
    border-left:14px solid transparent; border-top:13px solid #1d4583;
}
.edh-news-window {flex:1; min-width:0; height:100%; overflow-x:auto; overflow-y:hidden; scrollbar-width:none}
.edh-news-window::-webkit-scrollbar {display:none}
.edh-news-track,.edh-news-group {display:flex; align-items:stretch; width:max-content; height:100%}
.edh-news-item {
    display:flex; flex:none; align-items:center; gap:8px; padding:0 12px;
    color:var(--edh-ink); border:0; background:transparent; white-space:nowrap; text-align:left;
}
.edh-news-item:hover {color:var(--edh-blue); background:var(--edh-soft)}
.edh-news-item:focus-visible {outline-offset:-3px}
.edh-news-item b {font-size:13px}
.edh-news-item small {color:var(--edh-blue); font-size:11px; font-weight:800}
.edh-news-separator {align-self:center; flex:none; width:5px; height:5px; border-radius:50%; opacity:.55; background:var(--edh-blue)}
.edh-news-pause {
    display:grid; place-items:center; flex:none; width:28px; height:30px; margin-right:3px; padding:0;
    background:transparent; border:0; border-radius:5px; color:var(--edh-blue);
}
.edh-news-pause:hover {background:var(--edh-soft)}
.edh-news-status {display:inline-flex; align-items:center; height:100%; padding:0 11px; font-size:12px; color:var(--edh-muted)}

.edh-weather {position:relative; z-index:50; min-width:0; color:var(--edh-blue)}
.edh-weather summary {
    display:flex; align-items:center; gap:9px; min-height:40px; padding-right:9px; min-width:0;
    border:1px solid var(--edh-line); border-radius:9px; background:var(--edh-paper); list-style:none; cursor:pointer;
}
.edh-weather summary::-webkit-details-marker {display:none}
.edh-weather[open] summary>svg {transform:rotate(180deg)}
.edh-weather-label {
    display:grid; place-items:center; align-self:stretch; padding:0 12px;
    border-radius:8px 0 0 8px; background:var(--edh-label); white-space:nowrap; font-size:14px;
}
.edh-weather-icon {display:grid; place-items:center; flex:none; width:24px; height:24px}
.edh-weather-icon svg {width:22px; height:22px}
.edh-weather-city {white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.edh-weather-range {margin-left:auto; display:flex; flex:none; gap:5px; white-space:nowrap; font-size:14px}
.edh-weather-range span {color:var(--edh-muted)}
.edh-weather-menu {
    position:absolute; top:calc(100% + 5px); right:0; left:0; padding:6px;
    border:1px solid var(--edh-line); border-radius:9px; background:var(--edh-paper); box-shadow:0 12px 28px #17243c26;
}
.edh-city,.edh-locate {
    display:flex; align-items:center; gap:8px; width:100%; min-height:42px;
    padding:7px 9px; border:0; border-radius:6px; background:transparent;
    color:var(--edh-blue); text-align:left; font-size:14px;
}
.edh-city:hover,.edh-locate:hover,.edh-city[aria-pressed="true"] {background:var(--edh-soft)}
.edh-city .edh-weather-range {font-size:13px}
.edh-locate {margin-top:5px; border-top:1px solid var(--edh-line); border-radius:0; min-height:36px; font-weight:700}
.edh-weather-source,.edh-location {margin:2px 5px 5px; color:var(--edh-muted); font-size:11px; line-height:1.45}
.edh-weather-source a {text-decoration:underline; color:var(--edh-blue)}

.edh-dialog {
    width:min(570px,calc(100% - 32px)); padding:22px; border:1px solid var(--edh-line);
    border-radius:12px; background:var(--edh-paper); color:var(--edh-ink); margin:auto;
}
.edh-dialog::backdrop {background:#121d31a0}
.edh-dialog-head {display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--edh-blue); font-size:13px; font-weight:700}
.edh-dialog-head button {height:32px; width:32px; border:0; border-radius:6px; background:var(--edh-soft); color:var(--edh-blue); font-size:20px; line-height:1}
.edh-dialog h2 {margin:10px 0 14px; font-family:Georgia,serif; font-size:30px; line-height:1.15}
.edh-dialog p {margin:0 0 14px}
.edh-dialog a {text-decoration:underline; margin-right:14px; color:var(--edh-blue)}
.edh-dialog [hidden],.edh-services [hidden] {display:none!important}

[data-eldato-theme="dark"] body.eldato-native {background:var(--ed-paper); color:var(--edh-ink)}
[data-eldato-theme="dark"] body.eldato-native .edh-top :is(.eldato-top-fecha,.eldato-top-label,.eldato-top-temas a) {color:var(--edh-muted)!important}
[data-eldato-theme="dark"] .edsite-masthead img,[data-eldato-theme="dark"] .edsite-sticky-brand img {filter:brightness(0) invert(1)}
[data-eldato-theme="dark"] body.eldato-native :is(.edsite-popular,.edsite-footer,.edsite-share a,.edsite-share button,.eldato-buscar-panel,.eldato-side-panel,.edsite-dock,.edmenu-rail) {
    background-color:var(--edh-paper); color:var(--edh-ink); border-color:var(--edh-line);
}
[data-eldato-theme="dark"] body.eldato-native :is(.edb-title,.edb-title a,.edb-excerpt,.edb-kicker,.edbo-title,.edw-title,.edsite-content,.edsite-card a,.edsite-footer h2) {color:var(--edh-ink)}
[data-eldato-theme="dark"] body.eldato-native :is(.eldato-buscar-btn,.edsite-original-sections) {
    background:transparent!important; color:var(--edh-blue)!important;
}

html[data-eldato-theme="dark"] body.eldato-native .edsite-main {
    color:var(--edh-ink);
    background-color:var(--ed-paper);
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-main :is(.edb,.eldato-portada,.edse,.edbo,.edb-digest-news,.edsite-card) {
    background-color:var(--ed-paper)!important;
    color:var(--edh-ink);
    border-color:var(--edh-line);
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-main :is(.eldato-portada-imgwrap,.edse-photo,.edb-preset-photo,.edsite-card-image) {
    background-color:var(--edh-paper)!important;
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-main .edca {
    --edca-line:var(--edh-line);
    --edca-ink:var(--edh-muted);
    border-color:var(--edh-line);
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-main .edca :is(.edca-label,.edca-author,.edca-action) {color:var(--edh-muted)}
/* The editorial plugin places its light-palette tokens inline on each model and its cards. */
html[data-eldato-theme="dark"] body.eldato-native .edsite-main :is(.edb,[data-edb-sector],.edb-preset-shell,.edb-preset-story,.edse,.eldato-portada) {
    --edb-title-color:var(--edh-ink)!important;
    --edb-heading-color:var(--edh-ink)!important;
    --edb-sector-title-color:var(--edh-ink)!important;
    --edb-preset-default-ink:var(--edh-ink)!important;
    --edb-preset-ink:var(--edh-ink)!important;
    --edb-volanta-color:var(--edh-ink)!important;
    --edb-sector-volanta-color:var(--edh-ink)!important;
    --edb-preset-volanta-ink:var(--edh-ink)!important;
    --edb-excerpt-color:var(--edh-muted)!important;
    --edb-sector-excerpt-color:var(--edh-muted)!important;
    --edb-preset-excerpt-color:var(--edh-muted)!important;
    --edb-preset-category-color:var(--edh-blue)!important;
    --edb-preset-read-color:var(--edh-blue)!important;
    --edb-accent-color:var(--edh-blue)!important;
    --edb-line-color:var(--edh-line)!important;
    --edb-sector-line-color:var(--edh-line)!important;
    --edb-sep-color:var(--edh-line)!important;
    --edb-editorial-background-color:var(--edh-paper)!important;
    --edb-preset-override-panel:var(--edh-paper)!important;
    --edse-text:var(--edh-ink)!important;
    --edse-muted:var(--edh-muted)!important;
    --edse-line:var(--edh-line)!important;
    --ed-border:var(--edh-line)!important;
    --ed-text:var(--edh-ink)!important;
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-main :is(.edbo,.edbo-device) {
    --edbo-background:var(--ed-paper)!important;
    --edbo-title-color:var(--edh-ink)!important;
    --edbo-author-color:var(--edh-ink)!important;
    --edbo-kicker-color:var(--edh-ink)!important;
    --edbo-credentials-color:var(--edh-muted)!important;
    --edbo-excerpt-color:var(--edh-muted)!important;
    --edbo-border-color:var(--edh-line)!important;
    --edbo-accent:var(--edh-blue)!important;
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-main :is(.edb-compact-title,.edb-compact-news .edb-copy a,.edb-compact-news h3,.edw-title,.edw-detail) {
    color:var(--edh-ink)!important;
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-main :is(.edw-card,.edw-reveal,.edbo-prev,.edbo-next,.edbo-nav) {
    background-color:var(--edh-paper);
    border-color:var(--edh-line);
    color:var(--edh-blue);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-fixed .edmenu-rail {
    --edmenu-blue:var(--edh-blue);
    background:var(--ed-paper);
    border-color:var(--edh-line);
    color:var(--edh-blue);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-rail :is(a,button) {
    background:transparent!important;
    box-shadow:none;
    color:var(--edh-blue);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-rail-toggle::before {background:transparent}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-rail-toggle:is(:hover,[aria-expanded="true"])::before {background:var(--edh-soft)}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-rail-logo {clip-path:url(#eldato-rail-logo-clip)}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-panel {
    --edmenu-blue:var(--edh-blue);
    background:var(--edh-paper);
    color:var(--edh-blue);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner :is(.edmenu-header,.edmenu-footer),
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner {background:var(--edh-paper)}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner :is(.edmenu-close,summary,.edmenu-row a,.edmenu-play) {
    color:var(--edh-blue);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner .edmenu-brand::before {
    background:url(eldato-logo.png) center/contain no-repeat;
    filter:brightness(0) invert(1);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner :is(.edmenu-close,.edmenu-row a,.edmenu-play)::before {
    display:none;
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner .edmenu-group summary {
    border-radius:7px;
    background:var(--edh-soft);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner .edmenu-group summary::before {
    background:currentColor;
    mask:var(--edh-group-icon) left calc(54 * var(--psd-unit)) center / 15px auto no-repeat;
}
[data-eldato-theme="dark"] .edmenu-group-territorio {--edh-group-icon:url(menu/territorio.png)}
[data-eldato-theme="dark"] .edmenu-group-actualidad {--edh-group-icon:url(menu/actualidad.png)}
[data-eldato-theme="dark"] .edmenu-group-comunidad {--edh-group-icon:url(menu/comunidad.png)}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner .edmenu-group summary::after {
    content:""; position:absolute; top:calc(50% - 3px); right:14px; left:auto;
    width:6px; height:6px; background:transparent; border:1px solid currentColor;
    border-width:0 1px 1px 0; transform:rotate(45deg);
}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner .edmenu-group:not([open]) summary::after {transform:rotate(-45deg)}
html[data-eldato-theme="dark"] body.eldato-native .edmenu-inner .edmenu-row a:hover {color:var(--edh-ink)}
html[data-eldato-theme="dark"] body.eldato-native #eldatoAbrirBuscar {color:var(--edh-blue)!important}
html[data-eldato-theme="dark"] body.eldato-native .edsite-dock-surface {
    --dock-blue:var(--edh-blue);
    background:var(--edh-paper);
    border-color:var(--edh-line);
}
html[data-eldato-theme="dark"] body.eldato-native .edsite-dock-action {color:var(--edh-blue)}
html[data-eldato-theme="dark"] body.eldato-native .edsite-dock-gum {background:var(--edh-soft)}

@media(max-width:1050px) {
    .edh-market-face {font-size:12px}
}
@media(max-width:767px) {
    body.eldato-native .edh-top {display:block!important}
    body.eldato-native .edh-top>.edsite-container {min-height:41px; gap:6px}
    body.eldato-native .edh-top .eldato-top-temas {display:none}
    .edh-theme {width:49px; height:24px; padding:2px 4px}
    .edh-theme span {width:16px; height:16px}
    .edh-theme svg {width:12px; height:12px}
    [data-eldato-theme="dark"] .edh-theme span {transform:translateX(23px)}
    .edh-account {gap:4px; padding-right:0}
    .edh-account-login {height:27px; min-width:0; padding:0 6px; gap:4px; font-size:12px}
    .edh-account-login svg {width:13px; height:14px}
    .edh-register {font-size:11px}
    body.eldato-native .edh-navbar.edsite-nav-bar:not(.edsite-is-compact)>.edsite-container {display:flex; gap:6px; padding-block:0}
    body.eldato-native .edh-navbar:not(.edsite-is-compact) .edsite-social {display:none!important}
    body.eldato-native .edh-navbar.edsite-is-compact .edh-markets {display:none}
    .edh-market-cell {padding-inline:6px}
    .edh-market-cell img {width:18px; height:12px; margin-right:0}
    .edh-market-phase {font-size:10px; padding-right:6px}
    .edh-services {display:none}
}
@media(max-width:420px) {
    .edh-market-face {font-size:11px}
    .edh-market-cell {gap:3px; padding-inline:4px}
    .edh-market-cell img {width:15px; height:10px}
    .edh-market-phase {gap:3px}
}
@media(max-width:350px) {
    .edh-market-face {font-size:10px}
    .edh-market-cell {gap:2px; padding-inline:3px}
}
@media(prefers-reduced-motion:reduce) {
    .edh-market-in,.edh-market-out {animation:none!important}
    .edh-theme span {transition:none}
}
