html[data-theme="dark"] {
    color-scheme: dark;
    --azul: #3E6D9C;
    --oscuro: #1E304A;
    --fondo: #0B1120;
    --turquesa: #1E304A;
    --celeste: #3E6D9C;
    --blanco: #131F33;
}
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #3e6d9c;
    color: white;
    cursor: pointer;
    font-size: 23px;
    flex-shrink: 0;
}
.theme-toggle:focus-visible {
    outline: 3px solid #a7e0db;
    outline-offset: 3px;
}
html[data-theme="dark"] body {
    color: #E2E8F0;
}
html[data-theme="dark"] .logo span {
    color: #7DD3E8;
}
html[data-theme="dark"] nav a:hover {
    color: #7DD3E8;
}
html[data-theme="dark"] .banner button {
    color: #E2E8F0;
}
html[data-theme="dark"] .banner button:hover {
    background: #131F33;
}
html[data-theme="dark"] .categoria {
    background: #131F33;
}
html[data-theme="dark"] .producto {
    background: #131F33;
}
html[data-theme="dark"] .categoria-etiqueta {
    color: #7DD3E8;
}
html[data-theme="dark"] .descripcion {
    color: #B8C7D9;
}
html[data-theme="dark"] .vendedor {
    color: #B8C7D9;
}
html[data-theme="dark"] .intercambio strong {
    color: #7DD3E8;
}
html[data-theme="dark"] .tipo-intercambio {
    color: #E2E8F0;
}
html[data-theme="dark"] .modal {
    background: #131F33;
}
html[data-theme="dark"] .modal h2 {
    color: #7DD3E8;
}
html[data-theme="dark"] .modal input,html[data-theme="dark"] .modal select,html[data-theme="dark"] .modal textarea {
    border: 1px solid #344963;
}
html[data-theme="dark"] .cancelar {
    color: #E2E8F0;
}
@media  (max-width: 600px) {
}
html[data-theme="dark"] .menu-lateral {
    background: #131F33;
}
html[data-theme="dark"] .menu-encabezado span {
    color: #7DD3E8;
}
html[data-theme="dark"] .opciones-menu a {
    color: #E2E8F0;
}
html[data-theme="dark"] .menu-pie {
    color: #B8C7D9;
}
html[data-theme="dark"] .subtitulo {
    color: #B8C7D9;
}
html[data-theme="dark"] .panel {
    background: #131F33;
}
html[data-theme="dark"] .panel input,html[data-theme="dark"] .panel textarea,html[data-theme="dark"] .panel select {
    border: 1px solid #344963;
}
html[data-theme="dark"] .secondary {
    color: #E2E8F0;
}
html[data-theme="dark"] .muted {
    color: #B8C7D9;
}
html[data-theme="dark"] .empty {
    color: #B8C7D9;
}
@media (max-width:600px) {
}
html[data-theme="dark"] .profile-cover {
    background: linear-gradient(115deg,#1E304A,#3E6D9C,#3E6D9C);
}
html[data-theme="dark"] .cover-action {
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .profile-photo-wrap img {
    border: 5px solid #344963;
    background: #1E304A;
}
html[data-theme="dark"] .photo-action {
    background: #3E6D9C;
}
html[data-theme="dark"] .profile-tabs {
    border-top: 1px solid #344963;
}
html[data-theme="dark"] .profile-tab {
    color: #B8C7D9;
}
html[data-theme="dark"] .profile-tab.active {
    color: #E2E8F0;
}
html[data-theme="dark"] .post-card {
    background: #131F33;
}
html[data-theme="dark"] .post-card img,html[data-theme="dark"] .post-placeholder {
    background: linear-gradient(135deg,#1E304A,#3E6D9C);
}
html[data-theme="dark"] .post-card-actions button {
    background: #1E304A;
}
@media (max-width:650px) {
}
html[data-theme="dark"] .publicacion-placeholder {
    background: linear-gradient(135deg,#1E304A,#3E6D9C);
}
html[data-theme="dark"] .chat-app {
    border: 1px solid #344963;
    background: #131F33;
}
html[data-theme="dark"] .chat-sidebar {
    border-right: 1px solid #344963;
}
html[data-theme="dark"] .chat-side-head h1 {
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-side-head p {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-symbol {
    color: #7DD3E8;
}
html[data-theme="dark"] .chat-search {
    background: #1E304A;
}
html[data-theme="dark"] .chat-filter {
    background: #1E304A;
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-filter.selected {
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-item {
    border-bottom: 1px solid #344963;
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-item:hover,html[data-theme="dark"] .chat-item.active {
    background: #1E304A;
}
html[data-theme="dark"] .chat-avatar {
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-item-top time {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-item-preview {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-side-note {
    color: #B8C7D9;
    border-top: 1px solid #344963;
}
html[data-theme="dark"] .chat-conversation {
    background: #1E304A;
}
html[data-theme="dark"] .chat-header {
    background: #131F33;
    border-bottom: 1px solid #344963;
}
html[data-theme="dark"] .chat-contact span {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-back {
    color: #7DD3E8;
}
html[data-theme="dark"] .chat-bubble {
    background: #131F33;
}
html[data-theme="dark"] .chat-bubble.own {
    background: #1E304A;
}
html[data-theme="dark"] .chat-bubble time {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-empty {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-compose {
    background: #131F33;
    border-top: 1px solid #344963;
}
html[data-theme="dark"] .chat-compose textarea {
    background: #1E304A;
}
html[data-theme="dark"] .chat-attach {
    color: #7DD3E8;
}
@media (max-width:700px) {
}
html[data-theme="dark"] .chat-options {
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-proposal {
    background: #131F33;
    border: 1px solid #344963;
}
html[data-theme="dark"] .chat-proposal-tag {
    color: #7DD3E8;
}
html[data-theme="dark"] .chat-proposal h3 {
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-proposal small {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-block-notice {
    background: #482B39;
    color: #ffb5c4;
}
html[data-theme="dark"] .chat-block-notice button {
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-safety-dialog {
    color: #E2E8F0;
}
html[data-theme="dark"] .safety-actions button {
    border: 1px solid #344963;
    background: #1E304A;
}
html[data-theme="dark"] .safety-disclaimer {
    color: #B8C7D9;
}
html[data-theme="dark"] .chat-safety-dialog select,html[data-theme="dark"] .chat-safety-dialog textarea {
    border: 1px solid #344963;
}
html[data-theme="dark"] .trade-tab {
    border: 2px solid #344963;
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .trade-tab.selected {
    background: #1E304A;
}
html[data-theme="dark"] .trade-history-card {
    background: #1E304A;
    border: 1px solid #344963;
}
html[data-theme="dark"] .trade-history-title {
    color: #E2E8F0;
}
html[data-theme="dark"] .trade-demo-label {
    background: #1E304A;
}
html[data-theme="dark"] .trade-review-form {
    border-top: 1px solid #344963;
}
html[data-theme="dark"] .trade-review-form select,html[data-theme="dark"] .trade-review-form textarea {
    border: 1px solid #344963;
}
html[data-theme="dark"] .trade-review {
    background: #131F33;
    border: 1px solid #344963;
}
html[data-theme="dark"] .trade-review-summary {
    background: #131F33;
}
html[data-theme="dark"] .producto .intercambio strong {
    color: #7DD3E8;
}
html[data-theme="dark"] .store-reviews {
    background: #131F33;
    border: 1px solid #344963;
}
html[data-theme="dark"] .store-reviews-heading {
    color: #E2E8F0;
}
html[data-theme="dark"] .store-score {
    border-bottom: 1px solid #344963;
}
html[data-theme="dark"] .store-score-number {
    color: #E2E8F0;
}
html[data-theme="dark"] .store-score-stars {
    color: #7DD3E8;
}
html[data-theme="dark"] .store-score-bar {
    color: #B8C7D9;
}
html[data-theme="dark"] .store-score-track {
    background: #1E304A;
}
html[data-theme="dark"] .store-score-fill {
    background: #3E6D9C;
}
html[data-theme="dark"] .store-review-filter,html[data-theme="dark"] .store-star-chip {
    border: 1px solid #344963;
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .store-review-filter.active,html[data-theme="dark"] .store-star-chip.active {
    background: #1E304A;
}
html[data-theme="dark"] .store-review-card {
    border-bottom: 1px solid #344963;
}
html[data-theme="dark"] .store-review-avatar {
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] .store-review-identity strong {
    color: #E2E8F0;
}
html[data-theme="dark"] .store-review-stars {
    color: #7DD3E8;
}
html[data-theme="dark"] .store-reviews-empty {
    color: #B8C7D9;
}
html[data-theme="dark"] .store-review-note {
    color: #B8C7D9;
}
@media (max-width:580px) {
}
html[data-theme="dark"] .chat-safety-dialog .danger-action,html[data-theme="dark"] .review-clear,html[data-theme="dark"] .review-delete {
    color: #ffb5c4 !important;
}
html[data-theme="dark"] .chat-safety-dialog .danger-action:hover,html[data-theme="dark"] .review-clear:hover,html[data-theme="dark"] .review-delete:hover {
    background: #482B39 !important;
}
@media (max-width:600px) {
}
html[data-theme="dark"] .cb-dialog {
    border: 1px solid #344963;
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .cb-modal-symbol {
    background: #1E304A;
}
html[data-theme="dark"] .cb-dialog h2 {
    color: #E2E8F0;
}
html[data-theme="dark"] .cb-dialog p {
    color: #B8C7D9;
}
html[data-theme="dark"] .cb-modal-close {
    color: #E2E8F0 !important;
}
html[data-theme="dark"] .cb-modal-actions button {
    border: 1px solid #344963;
}
html[data-theme="dark"] .cb-modal-cancel {
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] .cb-modal-accept {
    background: #3E6D9C;
}
html[data-theme="dark"] .cb-toast {
    background: #1E304A;
}
@media (max-width:500px) {
}
html[data-theme="dark"] .preset-dialog {
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .preset-close {
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] .preset-option {
    background: #1E304A;
}
html[data-theme="dark"] .preset-option:hover {
    border-color: #344963;
}
html[data-theme="dark"] .preset-option span {
    color: #E2E8F0;
}
@media (max-width:480px) {
}
html[data-theme="dark"] .points-panel {
    border: 1px solid #344963;
    background: linear-gradient(120deg,#131F33 0%,#1E304A 100%);
}
html[data-theme="dark"] .points-heading h2 {
    color: #E2E8F0;
}
html[data-theme="dark"] .points-eyebrow {
    color: #7DD3E8;
}
html[data-theme="dark"] .points-total {
    background: #1E304A;
}
html[data-theme="dark"] .points-level-line {
    color: #E2E8F0;
}
html[data-theme="dark"] .points-level-line span {
    color: #7DD3E8;
}
html[data-theme="dark"] .points-track {
    background: #1E304A;
}
html[data-theme="dark"] .points-track>div {
    background: linear-gradient(90deg,#3E6D9C,#3E6D9C);
}
html[data-theme="dark"] .points-breakdown>div {
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] .points-rules {
    color: #B8C7D9;
}
@media (max-width:620px) {
}
html[data-theme="dark"] .chat-remove-image {
    background: #131F33;
    border: 1px solid #344963;
    color: #E2E8F0;
}
@media (max-width:700px) {
}
html[data-theme="dark"] .shop-hero {
    background: linear-gradient(125deg,#1E304A,#3E6D9C);
}
html[data-theme="dark"] .shop-head select {
    border: 1px solid #344963;
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .shop-item-icon {
    background: #1E304A;
}
html[data-theme="dark"] .shop-price {
    color: #7DD3E8;
}
html[data-theme="dark"] .shop-equipped-badge {
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] body.shop-theme-atardecer .profile-hero {
    background: #1E304A;
}
html[data-theme="dark"] body.shop-theme-lavanda .profile-hero {
    background: #1E304A;
}
html[data-theme="dark"] body.shop-theme-bosque .profile-hero {
    background: #1E304A;
}
@media (max-width:800px) {
}
@media (max-width:540px) {
}
html[data-theme="dark"] .cb-terms-dialog {
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .cb-terms-dialog p,html[data-theme="dark"] .cb-terms-dialog li {
    color: #B8C7D9;
}
html[data-theme="dark"] .cb-terms-accept {
    background: #3E6D9C;
}
html[data-theme="dark"] .cb-terms-reject {
    border: 1px solid #344963;
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] .cb-terms-link {
    color: #7DD3E8;
}
html[data-theme="dark"] .cb-terms-warning {
    color: #ffb5c4;
}
html[data-theme="dark"] body {
    color: #E2E8F0;
    background: #0B1120;
}
html[data-theme="dark"] :is(input,textarea,select) {
    background: #1E304A;
    color: #E2E8F0;
    border-color: #344963;
}
html[data-theme="dark"] ::placeholder {
    color: #B8C7D9;
    opacity: 1;
}
html[data-theme="dark"] a {
    color: #7DD3E8;
}
html[data-theme="dark"] .site-header .logo {
    color: white;
}
html[data-theme="dark"] .theme-toggle {
    background: #3E6D9C;
}
html[data-theme="dark"] .cb-terms-dialog {
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] .cb-terms-dialog :is(p,li) {
    color: #B8C7D9;
}
html[data-theme="dark"] .cb-terms-link {
    color: #7DD3E8;
}
html[data-theme="dark"] .cb-terms-reject {
    background: #1E304A;
    color: #fff;
}
html[data-theme="dark"] .cb-terms-warning {
    color: #ffb5c4;
}
html[data-theme="dark"] .chat-messages {
    scrollbar-color: #3E6D9C #0B1120;
}
html[data-theme="dark"] :is(.review-delete,.review-clear,.danger-action) {
    color: #ffb5c4!important;
}
html[data-theme="dark"] body:has(.splash) {
    background: linear-gradient(150deg,#0B1120,#131F33,#1E304A);
    color: #fff;
}
/* Midnight Blue: contraste y jerarquía de superficies */
html[data-theme="dark"] {
    --oscuro: #131F33;
    --turquesa: #1E304A;
    --celeste: #7DD3E8;
}
html[data-theme="dark"] :is(.site-header,.menu-encabezado,footer) {
    background: #131F33;
    color: #E2E8F0;
}
html[data-theme="dark"] :is(.producto,.panel,.post-card,.chat-app,.modal,.store-reviews) {
    box-shadow: 0 4px 16px #0003;
    border: 1px solid #344963;
}
html[data-theme="dark"] :is(.categoria,.tipo-intercambio,.pill,.secondary,.cancelar,.post-card-actions button) {
    color: #E2E8F0;
}
html[data-theme="dark"] :is(.categoria:hover,.categoria.active,.categoria.activa,.chat-filter.selected,.trade-tab.selected,.store-review-filter.active,.store-star-chip.active) {
    background: #3E6D9C;
    color: #fff;
    border-color: #7DD3E8;
}
html[data-theme="dark"] :is(.intercambio,.chat-search,.chat-compose textarea) {
    background: #1E304A;
    color: #E2E8F0;
}
html[data-theme="dark"] .chat-search input {
    background: transparent;
}
html[data-theme="dark"] .chat-conversation {
    background: #0B1120;
}
html[data-theme="dark"] .chat-bubble.own {
    background: #315778;
    color: #fff;
}
html[data-theme="dark"] .chat-bubble:not(.own) {
    background: #1E304A;
}
html[data-theme="dark"] .chat-avatar {
    background: #1E304A;
    color: #7DD3E8;
}
html[data-theme="dark"] .chat-safety-dialog {
    background: #131F33;
}
html[data-theme="dark"] .profile-tab.active {
    border-top-color: #7DD3E8;
    color: #7DD3E8;
}
html[data-theme="dark"] :is(.points-track>div,.store-score-fill) {
    background: #7DD3E8;
}
html[data-theme="dark"] .points-total {
    background: #1E304A;
}
html[data-theme="dark"] .cb-modal-accept.danger {
    background: #a13f50;
}
html[data-theme="dark"] .theme-toggle:focus-visible {
    outline-color: #7DD3E8;
}
html[data-theme="dark"] :is(button,input,textarea,select,a):focus-visible {
    outline: 2px solid #7DD3E8;
    outline-offset: 2px;
}
html[data-theme="dark"] .primary:hover {
    background: #315778;
}
html[data-theme="dark"] .logo span {
    color: #7DD3E8;
}
html[data-theme="dark"] .search-bar input {
    background: #131F33;
}
html[data-theme="dark"] .cb-modal-accept {
    border-color: #3E6D9C!important;
}
html[data-theme="dark"] body.shop-theme-atardecer .profile-hero {
    background: #352A36;
}
html[data-theme="dark"] body.shop-theme-lavanda .profile-hero {
    background: #282B48;
}
html[data-theme="dark"] body.shop-theme-bosque .profile-hero {
    background: #16343B;
}
@media(prefers-reduced-motion:no-preference) {
    body,.producto,.panel,.site-header,.chat-conversation,.chat-bubble {
        transition: background-color .18s,color .18s,border-color .18s;
    }
}
