/* GDM Dark Mode - módulo independiente */
html.gdm-dark-mode{color-scheme:dark}
html.gdm-dark-mode body{background:#0b1620;color:#e8f3fa}
html.gdm-dark-mode .site-header{background:rgba(10,24,36,.96);border-bottom-color:#1d3a4e;box-shadow:0 4px 18px rgba(0,0,0,.28)}
html.gdm-dark-mode .brand-wordmark{color:#e5f2f9}.gdm-dark-mode .brand-wordmark strong{color:#35a9ef}
html.gdm-dark-mode .nav a{color:#cfe3ef}.gdm-dark-mode .nav a.active{color:#35a9ef;border-bottom-color:#35a9ef}
html.gdm-dark-mode .search{background:#102431;border-color:#28506a}.gdm-dark-mode .search span{color:#bfe4f7}.gdm-dark-mode .search input{color:#eaf6fc}
html.gdm-dark-mode .menu-toggle{background:#163247;color:#e4f4fb}
html.gdm-dark-mode .nav{background:#0d202e}
html.gdm-dark-mode .nav a{border-color:#24465b;background:#102938}
html.gdm-dark-mode .hero{background:#102534;border-bottom-color:#21465c}
html.gdm-dark-mode .hero-art:after{background:linear-gradient(90deg,rgba(7,20,30,.98) 0%,rgba(7,20,30,.93) 65%,rgba(7,20,30,.25) 100%)}
html.gdm-dark-mode .hero-kicker{color:#e7f5fb}.gdm-dark-mode .hero-description{color:#cfe4ef}
html.gdm-dark-mode .quick-card{background:rgba(16,37,52,.96);border-color:#2a536b;box-shadow:0 12px 28px rgba(0,0,0,.3)}
html.gdm-dark-mode .quick-card b{color:#e9f6fc}.gdm-dark-mode .quick-card small{color:#aac3d1}.gdm-dark-mode .quick-icon{background:#153c55;color:#39a9ed}.gdm-dark-mode .quick-card i{background:#15384f;color:#45b0ee}
html.gdm-dark-mode .section-title-row h2{color:#e7f4fa}.gdm-dark-mode .section-title-row a,.gdm-dark-mode .text-link{color:#4db5ef}
html.gdm-dark-mode .directory-panel,.gdm-dark-mode .account-card,.gdm-dark-mode .admin-card,.gdm-dark-mode .story-card{background:#102431;border-color:#24485e;box-shadow:0 10px 25px rgba(0,0,0,.24)}
html.gdm-dark-mode .circle-img{background:#173446;border-color:#173446;box-shadow:0 0 0 2px #2b5870,0 6px 14px rgba(0,0,0,.25)}
html.gdm-dark-mode .circle-item strong,.gdm-dark-mode .story-card-body h3{color:#e8f4f9}.gdm-dark-mode .circle-item small,.gdm-dark-mode .story-card-body p,.gdm-dark-mode .form-help,.gdm-dark-mode .account-card>p{color:#9fb9c8}
html.gdm-dark-mode .social-card{background:#102431;border-color:#24485e;box-shadow:0 10px 25px rgba(0,0,0,.24)}
html.gdm-dark-mode .social-card small{color:#9fb9c8}.gdm-dark-mode .social-thumb{background:#17384c}
html.gdm-dark-mode footer{background:#06131e;color:#bcd4e1}
html.gdm-dark-mode .mystery p{color:#9fb9c8}
html.gdm-dark-mode input,html.gdm-dark-mode textarea,html.gdm-dark-mode select{background:#0d202d!important;color:#e7f4fa!important;border-color:#2a5268!important}
html.gdm-dark-mode input::placeholder,html.gdm-dark-mode textarea::placeholder{color:#7894a4}
html.gdm-dark-mode .mini-button{background:#132d3d;color:#e5f3f9;border-color:#2a5268}
html.gdm-dark-mode .role-pill{background:#17394d;color:#9dd8f5}
html.gdm-dark-mode .story-image-preview{background:#0d202d;border-color:#294f65}
html.gdm-dark-mode .story-cover{background:#173446}
html.gdm-dark-mode .gdm-search-results{background:rgba(12,29,42,.98);border-color:#285169;box-shadow:0 18px 45px rgba(0,0,0,.45)}
html.gdm-dark-mode .gdm-search-item{color:#e6f4fa}.gdm-dark-mode .gdm-search-item:hover{background:#163447}.gdm-dark-mode .gdm-search-copy small{color:#8ca8b8}.gdm-dark-mode .gdm-search-all{background:#14384e;color:#76c9f2}.gdm-dark-mode .gdm-search-empty,.gdm-dark-mode .gdm-search-loading{color:#9ab4c3}.gdm-dark-mode .gdm-search-empty strong{color:#e7f4fa}
/* Héroes internos */
html.gdm-dark-mode .artists-hero,html.gdm-dark-mode .entrepreneurs-hero,html.gdm-dark-mode .stories-hero{background-image:url('../assets/gdm-portada-maule.webp')!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-color:#102534!important}
html.gdm-dark-mode .artists-hero::before,html.gdm-dark-mode .entrepreneurs-hero::before,html.gdm-dark-mode .stories-hero::before{background:linear-gradient(90deg,rgba(4,17,26,.96) 0%,rgba(4,17,26,.82) 42%,rgba(4,17,26,.46) 78%,rgba(4,17,26,.28) 100%)!important}
html.gdm-dark-mode .page-hero-badge{background:rgba(15,39,54,.88);border-color:#31576b}.gdm-dark-mode .page-hero-badge span{border-color:#31576b}
/* Componentes de tarjetas */
html.gdm-dark-mode .entrepreneur-card,html.gdm-dark-mode .artist-card,html.gdm-dark-mode .archive-card{background:#102431!important;border-color:#24485e!important;box-shadow:0 10px 28px rgba(0,0,0,.25)!important}
html.gdm-dark-mode .entrepreneur-card h3,html.gdm-dark-mode .artist-card h3,html.gdm-dark-mode .archive-card h3{color:#e7f4fa}
html.gdm-dark-mode .entrepreneur-card p,html.gdm-dark-mode .artist-card p,html.gdm-dark-mode .archive-card p{color:#a3bac7}
html.gdm-dark-mode .filter-bar,html.gdm-dark-mode .filters,html.gdm-dark-mode .admin-toolbar{background:#102431!important;border-color:#24485e!important}
/* Control */
.gdm-theme-toggle{height:40px;min-width:40px;border:1px solid #9ccff0;border-radius:21px;background:#fff;color:#12334a;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 11px;cursor:pointer;font:inherit;font-size:16px;box-shadow:0 5px 14px rgba(24,88,124,.08);transition:.2s ease;z-index:70}
.gdm-theme-toggle:hover{transform:translateY(-1px)}
.gdm-theme-toggle span{font-size:11px;font-weight:800}
html.gdm-dark-mode .gdm-theme-toggle{background:#132f41;color:#e7f5fb;border-color:#2e617c;box-shadow:0 5px 14px rgba(0,0,0,.25)}
@media(max-width:820px){.gdm-theme-toggle{position:relative;margin-right:7px;width:42px;height:42px;padding:0}.gdm-theme-toggle span{display:none}.gdm-theme-toggle-wrap{display:flex;align-items:center;justify-content:flex-end}.site-header .menu-toggle{margin-left:0}.gdm-theme-toggle{order:1}.site-header .menu-toggle{order:2}}

/* =========================================================
   V14 — MODO OSCURO GLOBAL: EMPRENDEDORES + CUENTA + MÓVIL
   ========================================================= */
html.gdm-dark-mode .mobile-internal-search{background:#0b1620;border-bottom-color:#1d3a4e}
html.gdm-dark-mode .mobile-internal-search .search{background:#102431;border-color:#28506a}
html.gdm-dark-mode .mobile-internal-search .search span{color:#bfe4f7}
html.gdm-dark-mode .mobile-internal-search .search input{color:#eaf6fc}

/* Navegación móvil */
html.gdm-dark-mode .site-header .nav{background:#0d202e;border-top-color:#24465b;box-shadow:0 12px 25px rgba(0,0,0,.45)}
html.gdm-dark-mode .site-header .nav a{background:#102938;border-color:#24465b;color:#cfe3ef;box-shadow:0 5px 14px rgba(0,0,0,.2)}
html.gdm-dark-mode .site-header .nav a:hover{background:#163447;color:#5dbcf0}
html.gdm-dark-mode .site-header .menu-toggle{background:#163247;color:#e4f4fb}

/* Página Emprendedores */
html.gdm-dark-mode .entrepreneurs-section{background:#0b1620;color:#e8f3fa}
html.gdm-dark-mode .entrepreneurs-section .section-heading h2{color:#e7f4fa}
html.gdm-dark-mode .entrepreneurs-section .section-heading>p:last-child{color:#9fb9c8}
html.gdm-dark-mode .entrepreneur-categories{background:transparent}
html.gdm-dark-mode .category-filter{background:#102938;color:#cfe3ef;border-color:#2a536b}
html.gdm-dark-mode .category-filter:hover{background:#163447;color:#e7f5fb;box-shadow:0 8px 22px rgba(0,0,0,.25)}
html.gdm-dark-mode .category-filter.is-active{background:#1d73c9;color:#fff;border-color:#1d73c9}
html.gdm-dark-mode .entrepreneur-card{background:#102431!important;border-color:#24485e!important;box-shadow:0 10px 28px rgba(0,0,0,.3)!important}
html.gdm-dark-mode .entrepreneur-card::before{background:rgba(45,126,169,.16)}
html.gdm-dark-mode .entrepreneur-logo{background:#173446!important;border-color:#2a536b!important;box-shadow:0 0 0 1px #2a536b}
html.gdm-dark-mode .entrepreneur-logo .image-fallback{background:#173446;color:#d9edf7}
html.gdm-dark-mode .entrepreneur-name{color:#e7f4fa}
html.gdm-dark-mode .entrepreneur-person{color:#9fb9c8}
html.gdm-dark-mode .entrepreneur-more{color:#55b8ee}
html.gdm-dark-mode .entrepreneur-category{background:rgba(29,115,201,.18);color:#72c7f4}
html.gdm-dark-mode .entrepreneur-modal-backdrop{background:rgba(2,10,16,.72)}
html.gdm-dark-mode .entrepreneur-dialog{background:#102431;color:#e8f3fa;border:1px solid #24485e}
html.gdm-dark-mode .modal-close{background:#173447;color:#e7f5fb}
html.gdm-dark-mode .modal-logo-wrap{background:#173446;border-color:#2a536b}
html.gdm-dark-mode .modal-logo-wrap span{color:#76c9f2}
html.gdm-dark-mode .modal-copy h2{color:#e7f4fa}
html.gdm-dark-mode .modal-person{color:#63b9e9}
html.gdm-dark-mode .modal-description,.gdm-dark-mode .info-block p{color:#a3bac7}
html.gdm-dark-mode .info-label{color:#67bce9}
html.gdm-dark-mode .modal-link{background:#0d202d;border-color:#2a5268;color:#e4f3fa}
html.gdm-dark-mode .modal-link span{background:#173d53;color:#70c4ee}

/* Mi cuenta: fondo, tarjetas, formularios, listas y estados */
html.gdm-dark-mode .account-section{background:#0b1620!important;color:#e8f3fa}
html.gdm-dark-mode .account-section .section-heading h1{color:#e7f4fa}
html.gdm-dark-mode .account-section .section-heading>p:last-child{color:#9fb9c8}
html.gdm-dark-mode .account-card{background:#102431!important;border-color:#24485e!important;box-shadow:0 10px 25px rgba(0,0,0,.3)!important;color:#e8f3fa}
html.gdm-dark-mode .account-card h3,html.gdm-dark-mode .account-card h4{color:#e7f4fa}
html.gdm-dark-mode .account-card>p{color:#a3bac7}
html.gdm-dark-mode .account-top{border-bottom-color:#24485e}
html.gdm-dark-mode .account-avatar{background:#173446;border-color:#102431;box-shadow:0 0 0 2px #2b5870,0 10px 22px rgba(0,0,0,.25)}
html.gdm-dark-mode .role-pill{background:#17394d;color:#9dd8f5}
html.gdm-dark-mode .gdm-form label{color:#d7e9f2}
html.gdm-dark-mode .gdm-form input,html.gdm-dark-mode .gdm-form textarea,html.gdm-dark-mode .gdm-form select{background:#0d202d!important;color:#e7f4fa!important;border-color:#2a5268!important}
html.gdm-dark-mode .gdm-form input[type=file]{background:#102938!important;color:#d7e9f2!important}
html.gdm-dark-mode .gdm-form input::file-selector-button{background:#173d53;color:#e7f5fb;border:1px solid #2a617d;border-radius:8px;padding:6px 9px}
html.gdm-dark-mode .form-help,html.gdm-dark-mode .field-help{color:#8ea9b8!important}
html.gdm-dark-mode .story-image-preview{background:#0d202d;border-color:#294f65}
html.gdm-dark-mode .my-stories-block{border-top-color:#24485e}
html.gdm-dark-mode .admin-card{background:linear-gradient(180deg,#102938,#0d202d)!important;border-color:#28546b!important}
html.gdm-dark-mode .artist-admin-head p,html.gdm-dark-mode .entrepreneur-admin-head p{color:#9fb9c8}
html.gdm-dark-mode .story-card{background:#102431;border-color:#24485e;box-shadow:0 10px 25px rgba(0,0,0,.28)}
html.gdm-dark-mode .story-cover{background:#173446}
html.gdm-dark-mode .story-card-body h3{color:#e8f4f9}
html.gdm-dark-mode .story-card-body p{color:#9fb9c8}
html.gdm-dark-mode .empty-state{color:#9fb9c8}
html.gdm-dark-mode .mini-button{background:#132d3d;color:#e5f3f9;border-color:#2a5268}
html.gdm-dark-mode .mini-button:hover{background:#173d53}
html.gdm-dark-mode .entrepreneur-admin-list>*,html.gdm-dark-mode .artist-admin-list>*{color:#d7e9f2}
html.gdm-dark-mode .entrepreneur-admin-list .admin-small-button,html.gdm-dark-mode .artist-admin-list .admin-small-button{background:#132d3d;color:#e5f3f9;border-color:#2a5268}
html.gdm-dark-mode .form-message,html.gdm-dark-mode .entrepreneur-admin-message,html.gdm-dark-mode .artist-admin-message{color:#9fb9c8}

/* Inicio de sesión */
html.gdm-dark-mode .login-card,html.gdm-dark-mode .login-panel,html.gdm-dark-mode .auth-card{background:#102431!important;border-color:#24485e!important;color:#e8f3fa}
html.gdm-dark-mode .login-card h1,html.gdm-dark-mode .login-card h2,html.gdm-dark-mode .login-panel h1,html.gdm-dark-mode .auth-card h1{color:#e7f4fa}

/* Botones y pie global */
html.gdm-dark-mode .site-footer{background:#06131e;border-top-color:#1d3a4e;color:#bcd4e1}
html.gdm-dark-mode .site-footer strong,html.gdm-dark-mode .site-footer a{color:#e7f4fa}

/* Control móvil: el interruptor siempre queda junto al menú */
.gdm-theme-toggle-mobile{display:inline-flex!important;flex:0 0 auto}
@media(max-width:820px){
  .site-header .gdm-theme-toggle-mobile{width:42px;height:42px;margin-left:auto;margin-right:6px;padding:0;display:inline-flex!important;align-items:center;justify-content:center}
  .site-header .gdm-theme-toggle-mobile span{display:none}
}

/* =========================================================
   V15 — CORRECCIÓN VISUAL: ARTISTAS + HISTORIAS
   ========================================================= */
/* ARTISTAS: evitar fondos claros y títulos lavados */
html.gdm-dark-mode .artists-section{
  background:#0b1620!important;
  color:#e8f3fa;
}
html.gdm-dark-mode .artists-section .section-heading h2,
html.gdm-dark-mode .artists-section .section-heading h1{
  color:#eaf6fb!important;
}
html.gdm-dark-mode .artists-section .section-heading p,
html.gdm-dark-mode .artists-section .artist-person{
  color:#a9c0cd!important;
}
html.gdm-dark-mode .artists-hero{
  background-image:url('../assets/gdm-portada-maule.webp')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-color:#102534!important;
}
html.gdm-dark-mode .artists-hero h1{
  color:#f1f8fb!important;
}
html.gdm-dark-mode .artists-hero h1 span{
  color:#58b9ec!important;
}
html.gdm-dark-mode .artists-hero p:not(.eyebrow){
  color:#b7ccd7!important;
}
html.gdm-dark-mode .artists-hero .eyebrow,
html.gdm-dark-mode .artist-category{
  color:#5dbcf0!important;
}
html.gdm-dark-mode .artist-card{
  color:#e8f3fa!important;
}
html.gdm-dark-mode .artist-name{
  color:#f0f8fc!important;
}
html.gdm-dark-mode .artist-logo{
  background:#173446!important;
  border-color:#2a536b!important;
}
html.gdm-dark-mode .artist-more{
  color:#62bdf0!important;
}
html.gdm-dark-mode .artist-modal-backdrop{
  background:rgba(2,10,16,.78)!important;
}
html.gdm-dark-mode .artist-dialog{
  background:#102431!important;
  color:#e8f3fa!important;
  border:1px solid #24485e;
}
html.gdm-dark-mode .artist-dialog h2,
html.gdm-dark-mode .artist-dialog .modal-copy h2{
  color:#f1f8fb!important;
}
html.gdm-dark-mode .artist-dialog .modal-person{
  color:#67bce9!important;
}
html.gdm-dark-mode .artist-dialog .modal-description,
html.gdm-dark-mode .artist-dialog .modal-contact{
  color:#b4c9d5!important;
}
html.gdm-dark-mode .artist-dialog .modal-logo-wrap{
  background:#173446!important;
  border-color:#2a536b!important;
}
html.gdm-dark-mode .artist-dialog .modal-link{
  background:#0d202d!important;
  border-color:#2a5268!important;
  color:#dceef6!important;
}
html.gdm-dark-mode .artist-dialog .modal-link span{
  background:#173d53!important;
  color:#70c4ee!important;
}
html.gdm-dark-mode .artist-dialog .modal-close{
  background:#173447!important;
  color:#e7f5fb!important;
}

/* HISTORIAS: tarjetas y página individual */
html.gdm-dark-mode .stories-page,
html.gdm-dark-mode .stories-archive-section,
html.gdm-dark-mode .story-page{
  background:#0b1620!important;
  color:#e8f3fa;
}
html.gdm-dark-mode .stories-hero{
  background-image:url('../assets/gdm-portada-maule.webp')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-color:#102534!important;
}
html.gdm-dark-mode .stories-hero h1{
  color:#f1f8fb!important;
}
html.gdm-dark-mode .stories-hero>p:last-child{
  color:#b4c9d5!important;
}
html.gdm-dark-mode .archive-card,
html.gdm-dark-mode .story-detail-card,
html.gdm-dark-mode .story-not-found{
  background:#102431!important;
  border-color:#24485e!important;
  color:#e8f3fa!important;
}
html.gdm-dark-mode .archive-cover,
html.gdm-dark-mode .story-detail-image,
html.gdm-dark-mode .story-viewer-main{
  background:#173446!important;
}
html.gdm-dark-mode .archive-body h2,
html.gdm-dark-mode .story-detail-header h1,
html.gdm-dark-mode .story-not-found h1{
  color:#f1f8fb!important;
}
html.gdm-dark-mode .archive-body p:not(.archive-date),
html.gdm-dark-mode .archive-date,
html.gdm-dark-mode .story-detail-date,
html.gdm-dark-mode .story-detail-content,
html.gdm-dark-mode .story-not-found p{
  color:#b4c9d5!important;
}
html.gdm-dark-mode .back-link,
html.gdm-dark-mode .text-link{
  color:#62bdf0!important;
}
html.gdm-dark-mode .story-detail-content strong,
html.gdm-dark-mode .story-detail-content h2,
html.gdm-dark-mode .story-detail-content h3{
  color:#eaf6fb!important;
}
html.gdm-dark-mode .viewer-arrow{
  background:#173447!important;
  color:#e7f5fb!important;
  border:1px solid #2a536b;
}
html.gdm-dark-mode .viewer-thumb{
  background:#173446!important;
}
html.gdm-dark-mode .empty-state{
  color:#a9c0cd!important;
}

/* V15: cache-buster y pequeñas pantallas */
@media(max-width:760px){
  html.gdm-dark-mode .artists-section,
  html.gdm-dark-mode .stories-archive-section,
  html.gdm-dark-mode .story-page{background:#0b1620!important}
  html.gdm-dark-mode .artist-card,
  html.gdm-dark-mode .archive-card{box-shadow:0 10px 25px rgba(0,0,0,.3)!important}
  html.gdm-dark-mode .story-detail-header h1{font-size:42px;color:#f1f8fb!important}
}

/* META 9.1 — Sugerencias en modo oscuro */
html.gdm-dark-mode .feedback-dialog{background:#102431;border-color:#24485e;color:#e8f4f9}
html.gdm-dark-mode .feedback-dialog h2{color:#e8f4f9}html.gdm-dark-mode .feedback-intro{color:#9fb9c8}
html.gdm-dark-mode .feedback-close{background:#0a3042;color:#e8f4f9}
html.gdm-dark-mode .feedback-footer-button{background:rgba(255,255,255,.06);border-color:#28566d;color:#e8f4f9}
html.gdm-dark-mode .avatar-upload-control{background:#17394d;border-color:#28566d;color:#9dd8f5}
html.gdm-dark-mode .feedback-admin-item{background:#102431;border-color:#24485e}html.gdm-dark-mode .feedback-admin-item strong{color:#e8f4f9}html.gdm-dark-mode .feedback-admin-item small{color:#9fb9c8}

/* META9.4.8 — Historias/comentarios: contraste final en modo oscuro */
html.gdm-dark-mode .story-comments,
html.gdm-dark-mode .story-detail-card .story-comments{color:#e8f3fa}
html.gdm-dark-mode .story-comments .empty-state{color:#a9c0cd!important}
html.gdm-dark-mode .story-comments .form-message{color:#b7ccd7}
