/* Municipal.do. La base es la hoja de dominicana.do (assets/dominicana/css/style.css); aquí va solo lo de este sitio. */
:root {
  --md-azul: #1a5fb4;
  --md-marino: #00306b;
  --md-rojo: #e60000;
}

/* Recortes de texto */
.md-clamp-2, .md-clamp-3, .md-clamp-4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.md-clamp-2 { -webkit-line-clamp: 2; }
.md-clamp-3 { -webkit-line-clamp: 3; }
.md-clamp-4 { -webkit-line-clamp: 4; }

/* Títulos */
.md-h1 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; color: var(--text-primary); margin: 0 0 4px; }
.md-tit { font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }
.md-tit a, .md-tit label { color: inherit; }
.md-tit--grande { font-size: 20px; }
.md-cuerpo { padding: 16px; }
.md-mas { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--md-azul); }

/* ── Barra superior: la .sk-topbar de dominicana.do, fija al bajar ──
   top: -8px la deja a 8 px del borde. Sin fondo: solo flota la tarjeta, y lo que pasa alrededor se puede tocar. */
html { scroll-padding-top: 96px; }
.md-cabecera { position: sticky; top: -8px; z-index: 1030; padding-top: 16px; padding-bottom: 12px; pointer-events: none; }
.md-cabecera .sk-topbar { pointer-events: auto; }
.md-contenido { padding-top: 12px; }
.admin-bar .md-cabecera { top: 24px; }
@media (max-width: 782px) { .admin-bar .md-cabecera { top: 38px; } }
@media (max-width: 600px) { .admin-bar .md-cabecera { top: -8px; } }
#skMobileNav { max-height: calc(100vh - 110px); overflow-y: auto; }
.sk-tabs-top .dropdown-toggle::after { margin-left: 6px; }
.md-nav-titulo { margin: 4px 0; font-size: 12px; font-weight: 700; color: var(--text-secondary); }

/* ── Datos del día ── */
.md-chips { --md-borde: 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--md-borde); scrollbar-width: none; margin-inline: calc(var(--md-borde) * -1); padding-inline: var(--md-borde); }
.md-chips::-webkit-scrollbar { display: none; }
.md-chip { flex: 0 0 auto; width: 190px; min-height: 76px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); color: var(--text-primary); }
a.md-chip:hover { border-color: var(--md-azul); color: var(--text-primary); }
.md-chip--ancho { width: 300px; }
.md-chip__k { font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.md-chip__t { font-family: var(--font-sans); font-size: 14px; font-weight: 700; line-height: 1.25; }
.md-chip__s { font-size: 12px; line-height: 1.3; color: var(--text-secondary); }
.md-chip__s strong { color: var(--text-primary); font-weight: 500; }
.md-chip--portadas { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.md-chip--portadas > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.md-portadas { display: flex; flex: 0 0 auto; }
.md-portadas img { width: 34px; height: 48px; object-fit: cover; object-position: top; border-radius: 3px; border: 1px solid var(--border); background: var(--surface-alt); }
.md-portadas img + img { margin-left: -14px; }
.md-partidos { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--text-secondary); }
.md-partidos span { white-space: nowrap; }
.md-partidos i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; }
.md-partidos strong { color: var(--text-primary); }
@media (min-width: 768px) { .md-chips { --md-borde: 36px; } }
@media (min-width: 992px) {
  .md-chips { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .md-chip { flex: 1 1 0; width: auto; min-width: 0; }
  .md-chip--ancho { flex-grow: 2; }
}

/* ── Anuncio del directorio: .g-promo-card de dominicana.do, con las cifras al lado ── */
/* La marca del sitio a la izquierda del texto y los botones (2026-11-12). */
.md-promo__izq { display: flex; align-items: center; gap: 16px; min-width: 0; }
.md-promo__logo { flex: 0 0 auto; width: 80px; height: 80px; }
@media (max-width: 575.98px) { .md-promo__izq { align-items: flex-start; gap: 12px; } .md-promo__logo { width: 56px; height: 56px; } }
.md-promo__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.md-promo__botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.md-promo .g-promo-card__title { font-size: 18px; }
.md-promo__cifras { gap: 28px; margin-top: 4px; font-size: 12px; line-height: 1.2; color: var(--text-secondary); }
.md-promo__cifras li { text-align: center; }
.md-promo__cifras strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text-primary); }
@media (min-width: 992px) {
  .md-promo { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .md-promo__cifras { flex: 0 0 auto; margin-top: 0; }
}

/* Fotos de las noticias: el recorte va cargado hacia arriba, que es donde suelen estar las caras, sin llegar al borde. */
img.object-fit-cover, .md-articulo__foto { object-position: center 25%; }

/* ── Medio de cada noticia ── */
.md-fuente { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-family: var(--font-sans); font-size: 12px; color: var(--text-secondary); }
.md-fuente__logo, .md-fuente__inicial { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; }
.md-fuente__logo { object-fit: cover; background: #fff; }
.md-fuente__inicial { display: inline-flex; align-items: center; justify-content: center; background: var(--md-marino); color: #fff; font-size: 11px; font-weight: 700; }
.md-fuente__nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-fuente__hace { flex: 0 0 auto; color: var(--text-tertiary); }
.md-fuente__hace::before { content: "·"; margin-right: 6px; }
.md-fuente--claro, .md-fuente--claro .md-fuente__hace { color: rgba(255,255,255,.9); }
.md-editar { position: relative; z-index: 2; font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }

/* ── Carrusel ── */
.md-carrusel { position: relative; }
.md-carrusel__texto { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 120px 18px 18px; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0)); }
.md-carrusel__h { margin: 6px 0 0; font-family: var(--font-sans); font-size: clamp(18px, 2.3vw, 28px); font-weight: 700; line-height: 1.2; color: #fff; }
.md-carrusel__estado { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; }
.md-carrusel__cuenta { padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.md-carrusel__pausa { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; }
.md-carrusel__flechas { position: absolute; right: 14px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.md-carrusel__flechas button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }
.md-carrusel__flechas button:hover { background: #000; }
@media (max-width: 575.98px) {
  .md-carrusel__texto { padding: 48px 14px 14px; }
  .md-carrusel__flechas { display: none; }
}

.md-editar-foto { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.md-editar-foto:hover { background: #000; color: #fff; }

/* ── Tarjetas y filas ── */
.md-tarjeta__h { margin: 0; font-family: var(--font-sans); font-size: 14px; font-weight: 700; line-height: 1.3; }
.md-tarjeta__h a, .md-fila__h a { color: var(--text-primary); }
.md-tarjeta__h a:hover, .md-fila__h a:hover, .md-lista__titulo:hover { color: var(--md-azul); }
.md-fila__h { margin: 0; font-family: var(--font-sans); font-weight: 700; }
.md-fila .nd-fila__titulo { font-size: clamp(15px, 1.5vw, 20px); line-height: 1.25; }
.md-fila__pie { margin-top: 8px; }

/* ── Columna izquierda ── */
.md-lista__item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.md-lista__item:first-child { padding-top: 0; }
.md-lista__item:last-child { padding-bottom: 0; border-bottom: 0; }
.md-lista__foto { flex: 0 0 auto; width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--surface-alt); }
.md-lista__titulo { min-width: 0; font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text-primary); }
.md-explorar a { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-family: var(--font-sans); font-size: 14px; color: var(--text-primary); }
.md-explorar a:hover { color: var(--md-azul); }
.md-explorar i { flex: 0 0 auto; width: 20px; text-align: center; font-size: 16px; }
.md-medio { display: block; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; line-height: 0; }
.md-medio:hover { border-color: var(--md-azul); }
.md-medio img { width: 100%; height: auto; }

/* ── Columna derecha ── */
.md-ayunt { position: relative; }
.md-ayunt i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--md-rojo); }
.md-ayunt input { padding-left: 34px; font-size: 14px; border-radius: var(--radius-md); }
/* Widgets de dominicana.do en blanco: allá van sobre el degradado oscuro del hero, con letra clara. */
.md-panel { font-size: 12px; }
.md-panel .sp-widgets { display: flex; flex-direction: column; gap: 24px; padding: 0; }
.md-panel .sp-widget-pad { padding: 0; }
.md-panel .sp-widget { padding: 16px; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.md-panel .sp-widget-head > i { color: var(--md-azul); }
.md-panel .sp-widget-head__title { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.md-panel .sp-widget-value, .md-panel .sp-widget--clima .sp-widget-value, .md-panel .sp-tasa-valor { color: var(--text-primary); }
.md-panel .sp-widget-sub, .md-panel .sp-widget-sub2, .md-panel .sp-widget--clima .sp-widget-sub2, .md-panel .sp-tasa-label { color: var(--text-secondary); }
.md-panel .sp-link { color: var(--md-azul); }
.md-panel .sp-loteria-btn { background: var(--surface-alt); color: var(--text-secondary); border: 1px solid var(--border-light); }
.md-panel .sp-loteria-btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.md-panel .sp-tasa-up { color: #c5221f; }
.md-panel .sp-tasa-down { color: #137333; }
.md-panel .sp-tasa-flat { color: var(--text-secondary); }

/* El anuncio fijo se detiene debajo de la barra superior. */
.md-fijo { top: 96px; z-index: 1; }
.admin-bar .md-fijo { top: 128px; }

/* AdSense: su sitio se queda visible al final de la columna derecha, aunque Google no entregue anuncio. La altura va en un
   ::before y no en un padre del anuncio porque AdSense les pone min-height: 0 !important. */
@media (min-width: 992px) {
  .md-adsense { display: grid; }
  .md-adsense::before { content: ""; grid-area: 1 / 1; min-height: 280px; }
  .md-adsense .g-card__body { grid-area: 1 / 1; min-width: 0; }
}

/* Imagen de «Última portada» y de los anuncios de la columna derecha. Fuera de las columnas angostas no crece de más. */
.md-portada { display: block; width: 100%; height: auto; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--surface-alt); }
@media (max-width: 991.98px) { .md-portada { max-width: 360px; margin-inline: auto; } }

/* ── Artículo y páginas ── */
.md-pagina { max-width: 900px; margin: 0 auto; }
.md-articulo { padding: clamp(16px, 3vw, 32px); }
.md-articulo__foto { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; margin-bottom: 20px; border-radius: var(--radius-lg); }
.md-articulo__texto { font-size: 17px; line-height: 1.65; color: var(--text-primary); }
.md-articulo__texto p { margin-bottom: 1em; }
.md-articulo__texto h2, .md-articulo__texto h3 { margin: 1.2em 0 .5em; font-weight: 700; }
.md-articulo__texto a { color: var(--md-azul); text-decoration: underline; }
.md-articulo__texto img { max-width: 100%; height: auto; }
.md-articulo__texto ul, .md-articulo__texto ol { margin: 0 0 1em; padding-left: 1.4em; }
.md-articulo__texto li { list-style: revert; }

/* Dominicana.do reserva este espacio para su barra inferior; aquí no hay. */
body { padding-bottom: 0; }

.md-fuente-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
