/* Toggle Claro / Oscuro — UMCA / Valeven */
.umca-theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.umca-theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}
.umca-theme-toggle:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}
.umca-theme-toggle__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.umca-theme-toggle__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.umca-theme-toggle__label {
  white-space: nowrap;
}

html[data-theme="dark"] .umca-theme-toggle {
  background: #1e293b;
  color: #f8fafc;
  border-color: #475569;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Evitar solape: botón “subir” encima del toggle, redondo y cerca.
   No forzar display: Astra/JS controlan cuándo se muestra al hacer scroll. */
#ast-scroll-top,
#ast-scroll-top.ast-scroll-to-top-right,
#ast-scroll-top.ast-scroll-to-top-left,
.ast-scroll-to-top-right,
.ast-scroll-to-top-left,
#btn-scroll-top {
  bottom: 72px !important;
  right: 22px !important;
  z-index: 2147482990 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18) !important;
}
#ast-scroll-top {
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
}
/* Solo al mostrarse: centrar flecha sin dejarlo siempre visible */
#ast-scroll-top[style*="display: block"],
#ast-scroll-top[style*="display:block"],
#ast-scroll-top.ast-fadein,
body .ast-scroll-top-show #ast-scroll-top {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#ast-scroll-top .ast-icon,
#ast-scroll-top .ast-icon.icon-arrow,
#ast-scroll-top .ast-icon.icon-arrow svg {
  margin: 0 !important;
  display: block !important;
  width: 1.15em !important;
  height: 1.15em !important;
}
#ast-scroll-top .ast-icon.icon-arrow svg {
  transform: rotate(180deg) !important;
}

@media (max-width: 640px) {
  #ast-scroll-top,
  #ast-scroll-top.ast-scroll-to-top-right,
  #ast-scroll-top.ast-scroll-to-top-left,
  .ast-scroll-to-top-right,
  .ast-scroll-to-top-left,
  #btn-scroll-top {
    bottom: 64px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
}

/* Fondo global detrás del contenido (body / Astra / página) */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] #content,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-content,
html[data-theme="dark"] #content.site-content,
html[data-theme="dark"] .ast-container,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .ast-separate-container .ast-article-single,
html[data-theme="dark"] .ast-separate-container .site-main > *,
html[data-theme="dark"] .ast-plain-container .site-content {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #e2e8f0;
}

/* Cabecera Astra también oscura */
html[data-theme="dark"] body:has(.umca-container) #masthead,
html[data-theme="dark"] body:has(.umca-container) .site-header,
html[data-theme="dark"] body:has(.umca-container) .main-header-bar,
html[data-theme="dark"] body:has(.umca-container) .ast-primary-header-bar,
html[data-theme="dark"] body:has(.umca-container) .ast-above-header-bar,
html[data-theme="dark"] body:has(.umca-container) .ast-below-header-bar,
html[data-theme="dark"] body:has(.umca-admin-wrap) #masthead,
html[data-theme="dark"] body:has(.umca-admin-wrap) .site-header,
html[data-theme="dark"] body:has(.umca-admin-wrap) .main-header-bar,
html[data-theme="dark"] body:has(.umca-admin-wrap) .ast-primary-header-bar,
html[data-theme="dark"] body:has(.umca-admin-wrap) .ast-above-header-bar,
html[data-theme="dark"] body:has(.umca-admin-wrap) .ast-below-header-bar,
html[data-theme="dark"] #masthead,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .main-header-bar,
html[data-theme="dark"] .ast-primary-header-bar {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-bottom: 1px solid #334155 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] #masthead a,
html[data-theme="dark"] .site-header a,
html[data-theme="dark"] .main-header-menu a,
html[data-theme="dark"] .user-info-name,
html[data-theme="dark"] .user-info-role {
  color: #e2e8f0 !important;
}

/* Landing home */
html[data-theme="dark"] .valeventsport-home {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-dark: #020617;
  --text: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --border-light: #475569;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  background: var(--bg);
  color: var(--text);
}

/* Franja de checks + tarjetas blancas de la home */
html[data-theme="dark"] .valeventsport-home .strip {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .valeventsport-home .strip-item {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .valeventsport-home .strip-item svg {
  color: #86efac !important;
  stroke: #86efac !important;
}

html[data-theme="dark"] .valeventsport-home .step,
html[data-theme="dark"] .valeventsport-home .step-card,
html[data-theme="dark"] .valeventsport-home .included-card,
html[data-theme="dark"] .valeventsport-home .pricing-card,
html[data-theme="dark"] .valeventsport-home .faq-item,
html[data-theme="dark"] .valeventsport-home .audience-card,
html[data-theme="dark"] .valeventsport-home .why-card,
html[data-theme="dark"] .valeventsport-home .why-point,
html[data-theme="dark"] .valeventsport-home .why-stat-card,
html[data-theme="dark"] .valeventsport-home .vs-table,
html[data-theme="dark"] .valeventsport-home .vs-row,
html[data-theme="dark"] .valeventsport-home .credit-card,
html[data-theme="dark"] .valeventsport-home .contact-card,
html[data-theme="dark"] .valeventsport-home .testimonial-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .valeventsport-home .step h3,
html[data-theme="dark"] .valeventsport-home .step-card h3,
html[data-theme="dark"] .valeventsport-home .included-card h3,
html[data-theme="dark"] .valeventsport-home .why-point-text h4,
html[data-theme="dark"] .valeventsport-home .pricing-price,
html[data-theme="dark"] .valeventsport-home .faq-q,
html[data-theme="dark"] .valeventsport-home .audience-card h3,
html[data-theme="dark"] .valeventsport-home .section-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .valeventsport-home .step p,
html[data-theme="dark"] .valeventsport-home .step-card p,
html[data-theme="dark"] .valeventsport-home .included-card p,
html[data-theme="dark"] .valeventsport-home .why-point-text p,
html[data-theme="dark"] .valeventsport-home .faq-a,
html[data-theme="dark"] .valeventsport-home .faq-a p,
html[data-theme="dark"] .valeventsport-home .section-desc,
html[data-theme="dark"] .valeventsport-home .audience-card p {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .valeventsport-home .step-num,
html[data-theme="dark"] .valeventsport-home .step-icon,
html[data-theme="dark"] .valeventsport-home .step-icon svg,
html[data-theme="dark"] .valeventsport-home .why-point-icon,
html[data-theme="dark"] .valeventsport-home .why-point-icon svg {
  color: #86efac !important;
  stroke: #86efac !important;
  border-color: #334155 !important;
  background: #0f172a !important;
}

html[data-theme="dark"] .valeventsport-home .why-stat-card .big,
html[data-theme="dark"] .valeventsport-home .why-stat-card .medium {
  color: #f8fafc !important;
}

html[data-theme="dark"] .valeventsport-home .included-card .tag,
html[data-theme="dark"] .valeventsport-home .tag {
  background: #14532d !important;
  color: #bbf7d0 !important;
  border-color: #166534 !important;
}

html[data-theme="dark"] .valeventsport-home #how,
html[data-theme="dark"] html body section#how {
  background: #0f172a !important;
  box-shadow: 50vw 0 0 0 #0f172a, -50vw 0 0 0 #0f172a !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .valeventsport-home #included,
html[data-theme="dark"] .valeventsport-home #why-economic,
html[data-theme="dark"] .valeventsport-home #vs,
html[data-theme="dark"] .valeventsport-home #pricing,
html[data-theme="dark"] .valeventsport-home #audience,
html[data-theme="dark"] .valeventsport-home #faq,
html[data-theme="dark"] .valeventsport-home #contacto {
  background: #0f172a !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .valeventsport-home .vs-header,
html[data-theme="dark"] .valeventsport-home .vs-header-cell {
  background: #0f2748 !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .valeventsport-home .vs-row:hover {
  background: #334155 !important;
}

html[data-theme="dark"] .valeventsport-home .pricing-card .price,
html[data-theme="dark"] .valeventsport-home .pricing-card li,
html[data-theme="dark"] .valeventsport-home .pricing-card p {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .valeventsport-home .pricing-cta,
html[data-theme="dark"] .valeventsport-home .pricing-card .pricing-cta,
html[data-theme="dark"] .valeventsport-home .pricing-card.featured .pricing-cta {
  background: #10b981 !important;
  color: #0f172a !important;
  border: none !important;
}
html[data-theme="dark"] .valeventsport-home .pricing-cta:hover,
html[data-theme="dark"] .valeventsport-home .pricing-card .pricing-cta:hover,
html[data-theme="dark"] .valeventsport-home .pricing-card.featured .pricing-cta:hover {
  background: #34d399 !important;
  color: #0f172a !important;
}

/* Forzar texto legible en cualquier tarjeta blanca residual de la home */
html[data-theme="dark"] .valeventsport-home [style*="background: white"],
html[data-theme="dark"] .valeventsport-home [style*="background:#fff"],
html[data-theme="dark"] .valeventsport-home [style*="background: #fff"],
html[data-theme="dark"] .valeventsport-home [style*="background:#ffffff"],
html[data-theme="dark"] .valeventsport-home [style*="background: #ffffff"] {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

/* Landing legales / transparencia (aviso, cookies, privacidad, transparencia) */
html[data-theme="dark"] .valeventsport-transp {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-dark: #020617;
  --text: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --border-light: #475569;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .valeventsport-transp .transp-main,
html[data-theme="dark"] .valeventsport-transp .policy-section,
html[data-theme="dark"] .valeventsport-transp .transp-pill,
html[data-theme="dark"] .valeventsport-transp .toc-card,
html[data-theme="dark"] .valeventsport-transp .side-card,
html[data-theme="dark"] .valeventsport-transp .transp-side,
html[data-theme="dark"] .valeventsport-transp .faq-item {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .valeventsport-transp h1,
html[data-theme="dark"] .valeventsport-transp h2,
html[data-theme="dark"] .valeventsport-transp h3,
html[data-theme="dark"] .valeventsport-transp .transp-pill h3,
html[data-theme="dark"] .valeventsport-transp .side-card h3,
html[data-theme="dark"] .valeventsport-transp .faq-q,
html[data-theme="dark"] .valeventsport-transp .policy-section h2,
html[data-theme="dark"] .valeventsport-transp .policy-section h3 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .valeventsport-transp p,
html[data-theme="dark"] .valeventsport-transp li,
html[data-theme="dark"] .valeventsport-transp .transp-pill p,
html[data-theme="dark"] .valeventsport-transp .transp-main > .lead,
html[data-theme="dark"] .valeventsport-transp .faq-a,
html[data-theme="dark"] .valeventsport-transp .faq-a p,
html[data-theme="dark"] .valeventsport-transp .policy-section p,
html[data-theme="dark"] .valeventsport-transp .policy-section li,
html[data-theme="dark"] .valeventsport-transp .transp-hero p {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .valeventsport-transp .policy-section strong {
  color: #f8fafc !important;
}
html[data-theme="dark"] .valeventsport-transp .policy-section a,
html[data-theme="dark"] .valeventsport-transp a:not(.vfs-footer a) {
  color: #86efac !important;
}
html[data-theme="dark"] .valeventsport-transp .toc-link,
html[data-theme="dark"] .valeventsport-transp .side-link {
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .valeventsport-transp .toc-link:hover,
html[data-theme="dark"] .valeventsport-transp .side-link:hover,
html[data-theme="dark"] .valeventsport-transp .toc-link.is-active,
html[data-theme="dark"] .valeventsport-transp .side-link.is-active {
  background: #0f172a !important;
  color: #86efac !important;
}
html[data-theme="dark"] .valeventsport-transp .transp-pill-ico {
  background: rgba(134, 239, 172, 0.12) !important;
  color: #86efac !important;
}
html[data-theme="dark"] .valeventsport-transp .policy-note {
  background: #422006 !important;
  color: #fde68a !important;
  border-color: #a16207 !important;
}
html[data-theme="dark"] .valeventsport-transp .policy-table-wrap {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .valeventsport-transp .policy-table th {
  background: #0f2748 !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .valeventsport-transp .policy-table td {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .valeventsport-transp .policy-table tr:nth-child(even) td {
  background: #0f172a !important;
}
html[data-theme="dark"] .valeventsport-transp .section-tag {
  color: #86efac !important;
}
html[data-theme="dark"] body:has(.valeventsport-transp) #content.site-content,
html[data-theme="dark"] body:has(.valeventsport-transp) #content > .ast-container,
html[data-theme="dark"] body:has(.valeventsport-transp) #primary,
html[data-theme="dark"] body:has(.valeventsport-transp) article,
html[data-theme="dark"] body:has(.valeventsport-transp) .entry-content {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}

/* Panel UMCA */
html[data-theme="dark"] .umca-container,
html[data-theme="dark"] .umca-admin-wrap {
  background: transparent !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-header,
html[data-theme="dark"] .umca-card,
html[data-theme="dark"] .form-header,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .client-row,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-box,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .credits-section {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .credits-section {
  background: linear-gradient(180deg, #14532d 0%, #1e293b 100%) !important;
  border-color: #166534 !important;
}
html[data-theme="dark"] .entity-meta-item,
html[data-theme="dark"] .btn-edit-profile {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .credits-label {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-card h2,
html[data-theme="dark"] .form-title,
html[data-theme="dark"] .entity-info h1,
html[data-theme="dark"] .client-entity-name {
  color: #f8fafc !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .umca-events-page-size,
html[data-theme="dark"] .umca-pager-size select {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-page-btn,
html[data-theme="dark"] #events-pagination-controls button,
html[data-theme="dark"] .umca-pager-btn {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-page-btn.is-on,
html[data-theme="dark"] #events-pagination-controls button.is-on,
html[data-theme="dark"] .umca-pager-btn.is-on {
  background: #0052cc !important;
  color: #ffffff !important;
  border-color: #0052cc !important;
}
html[data-theme="dark"] .umca-pager-meta,
html[data-theme="dark"] #events-pagination-info {
  color: #94a3b8 !important;
}

/* Admin / diccionario: evitar blanco brillante y texto ilegible */
html[data-theme="dark"] .umca-admin-wrap .umca-section-title,
html[data-theme="dark"] .umca-admin-wrap .umca-card h2,
html[data-theme="dark"] .umca-admin-wrap .umca-card h3,
html[data-theme="dark"] .umca-admin-wrap .umca-header h1,
html[data-theme="dark"] .umca-admin-wrap .umca-page-heading h2,
html[data-theme="dark"] .umca-admin-wrap .umca-empty-module h3,
html[data-theme="dark"] .umca-admin-wrap .umca-stat strong,
html[data-theme="dark"] .umca-admin-wrap .umca-quick-link strong {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-section-sub,
html[data-theme="dark"] .umca-admin-wrap .umca-muted,
html[data-theme="dark"] .umca-admin-wrap .client-entity-cif,
html[data-theme="dark"] .umca-admin-wrap .dic-empty,
html[data-theme="dark"] .umca-admin-wrap .umca-orders-empty,
html[data-theme="dark"] .umca-admin-wrap label,
html[data-theme="dark"] .umca-admin-wrap .umca-page-heading p,
html[data-theme="dark"] .umca-admin-wrap .umca-stat span,
html[data-theme="dark"] .umca-admin-wrap .umca-quick-link span,
html[data-theme="dark"] .umca-admin-wrap .umca-empty-module p,
html[data-theme="dark"] .umca-admin-wrap .umca-code-source {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-nav {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-nav a {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-nav a:hover {
  background: #0f172a !important;
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-nav a.is-active {
  background: #004d8c !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-nav-toggle {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-nav-toggle:hover {
  background: #0f172a !important;
  border-color: #60a5fa !important;
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-stat,
html[data-theme="dark"] .umca-admin-wrap .umca-quick-link,
html[data-theme="dark"] .umca-admin-wrap .umca-empty-module {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-quick-link:hover {
  background: #0f172a !important;
  border-color: #437a00 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-quick-link strong {
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-stat strong {
  color: #60a5fa !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-code-summary span {
  background: #0f172a !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-code-filters input,
html[data-theme="dark"] .umca-admin-wrap .umca-code-filters select,
html[data-theme="dark"] .umca-admin-wrap .umca-event-filters input,
html[data-theme="dark"] .umca-admin-wrap .umca-event-filters select,
html[data-theme="dark"] .umca-admin-wrap .umca-search,
html[data-theme="dark"] .umca-admin-wrap .client-user select {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-event-doc--project {
  background: #0c1a33 !important;
  border-color: #1e40af !important;
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-event-doc--memory {
  background: #052e1c !important;
  border-color: #166534 !important;
  color: #86efac !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-event-doc--survey {
  background: #422006 !important;
  border-color: #b45309 !important;
  color: #fde68a !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-tools,
html[data-theme="dark"] .umca-admin-wrap .dic-toolbar,
html[data-theme="dark"] .umca-admin-wrap .umca-card--info,
html[data-theme="dark"] .umca-admin-wrap .umca-clients-empty {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-admin-wrap .dic-chip {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-admin-wrap .dic-chip.active {
  background: #004d8c !important;
  color: #ffffff !important;
  border-color: #004d8c !important;
}
html[data-theme="dark"] .umca-admin-wrap .btn:not(.btn-blue):not(.btn-green):not(.btn-red):not(.btn-pass) {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-admin-wrap .client-user-label {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-admin-wrap .wp-list-table th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-bottom-color: #334155 !important;
}
html[data-theme="dark"] .umca-admin-wrap .wp-list-table td {
  background: transparent !important;
  color: #e2e8f0 !important;
  border-bottom-color: #334155 !important;
}
html[data-theme="dark"] .umca-admin-wrap .wp-list-table.striped > tbody > :nth-child(odd) {
  background: rgba(15, 23, 42, 0.45) !important;
}
html[data-theme="dark"] .umca-admin-wrap .dic-type-tag,
html[data-theme="dark"] .umca-admin-wrap code {
  background: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-admin-wrap .badge-credits {
  background: #14532d !important;
  color: #bbf7d0 !important;
  border-color: #166534 !important;
}
html[data-theme="dark"] .umca-admin-wrap .badge-credits strong {
  color: #86efac !important;
}
html[data-theme="dark"] .umca-admin-wrap .badge-credits span {
  color: #86efac !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-credit-field-label {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-credit-qty-input {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-credit-importe {
  background: #0f172a !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-credit-importe-input {
  background: transparent !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-credit-importe-input::placeholder {
  color: #64748b !important;
  opacity: 1;
}
html[data-theme="dark"] .umca-admin-wrap .umca-admin-credit-importe-suffix {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-admin-wrap .client-avatar {
  background: #14532d !important;
  border-color: #166534 !important;
  color: #bbf7d0 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-status-pending {
  background: #78350f !important;
  color: #fde68a !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-status-paid {
  background: #14532d !important;
  color: #bbf7d0 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-status-cancelled {
  background: #334155 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-pager {
  border-top-color: #334155 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo__mark {
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo__pop {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo__pop::before {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo__pop strong {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo__desc,
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo__meta {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-admin-wrap .umca-sysinfo__meta {
  border-top-color: #334155 !important;
}
html[data-theme="dark"] .umca-admin-wrap .modal-content h3,
html[data-theme="dark"] .umca-admin-wrap .modal-content label,
html[data-theme="dark"] .modal-umca .modal-content h3 {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .modal-umca .modal-content {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .modal-umca .modal-content p {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .modal-umca .modal-content [style*="background:#f8fafc"],
html[data-theme="dark"] .modal-umca .modal-content [style*="background: #f8fafc"] {
  background: #0f172a !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .modal-umca .modal-content input,
html[data-theme="dark"] .modal-umca .modal-content select {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .modal-umca .modal-content small {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .modal-umca .modal-content hr {
  border-top-color: #334155 !important;
}
html[data-theme="dark"] .modal-umca .modal-content .btn:not(.btn-blue):not(.btn-green):not(.btn-red):not(.btn-pass) {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .modal-umca .modal-content .btn-blue,
html[data-theme="dark"] .umca-admin-wrap .btn-blue {
  background: #004d8c !important;
  color: #ffffff !important;
  border: none !important;
}
html[data-theme="dark"] .modal-umca .modal-content .btn-green,
html[data-theme="dark"] .umca-admin-wrap .btn-green {
  background: #437a00 !important;
  color: #ffffff !important;
  border: none !important;
}
html[data-theme="dark"] .modal-umca .modal-content .btn-red,
html[data-theme="dark"] .umca-admin-wrap .btn-red {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
}
html[data-theme="dark"] .modal-umca .modal-content .btn-pass,
html[data-theme="dark"] .umca-admin-wrap .btn-pass {
  background: #004d8c !important;
  color: #ffffff !important;
  border: none !important;
}

/* Historial de créditos (dashboard + admin) */
html[data-theme="dark"] .umca-history-entry {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-history-entry strong {
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-history-entry-summary {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-history-entry-date {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-history-close-btn {
  background: #334155 !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-history-close-btn:hover {
  background: #475569 !important;
}

/* Etiquetas / paneles claros en dashboard y resto UMCA */
html[data-theme="dark"] .umca-container code,
html[data-theme="dark"] .umca-admin-wrap code,
html[data-theme="dark"] .umca-container .badge,
html[data-theme="dark"] .umca-container [style*="background:#f1f5f9"],
html[data-theme="dark"] .umca-container [style*="background: #f1f5f9"],
html[data-theme="dark"] .umca-container [style*="background:#f8fafc"],
html[data-theme="dark"] .umca-container [style*="background: #f8fafc"] {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-container table th,
html[data-theme="dark"] .umca-container .umca-table th {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-container table td,
html[data-theme="dark"] .umca-container .umca-table td {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-container table tbody tr:nth-child(even) td,
html[data-theme="dark"] .umca-container .umca-table tbody tr:nth-child(even) td {
  background: #1e293b !important;
  background-color: #1e293b !important;
}
html[data-theme="dark"] .umca-container table,
html[data-theme="dark"] .umca-container .umca-table {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-container label,
html[data-theme="dark"] .umca-container .form-field label,
html[data-theme="dark"] .umca-container small,
html[data-theme="dark"] .umca-container .umca-section-sub {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-container .umca-billing-toggle,
html[data-theme="dark"] .umca-container .umca-billing-fields,
html[data-theme="dark"] .umca-container .umca-xfer-dl,
html[data-theme="dark"] .umca-container .umca-bank-frame,
html[data-theme="dark"] .umca-container .date-card,
html[data-theme="dark"] .umca-container .counter-item {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
/* Modal de créditos (fuera de .umca-container): facturación desplegable */
html[data-theme="dark"] #modalCreditRequest .umca-billing-toggle,
html[data-theme="dark"] #modalCreditRequest .umca-billing-fields,
html[data-theme="dark"] .modal-umca .umca-billing-toggle,
html[data-theme="dark"] .modal-umca .umca-billing-fields {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-container .umca-billing-toggle span,
html[data-theme="dark"] .umca-container .umca-billing-fields label,
html[data-theme="dark"] .umca-container .umca-billing-fields .form-field label,
html[data-theme="dark"] #modalCreditRequest .umca-billing-toggle span,
html[data-theme="dark"] #modalCreditRequest .umca-billing-fields label,
html[data-theme="dark"] #modalCreditRequest .umca-billing-fields .form-field label,
html[data-theme="dark"] #modalCreditRequest .form-field label,
html[data-theme="dark"] .modal-umca .umca-billing-toggle span,
html[data-theme="dark"] .modal-umca .umca-billing-fields label,
html[data-theme="dark"] .modal-umca .form-field label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-billing-fields input,
html[data-theme="dark"] #modalCreditRequest .umca-billing-fields select,
html[data-theme="dark"] .modal-umca .umca-billing-fields input,
html[data-theme="dark"] .modal-umca .umca-billing-fields select {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-billing-fields input::placeholder,
html[data-theme="dark"] .modal-umca .umca-billing-fields input::placeholder {
  color: #64748b !important;
}
html[data-theme="dark"] .umca-container .umca-credit-estimate,
html[data-theme="dark"] #modalCreditRequest .umca-credit-estimate,
html[data-theme="dark"] #modalCreditRequest .umca-credit-confirm-text,
html[data-theme="dark"] #modalCreditRequest .umca-credit-confirm-method {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-credit-estimate strong {
  color: #86efac !important;
}
html[data-theme="dark"] #modalCreditRequest .form-field small,
html[data-theme="dark"] #modalCreditRequest small {
  color: #94a3b8 !important;
}
html[data-theme="dark"] #modalCreditRequest .btn-umca,
html[data-theme="dark"] .modal-umca .btn-umca:not(.btn-umca-secondary) {
  background: #437a00 !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-umca.btn-umca-secondary {
  background: #e2e8f0 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
html[data-theme="dark"] .btn-umca.btn-umca-secondary,
html[data-theme="dark"] .modal-umca .btn-umca.btn-umca-secondary,
html[data-theme="dark"] #modalCreditRequest .btn-umca.btn-umca-secondary {
  background: #334155 !important;
  color: #f8fafc !important;
  border: 1px solid #64748b !important;
}
html[data-theme="dark"] #modalCreditRequest .btn-umca[style*="background:#94a3b8"],
html[data-theme="dark"] #modalCreditRequest .btn-umca[style*="background: #94a3b8"],
html[data-theme="dark"] .modal-umca .btn-umca[style*="background:#64748b"],
html[data-theme="dark"] .modal-umca .btn-umca[style*="background: #64748b"],
html[data-theme="dark"] .modal-umca .btn-umca[style*="background:#e2e8f0"],
html[data-theme="dark"] .modal-umca .btn-umca[style*="background: #e2e8f0"] {
  background: #334155 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-bank-frame,
html[data-theme="dark"] #modalCreditRequest .umca-xfer-dl {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-xfer-dl dt {
  color: #94a3b8 !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-xfer-dl dd {
  color: #f8fafc !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-xfer-intro,
html[data-theme="dark"] #modalCreditRequest .umca-xfer-note,
html[data-theme="dark"] .modal-umca .umca-xfer-intro,
html[data-theme="dark"] .modal-umca .umca-xfer-note {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] #modalCreditRequest .umca-xfer-deadline,
html[data-theme="dark"] .modal-umca .umca-xfer-deadline {
  background: #431407 !important;
  border-color: #9a3412 !important;
  color: #fdba74 !important;
}
html[data-theme="dark"] .modal-umca .umca-xfer-dl dt {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .modal-umca .umca-xfer-dl dd {
  color: #f8fafc !important;
}
html[data-theme="dark"] .form-container .tab-navigation,
html[data-theme="dark"] .umca-container .tab-navigation {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .form-container .tab-indicator,
html[data-theme="dark"] .umca-container .tab-indicator {
  background: #1e293b !important;
  color: #93c5fd !important;
  border-color: #3b82f6 !important;
}
html[data-theme="dark"] .form-container .btn-nav:disabled,
html[data-theme="dark"] .umca-container .btn-nav:disabled {
  background: #475569 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-help-banner {
  background: #1e293b !important;
  border-left-color: #34d399 !important;
}
html[data-theme="dark"] .umca-help-banner-header {
  background: #064e3b !important;
}
html[data-theme="dark"] .umca-help-banner-title,
html[data-theme="dark"] .umca-help-banner-title span {
  color: #a7f3d0 !important;
}
html[data-theme="dark"] .umca-help-banner-toggle {
  color: #34d399 !important;
}
html[data-theme="dark"] .umca-help-banner-body {
  background: #0f172a !important;
  border-top-color: #065f46 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-help-banner-body ul,
html[data-theme="dark"] .umca-help-banner-body li,
html[data-theme="dark"] .umca-help-banner-body p,
html[data-theme="dark"] .umca-help-banner-body strong {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-help-banner-close {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-help-modal-content {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-help-modal-header {
  border-bottom-color: #334155 !important;
}
html[data-theme="dark"] .umca-help-modal-header h3 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-help-modal-close {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-help-modal-body ul,
html[data-theme="dark"] .umca-help-modal-body li,
html[data-theme="dark"] .umca-help-modal-body p {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-help-modal-footer {
  background: #0f172a !important;
  border-top-color: #334155 !important;
}

/* Formulario proyecto/memoria: flujo + campos */
html[data-theme="dark"] .form-container .form-card h2,
html[data-theme="dark"] .form-container .form-title,
html[data-theme="dark"] .form-container .form-header h1,
html[data-theme="dark"] .form-container .form-header .form-title {
  color: #e2e8f0 !important;
  border-bottom-color: #334155 !important;
}
html[data-theme="dark"] .form-container .form-field label,
html[data-theme="dark"] .form-container label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .form-container .flow-tab {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container .flow-tab .flow-tab-text,
html[data-theme="dark"] .form-container .flow-tab .flow-tab-status,
html[data-theme="dark"] .form-container .flow-tab .flow-tab-number {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container .flow-tab:hover {
  background: #334155 !important;
  border-color: #60a5fa !important;
}
html[data-theme="dark"] .form-container .flow-tab.active {
  background: #004d8c !important;
  border-color: #004d8c !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .form-container .flow-tab.active .flow-tab-text,
html[data-theme="dark"] .form-container .flow-tab.active .flow-tab-status,
html[data-theme="dark"] .form-container .flow-tab.active .flow-tab-number {
  color: #ffffff !important;
}
html[data-theme="dark"] .form-container .flow-line {
  background: #475569 !important;
}
html[data-theme="dark"] .form-container .umca-multiselect-trigger,
html[data-theme="dark"] .form-container .umca-multiselect-dropdown,
html[data-theme="dark"] .umca-container .umca-multiselect-trigger,
html[data-theme="dark"] .umca-container .umca-multiselect-dropdown {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .form-container .umca-multiselect-option,
html[data-theme="dark"] .umca-container .umca-multiselect-option {
  color: #e2e8f0 !important;
  background: transparent !important;
}
html[data-theme="dark"] .form-container .umca-multiselect-option:hover,
html[data-theme="dark"] .umca-container .umca-multiselect-option:hover {
  background: #334155 !important;
}
html[data-theme="dark"] .form-container .form-field input,
html[data-theme="dark"] .form-container .form-field select,
html[data-theme="dark"] .form-container .form-field textarea {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
/* Autofill del navegador deja Municipio / Instalación (y otros text) en blanco */
html[data-theme="dark"] .form-container .form-field input:-webkit-autofill,
html[data-theme="dark"] .form-container .form-field input:-webkit-autofill:hover,
html[data-theme="dark"] .form-container .form-field input:-webkit-autofill:focus,
html[data-theme="dark"] .form-container .form-field textarea:-webkit-autofill,
html[data-theme="dark"] .form-container .form-field select:-webkit-autofill,
html[data-theme="dark"] .form-field input:-webkit-autofill,
html[data-theme="dark"] .form-field input:-webkit-autofill:hover,
html[data-theme="dark"] .form-field input:-webkit-autofill:focus,
html[data-theme="dark"] input[name="activity_municipality"]:-webkit-autofill,
html[data-theme="dark"] input[name="activity_facility"]:-webkit-autofill,
html[data-theme="dark"] #activity_municipality:-webkit-autofill {
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  border-color: #475569 !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  transition: background-color 99999s ease-out 0s;
}
html[data-theme="dark"] .form-container .btn-top {
  background: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container .file-area {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}

/* Zonas de archivo + tablas de gastos */
html[data-theme="dark"] .form-container .drop-zone-single,
html[data-theme="dark"] .form-container .file-area {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .form-container .drop-zone-single:hover,
html[data-theme="dark"] .form-container .file-area:hover {
  background: #1e293b !important;
  border-color: #64748b !important;
}
html[data-theme="dark"] .form-container .drop-zone-single.has-file {
  background: #14532d !important;
  border-color: #16a34a !important;
}
html[data-theme="dark"] .form-container .file-text,
html[data-theme="dark"] .form-container .drop-zone-single .file-text,
html[data-theme="dark"] .form-container .drop-zone-single p,
html[data-theme="dark"] .form-container .drop-zone-single span:not(.file-counter) {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container .file-subtext,
html[data-theme="dark"] .form-container .drop-icon {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .form-container .umca-part-calc-scroll,
html[data-theme="dark"] .form-container .umca-part-calc-table {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .form-container .umca-part-calc-title {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container .umca-part-calc-hint {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .form-container .umca-part-calc-table th {
  background: #004d8c !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .form-container .umca-part-calc-table td {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .form-container .umca-part-calc-table tbody tr:nth-child(even) td,
html[data-theme="dark"] .form-container .umca-part-calc-table tbody tr:nth-child(even) th {
  background: #0f172a !important;
}
html[data-theme="dark"] .form-container .expense-summary-table .expense-cnae-row th {
  background: #0b2a4a !important;
  color: #bfdbfe !important;
}
html[data-theme="dark"] .form-container .expense-summary-table .expense-formula-row th {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .form-container .expense-summary-table tbody th.part-calc-scope-label {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .form-container .expense-summary-table tbody td:last-child {
  background: #1e3a5f !important;
  color: #93c5fd !important;
}

/* Filas de tablas de impacto / presupuesto */
.umca-form-section-title {
  color: var(--umca-blue, #004d8c);
}
.umca-stripe-odd {
  background: #ffffff;
  color: #1e293b;
}
.umca-stripe-even {
  background: #f8fafc;
  color: #1e293b;
}
.umca-cell-highlight { background: #fefce8; }
.umca-cell-accent { color: #0369a1; }

html[data-theme="dark"] .umca-form-section-title,
html[data-theme="dark"] .form-container h3[style*="color: var(--umca-blue)"],
html[data-theme="dark"] .form-container h3[style*="color:#1e3a5f"],
html[data-theme="dark"] .form-container h4[style*="color: #1e3a5f"],
html[data-theme="dark"] .form-container h4[style*="color:#1e3a5f"] {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-data-table-wrap,
html[data-theme="dark"] #economic-impact-table-wrap {
  border-color: #334155 !important;
  background: #0f172a !important;
}
html[data-theme="dark"] .umca-stripe-odd,
html[data-theme="dark"] .umca-stripe-odd td,
html[data-theme="dark"] .umca-stripe-odd th {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-stripe-even,
html[data-theme="dark"] .umca-stripe-even td,
html[data-theme="dark"] .umca-stripe-even th {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-cell-highlight {
  background: #3b2f0b !important;
  color: #fde68a !important;
}
html[data-theme="dark"] .umca-cell-accent {
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-rex-sticky-rama {
  background: inherit !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container table tbody tr[style*="background:#fff"],
html[data-theme="dark"] .form-container table tbody tr[style*="background: #fff"],
html[data-theme="dark"] .form-container table tbody tr[style*="background:#ffffff"],
html[data-theme="dark"] .form-container table tbody tr[style*="background: #ffffff"],
html[data-theme="dark"] .form-container table tbody tr[style*="background:#f8fafc"],
html[data-theme="dark"] .form-container table tbody tr[style*="background: #f8fafc"],
html[data-theme="dark"] .form-container table tbody tr[style*="background:#f9fafb"],
html[data-theme="dark"] .form-container table tbody tr[style*="background: #f9fafb"] {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container table tbody tr[style*="background:#fff"] td,
html[data-theme="dark"] .form-container table tbody tr[style*="background: #fff"] td,
html[data-theme="dark"] .form-container table tbody tr[style*="background:#f8fafc"] td,
html[data-theme="dark"] .form-container table tbody tr[style*="background: #f8fafc"] td {
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .form-container div[style*="background: white"],
html[data-theme="dark"] .form-container div[style*="background:#fff"],
html[data-theme="dark"] .form-container div[style*="background: #fff"],
html[data-theme="dark"] .form-container div[style*="background:#ffffff"],
html[data-theme="dark"] .form-container div[style*="background: #ffffff"] {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

/* Resumen del informe: tablas y avisos */
.umca-report-thead {
  background: #f1f5f9;
  color: #334155;
}
.umca-report-thead th {
  color: #334155;
}
.umca-report-tfoot {
  background: #f8fafc;
  color: #1e293b;
}
.umca-report-muted {
  color: #64748b;
}
.umca-report-warning {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fbbf24;
}

html[data-theme="dark"] .umca-report-summary-section h3,
html[data-theme="dark"] .umca-report-summary-section h4,
html[data-theme="dark"] .umca-report-summary-section .umca-form-section-title {
  color: #e2e8f0 !important;
  border-bottom-color: #334155 !important;
}
html[data-theme="dark"] .umca-report-muted,
html[data-theme="dark"] .umca-report-summary-section p {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-report-warning,
html[data-theme="dark"] #report-coef-fallback {
  background: #422006 !important;
  color: #fde68a !important;
  border-color: #a16207 !important;
}
html[data-theme="dark"] .umca-report-table-wrap {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-report-thead,
html[data-theme="dark"] .umca-report-thead th,
html[data-theme="dark"] .umca-report-table thead tr[style*="background: #f1f5f9"],
html[data-theme="dark"] .umca-report-table thead tr[style*="background:#f1f5f9"] {
  background: #0f2748 !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-report-tfoot,
html[data-theme="dark"] .umca-report-tfoot th {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-report-table tbody td,
html[data-theme="dark"] .umca-report-table tbody th,
html[data-theme="dark"] #summary-participation-tbody td,
html[data-theme="dark"] #report-cnae-expense-summary td,
html[data-theme="dark"] #report-coef-tbody td,
html[data-theme="dark"] #report-community-impact-tbody td {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-report-table tbody tr:nth-child(even) td,
html[data-theme="dark"] #summary-participation-tbody tr:nth-child(even) td,
html[data-theme="dark"] #report-cnae-expense-summary tbody tr:nth-child(even) td,
html[data-theme="dark"] #report-coef-tbody tr:nth-child(even) td,
html[data-theme="dark"] #report-community-impact-tbody tr:nth-child(even) td {
  background: #0f172a !important;
}
html[data-theme="dark"] .umca-report-summary-section table thead tr[style*="#f1f5f9"],
html[data-theme="dark"] .umca-report-summary-section table thead tr[style*="f1f5f9"] {
  background: #0f2748 !important;
}
html[data-theme="dark"] .umca-report-summary-section table thead th {
  color: #ffffff !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] #summary-pa1-charts,
html[data-theme="dark"] .umca-report-summary-section [style*="background: #ffffff"],
html[data-theme="dark"] .umca-report-summary-section [style*="background:#ffffff"],
html[data-theme="dark"] .umca-report-summary-section [style*="background: #fff"],
html[data-theme="dark"] .umca-report-summary-section [style*="background:#fff"] {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-summary-media-box,
html[data-theme="dark"] #report-logo-container,
html[data-theme="dark"] #report-poster-container {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-summary-desc-box,
html[data-theme="dark"] #summary-activity-description {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-summary-list-box,
html[data-theme="dark"] #summary-impact-social-list,
html[data-theme="dark"] #summary-impact-media-list {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] #summary-impact-social-list *,
html[data-theme="dark"] #summary-impact-media-list * {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-report-summary-section [style*="background: #fafafa"],
html[data-theme="dark"] .umca-report-summary-section [style*="background:#fafafa"] {
  background: #0f172a !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-report-summary-section [style*="color: #1e3a5f"],
html[data-theme="dark"] .umca-report-summary-section [style*="color:#1e3a5f"],
html[data-theme="dark"] .umca-report-summary-section [style*="color: #334155"],
html[data-theme="dark"] .umca-report-summary-section [style*="color:#334155"] {
  color: #e2e8f0 !important;
}

/* Popups presupuesto (ingresos/gastos) — se montan en body */
html[data-theme="dark"] .umca-budget-modal-overlay > div {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme="dark"] .umca-budget-modal-overlay h3 {
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-budget-modal-overlay label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-budget-modal-overlay input,
html[data-theme="dark"] .umca-budget-modal-overlay select {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .umca-budget-modal-overlay [data-umca-field$="-dropdown"] {
  background: #0f172a !important;
  border-color: #475569 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .umca-combo-option {
  color: #e2e8f0 !important;
  background: transparent !important;
}
html[data-theme="dark"] .umca-combo-option:hover {
  background: #1e3a5f !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-budget-modal-overlay [data-umca-action="cancel"] {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #64748b !important;
}

/* Tip + resumen presupuesto */
.umca-form-tip {
  margin: 20px 0;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #004d8c;
}
.umca-form-tip p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}
html[data-theme="dark"] .umca-form-tip {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-left-color: #60a5fa !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-form-tip p,
html[data-theme="dark"] .umca-form-tip strong {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] #flow-content-3 .btn-umca {
  color: #ffffff !important;
}
html[data-theme="dark"] #expenses-list .umca-budget-row-concept,
html[data-theme="dark"] #incomes-list .umca-budget-row-concept {
  color: #f8fafc !important;
}
html[data-theme="dark"] #expenses-container thead th,
html[data-theme="dark"] #incomes-container thead th {
  color: #e2e8f0 !important;
  border-bottom-color: #475569 !important;
}
html[data-theme="dark"] #expenses-container thead tr,
html[data-theme="dark"] #incomes-container thead tr {
  background: #0f172a !important;
}
html[data-theme="dark"] #expenses-list td,
html[data-theme="dark"] #incomes-list td {
  border-bottom-color: #334155 !important;
  color: #e2e8f0 !important;
}
.umca-budget-row-concept {
  color: #374151;
}
html[data-theme="dark"] .umca-budget-resume {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-budget-resume-label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-budget-resume h3 {
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-budget-resume-card {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

/* Guía participación + días/categorías */
html[data-theme="dark"] .umca-help-modal-body,
html[data-theme="dark"] .umca-help-modal-body * {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-help-modal-footer label,
html[data-theme="dark"] .umca-help-modal-footer span {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .category-card {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .category-card h3 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .form-container [style*="background:#f0f9ff"],
html[data-theme="dark"] .form-container [style*="background: #f0f9ff"],
html[data-theme="dark"] .umca-container [style*="background:#f0f9ff"],
html[data-theme="dark"] .umca-container [style*="background: #f0f9ff"] {
  background: #0f2748 !important;
  border-color: #1e3a5f !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container [style*="background:#f9fafb"],
html[data-theme="dark"] .form-container [style*="background: #f9fafb"],
html[data-theme="dark"] .umca-container [style*="background:#f9fafb"],
html[data-theme="dark"] .umca-container [style*="background: #f9fafb"] {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container [style*="linear-gradient(135deg, #f8fafc"],
html[data-theme="dark"] .umca-container [style*="linear-gradient(135deg, #f8fafc"] {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] #umca-public-expense-summary-content,
html[data-theme="dark"] #umca-public-expense-summary-wrap {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .form-container [style*="background:#fef2f2"],
html[data-theme="dark"] .form-container [style*="background: #fef2f2"],
html[data-theme="dark"] .form-container [style*="background:#f0fdf4"],
html[data-theme="dark"] .form-container [style*="background: #f0fdf4"],
html[data-theme="dark"] .form-container [style*="background:#ecfdf5"],
html[data-theme="dark"] .form-container [style*="background: #ecfdf5"],
html[data-theme="dark"] .form-container [style*="background:#eff6ff"],
html[data-theme="dark"] .form-container [style*="background: #eff6ff"] {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-summary-budget-card {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-summary-budget-card--exp .umca-summary-budget-card-label {
  color: #fca5a5 !important;
}
html[data-theme="dark"] .umca-summary-budget-card--inc .umca-summary-budget-card-label {
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .umca-summary-budget-card--bal .umca-summary-budget-card-label {
  color: #93c5fd !important;
}
html[data-theme="dark"] #summary-budget-exp-total {
  color: #f87171 !important;
}
html[data-theme="dark"] #summary-budget-inc-total {
  color: #34d399 !important;
}
html[data-theme="dark"] #summary-budget-balance {
  color: #60a5fa !important;
}

/* Acceso / login / recuperación — mismo aspecto en /dashboard/ y /administracion/ */
html[data-theme="dark"] .umca-auth-card {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .umca-auth h2 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-auth-subtitle {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-auth-section-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-auth-hint {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-auth-group label,
html[data-theme="dark"] .umca-auth-row label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-auth-group input[type="text"],
html[data-theme="dark"] .umca-auth-group input[type="email"],
html[data-theme="dark"] .umca-auth-group input[type="password"],
html[data-theme="dark"] .umca-auth-group input[type="text"]:-webkit-autofill,
html[data-theme="dark"] .umca-auth-group input[type="email"]:-webkit-autofill,
html[data-theme="dark"] .umca-auth-group input[type="password"]:-webkit-autofill {
  background: #1e293b !important;
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 0 0 1000px #1e293b inset !important;
  caret-color: #f8fafc !important;
  transition: background-color 99999s ease-out 0s;
}
html[data-theme="dark"] .umca-auth-toggle {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-auth a {
  color: #60a5fa !important;
}
html[data-theme="dark"] .umca-auth-error {
  background: #7f1d1d !important;
  color: #fecaca !important;
  border-color: #991b1b !important;
}
html[data-theme="dark"] .umca-auth-success {
  background: #14532d !important;
  color: #bbf7d0 !important;
  border-color: #166534 !important;
}
body.umca-auth-screen .umca-auth-card {
  max-width: 100%;
}
html[data-theme="dark"] .category-card label,
html[data-theme="dark"] .category-card [style*="color:#374151"],
html[data-theme="dark"] .category-card [style*="color: #374151"],
html[data-theme="dark"] .category-card [style*="color:#1e293b"],
html[data-theme="dark"] .category-card [style*="color: #1e293b"] {
  color: #cbd5e1 !important;
}

/* Impacto mediático */
html[data-theme="dark"] .umca-impact-table-wrap {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .impact-table thead tr,
html[data-theme="dark"] .impact-table thead tr[style*="background"] {
  background: #1e293b !important;
}
html[data-theme="dark"] .impact-table thead th {
  color: #cbd5e1 !important;
  border-bottom-color: #334155 !important;
}
html[data-theme="dark"] .impact-table tbody td {
  border-bottom-color: #334155 !important;
  color: #e2e8f0 !important;
  background: transparent !important;
}
html[data-theme="dark"] .impact-table tbody tr:nth-child(even) td {
  background: #111827 !important;
}
html[data-theme="dark"] .impact-table .row-total {
  color: #34d399 !important;
}
html[data-theme="dark"] button.umca-impact-delete-btn,
html[data-theme="dark"] .impact-table button.umca-impact-delete-btn,
html[data-theme="dark"] .umca-impact-table-wrap .umca-impact-delete-btn,
html[data-theme="dark"] .umca-impact-delete-btn {
  background: #334155 !important;
  background-color: #334155 !important;
  color: #e2e8f0 !important;
  border: 2px solid #64748b !important;
  border-color: #64748b !important;
  box-shadow: none !important;
}
html[data-theme="dark"] button.umca-impact-delete-btn:hover,
html[data-theme="dark"] .umca-impact-delete-btn:hover {
  background: #7f1d1d !important;
  background-color: #7f1d1d !important;
  color: #fecaca !important;
  border-color: #ef4444 !important;
}
html[data-theme="dark"] .btn-icon {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .btn-icon:hover {
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-vpe-return-card {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .umca-vpe-return-card [style*="color: #1e3a5f"],
html[data-theme="dark"] .umca-vpe-return-card [style*="color:#1e3a5f"] {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-impact-charts-section [style*="background: #fff"],
html[data-theme="dark"] .umca-impact-charts-section [style*="background:#fff"] {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-impact-charts-section h4,
html[data-theme="dark"] .umca-impact-charts-section [style*="color: #475569"],
html[data-theme="dark"] .umca-impact-charts-section [style*="color:#475569"],
html[data-theme="dark"] .umca-impact-charts-section [style*="color: #334155"],
html[data-theme="dark"] .umca-impact-charts-section [style*="color:#334155"] {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .impact-table [style*="color: #64748b"],
html[data-theme="dark"] .impact-table [style*="color:#64748b"] {
  color: #94a3b8 !important;
}

/* Encuestas — Resumen y Estadísticas */
html[data-theme="dark"] .stats-panel {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .stats-panel h2,
html[data-theme="dark"] .stats-panel h2[style] {
  color: #93c5fd !important;
  border-bottom-color: #334155 !important;
}
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .chart-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: none !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .kpi-value {
  color: #60a5fa !important;
}
html[data-theme="dark"] .kpi-label,
html[data-theme="dark"] .bar-value,
html[data-theme="dark"] .bar-label {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .chart-title {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .bar-track {
  background: #0f172a !important;
}
html[data-theme="dark"] .legend-item,
html[data-theme="dark"] .legend-label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .survey-gasto-medio-intro {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .survey-gasto-medio-panel,
html[data-theme="dark"] .survey-gasto-medio-panel.umca-card {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .survey-gasto-medio-panel h2,
html[data-theme="dark"] .survey-gasto-segment-title {
  color: #93c5fd !important;
}
html[data-theme="dark"] .survey-gasto-medio-table {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .survey-gasto-medio-table thead th,
html[data-theme="dark"] .survey-gasto-medio-table th {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .survey-gasto-medio-table tbody tr,
html[data-theme="dark"] .survey-gasto-medio-table tbody td {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .survey-gasto-medio-table tbody tr:nth-child(even),
html[data-theme="dark"] .survey-gasto-medio-table tbody tr:nth-child(even) td {
  background: #1e293b !important;
  background-color: #1e293b !important;
}
html[data-theme="dark"] .survey-gasto-medio-table td.cell-ambito,
html[data-theme="dark"] .survey-gasto-medio-table td.cell-ambito strong {
  color: #f8fafc !important;
}
html[data-theme="dark"] .survey-gasto-medio-table-segments .row-locales,
html[data-theme="dark"] .survey-gasto-medio-table-segments .row-locales td {
  background: #052e1c !important;
  background-color: #052e1c !important;
  color: #bbf7d0 !important;
}
html[data-theme="dark"] .survey-gasto-medio-table-segments .row-turistas,
html[data-theme="dark"] .survey-gasto-medio-table-segments .row-turistas td {
  background: #0c1a33 !important;
  background-color: #0c1a33 !important;
  color: #bfdbfe !important;
}
html[data-theme="dark"] .survey-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .survey-card h3 {
  color: #93c5fd !important;
}
html[data-theme="dark"] .survey-card p {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .stat-item {
  background: #0f172a !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .survey-row {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .survey-row:hover {
  background: #0f172a !important;
  border-color: #475569 !important;
}
html[data-theme="dark"] .survey-row-num {
  color: #60a5fa !important;
}
html[data-theme="dark"] .survey-row-date,
html[data-theme="dark"] .survey-row-meta {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .survey-row-total {
  color: #fbbf24 !important;
}
html[data-theme="dark"] .btn-survey-row-delete {
  color: #94a3b8 !important;
  border-color: #475569 !important;
  background: transparent !important;
}
html[data-theme="dark"] .btn-survey-row-delete:hover {
  color: #fecaca !important;
  border-color: #ef4444 !important;
  background: #7f1d1d !important;
}
html[data-theme="dark"] .no-surveys {
  background: #1e293b !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-container .umca-card,
html[data-theme="dark"] .umca-container .umca-header {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .form-section {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .manual-data-panel-collapsed {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .manual-data-panel-expanded {
  background: #1e293b !important;
  border-color: #b45309 !important;
}
html[data-theme="dark"] .warning-box {
  background: #422006 !important;
  border-color: #b45309 !important;
}
html[data-theme="dark"] .warning-text,
html[data-theme="dark"] .warning-text strong {
  color: #fde68a !important;
}
html[data-theme="dark"] .survey-link-input {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .survey-link-input:focus {
  background: #0f172a !important;
}

/* Encuesta pública (shortcode) — modo oscuro coherente */
body.umca-survey-portal .entry-header,
body.umca-survey-portal .entry-title,
body.umca-survey-portal h1.entry-title,
body.umca-survey-portal .page-title,
body.umca-survey-portal .ast-archive-description,
body:has(.survey-container) .entry-header,
body:has(.survey-container) .entry-title,
body:has(.survey-container) h1.entry-title,
body:has(.survey-container) .page-title {
  display: none !important;
}
html[data-theme="dark"] body:has(.survey-container) .entry-header,
html[data-theme="dark"] body:has(.survey-container) .entry-title,
html[data-theme="dark"] body:has(.survey-container) h1.entry-title,
html[data-theme="dark"] body:has(.survey-container) .page-title,
html[data-theme="dark"] body:has(.survey-container) .ast-single-post .entry-header .entry-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .survey-container {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .survey-header {
  background: #166534 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .survey-header h1,
html[data-theme="dark"] .survey-header p {
  color: #ffffff !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .survey-header-logo {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
html[data-theme="dark"] .survey-form {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .survey-container .form-group label,
html[data-theme="dark"] .survey-container label {
  color: #93c5fd !important;
}
html[data-theme="dark"] .survey-container .form-options label {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .survey-container .required {
  color: #f87171 !important;
}
html[data-theme="dark"] .survey-container .help-text,
html[data-theme="dark"] .survey-container .form-importe-optional {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .survey-container input[type="text"],
html[data-theme="dark"] .survey-container input[type="number"],
html[data-theme="dark"] .survey-container input[type="email"],
html[data-theme="dark"] .survey-container textarea,
html[data-theme="dark"] .survey-container select {
  background: #0f172a !important;
  border: 1px solid #475569 !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .survey-container input[type="number"]:required,
html[data-theme="dark"] .survey-container .form-importe-optional input[type="number"]:required,
html[data-theme="dark"] .survey-container .form-noches-mas input[type="number"]:required {
  background: #0c1a33 !important;
  border-color: #3b82f6 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .survey-container input::placeholder,
html[data-theme="dark"] .survey-container textarea::placeholder {
  color: #64748b !important;
}
html[data-theme="dark"] .survey-container .rating-scale label {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .survey-container .rating-scale label:hover {
  background: #1e3a5f !important;
  border-color: #60a5fa !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .survey-container .rating-scale label.selected {
  background: #166534 !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .survey-container .btn-submit {
  background: #16a34a !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .survey-container .btn-submit:hover {
  background: #15803d !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-block {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-eyebrow {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-title,
html[data-theme="dark"] .survey-container .umca-sorteo-question {
  color: #93c5fd !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-details {
  border-top-color: #475569 !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-legal {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-legal h3 {
  color: #93c5fd !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-legal a {
  color: #93c5fd !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-block input[type="text"] {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .survey-container .umca-sorteo-consent {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .survey-footer {
  background: #0f172a !important;
  border-top-color: #334155 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-survey-error {
  background: #450a0a !important;
  border: 1px solid #7f1d1d !important;
  color: #fecaca !important;
}
html[data-theme="dark"] .umca-survey-success {
  background: #052e16 !important;
  border: 1px solid #166534 !important;
  color: #bbf7d0 !important;
}

/* Ceder códigos: bloque entidad encontrada */
.umca-found-entity {
  background: #f0fdf4;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  color: #0f172a;
}
.umca-found-entity-name {
  color: #0f172a;
  font-weight: 700;
}
.umca-found-entity-cif {
  color: #64748b;
}
.umca-found-entity-credits {
  color: #059669;
}
html[data-theme="dark"] .umca-found-entity,
html[data-theme="dark"] #modalTransferCredits #found-entity {
  background: #052e16 !important;
  border-color: #166534 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-found-entity-name,
html[data-theme="dark"] #modalTransferCredits #entity-name {
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-found-entity-cif,
html[data-theme="dark"] #modalTransferCredits #entity-cif {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-found-entity-credits,
html[data-theme="dark"] #modalTransferCredits #entity-current-credits {
  color: #6ee7b7 !important;
}

/* Icono calendario de inputs date/datetime en modo oscuro */
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="week"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.15);
  opacity: 1;
  cursor: pointer;
}

/* Crear evento — modal Información importante */
.umca-create-info-scroll {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 15px;
}
.umca-create-info-text,
.umca-create-info-list {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
  margin: 0 0 14px 0;
}
.umca-create-info-text {
  margin-bottom: 12px;
}
.umca-create-info-list {
  padding-left: 20px;
}
.umca-create-info-text--emphasis {
  font-weight: 600;
}
.umca-create-info-text--warn {
  color: #b91c1c;
  font-weight: 600;
}
.umca-create-info-credit {
  margin: 0 0 10px 0;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #1e3a8a;
}
.umca-create-info-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px 0;
  padding: 12px;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
}
.umca-create-info-check input {
  margin-top: 3px;
  flex-shrink: 0;
}
.umca-create-info-check span {
  font-size: 0.9rem;
  color: #374151;
}
.umca-create-info-back {
  width: 100%;
  margin-top: 10px;
  background: #e2e8f0 !important;
  color: #475569 !important;
}
html[data-theme="dark"] #modalStep3 .umca-create-info-text,
html[data-theme="dark"] #modalStep3 .umca-create-info-list,
html[data-theme="dark"] #modalStep3 .umca-create-info-list li,
html[data-theme="dark"] #modalStep3 .umca-create-info-list strong {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] #modalStep3 .umca-create-info-text--warn {
  color: #fca5a5 !important;
}
html[data-theme="dark"] #modalStep3 .umca-create-info-credit {
  background: #0f172a !important;
  border-color: #1e3a8a !important;
  color: #93c5fd !important;
}
html[data-theme="dark"] #modalStep3 .umca-create-info-check {
  background: #0f172a !important;
  border: 1px solid #334155;
}
html[data-theme="dark"] #modalStep3 .umca-create-info-check span {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .modal-umca .btn-umca.umca-create-info-back,
html[data-theme="dark"] #modalStep3 .umca-create-info-back {
  background: #334155 !important;
  color: #f8fafc !important;
  border: 1px solid #475569 !important;
}

/* Avisos in-app (sustituye alert nativo en flujo crear evento) */
.umca-alert-modal {
  max-width: 420px;
  text-align: center;
}
.umca-alert-title {
  margin: 0 0 12px 0;
  color: var(--umca-blue, #004d8c);
  font-size: 1.15rem;
}
.umca-alert-message {
  margin: 0 0 18px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155;
}
.umca-alert-ok {
  width: 100%;
  background: var(--umca-green, #437a00) !important;
  color: #fff !important;
}
html[data-theme="dark"] #modalUmcaAlert .umca-alert-title {
  color: #93c5fd !important;
}
html[data-theme="dark"] #modalUmcaAlert .umca-alert-message,
html[data-theme="dark"] #modalUmcaAlert .modal-content p {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] #modalUmcaAlert .umca-alert-ok {
  background: #437a00 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .umca-credits-panel {
  background: linear-gradient(180deg, #052e16 0%, #0f172a 38%, #1e293b 100%) !important;
  border-color: #166534 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-credits-panel::before {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
}
html[data-theme="dark"] .umca-credits-toggle:hover {
  background: rgba(52, 211, 153, 0.08) !important;
}
html[data-theme="dark"] .umca-credits-kicker {
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .umca-credits-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-credits-badge {
  background: #059669 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .umca-credits-chip {
  background: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .umca-credits-chip--ok {
  background: #064e3b !important;
  color: #a7f3d0 !important;
}
html[data-theme="dark"] .umca-credits-hint,
html[data-theme="dark"] .umca-credits-help,
html[data-theme="dark"] .umca-credits-table td small {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .umca-credits-table th.umca-credits-sort:hover {
  color: #93c5fd !important;
}
html[data-theme="dark"] .umca-credits-toggle-cta {
  background: #10b981 !important;
  color: #052e16 !important;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25) !important;
}
html[data-theme="dark"] .umca-credits-toggle:hover .umca-credits-toggle-cta {
  background: #34d399 !important;
}
html[data-theme="dark"] .umca-credits-toggle-icon {
  background: rgba(5, 46, 22, 0.25) !important;
}
html[data-theme="dark"] .umca-credits-toggle-icon::before {
  border-color: #052e16 !important;
}
html[data-theme="dark"] .umca-credits-panel-body {
  background: rgba(15, 23, 42, 0.72) !important;
  border-top-color: #166534 !important;
}
html[data-theme="dark"] .umca-credits-head-tools label {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .umca-credits-head-tools select {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .umca-credits-table-wrap {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .umca-credits-empty {
  color: #94a3b8 !important;
}
@media (max-width: 640px) {
  .umca-theme-toggle {
    bottom: 14px;
    right: 14px;
    padding: 9px 12px;
  }
  .umca-theme-toggle__label {
    display: none;
  }
}
