/* Estilos extendidos inspirados en el rediseño HTML */

/* Header */
.top-bar { padding: 6px 0; }
.top-bar .top-bar-container, .top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar .date-section { display: flex; align-items: center; gap: 6px; font-size: .9rem; line-height: 1; }
.top-bar .top-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; line-height: 1; }
.top-bar .social-links-header { display: flex; align-items: center; gap: 12px; }
.top-bar .social-links-header a { color: #6c757d; margin: 0; font-size: 14px; }
.top-bar .social-links-header a:hover { color: var(--afondo-primary); }
.search-button button { background: none; border: none; color: var(--afondo-primary); cursor: pointer; padding: 5px; font-size: 1.01rem; }
.search-button button:hover { color: var(--afondo-primary); filter: brightness(0.9); }

.main-header { padding: 1.5rem 0; border-bottom: 1px solid #e0e0e0; }
.main-header { padding: 2rem 0; background: #d52b1e; color: #fff; border-bottom: 0; }
.main-header-container { display: flex; justify-content: center; align-items: center; }
.logo img { max-height: var(--afondo-logo-max-height, 80px); height: auto; width: auto; display: block; }
.site-title { color: #111; text-decoration: none; font-weight: 700; font-size: 24px; }

/* Nav */
.main-nav { position: static; }
.nav-container { display: flex; align-items: center; justify-content: center; position: relative; }
.menu-toggle { background: transparent; border: 0; cursor: pointer; display: none; flex-direction: column; gap: 3px; padding: 12px; }
.menu-toggle .bar { width: 24px; height: 3px; background: #111; display: block; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
@media (max-width: 991.98px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open { display: block; }
  /* Mobile header adjustments */
  .main-header { padding: 1.5rem 0; }
  /* Position close (X) ONLY when menu is open */
  .menu-toggle.open { position: absolute; right: 10px; top: 8px; z-index: 5; }
  .menu-toggle.open .bar { display: none; }
  .menu-toggle.open::before { content: "\00d7"; /* × */ font-size: 28px; line-height: 1; color: var(--afondo-primary); font-weight: 700; display: block; }
}
.nav-links li { margin: 0; }
.nav-links a { display: block; padding: 1rem 1.25rem; text-transform: uppercase; font-weight: 500; letter-spacing: 0; font-family: "Oswald", sans-serif; font-size: 1rem; color: #111; position: relative; }
.nav-links a:visited { color: #111; }
.nav-links a:hover, .nav-links a:focus { background: transparent; color: var(--afondo-primary); }

/* Override nav visuals to match redesign */
.main-nav { background: #f8f9fa; border-top: 0; border-bottom: 3px solid var(--afondo-primary); }
.nav-links .current-menu-item > a,
.nav-links a.active { color: var(--afondo-primary); }
.nav-links .current-menu-item > a::after,
.nav-links a.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; height: 3px; width: 70%; background: var(--afondo-primary); }
.nav-links .current_page_item > a { color: var(--afondo-primary); }
.nav-links .current_page_item > a::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; height: 3px; width: 70%; background: var(--afondo-primary); }

/* Grid layout */
.main-grid-layout { margin-top: 24px; }
.site-main.container { width: 90%; max-width: var(--container-width); margin-left: auto; margin-right: auto; }
@media (min-width: 992px) { .site-main.container { width: 70%; } }
.main-grid-layout { row-gap: 2.5rem; }
@media (min-width: 992px) { .main-grid-layout { grid-template-columns: 2fr 1fr; column-gap: 2.5rem; } }
.main-column { min-width: 0; }
.sidebar { min-width: 0; }
@media (min-width: 992px) { .sidebar { padding-left: 0; } }

/* Featured story */
.featured-story { display: grid; gap: 16px; }
.featured-story-image-wrapper { position: relative; overflow: hidden; border-radius: 4px; margin-bottom: 1.5rem; }
.featured-story-image-link { display: block; }
.featured-story-image { width: 100%; height: auto; display: block; }
.featured-story-image { transition: transform .3s ease; }
.featured-story-image-link:hover .featured-story-image { transform: scale(1.02); }
.featured-category-tag { position: absolute; left: 12px; bottom: 12px; background: var(--afondo-primary); color: #fff; padding: 6px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.featured-story-title { font-size: 2.25rem; line-height: 1.2; margin: 0 0 1rem; font-weight: 700; letter-spacing: -0.2px; }
.featured-story-title a { color: #1a1a1a; text-decoration: none; }
.featured-story-title a:visited { color: #1a1a1a; }
.featured-story-title a:hover { color: var(--afondo-primary); }
.featured-story-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: #6c757d; font-size: 0.875rem; margin-bottom: 1rem; }
.featured-story-meta i { color: var(--afondo-primary); }
.featured-story-excerpt { color: #4a4a4a; font-size: 1.1rem; line-height: 1.6; }
.featured-story-excerpt,
.historias-section .historia-excerpt,
.feminicidios-section .feminicidio-excerpt { font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; }
/* Home latest news: apply IBM Plex Sans to any paragraph excerpt inside cards */
.latest-news-section .news-item-content,
.latest-news-section .news-item-content p,
.latest-news-section .news-item-content span,
.latest-news-section .news-item-meta { font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; }
.featured-story-section { margin-bottom: 3rem; }
.featured-story-links { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #e0e0e0; }
.read-more-link { color: var(--afondo-primary); text-decoration: none; font-weight: 700; }
.story-share-links { display: flex; align-items: center; gap: .75rem; color: #6c757d; }
.story-share-links a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #f0f2f5; border-radius: 50%; color: #333; transition: all .2s ease; text-decoration: none; }
.story-share-links a i { font-size: 14px; }
.story-share-links a:hover { background: var(--afondo-primary); color: #fff; text-decoration: none; }

/* Global title links palette (no purple/blue visited links) */
.news-item-title a,
.seccion-news-title a,
.video-title a,
.video-item-title a,
.most-read-title a,
.historia-title a,
.feminicidio-item-title a { color: #1a1a1a; text-decoration: none; }
.news-item-title a:visited,
.seccion-news-title a:visited,
.video-title a:visited,
.video-item-title a:visited,
.most-read-title a:visited,
.historia-title a:visited,
.feminicidio-item-title a:visited { color: #1a1a1a; }
.news-item-title a:hover,
.seccion-news-title a:hover,
.video-title a:hover,
.video-item-title a:hover,
.most-read-title a:hover,
.historia-title a:hover,
.feminicidio-item-title a:hover { color: var(--afondo-primary); }

/* Sidebar video */
.video-section .featured-video { margin-bottom: 12px; background: transparent; border: 0; border-radius: 0; padding: 0; }
.video-thumbnail { position: relative; display: block; }
.play-button, .play-button.small { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(213,43,30,0.8); color: #fff; border-radius: 50%; width: 60px; height: 60px; display: grid; place-items: center; transition: all .3s ease; }
.play-button.small { width: 30px; height: 30px; font-size: .8rem; }
.video-thumbnail:hover .play-button { background: rgba(213,43,30,1); transform: translate(-50%, -50%) scale(1.1); }
.video-list { display: flex; flex-direction: column; gap: 1rem; }
.video-section { margin-bottom: 1.5rem; }
.video-section .section-footer { margin-top: 3rem; margin-bottom: 2rem; }
.video-item { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; }
.video-item-title { margin: 0; font-size: 15px; }
.video-date { color: #6c757d; font-size: 12px; }
.video-meta i { color: #ff0000; }

/* Sidebar section titles (e.g., Videos, Más Leídas) */
.sidebar-section .section-title { text-transform: uppercase; padding-left: 12px; letter-spacing: .4px; }

/* Latest news */
.latest-news-section { margin-top: 24px; }
.latest-news-section .news-item { border: 0 !important; outline: 0 !important; border-radius: 8px; overflow: hidden; background: #fff; transition: transform .3s ease, box-shadow .3s ease;  }
.news-item:hover { transform: translateY(-5px); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.news-item-image-wrapper { position: relative; overflow: hidden; border-radius: 6px; margin-bottom: 1rem; aspect-ratio: 16 / 9; }
.news-item-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.news-item-image-wrapper:hover .news-item-image { transform: scale(1.05); }
.category-tag { position: absolute; left: 12px; bottom: 12px; background: var(--afondo-primary); color: #fff; padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.news-item-content { padding: 5px 10px 15px 0; }
.news-item-title { margin: 6px 0 0; font-size: 1.1rem;line-height: 1.3; }
.news-item-title a { color: #1a1a1a; text-decoration: none; }
.news-item-title a:visited { color: #1a1a1a; }
.news-item-title a:hover { color: var(--afondo-primary); }
.news-item-meta { color: #6c757d; font-size: 13px; margin-top: 6px; }
.news-item-meta i { color: var(--afondo-primary); font-size: .9em; }
/* Mobile: increase home news titles */
@media (max-width: 767.98px) { .latest-news-section .news-item-title { font-size: 1.3rem; } }

.video-list { display: flex; flex-direction: column; gap: 1rem; }
.video-item { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; }
.video-item-title { margin: 0; font-size: 15px; }
.video-date { color: #6c757d; font-size: 12px; }

/* Most read */
.most-read-list { list-style: none; counter-reset: rank; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.most-read-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.most-read-item:last-child { border-bottom: 0; }
.most-read-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--afondo-primary); color: #fff; font-weight: 700; }
.most-read-title { margin: 0 0 4px; font-size: 16px; font-weight: 500; line-height: 1.25; color: #1a1a1a; }
.most-read-category { display: inline-block; margin-top: 0; color: var(--afondo-primary); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; font-size: 0.75rem; }

/* Extra spacing between sections: Videos footer and Most Read */
.most-read-section { margin-top: 7rem; }

/* Sections */
.full-width-section { margin-top: 32px; background: var(--afondo-gray-100); padding: 24px 0; }
/* Category archive section side padding */
.category .archive-section.full-width-section { padding-left: 15px; padding-right: 15px; }
.special-header .section-title { color: #fff; }
.special-link { color: #fff; }

/* Article page */
.article-container { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 992px) { .article-container { grid-template-columns: 2fr 1fr; } }
/* Override for single post: make content 100% width (no sidebar) */
.single .article-container { grid-template-columns: 1fr; }
@media (min-width: 992px) { .single .article-container { grid-template-columns: 1fr; } }
.single-article .article-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.article-title { font-size: clamp(24px, 3.4vw, 40px); margin: 6px 0; }
.article-header .article-title { padding-bottom: 12px; border-bottom: 1px solid var(--color-border); margin-top: -16px; }
.single .article-header .article-title { margin-top: -16px; }
@media (max-width: 767.98px) {
  .single .article-title { font-size: clamp(38px, 3vw, 38px); line-height: 1.2; }
}
.article-meta { display: flex; align-items: center; justify-content: space-between; color: #6c757d; font-size: 14px; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.article-meta .meta-left { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.article-meta .meta-left .date,
.article-meta .views { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.article-meta .meta-left .date { background: rgba(17,17,17,0.06); color: #1a1a1a; }
.article-meta .meta-left .date i { color: var(--afondo-primary); font-size: 13px; }
.article-meta .views { background: rgba(213,43,30,0.08); color: #1a1a1a; }
.article-meta .views-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--afondo-primary); box-shadow: 0 0 0 1px rgba(213,43,30,0.15); }
.article-meta .views-icon i { font-size: 12px; line-height: 1; }
.article-meta .views-label { text-transform: uppercase; letter-spacing: .4px; font-size: 11px; color: var(--afondo-primary); }
.article-meta .views-count { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.article-meta .meta-right { margin-left: auto; display: flex; align-items: center; }
@media (max-width: 767.98px) {
  /* Stack rows: (1) date + views, (2) share row */
  .single .article-header .article-meta { display: grid; grid-template-columns: 1fr; row-gap: 8px; align-items: center; }
  /* Row 1: date + views horizontally */
  .single .article-header .meta-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .single .article-header .meta-left .date,
  .single .article-header .meta-left .views { display: inline-flex; align-items: center; gap: 6px; }
  /* Row 2: share horizontally */
  .single .article-header .meta-right { margin-left: 0; align-items: center; }
  .single .article-header .share-buttons { margin: 0; display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
  .single .article-header .share-buttons a { width: 36px; height: 36px; }
  .single .article-header .share-buttons i { font-size: 16px; line-height: 1; }
  /* Inline label before icons */
  .single .article-header .share-buttons::before { content: 'Compartir:'; display: inline-block; color: #444; font-weight: 600; margin: 0 6px 0 0; text-align: left; }
}
.article-meta a{ text-decoration: none;}
.article-meta i { color: var(--afondo-primary); margin-right: 0px; }
.reading-time { white-space: nowrap; }
.article-featured-image img { border-radius: 6px; display: block; margin: 0 auto; width: 100%; height: auto; }
.article-featured-image { margin: 12px 0 16px; position: relative; text-align: center; width: 100%; }
.article-featured-image .category-tag { position: absolute; right: 12px; left: auto; bottom: 12px; z-index: 2; }
.article-featured-image .category-tag { transform: none; }
@media (min-width: 992px) {
  /* Center badge over the image on desktop */
  .article-featured-image .category-tag { left: 50%; right: auto; transform: translateX(-50%); }
}
.article-featured-image .image-caption { color: #6c757d; font-size: 13px; margin-top: 6px; }
.article-content iframe,
.article-content embed,
.article-content object,
.article-content video { width: 100%; max-width: 100%; display: block; margin: 18px auto; border: 0; border-radius: 6px; }
@media (max-width: 767.98px) {
  .article-content iframe,
  .article-content embed,
  .article-content object,
  .article-content video { aspect-ratio: 16 / 9; height: auto; min-height: 200px; }
}
.article-author-highlight { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 18px; align-items: center; padding: 14px 18px; background: #f6f8fb; border: 1px solid rgba(17,17,17,0.08); border-radius: 14px; margin: 14px 0 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.article-author-highlight .author-highlight-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.article-author-highlight .author-highlight-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.45px; font-weight: 700; color: var(--afondo-primary); }
.article-author-highlight .author-highlight-name { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; color: #111; text-decoration: none; }
.article-author-highlight .author-highlight-name:hover { color: var(--afondo-primary); }
.article-author-highlight .author-highlight-role { font-size: 12px; font-weight: 600; color: #4a4a4a; }
.article-author-highlight .author-highlight-bio { margin: 0; font-size: 12px; color: #555; line-height: 1.45; }
.article-author-highlight .author-highlight-actions { align-self: stretch; display: flex; align-items: center; }
.article-author-highlight .author-highlight-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: var(--afondo-primary); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 4px 12px rgba(213,43,30,0.22); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.article-author-highlight .author-highlight-button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(213,43,30,0.3); background-color: #f0483b; color: #fff; }
.article-author-highlight .author-highlight-button:focus { outline: 2px solid rgba(17,17,17,0.2); outline-offset: 2px; }
.article-author-highlight--footer { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 28px; box-shadow: none; border-radius: 10px; background: #f8fafc; }
.article-author-highlight--footer .author-highlight-content { gap: 6px; }
.article-author-highlight--footer .author-highlight-name { font-size: clamp(18px, 2vw, 24px); }
.article-author-highlight--footer .author-highlight-bio { font-size: 13px; line-height: 1.5; }
.article-author-highlight--footer .author-highlight-role { font-size: 12px; }
.article-author-highlight--footer .author-highlight-button,
.article-author-highlight--footer .author-highlight-actions { display: none; }
.article-share-footer { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 10px 0 14px; margin: 12px 0 18px; }
.article-share-footer__label { font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; font-weight: 700; color: #6c757d; }
.article-share-footer__buttons { display: inline-flex; align-items: center; gap: 10px; }
.article-share-footer__buttons a { width: 40px; height: 40px; border-radius: 50%; background: #f1f3f5; color: #333; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease, transform .2s ease; text-decoration: none; }
.article-share-footer__buttons a i { font-size: 16px; color: currentColor; }
.article-share-footer__buttons a:hover { background: var(--afondo-primary); color: #fff; transform: translateY(-1px); }
.article-share-footer__buttons a:hover i { color: #fff; }
@media (max-width: 767.98px) {
  .article-share-footer { padding: 8px 0 14px; margin: 10px 0 16px; }
  .article-share-footer__buttons { gap: 8px; }
}
@media (max-width: 767.98px) {
  .article-author-highlight { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .article-author-highlight .author-highlight-actions { width: 100%; justify-content: center; }
  .article-author-highlight .author-highlight-button { width: 100%; }
}
.article-content { font-size: 18px; line-height: 1.7; color: #222; }
/* Force modern, legible body font on single posts */
.single .article-content { font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji" !important; }
.article-content p { margin: .2em 0; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.2em 0 .5em; line-height: 1.25; }
.article-content blockquote { border-left: 4px solid var(--afondo-primary); padding: .5rem 1rem; color: #444; background: #f8f9fa; border-radius: 4px; }
.article-content img { max-width: 100%; height: auto; }
.single-article .article-content { border-bottom: 0; padding-bottom: 12px; margin-bottom: 12px; }
/* Ensure featured image never overflows on mobile */
img.attachment-afondo4-featured.size-afondo4-featured.wp-post-image { max-width: 100% !important; width: 100% !important; height: auto !important; display: block; }
.article-promos { display: grid; gap: 10px; margin: 10px 0 18px; }
@media (min-width: 992px) { .article-promos { grid-template-columns: 1fr 1fr; } }
.promo-card { display: flex; align-items: center; gap: 12px; text-decoration: none; border: 1px solid var(--color-border); background: #f7f7f7; color: #333; padding: 12px 14px; border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.promo-card i { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 20px; }
.promo-card:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.promo-telegram { border-color: #229ED9; }
.promo-telegram i { background: rgba(34,158,217,.12); color: #229ED9; }
.promo-telegram i { border: 2px solid transparent; }
.promo-telegram .promo-inline { color: #229ED9; font-weight: 700; text-decoration: none; }
.promo-telegram .promo-inline:visited { color: #229ED9; }
.promo-whatsapp { border-color: #25D366; }
.promo-whatsapp i { background: rgba(37,211,102,.12); color: #25D366; }
.promo-whatsapp i { border: 2px solid transparent; }
.promo-whatsapp .promo-inline { color: #25D366; font-weight: 700; text-decoration: none; }
.promo-whatsapp .promo-inline:visited { color: #25D366; }
.promo-text { font-weight: 600; }
/* Article promos (in-content): light style with brand accents */
/* No global white override; keep default dark text and brand-colored links/icons for top section */
/* Hover state fills with brand color and inverts 'teléfono' */
.promo-whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.promo-whatsapp:hover .promo-inline { color: #fff; text-decoration: underline; }
.promo-whatsapp:hover .promo-inline:visited { color: #fff; text-decoration: underline; }
.promo-whatsapp:hover i { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }
.promo-telegram:hover { background: #229ED9; border-color: #229ED9; color: #fff; }
.promo-telegram:hover .promo-inline { color: #fff; text-decoration: underline; }
.promo-telegram:hover .promo-inline:visited { color: #fff; text-decoration: underline; }
.promo-telegram:hover i { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }

/* Floating search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 9999; }
.search-overlay.open { display: flex; }
.search-modal { position: relative; width: min(800px, 92%); background: #fff; border-radius: 12px; padding: 20px 24px; box-shadow: 0 8px 36px rgba(0,0,0,.2); }
.search-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; font-size: 28px; line-height: 1; color: var(--afondo-primary); cursor: pointer; }
.search-title { margin: 0 0 10px; font-family: "Oswald", sans-serif; text-transform: uppercase; font-weight: 700; color: #1a1a1a; }
.search-title-mobile { display: none; }
.search-title-desktop { display: inline; }
@media (max-width: 767.98px) {
  .search-title-mobile { display: block; }
  .search-title-desktop { display: none; }
  body.search .section-title { display: block; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
}
.search-field-wrap { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; border: 1px solid #e0e0e0; border-radius: 10px; padding: 10px 12px; }
.search-field-wrap i { color: var(--afondo-primary); }
.search-field-wrap input[type="search"] { border: 0; outline: 0; font-size: 1rem; padding: 6px 0; background: transparent; }
.search-help { color: #6c757d; font-size: 12px; margin: 8px 0 0; }
.share-buttons { display: inline-flex; align-items: center; gap: 10px; }
.share-buttons span { color: #444; font-weight: 600; margin-right: 4px; }
.share-buttons a { width: 41px; height: 41px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #efefef; color: #333; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; line-height: 0; }
.share-buttons i { line-height: 1; font-size: 17px; color: #333; }
.share-buttons a:hover { background: var(--afondo-primary); color: #fff; transform: translateY(-2px); }
.share-buttons a:hover i { color: #fff; }
.single-article .article-header .share-buttons a { background: #efefef; color: #333; }
.single-article .article-header .share-buttons a i { color: #333; }
.single-article .article-header .share-buttons a:hover { background: var(--afondo-primary); color: #fff; transform: translateY(-2px); }
.single-article .article-header .share-buttons a:hover i { color: #fff; }
.share-buttons a[aria-label="Instagram"] i { font-size: 18px; }

/* Screen reader only utility */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.article-tags { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--color-border); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.article-tags > span { font-weight: 700; color: #333; margin-right: 4px; }
.article-tags a { background: transparent; padding: 0; border-radius: 0; text-decoration: none; color: #333; font-size: 14px; }
.article-tags a:hover { color: var(--afondo-primary); text-decoration: underline; }
.author-box { display: grid; grid-template-columns: 80px 1fr minmax(260px, 320px); gap: 16px; background: transparent; padding: 0; border-radius: 0; margin-top: 18px; margin-bottom: 28px; align-items: center; }
.author-avatar { align-self: center; }
.author-info { align-self: center; }
.author-extras { align-self: center; }
.author-avatar img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 4px solid #efefef; background: #f7f7f7; }
.author-name { font-family: "Oswald", sans-serif; font-weight: 700; margin: 0 0 6px; font-size: 20px; }
.author-bio { margin: 0 0 10px; color: #444; }
.author-social { display: flex; gap: 10px; }
.author-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #efefef; color: #333; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.author-social a i { color: #333; }
.author-social a:hover { background: var(--afondo-primary); color: #fff; transform: translateY(-2px); }
.author-social a:hover i { color: #fff; }
/* Email badge with motion lines */
.email-badge { position: relative; overflow: visible; }
.email-badge i { color: var(--afondo-primary); }
.email-badge::before { content: none; }
/* Right column inside author box: tags and share */
.author-extras { align-self: center; display: flex; flex-direction: column; }
.author-tags { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; gap: 8px; margin-top: auto; padding-top: 6px; margin-bottom: 6px; }
.author-tags > span { font-weight: 700; color: #333; margin-right: 4px; }
.author-tags a { display: inline-block; background: #f2f2f2; padding: 4px 8px; border-radius: 20px; text-decoration: none; color: #333; font-size: 13px; line-height: 1; }
.author-tags a:hover { background: var(--afondo-primary); color: #fff; }
.author-extras { display: flex; justify-content: center; }
.author-extras .share-buttons { margin-top: 0; margin-bottom: 10px; justify-content: center; display: flex; align-items: center; }

/* Responsive stacking for author extras */
@media (max-width: 991.98px) {
  .author-box { grid-template-columns: 80px 1fr; }
  .author-extras { grid-column: 1 / -1; margin-top: 8px; }
}
/* Tablet alignment retained */
@media (max-width: 991.98px) {
  .author-box { align-items: center; }
}
/* Tablet widths: align name + email inline (same as desktop) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .author-info { display: flex; align-items: center; gap: 6px; }
  .author-info .author-name { margin: 0; line-height: 36px; height: 36px; white-space: nowrap; }
  .author-info .author-social { margin: 0 0 0 6px; }
}
/* Desktop: keep avatar, name and email in the same row and vertically centered */
@media (min-width: 992px) {
  .author-box { align-items: center; }
  .author-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .author-info .author-name { margin: 0; line-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; height: 36px; }
  .author-info .author-social { margin: 0 0 0 6px; align-self: center; }
  .author-info .author-social a { display: inline-flex; align-items: center; justify-content: center; }
  .author-info .author-bio { flex-basis: 100%; order: 2; margin-top: 6px; }
}
/* Mobile author row: avatar | name | email on one line; bio below */
@media (max-width: 767.98px) {
  .author-box { grid-template-columns: 56px 1fr max-content; align-items: center; }
  .author-avatar img { width: 56px; height: 56px; }
  /* Let children of author-info participate in the parent grid */
  .author-info { display: contents; }
  .author-name { grid-column: 2; align-self: center; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .author-social { grid-column: 3; justify-self: end; margin: 0; }
  .author-bio { grid-column: 2 / 4; grid-row: 2; margin-top: 6px; }
}

/* Related on single: 4-column row */
.related-news-section { margin-top: 24px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }
.single-most-read { margin-top: 28px; }

/* Footer */
.site-footer .footer-top { background: #1a1a1a; color: #ddd; padding: 36px 0; }
.site-footer .footer-bottom { background: #111; color: #aaa; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-heading { color: #fff; margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; position: relative; }
.footer-heading::after { content: ""; display: block; width: 48px; height: 3px; background: var(--afondo-primary); margin-top: 8px; border-radius: 2px; }
.footer-accordion-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 0; border-radius: 0; outline: none; }
.footer-accordion-toggle i { transition: transform .2s ease; color: var(--afondo-primary); display: none; }
@media (max-width: 767.98px) { .footer-accordion-toggle i { display: inline-block; } }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { text-decoration: none; color: #bbb; display: inline-flex; align-items: center; gap: 8px; opacity: 1; }
.site-footer .footer-links a:visited { color: #bbb; }
.footer-links a::before { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--afondo-primary); display: inline-block; }
.footer-links a:hover { color: #fff; }
.footer-about .footer-logo img { max-height: var(--afondo-logo-max-height, 80px); max-width: 100%; height: auto; width: auto; }
.footer-about-image { width: 100%; max-width: 360px; border-radius: 4px; background: #2a2a2a; display: block; }
.footer-description { color: #ccc; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social .social-link { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #2a2a2a; color: #eee; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.footer-social .social-link:hover { background: var(--afondo-primary); color: #fff; transform: translateY(-2px); }
.contact-info { color: #ccc; font-style: normal; }
.contact-info p { margin: 8px 0; display: flex; gap: 10px; align-items: start; }
.contact-info i { color: var(--afondo-primary); margin-top: 2px; }
.footer-telegram { margin-top: 12px; }
.footer-telegram strong { display: block; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.telegram-box { display: flex; align-items: center; gap: 12px; background: #229ED9; color: #fff; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.telegram-box i { background: rgba(255,255,255,.2); width: 40px; height: 40px; line-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; font-size: 18px; }
.telegram-box:hover { filter: brightness(1.05); }
.footer-whatsapp { margin-top: 12px; }
.footer-whatsapp strong { display: block; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.whatsapp-box { display: flex; align-items: center; gap: 12px; background: #25D366; color: #fff; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.whatsapp-box i { background: rgba(255,255,255,.25); width: 40px; height: 40px; line-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; font-size: 18px; }
.whatsapp-box:hover { filter: brightness(1.05); }
.copyright, .disclaimer { margin: 6px 0; text-align: center; }

/* Footer accordion behavior: mobile only */
@media (max-width: 767.98px) {
  .footer-nav .footer-links { display: none; margin-top: 10px; }
  .footer-nav.is-open .footer-links { display: block; }
  .footer-nav.is-open .footer-accordion-toggle i { transform: rotate(180deg); }
}

/* Utilities */
.section-footer { margin-top: 2rem; text-align: center; }
.view-all-link { font-family: "Oswald", sans-serif; display: inline-flex; align-items: center; gap: .5rem; color: var(--afondo-primary); font-weight: 500; padding: .5rem 1rem; background-color: rgba(213, 43, 30, 0.05); border-radius: 4px; transition: all .3s ease; text-decoration: none; }
.view-all-link:hover { background-color: rgba(213, 43, 30, 0.1); gap: .75rem; transform: translateY(-2px); text-decoration: none; }

/* Base link colors */
body a { color: #333333; }
body a:visited { color: #333333; }
body a:hover { color: var(--afondo-primary); }

/* Article content links */
.article-content a { color: #333333; text-decoration: underline; text-decoration-color: rgba(213,43,30,.4); }
.article-content a:hover { color: var(--afondo-primary); text-decoration-color: var(--afondo-primary); }

/* Feminicidios (harmonized) */
.feminicidios-content { padding: 8px 10px 0; }
.feminicidios-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 992px) { .feminicidios-grid { grid-template-columns: repeat(2, 1fr); } }
.feminicidio-item-image { position: relative; background: #ededed; }
.feminicidio-item-image::before { content: ""; display: block; padding-top: 66.666%; }
.feminicidio-item-image a { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.case-status { position: absolute; right: 12px; top: 12px; background: var(--afondo-primary); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; }
.case-status.resolved { background: #1f9d55; }
.feminicidio-item-content { padding: 16px 18px; border-top: 1px solid #eee; }
.case-date { color: #6c757d; font-size: 12px; }
.case-link { color: var(--afondo-primary); text-decoration: none; font-weight: 700; }
.stats-block { display: grid; gap: 4px; margin-top: 0; }
.stats-number { font-size: 44px; font-weight: 800; color: var(--afondo-primary); }
.stats-label { color: #555; font-size: 14px; }

/* Historias */
.historias-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 992px) { .historias-grid { grid-template-columns: 2fr 1fr 1fr 1fr; column-gap: 18px; } }
.historia-featured { grid-column: 1 / 2; display: grid; gap: 12px; border: 1px solid #e9ecef; border-radius: 8px; background: #fff; overflow: hidden; }
.historias-section .historia-featured .historia-content { padding: 14px 16px; border-top: 1px solid #eee; }
.historia-item { display: grid; grid-template-rows: auto 1fr; border: 1px solid #e9ecef; border-radius: 8px; background: #fff; overflow: hidden; }
.historia-item .historia-content { padding: 10px 12px 14px; }
.historia-title { margin: 6px 0; font-size: 1.1rem; line-height: 1.3;  font-weight: 500;}
.historia-featured .historia-title { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; }
.historia-meta { color: #6c757d; font-size: 13px; display: flex; gap: 12px; align-items: center; }
/* Historias overrides */
.historias-section.full-width-section { background: transparent; }
.historias-section .historia-meta i { color: var(--afondo-primary); }
.historias-section .historia-excerpt { color: #4a4a4a; margin-top: 8px; }

/* Historias images: featured 16:9, small 3:2 */
.historia-image-wrapper { position: relative; background: #ededed; }
.historia-image-wrapper::before { content: ""; display: block; padding-top: 66.666%; }
.historia-featured .historia-image-wrapper::before { padding-top: 56.25%; }
.historia-image-wrapper a { position: absolute; inset: 0; display: block; }
.historia-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pagination */
.pagination { margin: 24px 0; display: flex; justify-content: center; }
.pagination .nav-links a, .pagination .nav-links span { margin: 0 4px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #111; }
.pagination .nav-links .current { background: var(--afondo-primary); color: #fff; border-color: var(--afondo-primary); }

/* Secciones (Tabs) */
.secciones-tabs-wrapper { width: 100%; margin: 0; padding: 0; }
.secciones-tabs { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.seccion-tab-button { background: transparent; border: 0; padding: 10px 0; border-radius: 0; cursor: pointer; font-weight: 700; text-transform: uppercase; font-family: "Oswald", sans-serif; color: #1a1a1a; border-bottom: 3px solid transparent; }
.seccion-tab-button:hover { color: var(--afondo-primary); }
.seccion-tab-button.active { color: var(--afondo-primary); border-bottom-color: var(--afondo-primary); }
.secciones-news-section.full-width-section { background: transparent; }
.seccion-news-content .meta-date i { color: var(--afondo-primary); }
.secciones-tab-content { position: relative; }
.seccion-tab-panel { display: none; }
.seccion-tab-panel.active { display: block; }
.seccion-news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .seccion-news-grid { grid-template-columns: repeat(2, 1fr); } }
.seccion-news-item { display: grid; grid-template-columns: 1fr; gap: 8px; border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #fff; }
.seccion-news-image { position: relative; background: #ededed; border-radius: 6px; overflow: hidden; }
.seccion-news-image::before { content: ""; display: block; padding-top: 56.25%; }
.seccion-news-image a { position: absolute; inset: 0; display: block; }
.seccion-news-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.seccion-news-content { padding: 10px 12px; }
.seccion-news-title { margin: 6px 0 0; font-size: 18px; }
.seccion-news-title a { color: #1a1a1a; text-decoration: none; }
.seccion-news-title a:visited { color: #1a1a1a; }
.seccion-news-title a:hover { color: var(--afondo-primary); }
.seccion-news-content .meta-date { color: #6c757d; font-size: 13px; }

/* Section header layout */
.section-header { display: grid; grid-template-columns: max-content 1fr max-content; align-items: center; column-gap: 1rem; margin-bottom: 1.25rem; }
.section-header::after { content: ""; grid-column: 2; height: 2px; background-color: var(--color-border); align-self: center; }
.section-title { margin: 0; display: inline-flex; align-items: center; line-height: 1; text-transform: uppercase; font-family: "Oswald", sans-serif; font-weight: 700; color: #1a1a1a; }
.section-title::before { content: ""; display: inline-block; width: 6px; height: 1em; background: var(--afondo-primary); border-radius: 1px; margin-right: 12px; }
.section-header .view-all-wrapper { grid-column: 3; }

/* Full width special section (Feminicidios) */
.feminicidios-section.full-width-section { background: rgba(213, 43, 30, 0.03); color: #1a1a1a; border-top: 1px solid rgba(213,43,30,.25); }
.feminicidios-section .special-header .section-title { color: #1a1a1a; }
.feminicidios-content { padding-top: 8px; }
.feminicidios-intro { text-align: center; color: #444; max-width: 820px; margin: 0 auto 16px; }
.feminicidios-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 992px) { .feminicidios-grid { grid-template-columns: repeat(2, 1fr); } }
.feminicidio-item { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.feminicidios-section .feminicidio-item-image { position: relative; background: #ededed; }
.feminicidios-section .feminicidio-item-image::before { content: ""; display: block; padding-top: 66.666%; }
.feminicidios-section .feminicidio-item-image a { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.feminicidios-section .feminicidio-item-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.feminicidios-section .case-status { position: absolute; right: 12px; top: 12px; background: var(--afondo-primary); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; }
.case-status.active { background: var(--afondo-primary); }
.case-status.resolved { background: #1f9d55; }
.feminicidios-section .feminicidio-item-content { padding: 16px 18px; border-top: 1px solid #eee; }
.feminicidios-section .case-link i { color: var(--afondo-primary); margin-left: 6px; font-size: .95em; vertical-align: middle; }
.feminicidios-section .case-date { color: #6c757d; font-size: 12px; }
.feminicidios-section .feminicidio-item-title { margin: 8px 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.feminicidios-section .case-link { color: var(--afondo-primary); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.case-link:hover { text-decoration: underline; }
.feminicidios-section .feminicidios-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; background: rgba(213, 43, 30, 0.06); padding: 16px; border-radius: 0; border-top: 1px solid rgba(213,43,30,.15); }
.feminicidios-section .stats-block { display: flex; align-items: center; gap: 12px; }
.feminicidios-section .stats-number { font-size: 44px; font-weight: 800; color: var(--afondo-primary); line-height: 1; }
.feminicidios-section .stats-label { color: #555; font-size: 14px; max-width: 520px; }
.feminicidios-section .view-all-link { background-color: rgba(213, 43, 30, 0.08); color: var(--afondo-primary); text-decoration: none; }

/* Sidebar widgets styles to match noticia.html */
.widget.related-news .related-news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.widget.related-news .related-news-list li a { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; text-decoration: none; color: #111; }
.widget.related-news img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.widget.most-read ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.widget.most-read .rank { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; background: var(--afondo-primary); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; margin-right: 8px; }

/* Video responsiveness fixes */
.single .article-content .wp-video, 
.single .article-content .mejs-container, 
.single .article-content .mejs-overlay, 
.single .article-content .mejs-layer { width: 100% !important; max-width: 100% !important; }
.single .article-content .mejs-container video,
.single .article-content video { width: 100% !important; height: auto !important; display: block; }
