/* ===== CS-DARK MODE ===== */
html.csdm-reading-mode {
    color-scheme: dark;
}

/* Botón de modo oscuro */
.csdm-dark-mode-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    line-height: 1;
    margin-left: 12px;
    min-height: 40px;
    min-width: 40px;
    padding: 8px 10px;
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    z-index: 999;
}

.csdm-dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.06);
}

.csdm-dark-mode-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.csdm-dark-mode-toggle .csdm-icon {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}

.csdm-dark-mode-toggle .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.csdm-dark-mode-toggle--floating {
    position: fixed;
    top: 14px;
    right: 14px;
    background: #1e1e1e;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

nav .csdm-dark-mode-toggle,
.navbar .csdm-dark-mode-toggle,
.main-navigation .csdm-dark-mode-toggle,
.site-header .csdm-dark-mode-toggle,
.header-navigation .csdm-dark-mode-toggle {
    margin: 0;
    padding: 10px 14px;
}

html.csdm-reading-mode .csdm-dark-mode-toggle:hover {
    background-color: rgba(224, 185, 130, 0.18);
}

@media (max-width: 768px) {
    .csdm-dark-mode-toggle {
        min-height: 36px;
        min-width: 36px;
        padding: 8px 10px;
    }

    .site-header .csdm-dark-mode-toggle,
    .header-navigation .csdm-dark-mode-toggle {
        margin-left: 8px;
        padding: 8px 10px;
    }
}

/* Compatibilidad: subrayado solo en modo oscuro */
html.csdm-reading-mode body .article-full a {
    text-decoration: underline;
}

html.csdm-reading-mode body .article-loop a {
    text-decoration: none !important;
}

/* Modo Lectura: Header limpio y conservado como el theme */
html.csdm-reading-mode body footer {
    background: #190808e0 !important;
}
html.csdm-reading-mode body .content-footer {
    background: #190808e0 !important;
}
html.csdm-reading-mode body .article-loop a {
    background: #000 !important;
    border: 1px solid #ff040440 !important;
    margin-bottom: 1rem !important;
  margin-top: 1rem !important;
}
html.csdm-reading-mode body footer h2 {
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
  color: #b29d9d !important;
  font-weight: bold;
  font-size: calc(28px - 2px);  
}
html.csdm-reading-mode body .may {
	color: #fff !important;
}
html.csdm-reading-mode body .carta p{
    color: #000 !important;
}
html.csdm-reading-mode body .comment-author cite{
    color: #fff !important;
}
/* Solo este contenedor centra el div interior */
html.csdm-reading-mode body .centrador-local {
  text-align: center;
}

/* Cambiar color de la selección de texto en modo lectura */
html.csdm-reading-mode body ::selection {
  background-color: #fff;  /* Color de fondo de la selección */
  color: #000;             /* Color del texto seleccionado */
}

html.csdm-reading-mode body ::-moz-selection {
  background-color: #fff;  /* Color de fondo para Firefox */
  color: #000;             /* Color del texto seleccionado */
}
html.csdm-reading-mode body .freecopy {
    background-color: #121212 !important;
}
/* El div se adapta al contenido */
html.csdm-reading-mode body .div-centrado {
  background-color: #1a1a1a !important;
  color: #ccc !important;
  border-left: 4px solid #04235e !important;
  border-right: 4px solid #04235e !important;
  border-bottom: 4px solid #04235e !important;
  border-top: 4px solid #04235e !important;
  border-radius: 10px 0px 0px 10px;
  max-width: 100%;
  overflow: hidden;
  clear: both;
  padding: 1em 1.5em;
  display: inline-block;
  margin: 1.5em auto;
  text-align: center;
}
html.csdm-reading-mode body .div-centrado h2 {
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
} 
html.csdm-reading-mode body .wp-block-archives-list .wp-block-archives a {
    color: #2471a3 !important;
}
html.csdm-reading-mode body .copyright {
    background: linear-gradient(to bottom, #323d45, #000);
    color: #fff !important;
}
html.csdm-reading-mode body .piefooter a {
    color: #e4ef04 !important;
}
html.csdm-reading-mode body .site-name,
html.csdm-reading-mode body .site-name h1 {
    letter-spacing: 0.15em;
    word-spacing: 0.15em;
    font-size: 2.50rem !important;
}
html.csdm-reading-mode body .site-header {
    background-color: #190808e0 !important;
    color: #000 !important;
}
html.csdm-reading-mode body .site-header a:hover {
    color: #887c6b !important;
}
html.csdm-reading-mode body .site-name a {
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
  color: #e0b982 !important;
  font-weight: bold;}
html.csdm-reading-mode body .header-menu a {
  color: #e0b982 !important;
  font-weight: bold;}
html.csdm-reading-mode body .asap-hero-content h1,
html.csdm-reading-mode body .asap-hero-content p {
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
  color: #e0b982 !important;
  font-weight: bold;}

 html.csdm-reading-mode body #menu > ul > li {
    background-color: #190808e0 !important;
}
 html.csdm-reading-mode body #menu > ul > li a {
  color: #e0b982 !important;
}
  html.csdm-reading-mode body #menu {
    background: transparent !important;
      padding-bottom: 0px;
  }
 html.csdm-reading-mode body #menu ul > .menu-item-has-children::before {
  border: solid #fff !important;
    border-top-width: medium;
    border-right-width: medium;
    border-bottom-width: medium;
    border-left-width: medium;
}
html.csdm-reading-mode body .menu-item a {
  color: #000;
  font-weight: bold;
}

  html.csdm-reading-mode body header #menu a {
    height: auto;
  }
html.csdm-reading-mode body #menu ul > li ul > li a {
    padding: 7px 20px 7px 14px;
    padding-right: 20px;
    transition: background-color .25s ease-out;
    background-color: #1e1e1e !important;
    color: #bbb2b2 !important;
}
html.csdm-reading-mode body #menu ul > li ul {
  background-color: #000 !important;
  right: 0;
}

html.csdm-reading-mode body #menu ul > li ul:hover {
  background-color: #423c3c !important;
  right: 0;
}
html.csdm-reading-mode body #menu ul > li ul a:hover {
  background-color: #423c3c !important;
  right: 0;
}

html.csdm-reading-mode body .cs-social-follow,
html.csdm-reading-mode body .cs-social-follow *,
html.csdm-reading-mode body .cs-button-seguir,
html.csdm-reading-mode body .cs-button-seguir a {
    color: #fff !important;
}

html.csdm-reading-mode body .search-header input:not([type=submit]):not([type=radio]):not([type=checkbox]):not([type=file]) {
    background-color: #fff !important;
    color: #000 !important;
}

html.csdm-reading-mode body .asap-hero-content h1 {
    color: #e0b982 !important;
}

html.csdm-reading-mode body .site-header svg,
html.csdm-reading-mode body .site-header path,
html.csdm-reading-mode body .site-header button,
html.csdm-reading-mode body .site-header input {
    filter: none !important;
    color: #000 !important;
    background-color: transparent !important;
    border-color: #ccc !important;
}


/* Modo Lectura: fondo general y texto */
html.csdm-reading-mode body,
html.csdm-reading-mode body .asap-content-box,
html.csdm-reading-mode body .the-content,
html.csdm-reading-mode body .site,
html.csdm-reading-mode body .entry-content {
    background-color: #121212 !important;
    color: #f1f1f1 !important;
}

html.csdm-reading-mode body p,
html.csdm-reading-mode body span,
html.csdm-reading-mode body div,
html.csdm-reading-mode body li,
html.csdm-reading-mode body td,
html.csdm-reading-mode body th {
    color: #e0e0e0 !important;
}
html.csdm-reading-mode body h1,
html.csdm-reading-mode body h4,
html.csdm-reading-mode body h5,
html.csdm-reading-mode body h6 {
    color: #FDBE02 !important;
}
html.csdm-reading-mode body h2{
    color: #FF8040 !important;
}
html.csdm-reading-mode body h3 {
    color: #ABBDB3 !important;
}

/* Enlaces */
html.csdm-reading-mode body a {
    color: #f4f0b6 !important;
}

html.csdm-reading-mode body a:hover {
    color: #e4da48 !important;
}


/* Formularios */
html.csdm-reading-mode body input,
html.csdm-reading-mode body select,
html.csdm-reading-mode body textarea {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}


html.csdm-reading-mode body blockquote {
  background-color: #1a1a1a !important;
  color: #ccc !important;
  border-left: 4px solid #07f54e !important;
  border-right: 1px solid #0553e8 !important;
  border-bottom: 1px solid #0553e8 !important;
  border-top: 1px solid #0553e8 !important;
  border-radius: 10px 0px 0px 10px;
  max-width: 100%;
  clear: both;
  overflow: hidden;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  display: inline-block;
}


/* Tablas */
html.csdm-reading-mode body table {
    background-color: #1e1e1e;
    color: #ddd;
}

html.csdm-reading-mode body th,
html.csdm-reading-mode body td {
    border-color: #444;
}
 html.csdm-reading-mode body tr:hover {
            background-color: #000;
	        color: #ddd;
        }

/* Imágenes */
html.csdm-reading-mode body .wp-block-image img {
    filter: brightness(0.85) !important;
	border: 1px solid #f30808 !important;
}
html.csdm-reading-mode body img {
    filter: brightness(0.85) !important;
}

/* Enlazatom */
html.csdm-reading-mode body .enlazatom-show-box {
    background-color: #1e1e1e !important;
    color: #f1f1f1 !important;
    border: 1px solid #444 !important;
}

html.csdm-reading-mode body .enlazatom-show-box span {
    color: #e0e0e0 !important;
}

html.csdm-reading-mode body .enlazatom-show-box img {
    filter: brightness(0.85) !important;
}


/* Comentarios */
html.csdm-reading-mode body .area-comentarios,
html.csdm-reading-mode body #comentarios {
    background-color: #1a1a1a !important;
    color: #f1f1f1 !important;
    border-color: #333 !important;
}

html.csdm-reading-mode body .area-comentarios .comment-body {
    background-color: #202020 !important;
    border: 1px solid #333 !important;
    padding: 1em;
    border-radius: 5px;
    margin-bottom: 20px;
}

html.csdm-reading-mode body .asap-user-comment-text {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    font-size: 1em;
    line-height: 1.6;
    padding: 1em;
    border-radius: 5px;
    border: 1px solid #444;
}

html.csdm-reading-mode body .comment-author a,
html.csdm-reading-mode body .commentmetadata a,
html.csdm-reading-mode body .reply a {
    color: #80cbc4 !important;
    text-decoration: underline;
}

html.csdm-reading-mode body .comment-author a:hover,
html.csdm-reading-mode body .reply a:hover {
    color: #4dd0e1 !important;
}

html.csdm-reading-mode body .comment-respond {
    text-align: center;
}

html.csdm-reading-mode body .comment-respond input,
html.csdm-reading-mode body .comment-respond textarea {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html.csdm-reading-mode body .comment-respond input::placeholder,
html.csdm-reading-mode body .comment-respond textarea::placeholder {
    color: #aaa !important;
}

html.csdm-reading-mode body .area-comentarios ol {
    background-color: #181818 !important;
    border: 1px solid #333 !important;
    border-radius: 6px;
    padding: 1.5em;
    margin: 0;
    list-style: none;
}


/* Artículos ASAP */
html.csdm-reading-mode body .article-loop,
html.csdm-reading-mode body .article-loop .asap-box-container,
html.csdm-reading-mode body .asap-box-container {
    background-color: #1a1a1a !important;
    color: #f1f1f1 !important;
    border-radius: 0;
}
html.csdm-reading-mode body .article-loop {
  padding-bottom: 0 !important;
  margin-bottom: 1.5rem;
}
html.csdm-reading-mode body .article-loop .entry-title,
html.csdm-reading-mode body .asap-box-container .entry-title,
html.csdm-reading-mode body .asap-box-container p,
html.csdm-reading-mode body .asap-box-container span {
    color: #ffffff !important;
}

html.csdm-reading-mode body .article-loop:hover .entry-title,
html.csdm-reading-mode body .article-loop a:hover .entry-title {

    color: #FDBE02 !important;
}

html.csdm-reading-mode body .entry-title {
    transition: color 0.2s ease-in-out;
}

html.csdm-reading-mode body .article-loop img {
    filter: brightness(0.85) !important;
}
/* Estilo para FAQs en modo lectura */
html.csdm-reading-mode body .asap-faq-accordion {
  background-color: #1a1a1a !important;
  color: #f1f1f1 !important;
  border-radius: 6px;
  padding: 10px 0 !important;
}

html.csdm-reading-mode body .asap-faq-accordion summary {
  background-color: transparent !important;
  color: #f1f1f1 !important;
  font-weight: bold;
  padding: 10px 20px !important;
  border-bottom: 1px solid #444 !important;
  cursor: pointer;
}

html.csdm-reading-mode body .asap-faq-accordion summary h4 {
  color: #e79e07 !important;
  font-size: 20px !important;
  margin: 0;
}

html.csdm-reading-mode body .asap-faq-accordion summary .faq-arrow {
  color: #f1f1f1 !important;
}

html.csdm-reading-mode body .asap-faq-accordion details > div {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  padding: 10px 20px !important;
  border-left: 3px solid #555 !important;
}

html.csdm-reading-mode body .asap-faq-accordion details {
  margin-bottom: 10px !important;
  border-bottom: 1px solid #444 !important;
  padding-bottom: 10px !important;
}
/* Estilo para paginación CSPB en modo lectura */
html.csdm-reading-mode body .cspb-pagination-container {
  background-color: #1a1a1a !important;
  padding: 1em;
  border-radius: 6px;
  margin-top: 2em;
  text-align: center;
}

html.csdm-reading-mode body .cspb-pagination-text {
  color: #cccccc !important;
  margin-right: 10px;
  font-weight: bold;
}

html.csdm-reading-mode body .cspb-pagination-link {
  background-color: #2a2a2a !important;
  color: #80cbc4 !important;
  border: 1px solid #444 !important;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 4px;
  text-decoration: none;
}

html.csdm-reading-mode body .cspb-pagination-link:hover {
  background-color: #3b3b3b !important;
  color: #4dd0e1 !important;
}

html.csdm-reading-mode body .cspb-current-page {
  background-color: #555 !important;
  color: #fff !important;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 4px;
  font-weight: bold;
}
/* Estilos para cajas informativas en modo lectura oscuro */
html.csdm-reading-mode body .asap-info-box-item {
    background-color: #1e1e1e !important;
    border-color: #444 !important;
    color: #f1f1f1 !important;
}

html.csdm-reading-mode body .asap-info-box-item h3 {
    color: #FDBE02 !important;
}

html.csdm-reading-mode body .asap-info-box-item div {
    color: #e0e0e0 !important;
}

html.csdm-reading-mode body .asap-info-box-icon {
    color: #80cbc4 !important;
}
/* Fondo general y texto */
html.csdm-reading-mode body .asap-procons-section {
    background-color: #1a1a1a !important;
    color: #f1f1f1 !important;
}

/* Títulos de columnas */
html.csdm-reading-mode body .asap-procons-left h3,
html.csdm-reading-mode body .asap-procons-right h3 {
    color: #FDBE02 !important;
}

/* Recuadros de ítems pros/cons */
html.csdm-reading-mode body .asap-procons-left div[style*="border"],
html.csdm-reading-mode body .asap-procons-right div[style*="border"] {
    background-color: #1e1e1e !important;
    border-color: #444 !important;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1) !important;
}

/* Texto interno */
html.csdm-reading-mode body .asap-procons-left div[style*="white-space"],
html.csdm-reading-mode body .asap-procons-right div[style*="white-space"] {
    color: #e0e0e0 !important;
}

/* Íconos */
html.csdm-reading-mode body .asap-procons-left i {
    color: #80cbc4 !important; /* azul verdoso positivo */
}
html.csdm-reading-mode body .asap-procons-right i {
    color: #ef5350 !important; /* rojo más suave negativo */
}
/* Estilo oscuro para bloques de nota informativa */
html.csdm-reading-mode body .asap-note-info {
    background-color: #1e1e1e !important;
    border: 2px solid #444 !important;
    color: #80cbc4 !important;
}

/* Ícono del bloque */
html.csdm-reading-mode body .asap-note-info i {
    color: #4dd0e1 !important;
}
/* Fondo general del slider */
html.csdm-reading-mode body .asap-testimonial-slider,
html.csdm-reading-mode body .asap-testimonial-slider .asap-slide {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

/* Títulos del slide */
html.csdm-reading-mode body .asap-testimonial-slider h3 {
    color: #FDBE02 !important;
}

/* Texto de testimonio */
html.csdm-reading-mode body .asap-testimonial-slider div[style*="line-height"] {
    color: #e0e0e0 !important;
}

/* Nombre del autor */
html.csdm-reading-mode body .asap-testimonial-slider div[style*="font-weight:bold"] {
    color: #ffffff !important;
}

/* Cargo o posición */
html.csdm-reading-mode body .asap-testimonial-slider div[style*="opacity:0.8"] {
    color: #bbbbbb !important;
}

/* Estrellas (mantener doradas pero más suaves en fondo oscuro) */
html.csdm-reading-mode body .asap-testimonial-slider span {
    color: #FFD700 !important;
}

/* Paginación activa/inactiva */
html.csdm-reading-mode body .asap-testimonial-slider .asap-nav label {
    background: #80cbc4 !important;
}
/* Fondo y color de texto para bloques expandibles */
html.csdm-reading-mode body .asap-ce-no-collapse {
    background-color: #1a1a1a !important;
    padding: 0 !important;
}

html.csdm-reading-mode body .asap-ce-no-collapse p {
    color: #e0e0e0 !important;
}
/* Tabla de precios - fondo oscuro y texto claro */
html.csdm-reading-mode body .asap-pricing-table-wrap .asap-price-col {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3) !important;
    border: 1px solid #333 !important;
}

/* Encabezados de columna */
html.csdm-reading-mode body .asap-price-col h4 {
    color: #FDBE02 !important;
}

/* Subtítulos */
html.csdm-reading-mode body .asap-price-col > div[style*="color:#777"] {
    color: #bbbbbb !important;
}

/* Precio */
html.csdm-reading-mode body .asap-price-col > div[style*="font-size:32px"] {
    color: #ffffff !important;
}

/* Lista de características */
html.csdm-reading-mode body .asap-price-col ul li {
    color: #e0e0e0 !important;
}

/* Botones */
html.csdm-reading-mode body .asap-price-col a {
    background: #80cbc4 !important;
    color: #000 !important;
}

/* Etiqueta POPULAR */
html.csdm-reading-mode body .asap-price-col > div[style*="background:#e53935"] {
    background: #e53935 !important;
    color: #fff !important;
}
/* Contenedor general */
html.csdm-reading-mode body .asap-ce-wrapper {
  background: #1a1a1a !important;
  color: #f1f1f1 !important;
  border: 1px solid #333 !important;
  border-radius: 6px;
}

/* Contenido visible (excerpt) */
html.csdm-reading-mode body .asap-ce-wrapper .asap-ce-excerpt {
  background-color: #1a1a1a !important;
  position: relative;
}

html.csdm-reading-mode body .asap-ce-wrapper .asap-ce-excerpt p {
  color: #e0e0e0 !important;
}

/* Fade visual para contenido colapsado */
html.csdm-reading-mode body .asap-ce-wrapper .asap-ce-fade {
  background: linear-gradient(to bottom, transparent, #1a1a1a) !important;
  height: 60px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  pointer-events: none;
}

/* Contenido extra (expandible) */
html.csdm-reading-mode body .asap-ce-wrapper .asap-ce-extra-container {
  background-color: #1a1a1a !important;
}

html.csdm-reading-mode body .asap-ce-wrapper .asap-ce-extra p {
  color: #e0e0e0 !important;
}

/* Botones Mostrar más / menos */
html.csdm-reading-mode body .asap-ce-wrapper .asap-ce-btn {
  background-color: #80cbc4 !important;
  color: #000 !important;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
  display: inline-block;
}

/* Enlace visual (enlazatom dentro de bloque colapsable) */
html.csdm-reading-mode body .asap-ce-wrapper .enlazatom-show-box {
  background: #2a2a2a !important;
  border: 1px solid #444 !important;
  color: #f1f1f1 !important;
}

html.csdm-reading-mode body .asap-ce-wrapper .enlazatom-show-box span {
  color: #e0e0e0 !important;
}

html.csdm-reading-mode body .asap-ce-wrapper .enlazatom-show-box img {
  filter: brightness(0.85) !important;
}

/* Botones Mostrar más / Mostrar menos */
html.csdm-reading-mode body .asap-ce-wrapper .asap-ce-btn {
  background-color: #80cbc4 !important;
  color: #000 !important;
}
/* Fondo general del locker */
html.csdm-reading-mode body .asap-social-locker-wrapper,
html.csdm-reading-mode body .asap-social-locker-overlay {
    background-color: #1e1e1e !important;
    color: #f1f1f1 !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    padding: 1em !important;
}

/* Título y descripción */
html.csdm-reading-mode body .asap-social-locker-overlay h4,
html.csdm-reading-mode body .asap-social-locker-overlay p {
    color: #f1f1f1 !important;
}

/* Botones de redes */
html.csdm-reading-mode body .asap-social-locker-overlay button {
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    margin: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
}


/* Iconos SVG (asegurar visibilidad) */
html.csdm-reading-mode body .asap-social-locker-overlay svg {
    stroke: #ffffff !important;
}
