/* ===== ESTILOS DEL BOTÓN DE MODO OSCURO ===== */
.csdm-dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 1.3em;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-left: 15px;
    color: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
}

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

.csdm-dark-mode-toggle .csdm-icon {
    display: block;
}

/* Estilo para el botón dentro de listas de menú */
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: 12px 16px;
}

/* Asegurar visibilidad en menú móvil */
@media (max-width: 768px) {
    .csdm-dark-mode-toggle {
        padding: 8px 12px;
        font-size: 1.1em;
    }
    
    .site-header .csdm-dark-mode-toggle,
    .header-navigation .csdm-dark-mode-toggle {
        padding: 10px 12px;
        margin-left: 10px;
    }
}

/* Evitar conflicto con chat de IA (bajar z-index si es necesario) */
.csdm-dark-mode-toggle {
    z-index: 999;
}
/* Modo Lectura: Header limpio y conservado como el theme */
body.reading-mode footer {
    background: #190808e0 !important;
}
body.reading-mode .content-footer {
    background: #190808e0 !important;
}
body.reading-mode .article-loop a {
    background: #000 !important;
    border: 1px solid #ff040440 !important;
    margin-bottom: 1rem !important;
  margin-top: 1rem !important;
}
body.reading-mode 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);  
}
body.reading-mode .may {
	color: #fff !important;
}
body.reading-mode .carta p{
    color: #000 !important;
}
/* Solo este contenedor centra el div interior */
body.reading-mode .centrador-local {
  text-align: center;
}

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

body.reading-mode ::-moz-selection {
  background-color: #fff;  /* Color de fondo para Firefox */
  color: #000;             /* Color del texto seleccionado */
}
body.reading-mode .freecopy {
    background-color: #121212 !important;
}
/* El div se adapta al contenido */
body.reading-mode .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;
}
body.reading-mode .div-centrado h2 {
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
} 
body.reading-mode .wp-block-archives-list .wp-block-archives a {
    color: #2471a3 !important;
}
body.reading-mode .copyright {
    background: linear-gradient(to bottom, #323d45, #000);
    color: #fff !important;
}
body.reading-mode .piefooter a {
    color: #e4ef04 !important;
}
body.reading-mode .site-name, .site-name h1 {
    letter-spacing: 0.15em;
    word-spacing: 0.15em;
    font-size: 2.50rem !important;
}
body.reading-mode .site-header {
    background-color: #190808e0 !important;
    color: #000 !important;
}
body.reading-mode .site-header a:hover {
    color: #887c6b !important;
}
body.reading-mode .site-name a {
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
  color: #e0b982 !important;
  font-weight: bold;}
body.reading-mode .header-menu a {
  color: #e0b982 !important;
  font-weight: bold;}
body.reading-mode .asap-hero-content h1, .asap-hero-content p {
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
  color: #e0b982 !important;
  font-weight: bold;}

 body.reading-mode #menu > ul > li {
    background-color: #190808e0 !important;
}
 body.reading-mode #menu > ul > li a {
  color: #e0b982 !important;
}
  body.reading-mode #menu {
    background: transparent !important;
      padding-bottom: 0px;
  }
 body.reading-mode #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;
}
body.reading-mode .menu-item a {
  color: #000;
  font-weight: bold;
}

  body.reading-mode header #menu a {
    height: auto;
  }
body.reading-mode #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;
}
body.reading-mode #menu ul > li ul {
  background-color: #000 !important;
  right: 0;
}

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

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

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

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

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


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

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

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

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


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


body.reading-mode 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 */
body.reading-mode table {
    background-color: #1e1e1e;
    color: #ddd;
}

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

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

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

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

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


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

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

body.reading-mode .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;
}

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

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

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

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

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

body.reading-mode .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 */
body.reading-mode .article-loop,
body.reading-mode .article-loop .asap-box-container,
body.reading-mode .asap-box-container {
    background-color: #1a1a1a !important;
    color: #f1f1f1 !important;
    border-radius: 0;
}
body.reading-mode .article-loop {
  padding-bottom: 0 !important;
  margin-bottom: 1.5rem;
}
body.reading-mode .article-loop .entry-title,
body.reading-mode .asap-box-container .entry-title,
body.reading-mode .asap-box-container p,
body.reading-mode .asap-box-container span {
    color: #ffffff !important;
}

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

    color: #FDBE02 !important;
}

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

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

body.reading-mode .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;
}

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

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

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

body.reading-mode .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 */
body.reading-mode .cspb-pagination-container {
  background-color: #1a1a1a !important;
  padding: 1em;
  border-radius: 6px;
  margin-top: 2em;
  text-align: center;
}

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

body.reading-mode .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;
}

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

body.reading-mode .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 */
body.reading-mode .asap-info-box-item {
    background-color: #1e1e1e !important;
    border-color: #444 !important;
    color: #f1f1f1 !important;
}

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

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

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

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

/* Recuadros de ítems pros/cons */
body.reading-mode .asap-procons-left div[style*="border"],
body.reading-mode .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 */
body.reading-mode .asap-procons-left div[style*="white-space"],
body.reading-mode .asap-procons-right div[style*="white-space"] {
    color: #e0e0e0 !important;
}

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

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

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

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

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

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

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

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

body.reading-mode .asap-ce-no-collapse p {
    color: #e0e0e0 !important;
}
/* Tabla de precios - fondo oscuro y texto claro */
body.reading-mode .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 */
body.reading-mode .asap-price-col h4 {
    color: #FDBE02 !important;
}

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

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

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

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

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

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

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

/* Fade visual para contenido colapsado */
body.reading-mode .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) */
body.reading-mode .asap-ce-wrapper .asap-ce-extra-container {
  background-color: #1a1a1a !important;
}

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

/* Botones Mostrar más / menos */
body.reading-mode .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) */
body.reading-mode .asap-ce-wrapper .enlazatom-show-box {
  background: #2a2a2a !important;
  border: 1px solid #444 !important;
  color: #f1f1f1 !important;
}

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

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

/* Botones Mostrar más / Mostrar menos */
body.reading-mode .asap-ce-wrapper .asap-ce-btn {
  background-color: #80cbc4 !important;
  color: #000 !important;
}
/* Fondo general del locker */
body.reading-mode .asap-social-locker-wrapper,
body.reading-mode .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 */
body.reading-mode .asap-social-locker-overlay h4,
body.reading-mode .asap-social-locker-overlay p {
    color: #f1f1f1 !important;
}

/* Botones de redes */
body.reading-mode .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) */
body.reading-mode .asap-social-locker-overlay svg {
    stroke: #ffffff !important;
}
