/* DC Homepage v1.3
   Prefijo #dc-home + dch- para máxima especificidad
   Sin scroll horizontal: overflow-x:hidden en el contenedor
   ========================================================= */

/* ── VARIABLES ── */
#dc-home {
  --c-bg:    #f0f2f5;
  --c-card:  #ffffff;
  --c-text:  #142033;
  --c-muted: #5a6474;
  --c-line:  #e2e8f0;
  --c-blue:  #0f4c81;
  --c-blue2: #1565c0;
  --c-red:   #c81d25;
  --c-r:     14px;
  --c-sh:    0 2px 14px rgba(14,28,48,.09);
}

/* ── CONTENEDOR ── */
#dc-home {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px;
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}
#dc-home *, #dc-home *::before, #dc-home *::after {
  box-sizing: border-box;
  max-width: 100%; /* ningún elemento puede superar su contenedor */
}
#dc-home img   { display: block; width: 100%; height: auto; max-width: 100%; }
#dc-home h1, #dc-home h2, #dc-home h3, #dc-home h4 { margin: 0; padding: 0; }
#dc-home p     { margin: 0; }
#dc-home ul, #dc-home ol { list-style: none; margin: 0; padding: 0; }
#dc-home a     { text-decoration: none; color: var(--c-text); }
#dc-home a:hover { color: var(--c-blue2); }
#dc-home input, #dc-home button { box-sizing: border-box; }

/* ── SECCIONES ── */
#dc-home .dch-section     { margin-top: 20px; width: 100%; }
#dc-home .dch-section:first-child { margin-top: 0; }

#dc-home .dch-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 10px;
}
#dc-home .dch-ttl {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--c-text) !important;
  line-height: 1.2 !important;
  padding: 0 0 0 12px !important;
  margin: 0 !important;
  border: none !important;
  border-left: 4px solid var(--c-red) !important;
  background: none !important;
  box-shadow: none !important;
}
#dc-home .dch-section > .dch-ttl { margin-bottom: 13px !important; }
#dc-home .dch-more {
  font-size: 14px; font-weight: 700;
  color: var(--c-blue2); white-space: nowrap; flex-shrink: 0;
}
#dc-home .dch-more:hover { text-decoration: underline; color: var(--c-blue2); }

/* ── BADGES ── */
#dc-home .dch-badge {
  display: inline-block !important;
  font-size: 11px !important; font-weight: 800 !important;
  text-transform: uppercase !important; letter-spacing: .05em !important;
  color: #fff !important; background: var(--c-blue) !important;
  padding: 3px 9px !important; border-radius: 6px !important;
  line-height: 1.7 !important; border: none !important; text-decoration: none !important;
}
#dc-home .dch-badge:hover   { color: #fff !important; opacity: .88; }
#dc-home .dch-badge-red     { background: var(--c-red) !important; }
#dc-home .dch-badge-sm      { font-size: 10px !important; padding: 2px 7px !important; }

/* Categoría en feed (texto plano) */
#dc-home .dch-feed-cat {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--c-blue2) !important; margin-bottom: 4px;
  background: none !important; padding: 0 !important; border: none !important;
}
#dc-home .dch-feed-cat:hover { text-decoration: underline; }

/* Categoría en secundarias */
#dc-home .dch-cat-lbl {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--c-blue2) !important; margin-bottom: 3px;
  background: none !important; padding: 0 !important;
}

/* ── META ── */
#dc-home .dch-meta {
  display: block; font-size: 13px; color: var(--c-muted);
  margin-top: 5px; line-height: 1.4;
  background: none !important; padding: 0 !important;
}

/* ── WRAPPERS DE IMAGEN ── */
/* 16:9 */
#dc-home .dch-box-16x9 {
  display: block; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--c-line); flex-shrink: 0;
}
/* Cuadrada pequeña (hero mini) */
#dc-home .dch-box-sq-sm {
  display: block; width: 88px; min-width: 88px; height: 66px;
  border-radius: 9px; overflow: hidden; background: var(--c-line); flex-shrink: 0;
}
/* Cuadrada categoría sub */
#dc-home .dch-box-sq {
  display: block; width: 88px; min-width: 88px; height: 66px;
  border-radius: 8px; overflow: hidden; background: var(--c-line); flex-shrink: 0;
}
/* Popular (cuadrada mediana) */
#dc-home .dch-box-pop {
  display: block; width: 62px; min-width: 62px; height: 62px;
  border-radius: 9px; overflow: hidden; background: var(--c-line); flex-shrink: 0;
}
#dc-home .dch-img { display: block; width: 100%; height: 100%; object-fit: cover; }
#dc-home .dch-ph  { display: block; width: 100%; height: 100%; background: var(--c-line); }

/* ════════════════════
   HERO
════════════════════ */
#dc-home .dch-hero-grid {
  display: flex; flex-direction: column; gap: 12px;
}
#dc-home .dch-hero-main {
  background: var(--c-card); border-radius: var(--c-r);
  overflow: hidden; box-shadow: var(--c-sh);
}
#dc-home .dch-hero-img-a { display: block; }
#dc-home .dch-hero-body  { padding: 15px 16px 18px; }
#dc-home .dch-hero-ttl {
  font-size: 24px !important; font-weight: 800 !important;
  line-height: 1.12 !important; color: var(--c-text) !important;
  margin: 9px 0 !important; letter-spacing: -.02em;
}
#dc-home .dch-hero-ttl a       { color: var(--c-text); }
#dc-home .dch-hero-ttl a:hover { color: var(--c-blue2); }
#dc-home .dch-exc { font-size: 15px; line-height: 1.55; color: var(--c-muted); margin-top: 7px; }

/* Secundarias hero */
#dc-home .dch-hero-side { display: flex; flex-direction: column; gap: 10px; }
#dc-home .dch-hero-mini {
  background: var(--c-card); border-radius: var(--c-r);
  overflow: hidden; box-shadow: var(--c-sh);
}
#dc-home .dch-hero-mini-a {
  display: flex !important; flex-direction: row !important;
  align-items: flex-start !important; gap: 11px !important;
  padding: 11px 12px !important; color: var(--c-text) !important;
  text-decoration: none !important;
}
#dc-home .dch-hero-mini-a:hover .dch-hero-mini-ttl { color: var(--c-blue2) !important; }
#dc-home .dch-hero-mini-body { flex: 1; min-width: 0; }
#dc-home .dch-hero-mini-ttl {
  font-size: 15px !important; font-weight: 800 !important;
  line-height: 1.25 !important; color: var(--c-text) !important;
  margin: 5px 0 !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ════════════════════
   BÚSQUEDA
════════════════════ */
#dc-home .dch-search-wrap {
  background: var(--c-card);
  border-radius: var(--c-r);
  padding: 16px;
  box-shadow: var(--c-sh);
}
#dc-home .dch-search-form {
  display: flex !important;
  flex-direction: row !important;
  gap: 0 !important;
  width: 100%;
  border: 2px solid var(--c-blue);
  border-radius: 10px;
  overflow: hidden;
}
#dc-home .dch-search-input {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: var(--c-text) !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
#dc-home .dch-search-input::placeholder { color: var(--c-muted); }
#dc-home .dch-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 12px 18px !important;
  background: var(--c-blue) !important;
  color: #fff !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
}
#dc-home .dch-search-btn:hover { background: var(--c-blue2) !important; }
#dc-home .dch-search-btn svg { width: 18px; height: 18px; stroke: #fff; }

/* ════════════════════
   SERVICIOS
════════════════════ */
#dc-home .dch-svcs-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Evitar que el scroll interno desborde */
  max-width: 100%;
}
#dc-home .dch-svcs-inner::-webkit-scrollbar { display: none; }
#dc-home .dch-svcs-inner,
#dc-home .dch-svcs-inner * { color: #fff !important; }
#dc-home .dch-svcs-inner svg,
#dc-home .dch-svcs-inner path { fill: #fff !important; stroke: #fff !important; }

/* ════════════════════
   FEED
════════════════════ */
#dc-home .dch-feed {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
#dc-home .dch-feed-card {
  background: var(--c-card); border-radius: var(--c-r);
  overflow: hidden; box-shadow: var(--c-sh);
}
#dc-home .dch-feed-img-a { display: block; }
#dc-home .dch-feed-body  { padding: 12px 14px 15px; }
#dc-home .dch-feed-ttl {
  font-size: 16px !important; font-weight: 800 !important;
  line-height: 1.25 !important; color: var(--c-text) !important; margin: 4px 0 !important;
}
#dc-home .dch-feed-ttl a       { color: var(--c-text); }
#dc-home .dch-feed-ttl a:hover { color: var(--c-blue2); }

/* ════════════════════
   ADSENSE
════════════════════ */
#dc-home .dch-ad {
  margin-top: 20px; background: var(--c-card); border-radius: var(--c-r);
  padding: 8px; box-shadow: var(--c-sh); text-align: center;
  overflow: hidden; width: 100%;
}
#dc-home .dch-ad-lbl {
  display: block; font-size: 10px; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}

/* ════════════════════
   WIDGETS
════════════════════ */
#dc-home .dch-widgets { display: grid; grid-template-columns: 1fr; gap: 14px; }
#dc-home .dch-widget {
  background: var(--c-card); border-radius: var(--c-r);
  padding: 14px 16px; box-shadow: var(--c-sh); overflow: hidden; min-height: 80px;
}
#dc-home .dch-widget-lbl {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-bottom: 10px;
}

/* ════════════════════
   LO MÁS LEÍDO
════════════════════ */
#dc-home .dch-popular {
  background: var(--c-card); border-radius: var(--c-r);
  overflow: hidden; box-shadow: var(--c-sh);
}
#dc-home .dch-pop-list {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
  counter-reset: dch-n;
}
#dc-home .dch-pop-item {
  counter-increment: dch-n;
  position: relative;
  border-bottom: 1px solid var(--c-line);
  margin: 0 !important; padding: 0 !important; display: block !important;
}
#dc-home .dch-pop-item:last-child { border-bottom: none; }
#dc-home .dch-pop-item::before {
  content: counter(dch-n);
  position: absolute; left: 0; top: 0; z-index: 2;
  background: var(--c-blue); color: #fff;
  font-size: 10px; font-weight: 800; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 0 7px 0; line-height: 1;
}
/* FLEX HORIZONTAL con máxima especificidad */
#dc-home .dch-popular .dch-pop-list .dch-pop-item .dch-pop-a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px 12px 26px !important;
  margin: 0 !important;
  text-decoration: none !important;
  color: var(--c-text) !important;
  background: none !important;
  border: none !important;
  width: 100%;
  min-height: 0 !important;
}
#dc-home .dch-popular .dch-pop-list .dch-pop-item .dch-pop-a:hover .dch-pop-ttl {
  color: var(--c-blue2) !important;
}
#dc-home .dch-popular .dch-pop-list .dch-pop-item .dch-pop-a .dch-box-pop {
  /* ya definido arriba: 62x62 */
}
#dc-home .dch-popular .dch-pop-list .dch-pop-item .dch-pop-a .dch-img {
  display: block !important;
  width: 62px !important; min-width: 62px !important; height: 62px !important;
  border-radius: 9px !important; object-fit: cover !important;
  flex-shrink: 0 !important; margin: 0 !important; padding: 0 !important;
  float: none !important; position: static !important;
}
#dc-home .dch-pop-ttl {
  flex: 1 1 0 !important; min-width: 0 !important;
  font-size: 15px !important; font-weight: 700 !important;
  line-height: 1.3 !important; color: var(--c-text) !important;
  display: -webkit-box !important; -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important; background: none !important;
}

/* ════════════════════
   BLOQUES CATEGORÍA
════════════════════ */
#dc-home .dch-cat-wrap {
  background: var(--c-card); border-radius: var(--c-r);
  overflow: hidden; box-shadow: var(--c-sh);
  display: flex; flex-direction: column;
}
#dc-home .dch-cat-main-img-a { display: block; }
#dc-home .dch-cat-main-body  { padding: 14px 16px 16px; }
#dc-home .dch-cat-main-ttl {
  font-size: 18px !important; font-weight: 800 !important;
  line-height: 1.22 !important; color: var(--c-text) !important; margin: 8px 0 7px !important;
}
#dc-home .dch-cat-main-ttl a       { color: var(--c-text); }
#dc-home .dch-cat-main-ttl a:hover { color: var(--c-blue2); }
#dc-home .dch-cat-subs { border-top: 1px solid var(--c-line); }
#dc-home .dch-cat-sub  {
  border-bottom: 1px solid var(--c-line);
  margin: 0 !important; padding: 0 !important; display: block !important;
}
#dc-home .dch-cat-sub:last-child { border-bottom: none; }
/* FLEX HORIZONTAL forzado */
#dc-home .dch-cat-subs .dch-cat-sub .dch-cat-sub-a {
  display: flex !important; flex-direction: row !important;
  align-items: flex-start !important; gap: 11px !important;
  padding: 11px 15px !important; margin: 0 !important;
  color: var(--c-text) !important; text-decoration: none !important;
  background: none !important; border: none !important;
}
#dc-home .dch-cat-subs .dch-cat-sub .dch-cat-sub-a:hover .dch-cat-sub-ttl {
  color: var(--c-blue2) !important;
}
#dc-home .dch-cat-sub-body {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; padding-top: 2px;
}
#dc-home .dch-cat-sub-ttl {
  font-size: 15px !important; font-weight: 800 !important;
  line-height: 1.28 !important; color: var(--c-text) !important;
  margin: 0 0 4px !important;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ════════════════════
   CTA
════════════════════ */
#dc-home .dch-cta {
  background: linear-gradient(135deg,#0f4c81,#143a63);
  border-radius: var(--c-r); padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
#dc-home .dch-cta-ttl  { font-size: 20px !important; font-weight: 800 !important; color: #fff !important; line-height: 1.2 !important; margin-bottom: 6px !important; }
#dc-home .dch-cta-sub  { font-size: 15px; color: rgba(255,255,255,.88); line-height: 1.5; }
#dc-home .dch-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
#dc-home .dch-cta-btn  {
  display: inline-flex; align-items: center;
  padding: 11px 20px; border-radius: 9px;
  font-size: 14px; font-weight: 800;
  text-decoration: none !important; white-space: nowrap; border: none;
}
#dc-home .dch-cta-btn:hover { opacity: .88; }
#dc-home .dch-cta-a { background: #fff; color: #143a63 !important; }
#dc-home .dch-cta-b { background: rgba(255,255,255,.15); color: #fff !important; border: 1px solid rgba(255,255,255,.38) !important; }

/* ════════════════════
   PAGINACIÓN
════════════════════ */
#dc-home .dch-pag { margin-top: 28px; text-align: center; }
#dc-home .dch-pag .page-numbers {
  display: inline-flex !important; flex-wrap: wrap;
  gap: 7px; justify-content: center;
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
#dc-home .dch-pag .page-numbers li {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
#dc-home .dch-pag .page-numbers a,
#dc-home .dch-pag .page-numbers span {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px !important;
  font-size: 15px; font-weight: 700;
  color: var(--c-text) !important; background: var(--c-card) !important;
  box-shadow: var(--c-sh); border: 1px solid var(--c-line) !important;
  text-decoration: none !important; cursor: pointer;
}
#dc-home .dch-pag .page-numbers a:hover      { background: var(--c-blue) !important; color: #fff !important; border-color: var(--c-blue) !important; }
#dc-home .dch-pag .page-numbers .current     { background: var(--c-blue) !important; color: #fff !important; border-color: var(--c-blue) !important; }
#dc-home .dch-pag .page-numbers .dots        { background: transparent !important; box-shadow: none; border-color: transparent !important; }

/* Spinner */
#dc-home .dch-loading { display: none; text-align: center; padding: 20px; font-size: 14px; color: var(--c-muted); }
#dc-home .dch-loading.on { display: block; }
#dc-home .dch-loading::before {
  content: ''; display: inline-block; width: 20px; height: 20px;
  border: 3px solid var(--c-line); border-top-color: var(--c-blue);
  border-radius: 50%; animation: dch-spin .7s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes dch-spin { to { transform: rotate(360deg); } }

/* ════════════════════
   TABLET 600px+
════════════════════ */
@media (min-width: 600px) {
  #dc-home                 { padding: 14px; --dc-pad: 14px; }
  #dc-home .dch-ttl        { font-size: 22px !important; }
  #dc-home .dch-hero-ttl   { font-size: 28px !important; }
  #dc-home .dch-feed       { grid-template-columns: 1fr 1fr; }
  #dc-home .dch-widgets    { grid-template-columns: 1fr 1fr; }
  #dc-home .dch-cta        { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ════════════════════
   DESKTOP 900px+
════════════════════ */
@media (min-width: 900px) {
  #dc-home                 { padding: 18px; --dc-pad: 18px; }
  #dc-home .dch-hero-grid  { flex-direction: row; align-items: stretch; }
  #dc-home .dch-hero-main  { flex: 3; min-width: 0; }
  #dc-home .dch-hero-side  { flex: 2; min-width: 0; }
  #dc-home .dch-hero-ttl   { font-size: 30px !important; }
  #dc-home .dch-feed       { grid-template-columns: repeat(3,1fr); }
  #dc-home .dch-w3         { grid-template-columns: repeat(3,1fr); }
  #dc-home .dch-w2         { grid-template-columns: repeat(2,1fr); }
  #dc-home .dch-cat-wrap   { flex-direction: row; align-items: stretch; }
  #dc-home .dch-cat-main   { flex: 1; border-right: 1px solid var(--c-line); }
  #dc-home .dch-cat-subs   { flex: 1; border-top: none; min-width: 0; }
  #dc-home .dch-cat-subs .dch-cat-sub:first-child { border-top: none; }
  #dc-home .dch-cat-main .dch-box-16x9 { aspect-ratio: unset; height: 100%; min-height: 220px; }
}

/* ════════════════════
   WIDE 1100px+
════════════════════ */
@media (min-width: 1100px) {
  #dc-home .dch-hero-main { flex: 4; }
  #dc-home .dch-hero-side { flex: 2; }
  #dc-home .dch-hero-ttl  { font-size: 32px !important; }
}

/* ── Accesibilidad ── */
#dc-home a:focus-visible { outline: 3px solid var(--c-blue2); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { #dc-home .dch-loading::before { animation: none; } }

/* ════════════════════════════════════════════
   LO MÁS LEÍDO + BANNER APP — layout 50/50
════════════════════════════════════════════ */

/* Contenedor 50/50 en desktop, apilado en móvil */
#dc-home .dch-pop-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  #dc-home .dch-pop-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
  }
  #dc-home .dch-pop-col { flex: 1; min-width: 0; }
  #dc-home .dch-app-col { flex: 1; min-width: 0; }
}

/* ── Columna Popular ── */
#dc-home .dch-pop-col {}

/* ── Banner App ── */
#dc-home .dch-app-col {}

#dc-home .dch-app-card {
  position: relative;
  border-radius: var(--c-r);
  overflow: hidden;
  background: linear-gradient(145deg, #0a1628 0%, #0f2548 50%, #0a1e3d 100%);
  padding: 28px 24px 24px;
  box-shadow: 0 8px 32px rgba(15,36,72,.35);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Glow decorativo */
#dc-home .dch-app-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,76,129,.6) 0%, transparent 70%);
  pointer-events: none;
}

#dc-home .dch-app-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#dc-home .dch-app-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1565c0, #0f4c81);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(15,76,129,.5);
  flex-shrink: 0;
}

#dc-home .dch-app-badge {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: #7dd3fc;
  background: rgba(125,211,252,.12);
  border: 1px solid rgba(125,211,252,.25);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

#dc-home .dch-app-ttl {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#dc-home .dch-app-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  margin: 0;
}

#dc-home .dch-app-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fbbf24;
}
#dc-home .dch-app-stars-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}

#dc-home .dch-app-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#dc-home .dch-app-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 11px 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
  transition: transform .15s, opacity .15s;
  border: none !important;
}
#dc-home .dch-app-btn:hover { transform: translateY(-1px); opacity: .92; }

#dc-home .dch-app-android {
  background: #ffffff !important;
  color: #0a1628 !important;
}
#dc-home .dch-app-ios {
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}

#dc-home .dch-app-note {
  font-size: 11px;
  color: rgba(255,255,255,.38);
  text-align: center;
  margin: 0;
}

/* ════════════════════════════════════════════
   WIDGETS — diseño propio sin Shadow DOM
════════════════════════════════════════════ */

#dc-home .dch-wcard {
  background: var(--c-card);
  border-radius: var(--c-r);
  overflow: hidden;
  box-shadow: var(--c-sh);
}

/* Borde superior de color por tipo */
#dc-home .dch-wcard-une   { border-top: 3px solid #ff7a45; }
#dc-home .dch-wcard-tasas { border-top: 3px solid #22c55e; }
#dc-home .dch-wcard-bcc   { border-top: 3px solid #3b82f6; }

/* Header del widget */
#dc-home .dch-wcard-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--c-line);
}
#dc-home .dch-wcard-hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
#dc-home .dch-wcard-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
#dc-home .dch-wcard-ttl {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.2;
}
#dc-home .dch-wcard-sub {
  display: block;
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 2px;
}
#dc-home .dch-wcard-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
#dc-home .dch-wbadge-green { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
#dc-home .dch-wbadge-blue  { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }

/* Body del widget */
#dc-home .dch-wcard-body { padding: 14px 16px; }

/* Skeleton loader */
#dc-home .dch-wskel {
  height: 20px;
  border-radius: 6px;
  background: var(--c-line);
  margin-bottom: 10px;
  animation: dch-sk 1.2s ease-in-out infinite;
  will-change: opacity;
}
#dc-home .dch-wskel:last-child { margin-bottom: 0; width: 70%; }
@keyframes dch-sk {
  0%,100% { opacity: .5; }
  50%      { opacity: 1; }
}

/* Error */
#dc-home .dch-werr {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
  padding: 4px 0;
}

/* Footer del widget (timestamp) */
#dc-home .dch-wcard-ft {
  padding: 8px 16px 12px;
  font-size: 11px;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
}
#dc-home .dch-wcard-ft:empty { display: none; }

/* ── UNE: filas de dato ── */
#dc-home .dch-urow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  gap: 8px;
}
#dc-home .dch-urow:last-child { border-bottom: none; }
#dc-home .dch-urow b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#dc-home .dch-urow-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
}
#dc-home .dch-urow-alert b { color: #dc2626; }
#dc-home .dch-urow-sep { padding-top: 14px; }

/* ── Tasas/BCC: grid de cards ── */
#dc-home .dch-tgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 500px) {
  #dc-home .dch-tgrid     { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  #dc-home .dch-tgrid-bcc { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
#dc-home .dch-titem {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
#dc-home .dch-tcode {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
}
#dc-home .dch-tval {
  font-size: 20px;
  font-weight: 900;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
#dc-home .dch-tsub {
  font-size: 10px;
  color: var(--c-muted);
  font-weight: 600;
}


/* ════════════════════════════════════════════
   WIDGETS — estilos adicionales v1.6
════════════════════════════════════════════ */

/* Dato no disponible */
#dc-home .dch-nd { color: var(--c-muted); font-style: normal; }

/* Bloques UNE (estado actual / pico) */
#dc-home .dch-ublock {
  margin-bottom: 6px;
}
#dc-home .dch-ublock-pico {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--c-line);
  margin-bottom: 0;
}
#dc-home .dch-ublock-ttl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
  margin-bottom: 4px;
  padding-bottom: 4px;
}
#dc-home .dch-ublock-ttl-pico {
  color: #7c3aed;
}

/* Filas UNE */
#dc-home .dch-urow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  gap: 8px;
}
#dc-home .dch-urow:last-child { border-bottom: none; }
#dc-home .dch-urow-k { color: var(--c-muted); font-size: 13px; }
#dc-home .dch-urow-v {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--c-text);
}
#dc-home .dch-urow-alert .dch-urow-v { color: #dc2626; }
#dc-home .dch-urow-warn  .dch-urow-v { color: #d97706; }

/* Línea conversión MLC→USD */
#dc-home .dch-tconvrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--c-bg);
  border-radius: 8px;
  font-size: 13px;
  color: var(--c-muted);
}
#dc-home .dch-tconvrow b { color: var(--c-text); font-weight: 800; margin-left: auto; }
#dc-home .dch-tarrow { color: var(--c-blue2); font-size: 16px; }

/* ── TIEMPO EN CUBA ── */
#dc-home .dch-weather-updated{font-size:11px;color:var(--c-muted)}

/* Móvil: scroll horizontal — 1 fila, cards de ancho fijo */
#dc-home .dch-wt-grid{
  display:flex;
  flex-direction:row;
  gap:10px;
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding-bottom:6px; /* espacio para scrollbar en algunos navegadores */
  /* Ocultar scrollbar visualmente pero mantener funcionalidad */
  scrollbar-width:none;
}
#dc-home .dch-wt-grid::-webkit-scrollbar{display:none}

/* En desktop: grid normal de 8 columnas */
@media(min-width:700px){
  #dc-home .dch-wt-grid{
    display:grid;
    grid-template-columns:repeat(8,1fr);
    overflow-x:visible;
    padding-bottom:0;
  }
}

/* Cards — ancho fijo en móvil para el scroll horizontal */
#dc-home .dch-wt-card{
  background:var(--c-card);
  border:1px solid var(--c-line);
  border-radius:var(--c-r);
  padding:12px 10px;
  cursor:pointer;
  transition:border-color .15s,transform .1s;
  scroll-snap-align:start;
  flex:0 0 130px; /* ancho fijo en móvil */
  min-width:130px;
}
@media(min-width:700px){
  #dc-home .dch-wt-card{flex:unset;min-width:unset}
}
#dc-home .dch-wt-card:hover{border-color:var(--c-blue2);transform:translateY(-1px)}
#dc-home .dch-wt-card.dch-wt-active{border:2px solid var(--c-blue2)}
#dc-home .dch-wt-prov{font-size:11px;font-weight:700;color:var(--c-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dc-home .dch-wt-row{display:flex;align-items:center;justify-content:space-between;gap:4px}
#dc-home .dch-wt-icon{font-size:22px;line-height:1}
#dc-home .dch-wt-max{font-size:16px;font-weight:800;color:var(--c-text);line-height:1.1}
#dc-home .dch-wt-min{font-size:11px;color:var(--c-muted)}
#dc-home .dch-wt-cond{font-size:10px;color:var(--c-muted);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dc-home .dch-wt-rain{font-size:10px;color:#2563eb;margin-top:2px}

/* Panel de detalle */
#dc-home .dch-wt-detail{background:var(--c-card);border:1px solid var(--c-line);border-radius:var(--c-r);padding:18px;margin-bottom:14px;box-shadow:var(--c-sh)}
#dc-home .dch-wt-detail-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}
#dc-home .dch-wt-detail-name{font-size:18px;font-weight:800;color:var(--c-text)}
#dc-home .dch-wt-detail-close{background:none;border:none;color:var(--c-muted);cursor:pointer;font-size:18px;padding:0;line-height:1}
#dc-home .dch-wt-detail-now{display:flex;align-items:center;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--c-line);margin-bottom:16px;flex-wrap:wrap}
#dc-home .dch-wt-detail-bigicon{font-size:48px;line-height:1}
#dc-home .dch-wt-detail-bigtemp{font-size:42px;font-weight:800;color:var(--c-text);line-height:1}
#dc-home .dch-wt-detail-info{display:flex;flex-direction:column;gap:4px}
#dc-home .dch-wt-detail-info span{font-size:13px;color:var(--c-muted)}
#dc-home .dch-wt-cond-lbl{font-size:15px !important;font-weight:700 !important;color:var(--c-text) !important}

/* Pronóstico 5 días */
#dc-home .dch-wt-forecast{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
#dc-home .dch-wt-fday{background:var(--c-bg);border:1px solid var(--c-line);border-radius:var(--c-r);padding:10px 6px;text-align:center}
#dc-home .dch-wt-fday-name{font-size:11px;font-weight:700;color:var(--c-muted);text-transform:uppercase;margin-bottom:6px}
#dc-home .dch-wt-fday-icon{font-size:18px;margin-bottom:5px}
#dc-home .dch-wt-fday-max{font-size:14px;font-weight:800;color:var(--c-text)}
#dc-home .dch-wt-fday-min{font-size:11px;color:var(--c-muted)}
#dc-home .dch-wt-fday-rain{font-size:10px;color:#2563eb;margin-top:3px}

/* Skeletons */
#dc-home .dch-wt-skel{background:var(--c-card);border:1px solid var(--c-line);border-radius:var(--c-r);padding:12px 10px;flex:0 0 130px;min-width:130px}
@media(min-width:700px){#dc-home .dch-wt-skel{flex:unset;min-width:unset}}
#dc-home .dch-wt-skel-name{height:10px;width:70%;background:var(--c-line);border-radius:4px;margin-bottom:10px;animation:dch-sk 1.2s ease-in-out infinite;will-change:opacity}
#dc-home .dch-wt-skel-body{height:28px;background:var(--c-line);border-radius:4px;animation:dch-sk 1.2s ease-in-out infinite;animation-delay:.15s}
