/*
Theme Name: República de la Verdad
Theme URI: https://republicadelaverdad.com.do
Author: LASO Media
Author URI: https://republicadelaverdad.com.do
Description: Tema periodístico moderno para República de la Verdad. Diseño editorial con soporte para noticias de última hora, categorías, publicidad y personalización completa desde el Customizer.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rdv
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --rdv-navy:       #1B3A6B;
  --rdv-red:        #CC0000;
  --rdv-red-dark:   #A00000;
  --rdv-white:      #FFFFFF;
  --rdv-gray-light: #F4F5F7;
  --rdv-gray-mid:   #E2E4E9;
  --rdv-gray:       #8A8F9A;
  --rdv-dark:       #111827;
  --rdv-text:       #222831;

  --rdv-font-head:  'Barlow Condensed', sans-serif;
  --rdv-font-body:  'Source Serif 4', serif;
  --rdv-font-ui:    'Barlow', sans-serif;

  --rdv-radius:     4px;
  --rdv-shadow:     0 2px 12px rgba(0,0,0,.10);
  --rdv-shadow-lg:  0 6px 32px rgba(0,0,0,.16);
  --rdv-transition: .22s cubic-bezier(.4,0,.2,1);

  --rdv-max-width:  1280px;
  --rdv-sidebar:    320px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--rdv-font-body);
  color: var(--rdv-text);
  background: var(--rdv-gray-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rdv-font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--rdv-navy);
  text-transform: uppercase;
  letter-spacing: .02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1.2em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 1.8em 0 .6em; }

.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }

blockquote {
  border-left: 4px solid var(--rdv-red);
  padding: 1rem 1.5rem;
  margin: 1.5em 0;
  background: var(--rdv-white);
  font-style: italic;
  font-size: 1.15em;
  color: var(--rdv-navy);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.rdv-container {
  max-width: var(--rdv-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rdv-badge {
  display: inline-block;
  font-family: var(--rdv-font-ui);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .22em .7em;
  border-radius: var(--rdv-radius);
  background: var(--rdv-red);
  color: var(--rdv-white);
}

.rdv-badge--navy { background: var(--rdv-navy); }
.rdv-badge--outline {
  background: transparent;
  border: 1.5px solid var(--rdv-red);
  color: var(--rdv-red);
}

.rdv-section-title {
  font-family: var(--rdv-font-head);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rdv-white);
  background: var(--rdv-navy);
  display: inline-block;
  padding: .35em 1em;
  position: relative;
}
.rdv-section-title::after {
  content: '';
  position: absolute;
  right: -18px; top: 0;
  width: 0; height: 100%;
  border-top: solid transparent;
  border-bottom: solid transparent;
  border-left: 18px solid var(--rdv-navy);
  border-top-width: 50%;
  border-bottom-width: 50%;
}

.rdv-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  border-bottom: 3px solid var(--rdv-navy);
  padding-bottom: .6rem;
}
.rdv-section-header .rdv-section-title { margin-bottom: -.6rem; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; margin: -1px;
  overflow: hidden; padding: 0;
  position: absolute; width: 1px;
  word-wrap: normal !important;
}

/* =============================================
   TOP BAR
   ============================================= */
#rdv-topbar {
  background: var(--rdv-navy);
  color: rgba(255,255,255,.75);
  font-family: var(--rdv-font-ui);
  font-size: .78rem;
  padding: .45rem 0;
  border-bottom: 2px solid var(--rdv-red);
}

#rdv-topbar .rdv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rdv-topbar__date { font-weight: 500; }

.rdv-topbar__social { display: flex; gap: .6rem; }
.rdv-topbar__social a {
  color: rgba(255,255,255,.7);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background var(--rdv-transition), color var(--rdv-transition);
  font-size: .75rem;
}
.rdv-topbar__social a:hover { background: var(--rdv-red); color: #fff; }

/* =============================================
   HEADER
   ============================================= */
#rdv-header {
  background: var(--rdv-white);
  box-shadow: var(--rdv-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.rdv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .75rem 1.5rem;
  max-width: var(--rdv-max-width);
  margin: 0 auto;
}

.rdv-header__logo img {
  height: 56px;
  width: auto;
}
.rdv-header__logo a { display: block; }

.rdv-header__banner {
  flex: 1;
  max-width: 728px;
  text-align: center;
}
.rdv-header__banner img { display: inline-block; }

.rdv-header__search { display: flex; align-items: center; gap: .5rem; }
.rdv-header__search form {
  display: flex;
  border: 1.5px solid var(--rdv-gray-mid);
  border-radius: 20px;
  overflow: hidden;
  background: var(--rdv-gray-light);
  transition: border-color var(--rdv-transition);
}
.rdv-header__search form:focus-within { border-color: var(--rdv-navy); }
.rdv-header__search input {
  border: none;
  background: transparent;
  padding: .45rem 1rem;
  font-family: var(--rdv-font-ui);
  font-size: .85rem;
  width: 200px;
  outline: none;
}
.rdv-header__search button {
  background: var(--rdv-navy);
  border: none;
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--rdv-transition);
}
.rdv-header__search button:hover { background: var(--rdv-red); }

/* =============================================
   NAVIGATION
   ============================================= */
#rdv-nav {
  background: var(--rdv-navy);
  border-top: 3px solid var(--rdv-red);
}

.rdv-nav__inner {
  max-width: var(--rdv-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#rdv-main-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
}

#rdv-main-menu > li > a {
  display: block;
  padding: .9rem 1.1rem;
  font-family: var(--rdv-font-ui);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.88);
  transition: color var(--rdv-transition), background var(--rdv-transition);
  position: relative;
}

#rdv-main-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--rdv-red);
  transition: left var(--rdv-transition), right var(--rdv-transition);
}

#rdv-main-menu > li > a:hover,
#rdv-main-menu > li.current-menu-item > a,
#rdv-main-menu > li.current-menu-ancestor > a {
  color: #fff;
  background: rgba(255,255,255,.07);
}

#rdv-main-menu > li > a:hover::after,
#rdv-main-menu > li.current-menu-item > a::after {
  left: 0; right: 0;
}

/* Dropdown */
#rdv-main-menu li { position: relative; }
#rdv-main-menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--rdv-white);
  min-width: 200px;
  box-shadow: var(--rdv-shadow-lg);
  border-top: 3px solid var(--rdv-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--rdv-transition);
  z-index: 999;
}
#rdv-main-menu li:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#rdv-main-menu .sub-menu li a {
  display: block;
  padding: .65rem 1.1rem;
  font-family: var(--rdv-font-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--rdv-navy);
  border-bottom: 1px solid var(--rdv-gray-mid);
  transition: background var(--rdv-transition), color var(--rdv-transition);
}
#rdv-main-menu .sub-menu li a:hover { background: var(--rdv-gray-light); color: var(--rdv-red); }

/* Hamburger */
.rdv-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.rdv-menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: all var(--rdv-transition);
}

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */
#rdv-ticker {
  background: var(--rdv-red);
  color: #fff;
  font-family: var(--rdv-font-ui);
  font-size: .82rem;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.rdv-ticker__label {
  background: var(--rdv-dark);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .55rem 1.2rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.rdv-ticker__wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: .55rem 0;
}

.rdv-ticker__track {
  display: flex;
  gap: 3rem;
  animation: rdvTicker 40s linear infinite;
  white-space: nowrap;
}
.rdv-ticker__track:hover { animation-play-state: paused; }

.rdv-ticker__track a {
  color: #fff;
  font-weight: 500;
  transition: text-decoration var(--rdv-transition);
}
.rdv-ticker__track a:hover { text-decoration: underline; }
.rdv-ticker__track span { color: rgba(255,255,255,.45); }

@keyframes rdvTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   AD BANNER SLOTS
   ============================================= */
.rdv-ad {
  text-align: center;
  background: var(--rdv-gray-light);
  border: 1px dashed var(--rdv-gray-mid);
  border-radius: var(--rdv-radius);
  overflow: hidden;
  position: relative;
}

.rdv-ad::before {
  content: 'PUBLICIDAD';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--rdv-font-ui);
  font-size: .6rem;
  color: var(--rdv-gray);
  letter-spacing: .08em;
}

.rdv-ad--leaderboard { width: 100%; min-height: 90px; }
.rdv-ad--billboard   { width: 100%; min-height: 250px; }
.rdv-ad--rectangle   { width: 300px; min-height: 250px; }
.rdv-ad--skyscraper  { width: 160px; min-height: 600px; }
.rdv-ad--inline      { width: 100%; min-height: 90px; margin: 1.5rem 0; }

/* =============================================
   HOMEPAGE LAYOUT
   ============================================= */
#rdv-homepage { padding: 1.5rem 0; }

/* Hero */
.rdv-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rdv-hero__main { position: relative; overflow: hidden; border-radius: var(--rdv-radius); }
.rdv-hero__main img {
  width: 100%; height: 460px;
  object-fit: cover;
  transition: transform .4s ease;
}
.rdv-hero__main:hover img { transform: scale(1.03); }

.rdv-hero__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
}
.rdv-hero__overlay .rdv-badge { margin-bottom: .6rem; }
.rdv-hero__overlay h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: .5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.rdv-hero__overlay a:hover h2 { color: #ffd0d0; }
.rdv-hero__meta {
  font-family: var(--rdv-font-ui);
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  display: flex; gap: .8rem;
}

.rdv-hero__sidebar { display: flex; flex-direction: column; gap: 1rem; }

.rdv-hero__secondary {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--rdv-radius);
}
.rdv-hero__secondary img {
  width: 100%; height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}
.rdv-hero__secondary:hover img { transform: scale(1.04); }
.rdv-hero__secondary .rdv-hero__overlay h2 { font-size: 1.1rem; }

/* Content + Sidebar */
.rdv-content-wrap {
  display: grid;
  grid-template-columns: 1fr var(--rdv-sidebar);
  gap: 2rem;
  align-items: start;
}

/* =============================================
   NEWS GRID
   ============================================= */
.rdv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.rdv-grid--2col { grid-template-columns: repeat(2, 1fr); }
.rdv-grid--4col { grid-template-columns: repeat(4, 1fr); }

/* Card */
.rdv-card {
  background: var(--rdv-white);
  border-radius: var(--rdv-radius);
  overflow: hidden;
  box-shadow: var(--rdv-shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--rdv-transition), box-shadow var(--rdv-transition);
}
.rdv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rdv-shadow-lg);
}

.rdv-card__thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.rdv-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.rdv-card:hover .rdv-card__thumb img { transform: scale(1.06); }

.rdv-card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rdv-card__cat {
  font-family: var(--rdv-font-ui);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rdv-red);
  margin-bottom: .4rem;
}

.rdv-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rdv-navy);
  margin-bottom: .5rem;
  flex: 1;
}
.rdv-card__title a:hover { color: var(--rdv-red); }

.rdv-card__meta {
  font-family: var(--rdv-font-ui);
  font-size: .72rem;
  color: var(--rdv-gray);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid var(--rdv-gray-mid);
}

/* Card list variant */
.rdv-card--list {
  flex-direction: row;
  align-items: stretch;
}
.rdv-card--list .rdv-card__thumb {
  width: 110px;
  flex-shrink: 0;
  aspect-ratio: unset;
}
.rdv-card--list .rdv-card__body { padding: .75rem; }
.rdv-card--list .rdv-card__title { font-size: .9rem; }

/* =============================================
   CATEGORY SECTION
   ============================================= */
.rdv-cat-section { margin-bottom: 2.5rem; }

/* =============================================
   SIDEBAR
   ============================================= */
#rdv-sidebar { position: sticky; top: 80px; }

.rdv-widget {
  background: var(--rdv-white);
  border-radius: var(--rdv-radius);
  box-shadow: var(--rdv-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.rdv-widget__title {
  background: var(--rdv-navy);
  color: #fff;
  font-family: var(--rdv-font-head);
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rdv-widget__title::before {
  content: '';
  display: block;
  width: 4px; height: 16px;
  background: var(--rdv-red);
  border-radius: 2px;
}

.rdv-widget__body { padding: 1rem; }

/* Popular posts widget */
.rdv-popular-list { display: flex; flex-direction: column; gap: .75rem; }
.rdv-popular-item { display: flex; gap: .75rem; align-items: flex-start; }
.rdv-popular-item__num {
  font-family: var(--rdv-font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--rdv-gray-mid);
  line-height: 1;
  min-width: 30px;
}
.rdv-popular-item:hover .rdv-popular-item__num { color: var(--rdv-red); }
.rdv-popular-item__title {
  font-family: var(--rdv-font-ui);
  font-size: .83rem;
  font-weight: 700;
  color: var(--rdv-navy);
  line-height: 1.3;
}
.rdv-popular-item__title a:hover { color: var(--rdv-red); }
.rdv-popular-item__date { font-size: .7rem; color: var(--rdv-gray); margin-top: .2rem; }

/* =============================================
   SINGLE POST
   ============================================= */
.rdv-single {
  background: var(--rdv-white);
  border-radius: var(--rdv-radius);
  box-shadow: var(--rdv-shadow);
  overflow: hidden;
}

.rdv-single__hero { position: relative; }
.rdv-single__hero img { width: 100%; max-height: 520px; object-fit: cover; }
.rdv-single__caption {
  font-family: var(--rdv-font-ui);
  font-size: .75rem;
  color: var(--rdv-gray);
  padding: .4rem .75rem;
  background: var(--rdv-gray-light);
  font-style: italic;
}

.rdv-single__body { padding: 2rem 2.5rem; }

.rdv-single__header { margin-bottom: 1.5rem; }
.rdv-single__cat { margin-bottom: .6rem; }
.rdv-single__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--rdv-navy);
  margin-bottom: .75rem;
}
.rdv-single__excerpt {
  font-size: 1.12rem;
  color: #555;
  font-style: italic;
  border-left: 4px solid var(--rdv-red);
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.rdv-single__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--rdv-font-ui);
  font-size: .8rem;
  color: var(--rdv-gray);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rdv-gray-mid);
  flex-wrap: wrap;
}
.rdv-single__meta strong { color: var(--rdv-navy); }

.rdv-single__content { font-size: 1.06rem; line-height: 1.85; }
.rdv-single__content p { margin-bottom: 1.4em; }
.rdv-single__content a { color: var(--rdv-red); text-decoration: underline; }
.rdv-single__content img {
  border-radius: var(--rdv-radius);
  margin: 1.5em auto;
  box-shadow: var(--rdv-shadow);
}

/* Share bar */
.rdv-share {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--rdv-gray-mid);
  border-bottom: 2px solid var(--rdv-gray-mid);
  margin: 2rem 0;
  flex-wrap: wrap;
}
.rdv-share__label {
  font-family: var(--rdv-font-ui);
  font-size: .8rem;
  font-weight: 700;
  color: var(--rdv-navy);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rdv-share a {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 20px;
  font-family: var(--rdv-font-ui);
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  transition: opacity var(--rdv-transition), transform var(--rdv-transition);
}
.rdv-share a:hover { opacity: .85; transform: translateY(-1px); }
.rdv-share .share-fb  { background: #1877F2; }
.rdv-share .share-tw  { background: #000; }
.rdv-share .share-wa  { background: #25D366; }
.rdv-share .share-tg  { background: #0088CC; }
.rdv-share .share-copy { background: var(--rdv-navy); }

/* Tags */
.rdv-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1.5rem 0;
}
.rdv-tags a {
  font-family: var(--rdv-font-ui);
  font-size: .75rem;
  padding: .3em .8em;
  border: 1.5px solid var(--rdv-gray-mid);
  border-radius: 20px;
  color: var(--rdv-navy);
  transition: all var(--rdv-transition);
}
.rdv-tags a:hover { border-color: var(--rdv-red); color: var(--rdv-red); }

/* =============================================
   ARCHIVE / CATEGORY PAGE
   ============================================= */
.rdv-archive-header {
  background: var(--rdv-navy);
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.rdv-archive-header h1 {
  color: #fff;
  font-size: 2rem;
}
.rdv-archive-header p {
  color: rgba(255,255,255,.7);
  font-family: var(--rdv-font-ui);
  font-size: .88rem;
  margin: 0;
}

/* =============================================
   PAGINATION
   ============================================= */
.rdv-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.rdv-pagination .page-numbers {
  font-family: var(--rdv-font-ui);
  font-size: .85rem;
  font-weight: 700;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--rdv-radius);
  border: 1.5px solid var(--rdv-gray-mid);
  color: var(--rdv-navy);
  transition: all var(--rdv-transition);
}
.rdv-pagination .page-numbers:hover,
.rdv-pagination .page-numbers.current {
  background: var(--rdv-navy);
  border-color: var(--rdv-navy);
  color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */
#rdv-footer {
  background: var(--rdv-dark);
  color: rgba(255,255,255,.75);
  margin-top: 3rem;
}

.rdv-footer__top {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 3rem 0 2rem;
}

.rdv-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.rdv-footer__logo img { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.rdv-footer__about {
  font-family: var(--rdv-font-ui);
  font-size: .83rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.rdv-footer__social { display: flex; gap: .5rem; }
.rdv-footer__social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: all var(--rdv-transition);
}
.rdv-footer__social a:hover { background: var(--rdv-red); color: #fff; }

.rdv-footer__col-title {
  font-family: var(--rdv-font-head);
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--rdv-red);
}

.rdv-footer__links li { margin-bottom: .5rem; }
.rdv-footer__links a {
  font-family: var(--rdv-font-ui);
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  transition: color var(--rdv-transition);
  display: flex; align-items: center; gap: .4rem;
}
.rdv-footer__links a::before {
  content: '›';
  color: var(--rdv-red);
}
.rdv-footer__links a:hover { color: #fff; }

.rdv-footer__bottom {
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.rdv-footer__bottom .rdv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.rdv-footer__copy {
  font-family: var(--rdv-font-ui);
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.rdv-footer__legal { display: flex; gap: 1.2rem; }
.rdv-footer__legal a {
  font-family: var(--rdv-font-ui);
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  transition: color var(--rdv-transition);
}
.rdv-footer__legal a:hover { color: var(--rdv-red); }

/* =============================================
   COMMENTS
   ============================================= */
.rdv-comments { margin-top: 2rem; }
.rdv-comments .comments-title {
  font-family: var(--rdv-font-head);
  font-size: 1.2rem;
  color: var(--rdv-navy);
  margin-bottom: 1.5rem;
}

.comment-list .comment { margin-bottom: 1.5rem; }
.comment-body {
  background: var(--rdv-gray-light);
  border-radius: var(--rdv-radius);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--rdv-gray-mid);
}
.comment-author .fn {
  font-family: var(--rdv-font-ui);
  font-weight: 700;
  color: var(--rdv-navy);
  font-size: .9rem;
}
.comment-metadata { font-size: .75rem; color: var(--rdv-gray); margin-bottom: .5rem; }
.comment-content { font-size: .9rem; }

/* Comment form */
#respond { margin-top: 2rem; }
#respond .comment-reply-title {
  font-family: var(--rdv-font-head);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
#respond input,
#respond textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--rdv-gray-mid);
  border-radius: var(--rdv-radius);
  font-family: var(--rdv-font-body);
  font-size: .9rem;
  margin-bottom: .75rem;
  transition: border-color var(--rdv-transition);
  background: var(--rdv-gray-light);
}
#respond input:focus,
#respond textarea:focus { outline: none; border-color: var(--rdv-navy); }
#respond .submit {
  background: var(--rdv-navy);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  font-family: var(--rdv-font-ui);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: var(--rdv-radius);
  cursor: pointer;
  transition: background var(--rdv-transition);
}
#respond .submit:hover { background: var(--rdv-red); }

/* =============================================
   SEARCH RESULTS
   ============================================= */
.rdv-search-header {
  margin-bottom: 1.5rem;
}
.rdv-search-header h1 { font-size: 1.4rem; }
.rdv-search-header span { color: var(--rdv-red); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .rdv-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .rdv-hero { grid-template-columns: 1fr; }
  .rdv-hero__sidebar { flex-direction: row; }
  .rdv-content-wrap { grid-template-columns: 1fr; }
  #rdv-sidebar { position: static; }
  .rdv-grid { grid-template-columns: repeat(2, 1fr); }
  .rdv-grid--4col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rdv-header__inner { flex-wrap: wrap; }
  .rdv-header__banner { display: none; }

  #rdv-main-menu {
    display: none;
    flex-direction: column;
    background: var(--rdv-navy);
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  #rdv-main-menu.is-open { display: flex; }
  #rdv-main-menu > li > a { padding: .85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  #rdv-main-menu .sub-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,.2);
  }
  .rdv-menu-toggle { display: flex; }
  .rdv-nav__inner { flex-wrap: wrap; }

  .rdv-hero__sidebar { flex-direction: column; }
  .rdv-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .rdv-grid { grid-template-columns: 1fr; }
  .rdv-grid--2col { grid-template-columns: 1fr; }
  .rdv-single__body { padding: 1.25rem; }
}

/* =============================================
   CATEGORY SVG IMAGES
   ============================================= */
.rdv-cat-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.rdv-cat-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Card size: fill the thumb exactly */
.rdv-card__thumb .rdv-cat-svg {
  aspect-ratio: 16/9;
  background: #1B3A6B;
}
.rdv-card__thumb .rdv-cat-svg svg {
  width: 100%;
  height: 100%;
}

/* Hero sizes */
.rdv-hero__main .rdv-cat-svg {
  height: 460px;
  background: #1B3A6B;
}
.rdv-hero__secondary .rdv-cat-svg {
  min-height: 200px;
  height: 100%;
  background: #1B3A6B;
}

/* Single post hero */
.rdv-single__hero .rdv-cat-svg {
  max-height: 520px;
  height: 420px;
  background: #1B3A6B;
}
.rdv-single__hero .rdv-cat-svg svg {
  width: 100%;
  height: 100%;
}

/* Archive / category header */
.rdv-cat-header-svg {
  position: absolute;
  inset: 0;
  opacity: .35;
}
.rdv-cat-header-svg svg {
  width: 100%;
  height: 100%;
}

/* Sidebar "más en categoría" */
.rdv-card--list .rdv-cat-svg {
  width: 110px;
  height: 100%;
  min-height: 80px;
}

/* =============================================
   LIVE TICKER — post-level styles
   ============================================= */

/* Ticker label pulse for live posts */
#rdv-ticker .rdv-ticker__label .rdv-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: 4px;
  animation: rdvPulse 1.4s ease-in-out infinite;
}

@keyframes rdvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* Admin column for ticker status */
.rdv-ticker-col-yes {
  color: #CC0000;
  font-weight: 700;
  font-size: .8rem;
}

/* ── Crédito de imagen RSS ── */
.rdv-img-credit {
  font-family: var(--rdv-font-ui);
  font-size: .72rem;
  color: var(--rdv-gray);
  background: var(--rdv-gray-light);
  padding: .35rem .75rem;
  margin: 0;
  font-style: italic;
  border-top: 1px solid var(--rdv-gray-mid);
}
.rdv-img-credit a {
  color: var(--rdv-navy);
  text-decoration: underline;
}
.rdv-img-credit a:hover { color: var(--rdv-red); }
