/*
 * DC Post Style v1.0
 * Coherencia visual con DC Homepage (dc-homepage plugin)
 * Variables CSS compartidas: --dc-bg, --dc-card, --dc-text, --dc-muted,
 *   --dc-line, --dc-blue, --dc-blue2, --dc-red, --dc-r, --dc-sh
 * ================================================================= */

/* ── VARIABLES (redundantes por si dc-homepage no está activo) ── */
:root {
  --dc-bg:    #f0f2f5;
  --dc-card:  #ffffff;
  --dc-text:  #142033;
  --dc-muted: #5a6474;
  --dc-line:  #e2e8f0;
  --dc-blue:  #0f4c81;
  --dc-blue2: #1565c0;
  --dc-red:   #c81d25;
  --dc-r:     14px;
  --dc-sh:    0 2px 14px rgba(14,28,48,.09);
}

/* ════════════════════════════════════════
   FONDO GLOBAL
════════════════════════════════════════ */
body {
  background: var(--dc-bg) !important;
}

/* ════════════════════════════════════════
   CONTENEDOR DEL ARTÍCULO
   GeneratePress: .inside-article
════════════════════════════════════════ */
.inside-article {
  background: var(--dc-card);
  border-radius: var(--dc-r);
  box-shadow: var(--dc-sh);
  overflow: hidden;
  padding: 0;         /* la imagen featured va a sangre */
}

/* En páginas sin imagen featured, dar padding directo */
.page .inside-article {
  padding: 24px 28px 32px;
}

/* ── HEADER DEL ENTRY ── */
.entry-header {
  padding: 16px 16px 0;
}

/* Separar el header si hay featured image encima */
.featured-image ~ .entry-header,
.page-header-image-single ~ .entry-header {
  padding-top: 20px;
}

/* ── TÍTULO ── */
.entry-title {
  font-size: clamp(22px, 4vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--dc-text) !important;
  letter-spacing: -.02em !important;
  margin: 0 0 12px !important;
}

/* ── META (fecha, autor) ── */
.entry-meta {
  font-size: 13px !important;
  color: var(--dc-muted) !important;
  margin: 0 0 14px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.entry-meta a {
  color: var(--dc-blue2) !important;
  font-weight: 600;
  text-decoration: none;
}
.entry-meta a:hover { text-decoration: underline; }

/* ── IMAGEN DESTACADA ── */
.featured-image,
.page-header-image-single {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dc-line);
}
.featured-image img,
.page-header-image-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Copyright de imagen */
.imagen-copyright {
  font-size: 11px !important;
  color: var(--dc-muted) !important;
  text-align: right;
  padding: 4px 12px 0;
  opacity: .8;
}
.imagen-copyright::before { content: "© "; font-weight: 700; }

/* ════════════════════════════════════════
   CONTENIDO DEL POST
════════════════════════════════════════ */
.entry-content {
  padding: 16px 16px 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--dc-text);
}

/* ── Tipografía base ── */
.entry-content p {
  margin: 0 0 1.35em;
  color: var(--dc-text);
}
.entry-content p:last-child { margin-bottom: 0; }

/* ── Headings dentro del contenido ── */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--dc-text);
  margin: 1.6em 0 .6em;
}
.entry-content h1 {
  font-size: 26px;
  border-left: 4px solid var(--dc-red);
  padding-left: 12px;
}
.entry-content h2 {
  font-size: 22px;
  border-left: 4px solid var(--dc-red);
  padding-left: 12px;
}
.entry-content h3 {
  font-size: 18px;
  border-left: 3px solid var(--dc-blue);
  padding-left: 10px;
}
.entry-content h4 { font-size: 16px; }
.entry-content h5 { font-size: 15px; font-weight: 700; color: var(--dc-text); }
.entry-content h6 { font-size: 14px; font-weight: 700; color: var(--dc-muted); }

/* ── Links ── */
.entry-content a {
  color: var(--dc-blue2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--dc-blue); }

/* ── Listas ── */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.35em 1.5em;
  padding: 0;
}
.entry-content li { margin-bottom: .5em; }

/* ── Blockquote ── */
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--dc-red);
  background: #fdf2f2;
  border-radius: 0 var(--dc-r) var(--dc-r) 0;
  font-style: italic;
  font-size: 16px;
  color: var(--dc-text);
}
.entry-content blockquote p { margin: 0; }

/* ── Imágenes dentro del contenido ── */
.entry-content img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption {
  font-size: 12px;
  color: var(--dc-muted);
  text-align: center;
  margin-top: 6px;
}

/* ── Código ── */
.entry-content code {
  font-size: 14px;
  background: #f1f5f9;
  border: 1px solid var(--dc-line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--dc-blue);
}
.entry-content pre {
  background: #1e293b;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.4em 0;
}
.entry-content pre code {
  background: none;
  border: none;
  color: #e2e8f0;
  padding: 0;
}

/* ── Tablas ── */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--dc-line);
  text-align: left;
}
.entry-content thead th {
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dc-muted);
  background: var(--dc-bg);
}
.entry-content tr:last-child td { border-bottom: none; }

/* ── Separador ── */
.entry-content hr {
  border: none;
  border-top: 2px solid var(--dc-line);
  margin: 2em 0;
}

/* ── Anuncios inline — no les ponemos estilo propio, pero sí márgenes ── */
.entry-content .sai-ad {
  margin: 20px auto;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* ════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════ */
.dc-ps-breadcrumb {
  padding: 10px 0 0;
  font-size: 12px;
  color: var(--dc-muted);
}
.dc-ps-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.dc-ps-breadcrumb li {
  display: flex;
  align-items: center;
}
.dc-ps-breadcrumb li + li::before {
  content: "/";
  margin: 0 6px;
  color: var(--dc-line);
}
.dc-ps-breadcrumb a {
  color: var(--dc-blue2);
  text-decoration: none;
  font-weight: 600;
}
.dc-ps-breadcrumb a:hover { text-decoration: underline; }
.dc-ps-breadcrumb [aria-current="page"] {
  color: var(--dc-muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ════════════════════════════════════════
   FOOTER DEL ENTRY (tags, compartir)
════════════════════════════════════════ */
.entry-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--dc-line);
  font-size: 13px;
  color: var(--dc-muted);
}
.entry-footer .tags-links a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--dc-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dc-muted);
  text-decoration: none;
  margin: 2px 3px;
  transition: background .15s, color .15s;
}
.entry-footer .tags-links a:hover {
  background: var(--dc-blue);
  border-color: var(--dc-blue);
  color: #fff;
}

/* ── Botones de compartir (scriptlesssocialsharing) ── */
.scriptlesssocialsharing__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0 !important;
}
.scriptlesssocialsharing__buttons .button {
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  border: none !important;
  transition: opacity .15s, transform .15s !important;
}
.scriptlesssocialsharing__buttons .button:hover {
  opacity: .88 !important;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   POSTS RELACIONADOS (dc_related shortcode)
════════════════════════════════════════ */
.dc-ps-related {
  padding: 24px 24px 28px;
  border-top: 1px solid var(--dc-line);
  background: var(--dc-bg);
  margin: 0;
}

.dc-ps-related-ttl {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--dc-text) !important;
  margin: 0 0 16px !important;
  padding: 0 0 0 12px !important;
  border-left: 4px solid var(--dc-red) !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

.dc-ps-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) {
  .dc-ps-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .dc-ps-related-grid { grid-template-columns: repeat(4, 1fr); }
}

.dc-ps-rcard {
  display: flex;
  flex-direction: column;
  background: var(--dc-card);
  border-radius: var(--dc-r);
  overflow: hidden;
  box-shadow: var(--dc-sh);
  text-decoration: none !important;
  color: var(--dc-text) !important;
  transition: transform .18s, box-shadow .18s;
}
.dc-ps-rcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(14,28,48,.14);
  color: var(--dc-text) !important;
}

.dc-ps-rcard-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dc-line);
  flex-shrink: 0;
}
.dc-ps-rcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.dc-ps-rcard:hover .dc-ps-rcard-img img { transform: scale(1.04); }
.dc-ps-rcard-ph { width: 100%; height: 100%; background: var(--dc-line); }

.dc-ps-rcard-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dc-ps-rcard-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dc-blue2);
  display: block;
}
.dc-ps-rcard-ttl {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dc-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.dc-ps-rcard-date {
  font-size: 11px;
  color: var(--dc-muted);
  margin-top: auto;
  display: block;
}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.widget-area,
.sidebar {
  background: transparent;
}

/* Cada widget como card */
.widget {
  background: var(--dc-card) !important;
  border-radius: var(--dc-r) !important;
  box-shadow: var(--dc-sh) !important;
  overflow: hidden;
  margin-bottom: 16px !important;
  padding: 0 !important;
}
.widget.inner-padding {
  padding: 18px 20px !important;
}

/* Título del widget */
.widget-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  color: var(--dc-text) !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 2px solid var(--dc-line) !important;
  border-left: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Widget de posts recientes */
.widget_recent_entries ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.widget_recent_entries li {
  padding: 9px 0;
  border-bottom: 1px solid var(--dc-line);
  font-size: 13px;
  line-height: 1.4;
}
.widget_recent_entries li:last-child { border-bottom: none; }
.widget_recent_entries li a {
  color: var(--dc-text) !important;
  text-decoration: none;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget_recent_entries li a:hover { color: var(--dc-blue2) !important; }

/* Widget de búsqueda */
.widget_search .search-form {
  display: flex;
  border: 2px solid var(--dc-blue);
  border-radius: 10px;
  overflow: hidden;
}
.widget_search .search-field {
  flex: 1;
  padding: 10px 14px;
  border: none;
  font-size: 14px;
  color: var(--dc-text);
  outline: none;
  background: transparent;
}
.widget_search .search-submit {
  background: var(--dc-blue);
  border: none;
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.widget_search .search-submit:hover { background: var(--dc-blue2); }

/* Widget de categorías */
.widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget_categories li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--dc-line);
  font-size: 13px;
}
.widget_categories li:last-child { border-bottom: none; }
.widget_categories a {
  color: var(--dc-text) !important;
  text-decoration: none;
  font-weight: 600;
}
.widget_categories a:hover { color: var(--dc-blue2) !important; }
.widget_categories .count {
  font-size: 11px;
  font-weight: 800;
  color: var(--dc-muted);
  background: var(--dc-bg);
  border: 1px solid var(--dc-line);
  border-radius: 999px;
  padding: 1px 7px;
}

/* Widget WPP (populares) */
.wpp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wpp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--dc-line);
}
.wpp-list li:last-child { border-bottom: none; }
.wpp-list .wpp-thumbnail {
  width: 60px;
  min-width: 60px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dc-line);
  flex-shrink: 0;
}
.wpp-list .wpp-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wpp-list .wpp-item-data {
  flex: 1;
  min-width: 0;
}
.wpp-list .wpp-post-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--dc-text) !important;
  text-decoration: none !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wpp-list .wpp-post-title:hover { color: var(--dc-blue2) !important; }
.wpp-list .wpp-meta {
  font-size: 11px;
  color: var(--dc-muted);
  margin-top: 3px;
}

/* ════════════════════════════════════════
   PÁGINA DE COMENTARIOS
════════════════════════════════════════ */
.comments-area {
  background: var(--dc-card);
  border-radius: var(--dc-r);
  box-shadow: var(--dc-sh);
  padding: 24px;
  margin-top: 16px;
}
.comments-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--dc-text) !important;
  margin: 0 0 20px !important;
  padding: 0 0 0 12px !important;
  border-left: 4px solid var(--dc-red) !important;
  background: none !important;
}

/* Comentario individual */
.comment-body {
  padding: 14px 0;
  border-bottom: 1px solid var(--dc-line);
}
.comment-body:last-child { border-bottom: none; }
.comment-author .fn { font-weight: 700; font-size: 14px; color: var(--dc-text); }
.comment-author .url { color: var(--dc-blue2) !important; text-decoration: none; }
.comment-meta { font-size: 12px; color: var(--dc-muted); margin: 2px 0 8px; }
.comment-content { font-size: 15px; line-height: 1.65; color: var(--dc-text); }

/* Formulario de comentarios */
.comment-reply-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--dc-text) !important;
  margin: 24px 0 16px !important;
  border-left: 3px solid var(--dc-blue) !important;
  padding-left: 10px !important;
  background: none !important;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--dc-line);
  border-radius: 9px;
  font-size: 15px;
  color: var(--dc-text);
  background: var(--dc-card);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--dc-blue); }
.comment-form .submit {
  background: var(--dc-blue);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.comment-form .submit:hover {
  background: var(--dc-blue2);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   PÁGINAS DE ARCHIVO / BÚSQUEDA / 404
════════════════════════════════════════ */
/* Cabecera del archivo */
.page-header {
  background: var(--dc-card);
  border-radius: var(--dc-r);
  box-shadow: var(--dc-sh);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.page-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--dc-text) !important;
  margin: 0 !important;
  padding: 0 0 0 12px !important;
  border-left: 4px solid var(--dc-red) !important;
  background: none !important;
  box-shadow: none !important;
}
.archive-description {
  font-size: 15px;
  color: var(--dc-muted);
  margin-top: 6px;
  padding-left: 16px;
}

/* Grid de artículos en archivos */
.site-main > article.post,
.site-main > article.page,
.posts-list article {
  background: var(--dc-card);
  border-radius: var(--dc-r);
  box-shadow: var(--dc-sh);
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform .18s, box-shadow .18s;
}
.site-main > article.post:hover,
.posts-list article:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14,28,48,.14);
}

/* Título del post en lista */
.entry-title a {
  color: var(--dc-text) !important;
  text-decoration: none !important;
}
.entry-title a:hover { color: var(--dc-blue2) !important; }

/* ── Página 404 ── */
.error404 .site-main {
  text-align: center;
  padding: 60px 20px;
}
.error404 .page-title {
  font-size: 80px !important;
  border: none !important;
  padding: 0 !important;
  color: var(--dc-red) !important;
}

/* ════════════════════════════════════════
   LAYOUT — Asegurar bg en content-area
════════════════════════════════════════ */
.site-content {
  background: var(--dc-bg);
}
.content-area,
#primary {
  background: transparent;
}

/* ── Separación entre content y sidebar en tablet+ ── */
@media (min-width: 769px) {
  .site-content .content-area { padding-right: 20px; }
}

/* ════════════════════════════════════════
   RESPONSIVE AJUSTES
════════════════════════════════════════ */
@media (max-width: 768px) {
  .entry-header { padding: 12px 12px 0; }
  .entry-content { padding: 12px 12px 18px; font-size: 18px; }
  .entry-footer { padding: 12px 16px 16px; }
  .dc-ps-related { padding: 18px 16px 20px; }
  .comments-area { padding: 16px; }
  .widget.inner-padding { padding: 14px 16px !important; }
}
@media (max-width: 480px) {
  .entry-title { font-size: 20px !important; }
  .entry-content h1 { font-size: 22px; }
  .entry-content h2 { font-size: 19px; }
  .entry-content h3 { font-size: 17px; }
  .entry-content h4 { font-size: 15px; }
}

/* ════════════════════════════════════════
   UTILIDADES — Badges de categoría inline
   (para usar en PHP como clase dc-ps-badge)
════════════════════════════════════════ */
.dc-ps-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(--dc-blue) !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  line-height: 1.7 !important;
  text-decoration: none !important;
}
.dc-ps-badge-red { background: var(--dc-red) !important; }
.dc-ps-badge-sm  { font-size: 10px !important; padding: 2px 7px !important; }

/* ── Print ── */
@media print {
  body { background: #fff !important; }
  .inside-article, .widget { box-shadow: none !important; border: 1px solid #ccc; }
  .dc-ps-related, .comments-area, .widget-area { display: none; }
}

/* ════════════════════════════════════════
   ESTILO COSMÉTICO: .directorio-footer (footer social del SAI)
   Solo visual — coherente con el sistema del home.
   No se toca posición, float ni layout (ya funciona como está).
════════════════════════════════════════ */
.directorio-footer {
  background: var(--dc-card) !important;
  border-radius: var(--dc-r) !important;
  box-shadow: var(--dc-sh) !important;
  padding: 12px !important;
  margin: 12px 0 !important;
  font-family: inherit !important;
}

.directorio-footer .redes-sociales p {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dc-muted);
}

.directorio-footer .social-link {
  border-color: var(--dc-line) !important;
  color: var(--dc-text) !important;
  background: var(--dc-bg) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.directorio-footer a {
  text-decoration: none !important;
}

.directorio-footer .comentarios-section h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--dc-text) !important;
  border: none !important;
  border-left: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  background: none !important;
  box-shadow: none !important;
}

.directorio-footer .comentarios-btn {
  background: var(--dc-red) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.directorio-footer .cta-principal a {
  background: var(--dc-blue) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.directorio-footer .cta-principal a:hover {
  background: var(--dc-blue2) !important;
}

/* ── Print ── */
@media print {
  body { background: #fff !important; }
  .inside-article, .widget { box-shadow: none !important; border: 1px solid #ccc; }
  .dc-ps-related, .comments-area, .widget-area, .directorio-footer { display: none; }
}

/* Etiqueta "Tu opinión es importante" (reemplaza el h3 del SAI) */
.directorio-footer .dc-comments-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--dc-text) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
}

/* ════════════════════════════════════════
   ESTILOS MIGRADOS DEL SAI (antes inline)
   Botones de redes sociales y CTA
════════════════════════════════════════ */

.directorio-footer .social-links {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 10px 0 !important;
  align-items: center !important;
}

.directorio-footer .social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 13px !important;
  height: 34px !important;
  background: var(--dc-bg) !important;
  color: var(--dc-text) !important;
  text-decoration: none !important;
  border-radius: 20px !important;
  border: 2px solid var(--dc-line) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transition: all 0.2s !important;
}

.directorio-footer .social-link:hover { color: #fff !important; text-decoration: none !important; }
.directorio-footer .social-link.whatsapp:hover  { background: #25d366 !important; border-color: #25d366 !important; }
.directorio-footer .social-link.telegram:hover  { background: #0088cc !important; border-color: #0088cc !important; }
.directorio-footer .social-link.facebook:hover  { background: #1877f2 !important; border-color: #1877f2 !important; }
.directorio-footer .social-link.youtube:hover   { background: #ff0000 !important; border-color: #ff0000 !important; }
.directorio-footer .social-link.google-news:hover    { background: #4285f4 !important; border-color: #4285f4 !important; }
.directorio-footer .social-link.google-discover:hover { background: #4285f4 !important; border-color: #4285f4 !important; }

.directorio-footer .redes-sociales {
  margin: 8px 0 !important;
}

.directorio-footer .redes-sociales p {
  margin: 6px 0 !important;
  font-size: 13px !important;
  color: var(--dc-muted) !important;
}

.directorio-footer .comentarios-section {
  margin-top: 12px !important;
}

.directorio-footer .comentarios-btn {
  display: inline-block !important;
  padding: 8px 18px !important;
  background: var(--dc-red) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background-color 0.2s !important;
}
.directorio-footer .comentarios-btn:hover {
  background: #a01720 !important;
  color: #fff !important;
}

.directorio-footer .cta-principal {
  margin: 14px 0 4px !important;
  text-align: center !important;
}
.directorio-footer .cta-principal a,
p.cta-principal a {
  display: inline-block !important;
  padding: 10px 20px !important;
  background: var(--dc-blue) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: background-color 0.2s !important;
}
.directorio-footer .cta-principal a:hover,
p.cta-principal a:hover {
  background: var(--dc-blue2) !important;
  color: #fff !important;
}

/* ════════════════════════════════════════
   POPULARES LITE — grid de posts populares
   Coherente con las cards del home y dc-ps-related
════════════════════════════════════════ */
.populares-lite-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.wpp-grid-2cols {
  display: grid !important;
  grid-template-columns: 1fr !important;       /* móvil: 1 columna */
  gap: 14px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
@media (min-width: 540px) {
  .wpp-grid-2cols { grid-template-columns: repeat(2, 1fr) !important; } /* tablet: 2 col */
}
@media (min-width: 900px) {
  .wpp-grid-2cols { grid-template-columns: repeat(3, 1fr) !important; } /* desktop: 3 col */
}

/* Card */
.wpp-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--dc-card) !important;
  border-radius: var(--dc-r) !important;
  overflow: hidden !important;
  box-shadow: var(--dc-sh) !important;
  transition: transform .18s, box-shadow .18s !important;
}
.wpp-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 24px rgba(14,28,48,.14) !important;
}

/* Imagen */
.wpp-card__link {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  height: auto !important;
  overflow: hidden !important;
  position: relative !important;
  background: var(--dc-line) !important;
  flex-shrink: 0 !important;
}
.wpp-card__link img,
.wpp-card__link picture,
.wpp-card__link picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .3s !important;
}
.wpp-card:hover .wpp-card__link img { transform: scale(1.04) !important; }

/* Título */
.wpp-card__title {
  display: block !important;
  padding: 10px 12px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--dc-text) !important;
  text-decoration: none !important;
  flex: 1 !important;
  /* clamp a 3 líneas */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.wpp-card__title:hover { color: var(--dc-blue2) !important; }

/* Botón "Cargar más" — estilo del home */
.populares-lite-load-more {
  text-align: center;
  margin-top: 16px;
}
.populares-lite-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  height: 42px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: var(--dc-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(15,76,129,.25) !important;
  transition: background .2s, transform .15s !important;
  font-family: inherit !important;
}
.populares-lite-btn:hover:not(:disabled) {
  background: var(--dc-blue2) !important;
  transform: translateY(-1px) !important;
}
.populares-lite-btn:disabled {
  background: var(--dc-muted) !important;
  cursor: not-allowed !important;
  opacity: .6 !important;
}
.populares-lite-btn[data-loading="true"] .btn-icon {
  animation: spin 1s linear infinite !important;
}
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
