/* ==========================================================================
   ENHANCEMENTS.CSS - Digital San Luis News Theme
   Professional news website enhancements: mercados, clima, dark mode,
   timeline sidebar, and responsive overrides.
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES - Light & Dark Mode
   ========================================================================== */

:root {
  /* --- Override serif → Montserrat en todos los titulares --- */
  --font-serif: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Light Theme (default) --- */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e8e8e8;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.08);

  /* --- Brand Colors --- */
  --color-red: #E50914;
  --color-red-dark: #b8070f;
  --color-orange: #E65100;
  --color-orange-light: #ff6d00;
  --color-green: #00c853;
  --color-green-dark: #00a844;
  --color-loss: #ff1744;

  /* --- Typography --- */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- Spacing --- */
  --timeline-width: 360px;
  --timeline-width-tablet: 300px;

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2a2a2a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --border-color: #333333;
  --card-bg: #1e1e1e;
  --header-bg: #1a1a1a;
  --shadow-color: rgba(0, 0, 0, 0.32);
}


/* ==========================================================================
   2. MERCADOS FINANCIEROS SECTION
   ========================================================================== */

.section-mercados {
  padding: 32px 0 24px;
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .section-mercados {
  background-color: #161616;
}

.mercados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.mercado-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
}

.mercado-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.mercado-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.mercado-card--oficial::before {
  background: linear-gradient(90deg, #2196F3, #1565C0);
}

.mercado-card--blue::before {
  background: linear-gradient(90deg, #00BCD4, #00838F);
}

.mercado-card--riesgo::before {
  background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

[data-theme="dark"] .mercado-card {
  background: #1e1e1e;
  border-color: #2a2a2a;
}

.mercado-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mercado-card--oficial .mercado-card__icon {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

.mercado-card--blue .mercado-card__icon {
  background: rgba(0, 188, 212, 0.1);
  color: #00BCD4;
}

.mercado-card--riesgo .mercado-card__icon {
  background: rgba(230, 81, 0, 0.1);
  color: var(--color-orange);
}

[data-theme="dark"] .mercado-card--oficial .mercado-card__icon {
  background: rgba(33, 150, 243, 0.15);
}

[data-theme="dark"] .mercado-card--blue .mercado-card__icon {
  background: rgba(0, 188, 212, 0.15);
}

[data-theme="dark"] .mercado-card--riesgo .mercado-card__icon {
  background: rgba(230, 81, 0, 0.15);
}

.mercado-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mercado-card__label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.mercado-card__change {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mercado-card__change {
  background: rgba(255, 255, 255, 0.08);
}

.mercado-card__change--up {
  color: var(--color-green) !important;
  background: rgba(0, 200, 83, 0.1) !important;
}

.mercado-card__change--up::before {
  content: "\25B2 ";
  font-size: 9px;
}

.mercado-card__change--down {
  color: var(--color-loss) !important;
  background: rgba(255, 23, 68, 0.1) !important;
}

.mercado-card__change--down::before {
  content: "\25BC ";
  font-size: 9px;
}

.mercado-card__prices {
  display: flex;
  align-items: center;
  gap: 0;
}

.mercado-card__price {
  flex: 1;
  text-align: center;
}

.mercado-card__price-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.mercado-card__price-value {
  display: block;
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.mercado-card__price-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  flex-shrink: 0;
  margin: 0 16px;
}

[data-theme="dark"] .mercado-card__price-divider {
  background: #333;
}

/* Riesgo pais big value */
.mercado-card__value-big {
  text-align: center;
  padding-top: 4px;
}

.mercado-card__value-big span:first-child {
  display: block;
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.mercado-card__value-unit {
  display: block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}


/* ==========================================================================
   2b. CLIMA SECTION
   ========================================================================== */

.section-clima {
  padding: 24px 0 32px;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .section-clima {
  background-color: var(--bg-primary);
}

.clima-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.clima-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background-color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
}

.clima-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

[data-theme="dark"] .clima-card {
  background: #1e1e1e;
  border-color: #2a2a2a;
}

.clima-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFB300, #FF8F00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clima-card__icon--cloudy {
  background: linear-gradient(135deg, #78909C, #546E7A);
}

.clima-card__icon--rainy {
  background: linear-gradient(135deg, #42A5F5, #1565C0);
}

.clima-card__icon--night {
  background: linear-gradient(135deg, #5C6BC0, #283593);
}

.clima-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.clima-card__city {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.clima-card__temp {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.clima-card__desc {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: capitalize;
}


/* ==========================================================================
   3. WHITE HEADER OVERRIDE
   ========================================================================== */

.header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  z-index: 900;
}

.nav__link {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  border-bottom: 3px solid transparent;
  display: inline-block;
}

.nav__link:hover {
  color: var(--color-red);
}

.nav__link.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.header__search-btn {
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  transition: color var(--transition-fast);
}

.header__search-btn:hover {
  color: var(--color-red);
}

.header__menu-btn span {
  background-color: var(--text-primary);
  transition: background-color var(--transition-fast);
}

/* Dark mode header */
[data-theme="dark"] .header {
  background-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav__link {
  color: #e0e0e0;
}

[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link.active {
  color: var(--color-red);
}

[data-theme="dark"] .header__search-btn {
  color: #e0e0e0;
}

[data-theme="dark"] .header__search-btn:hover {
  color: var(--color-red);
}

[data-theme="dark"] .header__menu-btn span {
  background-color: #e0e0e0;
}


/* ==========================================================================
   4. DARK MODE TOGGLE
   ========================================================================== */

.dark-mode-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.dark-mode-toggle:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.08);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

/* Moon icon (shown in light mode) */
.dark-mode-toggle__icon--moon {
  display: inline-flex;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* Sun icon (shown in dark mode) */
.dark-mode-toggle__icon--sun {
  display: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .dark-mode-toggle {
  border-color: #555;
  background-color: #2a2a2a;
  color: #ffc107;
}

[data-theme="dark"] .dark-mode-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .dark-mode-toggle__icon--sun {
  display: inline-flex;
}


/* ==========================================================================
   5. NEWS TIMELINE SIDEBAR — Redesigned
   ========================================================================== */

.timeline-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--timeline-width);
  background: #0a0a0a;
  color: #e0e0e0;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
  font-family: var(--font-primary);
}

.timeline-sidebar.is-open {
  transform: translateX(0);
}

[data-theme="dark"] .timeline-sidebar {
  background: #0a0a0a;
}

/* Sidebar header */
.timeline-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 18px;
  background: linear-gradient(135deg, #d3403d, #a71717);
  flex-shrink: 0;
}

.timeline-sidebar__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-sidebar__live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: timeline-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes timeline-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.timeline-sidebar__title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.timeline-sidebar__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.timeline-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Timeline content area */
.timeline-sidebar__content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #333 #0a0a0a;
}

.timeline-sidebar__content::-webkit-scrollbar {
  width: 4px;
}

.timeline-sidebar__content::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.timeline-sidebar__content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* Empty state */
.timeline-sidebar__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #555;
}

.timeline-sidebar__empty p {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* Timeline item */
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  background: rgba(211, 64, 61, 0.08);
}

/* Red dot */
.timeline-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3403d;
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
}

.timeline-item:first-child .timeline-item__dot {
  animation: timeline-pulse 1.5s ease-in-out infinite;
  background: #d3403d;
  box-shadow: 0 0 8px rgba(211, 64, 61, 0.5);
}

/* Vertical line connecting dots */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 30px;
  bottom: -1px;
  width: 2px;
  background: rgba(211, 64, 61, 0.2);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item__body {
  flex: 1;
  min-width: 0;
}

.timeline-item__category {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #d3403d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  background: rgba(211, 64, 61, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
}

.timeline-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.4;
  margin: 0;
  transition: color var(--transition-fast);
}

.timeline-item:hover .timeline-item__title {
  color: #ffffff;
}

.timeline-item__time {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  margin-top: 6px;
}

/* Toggle button (desktop) */
.timeline-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  width: 48px;
  height: 110px;
  background: #d3403d;
  color: #ffffff;
  border: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  font-family: var(--font-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--transition-fast),
              width var(--transition-fast),
              right var(--transition-slow);
  box-shadow: -3px 0 16px rgba(211, 64, 61, 0.3);
}

.timeline-toggle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: timeline-pulse 1.5s ease-in-out infinite;
}

.timeline-toggle__text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.timeline-toggle:hover {
  background: #a71717;
  width: 54px;
}

/* Hide toggle when sidebar is open */
.timeline-sidebar.is-open ~ .timeline-toggle {
  right: var(--timeline-width);
}

/* Floating button for mobile */
.timeline-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1050;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #d3403d;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(211, 64, 61, 0.45);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}

.timeline-fab__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: timeline-pulse 1.5s ease-in-out infinite;
  position: absolute;
  top: 10px;
  right: 10px;
}

.timeline-fab:hover {
  background: #a71717;
  transform: scale(1.08);
}

/* Overlay behind sidebar on mobile */
.timeline-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1099;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.timeline-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}


/* ==========================================================================
   6. DARK MODE OVERRIDES FOR EXISTING ELEMENTS
   ========================================================================== */

/* Body */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Top bar stays dark */
.top-bar {
  background-color: #0a0a0a;
  color: #ffffff;
}

[data-theme="dark"] .top-bar {
  background-color: #0a0a0a;
}

/* News cards */
.news-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.news-card:hover {
  box-shadow: 0 8px 24px var(--shadow-color);
}

.news-card__title {
  color: var(--text-primary);
  transition: color var(--transition-normal);
}

.news-card__title:hover {
  color: var(--color-red);
}

.news-card__excerpt,
.news-card__meta {
  color: var(--text-secondary);
}

/* ---- News card dark mode explicit override ---- */
[data-theme="dark"] .news-card {
  background-color: #1e1e1e;
  border-color: #2a2a2a;
}

[data-theme="dark"] .news-card a {
  background-color: #1e1e1e;
}

[data-theme="dark"] .news-card__body {
  background-color: #1e1e1e;
}

[data-theme="dark"] .news-card__title {
  color: #e0e0e0;
}

[data-theme="dark"] .news-card__time {
  color: rgba(255,255,255,0.38);
}

[data-theme="dark"] .news-card__excerpt,
[data-theme="dark"] .news-card__meta {
  color: rgba(255,255,255,0.5);
}

/* ---- Mas opiniones / related section dark mode ---- */
[data-theme="dark"] .detalle__related {
  background-color: var(--bg-primary);
  border-top-color: #2a2a2a;
}

[data-theme="dark"] .detalle__related-title {
  color: #e0e0e0;
}

/* Sections */
.section-news,
.section-categories,
.section-opinion {
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .section-news {
  background-color: var(--bg-primary);
}

[data-theme="dark"] .section-categories {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .cat-tabs__btn {
  background: var(--card-bg);
  color: var(--text-secondary, #aaa);
  border-color: var(--border-color, #333);
}

[data-theme="dark"] .cat-tabs__btn:hover {
  color: var(--red, #E50914);
  border-color: var(--red, #E50914);
}

[data-theme="dark"] .cat-tabs__btn.active {
  background: var(--red, #E50914);
  color: #fff;
  border-color: var(--red, #E50914);
}

[data-theme="dark"] .cat-grid__item a {
  background: var(--card-bg);
}

[data-theme="dark"] .cat-grid__item h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .cat-grid__item time {
  color: var(--text-secondary, #888);
}

[data-theme="dark"] .cat-grid__featured-content h3 {
  color: #fff;
}

[data-theme="dark"] .section-opinion {
  background-color: var(--bg-primary);
}

/* Section headers */
.section-header__title {
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: color var(--transition-normal);
}

/* Sidebar widgets */
.sidebar-widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .sidebar-widget {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.sidebar-widget__title {
  color: var(--text-primary);
  transition: color var(--transition-normal);
}

/* Most read */
.most-read__link {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.most-read__link:hover {
  color: var(--color-red);
}

[data-theme="dark"] .most-read__link {
  color: #cccccc;
}

[data-theme="dark"] .most-read__link:hover {
  color: var(--color-red);
}

.most-read__number {
  color: var(--color-red);
}

/* Footer stays dark */
.footer {
  background-color: #0a0a0a;
  color: #cccccc;
}

[data-theme="dark"] .footer {
  background-color: #0a0a0a;
}

/* Tags */
.tag {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.tag:hover {
  background-color: var(--color-red);
  color: #ffffff;
  border-color: var(--color-red);
}

[data-theme="dark"] .tag {
  background-color: #2a2a2a;
  color: #cccccc;
  border-color: #444;
}

[data-theme="dark"] .tag:hover {
  background-color: var(--color-red);
  color: #ffffff;
  border-color: var(--color-red);
}

/* Ad slot placeholders */
.ad-slot__placeholder {
  border: 2px dashed var(--border-color);
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  transition: border-color var(--transition-normal),
              color var(--transition-normal),
              background-color var(--transition-normal);
}

[data-theme="dark"] .ad-slot__placeholder {
  border-color: #444;
  color: #666;
  background-color: #1a1a1a;
}

/* ========== STREAMING SECTION - DARK MODE FIX ========== */
.section-streaming {
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .section-streaming {
  background-color: var(--bg-primary);
}

.streaming-grid__info h3 {
  color: var(--text-primary) !important;
  transition: color var(--transition-normal);
}

.streaming-grid__info p {
  color: var(--text-secondary) !important;
  transition: color var(--transition-normal);
}

[data-theme="dark"] .streaming-grid__info h3 {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .streaming-grid__info p {
  color: #a0a0a0 !important;
}

/* ========== RADIO SECTION - DARK MODE FIX ========== */
.section-radio {
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .section-radio {
  background-color: #0a0a0a;
}

/* ========== OPINION SECTION - DARK MODE FIX ========== */
[data-theme="dark"] .section-opinion {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .opinion-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .opinion-card__name {
  color: #e0e0e0;
}

[data-theme="dark"] .opinion-card__title {
  color: #cccccc;
}

[data-theme="dark"] .opinion-card__excerpt {
  color: #999;
}

/* ========== HERO SECTION - DARK MODE ========== */
[data-theme="dark"] .hero {
  background: var(--bg-primary);
}

[data-theme="dark"] .hero__main-link {
  background: var(--card-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero__main-content {
  background: var(--card-bg);
}

[data-theme="dark"] .hero__main-title {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .hero__main-link:hover .hero__main-title {
  color: #d3403d !important;
}

[data-theme="dark"] .hero__main-excerpt {
  color: #a0a0a0 !important;
}

[data-theme="dark"] .hero__meta,
[data-theme="dark"] .hero__meta * {
  color: #666 !important;
}

[data-theme="dark"] .hero__secondary a {
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero__secondary-title {
  color: #cccccc !important;
}

[data-theme="dark"] .hero__secondary a:hover .hero__secondary-title {
  color: #d3403d !important;
}

[data-theme="dark"] .hero__secondary time {
  color: #666 !important;
}

[data-theme="dark"] .hero-caption__title {
  color: #ffffff;
}

[data-theme="dark"] .hero-caption__excerpt {
  color: #cccccc;
}

/* ========== TICKER - DARK MODE ========== */
[data-theme="dark"] .ticker {
  background-color: #0a0a0a;
}

/* ========== POR SECCION TABS - DARK MODE ========== */
[data-theme="dark"] .tabs__btn {
  color: #999;
  background: transparent;
}

[data-theme="dark"] .tabs__btn.active,
[data-theme="dark"] .tabs__btn:hover {
  color: #ffffff;
}

[data-theme="dark"] .tab-article__title {
  color: #e0e0e0;
}

[data-theme="dark"] .tab-article__title:hover {
  color: var(--color-red);
}

[data-theme="dark"] .tab-article__meta {
  color: #888;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-primary);
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #444;
}

/* Search overlay */
.search-overlay {
  background-color: rgba(0, 0, 0, 0.92);
  transition: opacity var(--transition-normal);
}

[data-theme="dark"] .search-overlay {
  background-color: rgba(0, 0, 0, 0.95);
}

.search-overlay__input {
  background-color: transparent;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-primary);
}

.search-overlay__input:focus {
  border-bottom-color: var(--color-red);
}


/* ==========================================================================
   7. RESPONSIVE - TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .timeline-sidebar {
    width: var(--timeline-width-tablet);
  }

  .timeline-sidebar.is-open ~ .timeline-toggle {
    right: var(--timeline-width-tablet);
  }

  .timeline-toggle {
    width: 38px;
    height: 100px;
    font-size: 10px;
  }

  .mercados-grid {
    gap: 16px;
  }

  .mercado-card {
    padding: 20px;
  }

  .mercado-card__price-value {
    font-size: 22px;
  }

  .mercado-card__value-big span:first-child {
    font-size: 34px;
  }
}


/* ==========================================================================
   7b. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

  /* Header white background on mobile */
  .header {
    background-color: var(--header-bg);
  }

  .nav__link {
    font-size: 13px;
    padding: 6px 10px;
  }

  /* Mercados: stack 2 + 1 */
  .mercados-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mercado-card--riesgo {
    grid-column: 1 / -1;
  }

  .mercado-card {
    padding: 16px;
  }

  .mercado-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .mercado-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .mercado-card__price-value {
    font-size: 20px;
  }

  .mercado-card__value-big span:first-child {
    font-size: 32px;
  }

  .mercado-card__price-divider {
    margin: 0 10px;
    height: 32px;
  }

  /* Clima: horizontal scroll on mobile */
  .clima-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .clima-card {
    padding: 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .clima-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .clima-card__icon svg {
    width: 32px;
    height: 32px;
  }

  .clima-card__temp {
    font-size: 26px;
  }

  /* Timeline sidebar: full-width overlay on mobile */
  .timeline-sidebar {
    width: 100%;
  }

  .timeline-toggle {
    display: none !important;
  }

  .timeline-fab {
    display: flex !important;
  }

  .timeline-sidebar.is-open ~ .timeline-toggle {
    right: 100%;
  }

  .timeline-item {
    padding: 14px 16px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-item__title {
    font-size: 14px;
  }
}


/* ==========================================================================
   SMALL MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .mercados-grid {
    grid-template-columns: 1fr;
  }

  .mercado-card--riesgo {
    grid-column: auto;
  }

  .mercado-card__price-value {
    font-size: 22px;
  }

  .clima-grid {
    grid-template-columns: 1fr;
  }

  .clima-card {
    flex-direction: row;
    text-align: left;
  }

  .clima-card__icon {
    width: 56px;
    height: 56px;
  }

  .clima-card__temp {
    font-size: 28px;
  }

  .timeline-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}


/* ==========================================================================
   UTILITY
   ========================================================================== */

*,
*::before,
*::after {
  /* Intentionally NOT applying transition to all properties globally
     to prevent performance issues. Transitions are applied per-component above. */
}

/* Print: hide non-essential UI elements */
@media print {
  .section-mercados,
  .section-clima,
  .timeline-sidebar,
  .timeline-toggle,
  .timeline-fab,
  .timeline-overlay,
  .dark-mode-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   VOLUME SLIDER — redesigned
   ========================================================================== */
.radio-player__volume {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 180px;
    color: rgba(255,255,255,0.6);
}

.radio-player__volume-slider,
.sticky-player__volume {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 99px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(
        to right,
        var(--red) 0%,
        var(--red) var(--vol-pct, 80%),
        rgba(255,255,255,0.15) var(--vol-pct, 80%),
        rgba(255,255,255,0.15) 100%
    );
    transition: height 0.2s;
}

.radio-player__volume-slider:hover,
.sticky-player__volume:hover {
    height: 6px;
}

.radio-player__volume-slider::-webkit-slider-thumb,
.sticky-player__volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(211,64,61,0.3), 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.radio-player__volume-slider::-webkit-slider-thumb:hover,
.sticky-player__volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(211,64,61,0.2), 0 2px 8px rgba(0,0,0,0.4);
}

.radio-player__volume-slider::-moz-range-thumb,
.sticky-player__volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(211,64,61,0.3);
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.section-newsletter {
    padding: 80px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.section-newsletter::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(211,64,61,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
}

.newsletter-box__label {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 12px;
}

.newsletter-box__title {
    font-family: var(--font-primary);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px;
}

.newsletter-box__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin: 0;
}

.newsletter-form__field {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    transition: border-color 0.3s;
}

.newsletter-form__field:focus-within {
    border-color: rgba(211,64,61,0.4);
    background: rgba(255,255,255,0.06);
}

.newsletter-form__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: #fff;
    min-width: 0;
}

.newsletter-form__input::placeholder {
    color: rgba(255,255,255,0.25);
}

.newsletter-form__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--red);
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.3s, opacity 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-form__btn:hover { background: #e04545; }
.newsletter-form__btn:disabled { opacity: 0.6; cursor: wait; }

.newsletter-form__btn-icon {
    transition: transform 0.3s;
}
.newsletter-form__btn:hover .newsletter-form__btn-icon {
    transform: translateX(3px);
}

.newsletter-form__msg {
    font-size: 13px;
    margin-top: 10px;
    min-height: 20px;
    padding: 0 4px;
    border-radius: 4px;
}
.newsletter-form__msg--ok { color: #4ade80; }
.newsletter-form__msg--error { color: #f87171; }

.newsletter-form__privacy {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    margin-top: 12px;
}

@media (max-width: 768px) {
    .newsletter-box {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .newsletter-box__label { text-align: center; }
    .newsletter-form__btn-text { display: none; }
    .newsletter-form__btn { padding: 14px 18px; }
}

[data-theme="dark"] .section-newsletter { background: #050505; }

/* ==========================================================================
   NEWSLETTER — SPLIT LAYOUT (inner/left/right + laptop mockup)
   ========================================================================== */

.newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 64px;
    align-items: center;
}

/* --- Left column --- */
.newsletter-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.newsletter-left__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d3403d;
}

.newsletter-left__label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #d3403d;
}

.newsletter-left__title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0;
}

.newsletter-left__title span {
    color: #d3403d;
}

.newsletter-left__desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Form row: input + button side by side */
.newsletter-form__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15) !important;
    background: rgba(255,255,255,0.04) !important;
    align-items: stretch;
    width: 100%;
}

.newsletter-form__row:focus-within {
    border-color: rgba(211,64,61,0.5) !important;
}

.newsletter-form__field {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center;
    padding: 0 16px !important;
    gap: 10px;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.newsletter-form__field svg {
    flex-shrink: 0;
    opacity: 0.4;
    color: #fff;
}

/* Override WordPress default input styles */
.section-newsletter .newsletter-form__input,
.section-newsletter input[type="email"] {
    flex: 1 !important;
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    font-family: var(--font-primary) !important;
    font-size: 15px !important;
    color: #fff !important;
    line-height: 1 !important;
    -webkit-appearance: none;
    appearance: none;
}

.section-newsletter .newsletter-form__input::placeholder,
.section-newsletter input[type="email"]::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

.section-newsletter .newsletter-form__input:focus,
.section-newsletter input[type="email"]:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.newsletter-form__row .newsletter-form__btn {
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    padding: 16px 28px !important;
    font-size: 13px;
    letter-spacing: 0.05em;
    align-self: stretch;
    height: auto !important;
}

/* --- Right column --- */
.newsletter-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Laptop mockup image --- */
.nl-laptop-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 50px rgba(211,64,61,0.15));
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .newsletter-right {
        order: -1;
        display: flex;
        justify-content: center;
    }
    .nl-laptop-img {
        max-width: 340px;
    }
}

@media (max-width: 600px) {
    .newsletter-inner {
        padding: 0 16px;
    }
    .newsletter-right {
        display: none;
    }
    .newsletter-left__title {
        font-size: 24px;
    }
    .newsletter-form__row {
        flex-direction: column;
        border-radius: 8px;
    }
    .newsletter-form__field {
        padding: 14px 16px;
    }
    .newsletter-form__row .newsletter-form__btn {
        border-radius: 0 0 6px 6px;
        justify-content: center;
    }
}


/* ==========================================================================
   CATEGORY TABS — ICONOS (styles moved to styles.css)
   ========================================================================== */

/* ==========================================================================
   TEMA DEL MOMENTO
   ========================================================================== */
.tema-section {
    padding: 56px 0;
    background: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tema-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(211,64,61,0.07) 0%, transparent 60%);
    pointer-events: none;
}

/* Header */
.tema-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.tema-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d3403d;
    margin-bottom: 10px;
}

.tema-badge__dot {
    width: 8px;
    height: 8px;
    background: #d3403d;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(211,64,61,0.8);
    animation: temaDotPulse 1.4s ease-in-out infinite;
}

@keyframes temaDotPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(211,64,61,0.8); }
    50%       { box-shadow: 0 0 3px rgba(211,64,61,0.2); }
}

.tema-titulo {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
    color: #fff;
}

.tema-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.tema-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.tema-ver-mas:hover {
    color: #d3403d;
    border-color: #d3403d;
}

.tema-ver-mas svg {
    transition: transform 0.2s;
}

.tema-ver-mas:hover svg {
    transform: translateX(4px);
}

/* Grid */
.tema-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}

/* Cards */
.tema-card a {
    display: block;
    text-decoration: none;
    color: #fff;
}

.tema-card__img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #222;
}

.tema-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tema-card:hover .tema-card__img img {
    transform: scale(1.04);
}

.tema-card--featured .tema-card__img {
    height: 240px;
}

.tema-card:not(.tema-card--featured) .tema-card__img {
    height: 130px;
}

.tema-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #fff;
    transition: color 0.2s;
}

.tema-card--featured .tema-card__title {
    font-size: 18px;
}

.tema-card:hover .tema-card__title {
    color: #ff8080;
}

.tema-card__excerpt {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.55;
    margin-bottom: 8px;
}

.tema-card__time {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .tema-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
    .tema-grid .tema-card:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .tema-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .tema-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tema-card--featured {
        grid-column: 1 / -1;
    }
    .tema-card--featured .tema-card__img {
        height: 200px;
    }
    .tema-grid .tema-card:last-child {
        display: block;
    }
}

@media (max-width: 480px) {
    .tema-section { padding: 40px 0; }
    .tema-grid {
        grid-template-columns: 1fr;
    }
    .tema-card--featured .tema-card__img {
        height: 180px;
    }
    /* cat-tabs__nav responsive — handled in styles.css */
}

/* ==========================================================================
   HEADER V2 - La Nacion style (clean, white, centered logo)
   ========================================================================== */

/* Override base header */
.header--v2 {
    background: var(--card-bg, #ffffff) !important;
    border-bottom: 1px solid var(--border-color, #e0e0e0) !important;
    height: auto !important;
    padding: 0;
}
.header__inner--v2 {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 64px;
    gap: 16px;
}

/* --- LEFT --- */
.hv2-left {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hv2-sections-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--text-primary, #1a1a1a);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.hv2-sections-btn:hover,
.hv2-sections-btn.is-active {
    background: var(--bg-secondary, #f5f5f5);
}
.hv2-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary, #555);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.hv2-search-btn:hover {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary, #1a1a1a);
}

/* Live radio icon */
.hv2-live-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
    text-decoration: none;
}
.hv2-live-icon:hover {
    background: rgba(229,9,20,0.08);
}
.hv2-live-dot {
    width: 12px;
    height: 12px;
    background: var(--color-red, #E50914);
    border-radius: 50%;
    display: block;
    animation: hv2Pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(229,9,20,0.4);
}
@keyframes hv2Pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 6px rgba(229,9,20,0); transform: scale(1.1); }
}

/* --- CENTER (logo) --- */
.hv2-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hv2-logo img {
    height: 60px;
    width: auto;
}
[data-theme="dark"] .hv2-logo img {
    filter: brightness(0) invert(1);
}

/* --- RIGHT --- */
.hv2-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.hv2-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none !important;
    border: none;
    color: var(--text-secondary, #555);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.hv2-icon-btn:hover {
    background: var(--bg-secondary, #f5f5f5) !important;
    color: var(--text-primary, #1a1a1a);
}

/* Subscribe button */
.hv2-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--color-red, #E50914);
    color: #fff !important;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.hv2-subscribe-btn:hover {
    background: var(--color-red-dark, #b8070f);
    transform: translateY(-1px);
}

/* Live button override for v2 */
.header--v2 .btn-live {
    font-size: 10px;
    padding: 6px 12px;
    letter-spacing: 0.5px;
}

/* --- SECTIONS DROPDOWN PANEL --- */
.hv2-sections-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg, #fff);
    border-top: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
    padding: 28px 0;
}
.hv2-sections-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hv2-sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.hv2-sections-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.hv2-sections-link:hover {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--color-red, #E50914);
}
.hv2-sections-link.is-active {
    color: var(--color-red, #E50914);
    font-weight: 700;
}

/* Search overlay override for v2 */
.header--v2 .search-overlay {
    background: var(--card-bg, #fff);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.header--v2 .search-form__input {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary, #1a1a1a);
    border: 1.5px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
}
.header--v2 .search-form__input:focus {
    border-color: var(--color-red);
}
.header--v2 .search-form__btn {
    color: var(--text-secondary, #555);
}
.header--v2 .search-form__close {
    color: var(--text-secondary, #555);
}

/* Hide old nav and menu btn since we use sections panel */
.header--v2 .header__nav { display: none !important; }
.header--v2 .header__menu-btn { display: none !important; }
.header--v2 .header__search-btn { display: none !important; }

/* Auth buttons need dark text in v2 */
.header--v2 .auth-login-btn {
    color: var(--color-red);
    border-color: var(--color-red);
}
.header--v2 .auth-user__btn {
    color: var(--text-primary);
}

/* --- Header V2 Responsive --- */
@media (max-width: 768px) {
    .header__inner--v2 {
        height: 56px;
        gap: 8px;
    }
    .hv2-sections-label { display: none; }
    .hv2-sections-btn { padding: 8px; }
    .hv2-logo img { height: 48px; }
    .hv2-subscribe-btn { font-size: 10px; padding: 6px 12px; }
    .hv2-right .btn-live { display: none; }
    .hv2-sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .hv2-subscribe-btn { display: none; }
    .hv2-logo img { height: 42px; }
    .hv2-sections-grid {
        grid-template-columns: 1fr;
    }
    .hv2-sections-panel { padding: 16px 0; }
}

/* ==========================================================================
   AUTH SYSTEM - Login/Register Modal, Header Auth, Comments
   ========================================================================== */

/* ---------- Header Auth Button (logged out) ---------- */
.auth-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 2px solid var(--color-red);
    border-radius: 8px;
    background: transparent;
    color: var(--color-red);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.auth-login-btn:hover {
    background: var(--color-red);
    color: #fff;
}
.auth-login-btn svg { flex-shrink: 0; }

/* ---------- Header Auth User (logged in) ---------- */
.auth-user { position: relative; }
.auth-user__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.auth-user__btn:hover { border-color: var(--color-red); }
.auth-user__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.auth-user__name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown */
.auth-user__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1001;
    overflow: hidden;
}
.auth-user__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.auth-user__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast);
}
.auth-user__item:hover {
    background: var(--bg-secondary);
}
.auth-user__item + .auth-user__item {
    border-top: 1px solid var(--border-color);
}

/* ---------- AUTH MODAL ---------- */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.auth-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.auth-modal__card {
    position: relative;
    width: 92%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}
.auth-modal.is-open .auth-modal__card {
    transform: translateY(0) scale(1);
}
.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color var(--transition-fast);
}
.auth-modal__close:hover { color: var(--text-primary); }

/* Header */
.auth-modal__header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-modal__logo {
    margin-bottom: 12px;
}
[data-theme="dark"] .auth-modal__logo {
    filter: brightness(0) invert(1);
}
.auth-modal__subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Tabs */
.auth-modal__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}
.auth-modal__tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.auth-modal__tab.is-active {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}
.auth-modal__tab:hover:not(.is-active) {
    color: var(--text-primary);
}

/* Form */
.auth-form__group {
    margin-bottom: 16px;
}
.auth-form__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    box-sizing: border-box;
}
.auth-form__input:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
}
.auth-form__input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}
.auth-form__error {
    font-size: 13px;
    color: #ff1744;
    min-height: 20px;
    margin-bottom: 4px;
    font-weight: 500;
}
.auth-form__submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #fff;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-form__submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}
.auth-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.auth-form__spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
}
@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* Footer */
.auth-modal__footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.auth-modal__footer p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.auth-modal__switch {
    background: none;
    border: none;
    color: var(--color-red);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-modal__switch:hover { opacity: 0.8; }

/* Forgot password link */
.auth-form__forgot-wrap {
    text-align: center;
    margin-top: 12px;
}
.auth-form__forgot-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}
.auth-form__forgot-link:hover { color: var(--color-red); }

/* Forgot password description */
.auth-forgot__desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Auth form success message */
.auth-form__success {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0,200,83,0.1);
    color: #00a844;
    margin-bottom: 16px;
}

/* Resend verification button */
.auth-form__resend {
    margin-bottom: 12px;
}
.auth-form__resend button {
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    padding: 10px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.auth-form__resend button:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

/* Registration success / verify email message */
.auth-form__verify-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 0;
}
.auth-form__verify-msg p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.auth-form__verify-msg strong {
    color: var(--text-primary);
}

/* ---------- Mobile Nav Auth ---------- */
.mobile-nav__auth a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600 !important;
    color: var(--color-red) !important;
}

/* ---------- Auth Responsive ---------- */
@media (max-width: 768px) {
    .auth-login-btn span { display: none; }
    .auth-login-btn { padding: 8px; border-radius: 50%; }
    .auth-user__name { display: none; }
    .auth-user__btn svg:last-child { display: none; }
    .auth-user__btn { padding: 4px; border: none; }
}
@media (max-width: 480px) {
    .auth-modal__card {
        width: 96%;
        padding: 28px 20px 22px;
        border-radius: 12px;
    }
}

/* ==========================================================================
   COMMENTS SECTION STYLING
   ========================================================================== */
.comments-area {
    max-width: 800px;
    margin: 48px auto;
    padding: 0 20px;
}
.comments-title,
.comment-reply-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-red);
    display: inline-block;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}
.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.comment-list .comment:last-child { border-bottom: none; }
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.comment-author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.comment-author .fn {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}
.comment-metadata {
    font-size: 12px;
    color: var(--text-secondary);
}
.comment-metadata a { color: var(--text-secondary); text-decoration: none; }
.comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}
.comment-content p { margin: 0 0 8px; }
.comment-reply-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.comment-reply-link:hover { text-decoration: underline; }

/* Comment form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comment-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
}
.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}
.comment-form .submit {
    align-self: flex-start;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.comment-form .submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Login required message */
.comments-area .must-log-in {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}
.comments-area .must-log-in a {
    color: var(--color-red);
    font-weight: 700;
    text-decoration: none;
}
.comments-area .must-log-in a:hover { text-decoration: underline; }

/* ==========================================================================
   DOBLE TITULAJE — Titulo destacado con degradado + titulo normal
   ========================================================================== */

.dsl-titulo-hl {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    line-height: 1.15;
    display: block;
    margin-bottom: 6px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient presets */
.dsl-titulo-hl--red    { background-image: linear-gradient(135deg, #E50914 0%, #c0392b 100%); }
.dsl-titulo-hl--blue   { background-image: linear-gradient(135deg, #2980b9 0%, #1a5276 100%); }
.dsl-titulo-hl--green  { background-image: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.dsl-titulo-hl--orange { background-image: linear-gradient(135deg, #e67e22 0%, #d35400 100%); }
.dsl-titulo-hl--purple { background-image: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%); }

/* Normal title adapts to light/dark theme */
.dsl-titulo-normal {
    color: var(--text-primary, #1a1a1a);
}

/* ---- Single article (matches .article-header__title) ---- */
.article-header .dsl-titulo-hl { font-size: 32px; }

/* ---- En Detalle single (matches .detalle__title) ---- */
.detalle__hero-content .dsl-titulo-hl { font-size: clamp(28px, 5vw, 48px); }

/* ---- Opinion single (matches .opinion-single__title) ---- */
.opinion-single__header .dsl-titulo-hl { font-size: clamp(26px, 5vw, 42px); }

/* ---- Front page: Hero main (matches .hero__main-title) ---- */
.hero__main-content .dsl-titulo-hl { font-size: 24px; }

/* ---- Front page: Hero secondary ---- */
.hero__secondary .dsl-titulo-hl { font-size: 15px; margin-bottom: 0; padding: 12px 12px 0; }
.hero__secondary .dsl-titulo-hl + .hero__secondary-title { padding-top: 4px; }

/* ---- Front page: Cards (news, detalle, cat, opinion) ---- */
.dsl-titulo-hl--card { margin-bottom: 3px; }
.news-card__body .dsl-titulo-hl           { font-size: 14px; }
.detalle-card__content .dsl-titulo-hl     { font-size: 18px; }
.cat-grid__featured-content .dsl-titulo-hl { font-size: 16px; }
.opinion-v2-featured__content .dsl-titulo-hl { font-size: 18px; }
.opinion-v2-card__inner .dsl-titulo-hl    { font-size: 13px; }

/* ---- Responsive: match hero & article title breakpoints ---- */
@media (min-width: 640px) {
    .hero__main-content .dsl-titulo-hl { font-size: 28px; }
}
@media (min-width: 1024px) {
    .article-header .dsl-titulo-hl     { font-size: 40px; }
    .hero__main-content .dsl-titulo-hl { font-size: 30px; }
}
@media (min-width: 1100px) {
    .hero__main-content .dsl-titulo-hl { font-size: 36px; }
}
@media (max-width: 600px) {
    .article-header .dsl-titulo-hl { font-size: 24px; }
    .detalle-card__content .dsl-titulo-hl { font-size: 15px; }
}

/* ==========================================================================
   SECCIONES CON LOGO — Categorías con logo personalizado (SLC)
   ========================================================================== */
.slc {
    padding: 40px 0 48px;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.slc:nth-of-type(even) {
    background: var(--bg-secondary, #fafafa);
}

[data-theme="dark"] .slc {
    border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .slc:nth-of-type(even) {
    background: rgba(255,255,255,0.02);
}

/* ---- Header: logo + ver todas ---- */
.slc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.slc__logo-link {
    display: block;
    line-height: 0;
    flex-shrink: 0;
}

.slc__logo {
    height: 72px;
    width: auto;
    display: block;
}

.slc__ver-todas {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--slc-accent, #d3403d);
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.slc__ver-todas:hover {
    opacity: 0.7;
}

/* ---- Accent line ---- */
.slc__accent-line {
    height: 3px;
    background: var(--slc-accent, #d3403d);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* ---- Grid: featured left + 3 items right ---- */
.slc__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0;
}

.slc__featured {
    grid-row: 1 / -1;
}

.slc__featured > a {
    display: block;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid rgba(0,0,0,0.08);
    padding-right: 24px;
    height: 100%;
}

[data-theme="dark"] .slc__featured > a {
    border-right-color: rgba(255,255,255,0.08);
}

.slc__featured-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.slc__featured-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s;
}

.slc__featured:hover .slc__featured-img img {
    transform: scale(1.03);
}

.slc__featured-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0 0 8px;
    transition: color 0.2s;
}

.slc__featured:hover .slc__featured-title {
    color: var(--slc-accent, #d3403d);
}

.slc__featured-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

.slc__time {
    font-size: 12px;
    color: var(--text-muted, rgba(0,0,0,0.4));
    font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .slc__time {
    color: rgba(255,255,255,0.35);
}

/* ---- List items (right column) ---- */
.slc__item > a {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 14px 0 14px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.2s;
}

.slc__item:last-child > a {
    border-bottom: none;
}

[data-theme="dark"] .slc__item > a {
    border-bottom-color: rgba(255,255,255,0.06);
}

.slc__item:hover > a {
    background: rgba(0,0,0,0.02);
}

[data-theme="dark"] .slc__item:hover > a {
    background: rgba(255,255,255,0.03);
}

.slc__item-img {
    width: 110px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.slc__item-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.slc__item:hover .slc__item-img img {
    transform: scale(1.04);
}

.slc__item-body {
    flex: 1;
    min-width: 0;
}

.slc__item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 6px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slc__item:hover .slc__item-title {
    color: var(--slc-accent, #d3403d);
}

/* ---- Doble titulaje inside SLC ---- */
.slc__featured-body .dsl-titulo-hl { font-size: 16px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .slc__grid {
        grid-template-columns: 1fr;
    }

    .slc__featured {
        grid-row: auto;
    }

    .slc__featured > a {
        border-right: none;
        padding-right: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    [data-theme="dark"] .slc__featured > a {
        border-bottom-color: rgba(255,255,255,0.08);
    }

    .slc__item > a {
        padding-left: 0;
    }

    .slc__logo {
        height: 58px;
    }
}

@media (max-width: 480px) {
    .slc {
        padding: 28px 0 32px;
    }

    .slc__featured-title {
        font-size: 18px;
    }

    .slc__item-img {
        width: 90px;
    }

    .slc__item-title {
        font-size: 14px;
    }

    .slc__logo {
        height: 46px;
    }

    .slc__accent-line {
        margin-bottom: 18px;
    }
}

/* ==========================================================================
   "EN DETALLE" — Feature Article Template (single-detalle.php)
   ========================================================================== */

/* ---- Hero ---- */
.detalle__hero {
    text-align: center;
    padding-top: 20px;
}
.detalle__hero-img {
    max-width: 680px;
    margin: 0 auto 32px;
}
.detalle__hero-img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.detalle__hero-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Badge */
.detalle__badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary, #111);
    border: 2px solid var(--text-primary, #111);
    padding: 5px 16px;
    border-radius: 2px;
    margin-bottom: 28px;
}

/* Title */
.detalle__title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.12;
    color: var(--text-primary, #111);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

/* Subtitle */
.detalle__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-secondary, #555);
    margin: 0 0 28px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* Separator */
.detalle__sep {
    width: 48px;
    height: 3px;
    background: var(--text-primary, #111);
    margin: 0 auto 20px;
}

/* Meta */
.detalle__meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-secondary, #888);
    margin-bottom: 6px;
    font-style: italic;
}
.detalle__meta-sep { margin: 0 8px; }

.detalle__author {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #666);
    margin-bottom: 24px;
}
.detalle__author strong {
    color: var(--text-primary, #111);
}

/* Share */
.detalle__share {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}
.detalle__share-btn {
    width: 40px; height: 40px;
    border: 1.5px solid var(--border-color, #ddd);
    border-radius: 6px;
    background: none;
    color: var(--text-primary, #333);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.detalle__share-btn:hover { border-color: #111; background: #111; color: #fff; }
.detalle__share-btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.detalle__share-btn--wa:hover { background: #25d366; border-color: #25d366; }

/* ---- Body ---- */
.detalle__body {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 0 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-primary, #222);
}
.detalle__body p {
    margin: 0 0 28px;
}
.detalle__body h2,
.detalle__body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text-primary, #111);
    margin: 48px 0 16px;
}
.detalle__body h2 { font-size: 28px; }
.detalle__body h3 { font-size: 22px; }

/* Pull quotes inside content */
.detalle__body blockquote {
    position: relative;
    max-width: 600px;
    margin: 48px auto;
    padding: 0;
    border: none;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-primary, #111);
}
.detalle__body blockquote::before {
    content: '\201C';
    display: block;
    font-size: 64px;
    line-height: 1;
    color: #E50914;
    margin-bottom: -8px;
}
.detalle__body blockquote p {
    margin: 0;
}
.detalle__body blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary, #888);
}

/* Images inside content */
.detalle__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 4px;
}
.detalle__body figure {
    margin: 40px -60px;
    text-align: center;
}
.detalle__body figure img {
    margin: 0 auto;
    max-width: 100%;
}
.detalle__body figcaption {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--text-secondary, #888);
    margin-top: 10px;
    font-style: italic;
}

/* Videos / embeds */
.detalle__body iframe,
.detalle__body .wp-block-embed {
    display: block;
    max-width: 100%;
    margin: 40px auto;
}

/* Separator lines within content (hr) */
.detalle__body hr {
    border: none;
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin: 48px 0;
}

/* Lists */
.detalle__body ul, .detalle__body ol {
    padding-left: 24px;
    margin: 0 0 28px;
}
.detalle__body li { margin-bottom: 10px; }

/* ---- Footer ---- */
.detalle__footer {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 0 24px;
}
.detalle__footer-inner {
    border-top: 2px solid var(--border-color, #e0e0e0);
    padding-top: 28px;
    text-align: center;
}
.detalle__footer-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary, #888);
    margin-bottom: 14px;
}

/* ---- Related (in detalle) ---- */
.detalle__related {
    margin-top: 50px;
    padding: 50px 0 60px;
    border-top: 2px solid var(--border-color, #e0e0e0);
}
.detalle__related-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary, #111);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid #E50914;
    display: inline-block;
}

/* ---- Dark mode ---- */
[data-theme="dark"] .detalle__badge { color: #eee; border-color: #eee; }
[data-theme="dark"] .detalle__sep { background: #eee; }
[data-theme="dark"] .detalle__share-btn { border-color: #444; color: #ccc; }
[data-theme="dark"] .detalle__share-btn:hover { background: #eee; color: #111; border-color: #eee; }
[data-theme="dark"] .detalle__body blockquote { color: #eee; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .detalle__hero { padding-top: 12px; }
    .detalle__hero-img { max-width: 90%; margin-bottom: 24px; }
    .detalle__body { font-size: 17px; line-height: 1.8; }
    .detalle__body figure { margin: 32px 0; }
    .detalle__body blockquote { font-size: 20px; }
}

/* ==========================================================================
   "EN DETALLE" — Front Page Section
   ========================================================================== */
.section-detalle {
    padding: 32px 0 40px;
}
.section-detalle .section-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header__icon-detalle {
    display: flex;
    align-items: center;
    color: #E50914;
}

/* ---- Grid layout ---- */
.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Featured card spans left column full height */
.detalle-card--featured {
    grid-row: 1 / -1;
}
.detalle-card--featured a {
    display: block;
    text-decoration: none;
    height: 100%;
}
.detalle-card__img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
}
.detalle-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.detalle-card--featured:hover .detalle-card__img img {
    transform: scale(1.03);
}
.detalle-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
    z-index: 1;
}
.detalle-card__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px;
    z-index: 2;
    color: #fff;
}
.detalle-card__badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,0.7);
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
    color: #fff;
}
.detalle-card__badge--sm {
    font-size: 9px;
    padding: 2px 8px;
    color: #E50914;
    border-color: #E50914;
    margin-bottom: 6px;
}
.detalle-card__cat {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}
.detalle-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #fff;
}
.detalle-card__subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.detalle-card__meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    display: flex; gap: 8px; align-items: center;
}

/* ---- Small cards (secondary) ---- */
.detalle-card--small a {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #eee);
    background: var(--card-bg, #fff);
    transition: box-shadow 0.2s, border-color 0.2s;
    height: 100%;
    align-items: center;
}
.detalle-card--small:hover a {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #E50914;
}
.detalle-card-sm__img {
    flex-shrink: 0;
    width: 120px; height: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.detalle-card-sm__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detalle-card-sm__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.detalle-card-sm__cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #E50914;
    margin-bottom: 4px;
}
.detalle-card-sm__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary, #111);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.detalle-card-sm__time {
    font-size: 11px;
    color: var(--text-secondary, #888);
}

/* Dark mode */
[data-theme="dark"] .detalle-card--small a {
    background: var(--card-bg, #1a1a1e);
    border-color: #2a2a2e;
}
[data-theme="dark"] .detalle-card--small:hover a { border-color: #E50914; }
[data-theme="dark"] .detalle-card__badge--sm { color: #E50914; border-color: #E50914; }

/* Responsive */
@media (max-width: 900px) {
    .detalle-grid {
        grid-template-columns: 1fr;
    }
    .detalle-card--featured {
        grid-row: auto;
    }
    .detalle-card__img { min-height: 300px; }
    .detalle-card__title { font-size: 20px; }
}
@media (max-width: 480px) {
    .detalle-card__img { min-height: 240px; }
    .detalle-card__content { padding: 20px; }
    .detalle-card__title { font-size: 18px; }
    .detalle-card-sm__img { width: 90px; height: 64px; }
}

/* ==========================================================================
   OPINION V2 — High Impact Redesign
   ========================================================================== */
.section-opinion-v2 {
    padding: 48px 0 56px;
    background: var(--bg-primary, #fff);
}

/* Header */
.opinion-v2__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid #E50914;
}
.opinion-v2__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary, #111);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.opinion-v2__icon { color: #E50914; flex-shrink: 0; }
.opinion-v2__view-all {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #E50914;
    text-decoration: none;
    white-space: nowrap;
}
.opinion-v2__view-all:hover { text-decoration: underline; }

/* Shared avatar */
.opinion-v2__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E50914, #ff6b35);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.opinion-v2__avatar--sm {
    width: 36px; height: 36px;
    font-size: 14px;
}

/* Columnist photo in front page cards */
.opinion-v2__avatar-img {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.5);
}
.opinion-v2__avatar-img--sm {
    width: 36px; height: 36px;
    border-color: var(--border-color, #ddd);
}

/* ---- Layout: featured left + cards right ---- */
.opinion-v2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* ---- Featured opinion (spans 2 rows on left) ---- */
.opinion-v2-featured {
    grid-row: 1 / -1;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 420px;
    background: #1a1a1e;
}
.opinion-v2-featured a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    text-decoration: none;
    color: #fff;
    position: relative;
    z-index: 2;
}
.opinion-v2-featured__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.opinion-v2-featured__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.4s, transform 0.4s;
}
.opinion-v2-featured:hover .opinion-v2-featured__bg img {
    opacity: 0.5;
    transform: scale(1.03);
}
.opinion-v2-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.6) 50%, rgba(10,10,12,0.2) 100%);
    z-index: 1;
}
.opinion-v2-featured__content {
    position: relative;
    z-index: 3;
    padding: 36px;
}

/* Opening quote mark */
.opinion-v2-featured__quote {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 120px;
    line-height: 0.5;
    color: rgba(229, 9, 20, 0.35);
    margin-bottom: -10px;
    text-shadow: 0 2px 20px rgba(229, 9, 20, 0.2);
}
.opinion-v2-featured__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 12px;
}
.opinion-v2-featured__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: rgba(255,255,255,0.7);
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.opinion-v2-featured__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.opinion-v2-featured__author-info {
    display: flex;
    flex-direction: column;
}
.opinion-v2-featured__author-info strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #fff;
}
.opinion-v2-featured__author-info time {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ---- Secondary cards ---- */
.opinion-v2-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #eee);
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.opinion-v2-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: #E50914;
    transform: translateY(-3px);
}
.opinion-v2-card a {
    display: flex;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.opinion-v2-card__accent {
    width: 5px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #E50914, #ff6b35);
    border-radius: 3px 0 0 3px;
}
.opinion-v2-card__inner {
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}
.opinion-v2-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.opinion-v2-card__author {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #111);
}
.opinion-v2-card__time {
    font-size: 11px;
    color: var(--text-secondary, #aaa);
    margin-left: auto;
}
.opinion-v2-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary, #111);
    margin: 0 0 10px;
}
.opinion-v2-card__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: var(--text-secondary, #777);
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.opinion-v2-card__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #E50914;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.opinion-v2-card:hover .opinion-v2-card__link { text-decoration: underline; }

/* ---- Dark mode ---- */
[data-theme="dark"] .section-opinion-v2 { background: var(--bg-primary); }
[data-theme="dark"] .opinion-v2-featured { background: #111114; }
[data-theme="dark"] .opinion-v2-card {
    background: var(--card-bg, #1a1a1e);
    border-color: #2a2a2e;
}
[data-theme="dark"] .opinion-v2-card:hover { border-color: #E50914; }
[data-theme="dark"] .opinion-v2-card__title { color: #eee; }
[data-theme="dark"] .opinion-v2-card__author { color: #ddd; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .opinion-v2-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .opinion-v2-featured {
        grid-row: auto;
        min-height: 340px;
    }
}
@media (max-width: 480px) {
    .opinion-v2-featured__content { padding: 24px; }
    .opinion-v2-featured__quote { font-size: 80px; }
    .opinion-v2-featured__title { font-size: 20px; }
    .opinion-v2-card__inner { padding: 16px 18px; }
}

/* ==========================================================================
   OPINION SINGLE — Article Template (single-opinion.php)
   ========================================================================== */

/* ---- Hero ---- */
.opinion-single__hero {
    background: linear-gradient(135deg, #1a1a1e 0%, #2d1f1f 100%);
    padding: 48px 24px 44px;
    text-align: center;
}
.opinion-single__hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

/* Badge */
.opinion-single__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #E50914;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 32px;
}
.opinion-single__badge svg { opacity: 0.9; }

/* Author block (prominent) */
.opinion-single__author-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}
.opinion-single__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E50914, #ff6b35);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(229,9,20,0.3);
}
.opinion-single__avatar--lg {
    width: 64px; height: 64px;
    font-size: 26px;
}

/* Columnist photo (replaces initial avatar) */
.opinion-single__avatar-img {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(229,9,20,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Author card photo */
.opinion-single__author-card-photo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #E50914;
    box-shadow: 0 4px 12px rgba(229,9,20,0.15);
}

/* Author card role */
.opinion-single__author-card-role {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #888);
    margin-top: 2px;
}

/* Social links */
.opinion-single__author-social {
    display: flex;
    gap: 16px;
    margin: 10px 0;
    flex-wrap: wrap;
}
.opinion-single__social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    text-decoration: none;
    transition: color 0.2s;
}
.opinion-single__social-link:hover { color: #E50914; }
.opinion-single__social-link svg { flex-shrink: 0; }
.opinion-single__author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.opinion-single__author-info strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #fff;
}
.opinion-single__author-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

/* Title */
.opinion-single__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

/* Subtitle */
.opinion-single__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    margin: 0 0 24px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* Meta */
.opinion-single__meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* Share buttons inside dark hero */
.opinion-single__hero .detalle__share-btn {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
}
.opinion-single__hero .detalle__share-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.opinion-single__hero .detalle__share-btn--fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.opinion-single__hero .detalle__share-btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* ---- Hero image (below header) ---- */
.opinion-single__hero-img {
    max-width: 740px;
    margin: 0 auto 0;
    padding: 0 24px;
}
.opinion-single__hero-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 12px 12px;
}
.opinion-single__hero-img figcaption {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--text-secondary, #888);
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* ---- Body ---- */
.opinion-single__body {
    max-width: 700px;
    margin: 48px auto 0;
    padding: 0 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-primary, #222);
}
.opinion-single__body p {
    margin: 0 0 26px;
}
.opinion-single__body h2,
.opinion-single__body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text-primary, #111);
    margin: 44px 0 16px;
}
.opinion-single__body h2 { font-size: 26px; }
.opinion-single__body h3 { font-size: 20px; }

/* Pull quotes */
.opinion-single__body blockquote {
    position: relative;
    max-width: 580px;
    margin: 44px auto;
    padding: 24px 0 24px 28px;
    border-left: 4px solid #E50914;
    border-top: none; border-bottom: none; border-right: none;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.45;
    color: var(--text-primary, #111);
    background: none;
}
.opinion-single__body blockquote p { margin: 0; }
.opinion-single__body blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #888);
}

/* Images */
.opinion-single__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 36px auto;
    border-radius: 6px;
}
.opinion-single__body figure { margin: 36px 0; text-align: center; }
.opinion-single__body figcaption {
    font-size: 12px; color: var(--text-secondary, #888);
    margin-top: 8px; font-style: italic;
}

/* hr */
.opinion-single__body hr {
    border: none;
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin: 44px 0;
}

/* Lists */
.opinion-single__body ul, .opinion-single__body ol { padding-left: 24px; margin: 0 0 26px; }
.opinion-single__body li { margin-bottom: 8px; }

/* ---- Author card (bottom) ---- */
.opinion-single__author-card {
    max-width: 700px;
    margin: 48px auto 0;
    padding: 28px 32px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-secondary, #f7f7f7);
    border-radius: 14px;
    border-left: 5px solid #E50914;
}
.opinion-single__author-card-info {
    flex: 1;
}
.opinion-single__author-card-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #E50914;
    margin-bottom: 4px;
}
.opinion-single__author-card-info strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    color: var(--text-primary, #111);
}
.opinion-single__author-card-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, #666);
    margin: 6px 0 10px;
}
.opinion-single__author-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #E50914;
    text-decoration: none;
}
.opinion-single__author-card-link:hover { text-decoration: underline; }

/* ---- Dark mode ---- */
[data-theme="dark"] .opinion-single__hero {
    background: linear-gradient(135deg, #0a0a0c 0%, #1a1012 100%);
}
[data-theme="dark"] .opinion-single__body blockquote {
    color: #eee;
}
[data-theme="dark"] .opinion-single__author-card {
    background: #1a1a1e;
    border-left-color: #E50914;
}
[data-theme="dark"] .opinion-single__author-card-info strong { color: #eee; }
[data-theme="dark"] .opinion-single__author-card-info p { color: #999; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .opinion-single__hero { padding: 36px 20px 32px; }
    .opinion-single__avatar { width: 48px; height: 48px; font-size: 18px; }
    .opinion-single__author-info strong { font-size: 16px; }
    .opinion-single__body { font-size: 16px; line-height: 1.8; }
    .opinion-single__author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
}
@media (max-width: 480px) {
    .opinion-single__hero { padding: 28px 16px; }
    .opinion-single__author-block { flex-direction: column; gap: 10px; }
    .opinion-single__author-info { text-align: center; }
}


/* ==========================================================================
   SHORTCODES EDITORIALES — Recursos para enriquecer notas
   ========================================================================== */

/* ---- 1. CITA / Pull Quote ---- */
.dsl-cita {
    position: relative;
    margin: 32px 0;
    padding: 24px 28px 20px 28px;
    border-left: 4px solid #d3403d;
    background: rgba(211, 64, 61, 0.04);
    border-radius: 0 8px 8px 0;
}

.dsl-cita__icon {
    color: #d3403d;
    opacity: 0.35;
    display: block;
    margin-bottom: 8px;
}

.dsl-cita__texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18em;
    font-weight: 600;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.dsl-cita__autor {
    display: block;
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
    color: #d3403d;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-theme="dark"] .dsl-cita {
    background: rgba(211, 64, 61, 0.07);
}

/* ---- 2. RECUADRO (info / alerta / exito / atencion) ---- */
.dsl-recuadro {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.dsl-recuadro--info     { background: #e8f4fd; border-color: #bee3f8; color: #1a56db; }
.dsl-recuadro--alerta   { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dsl-recuadro--exito    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dsl-recuadro--atencion { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.dsl-recuadro__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.dsl-recuadro__body {
    flex: 1;
    min-width: 0;
}

.dsl-recuadro__titulo {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.dsl-recuadro__content {
    font-size: 14px;
    line-height: 1.65;
}

.dsl-recuadro__content p { margin: 0; }

[data-theme="dark"] .dsl-recuadro--info     { background: rgba(30,80,160,0.15); border-color: rgba(66,133,244,0.3); color: #93c5fd; }
[data-theme="dark"] .dsl-recuadro--alerta   { background: rgba(120,80,0,0.15);  border-color: rgba(251,191,36,0.3);  color: #fcd34d; }
[data-theme="dark"] .dsl-recuadro--exito    { background: rgba(6,78,59,0.2);    border-color: rgba(52,211,153,0.3);  color: #6ee7b7; }
[data-theme="dark"] .dsl-recuadro--atencion { background: rgba(120,0,0,0.15);   border-color: rgba(248,113,113,0.3); color: #fca5a5; }

/* ---- 3. EN NÚMEROS ---- */
.dsl-datos {
    margin: 28px 0;
    padding: 24px 28px;
    background: #0f0f0f;
    border-radius: 10px;
    color: #fff;
}

.dsl-datos__titulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dsl-datos__grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.dsl-num {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 80px;
}

.dsl-num__valor {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: #d3403d;
}

.dsl-num__label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

[data-theme="dark"] .dsl-datos {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}

/* ---- 4. CRONOLOGÍA ---- */
.dsl-cronologia {
    margin: 28px 0;
}

.dsl-cronologia__titulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d3403d;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsl-cronologia__titulo::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.dsl-cronologia__lista {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid var(--border-color);
}

[data-theme="dark"] .dsl-cronologia__lista {
    border-left-color: #333;
}

.dsl-evento {
    position: relative;
    margin-bottom: 24px;
}

.dsl-evento:last-child { margin-bottom: 0; }

.dsl-evento__dot {
    position: absolute;
    left: -35px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3403d;
    border: 2px solid var(--bg-primary, #fff);
    box-shadow: 0 0 0 2px #d3403d;
}

.dsl-evento__fecha {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d3403d;
    margin-bottom: 2px;
}

.dsl-evento__titulo {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dsl-evento__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- 5. LO QUE HAY QUE SABER ---- */
.dsl-claves {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dsl-claves {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.dsl-claves__titulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .dsl-claves__titulo {
    border-bottom-color: #2a2a2a;
}

.dsl-claves__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dsl-claves__punto {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
    padding-left: 20px;
    position: relative;
}

.dsl-claves__punto::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d3403d;
}

/* ---- 6. SEPARADOR TEMÁTICO ---- */
.dsl-separador {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dsl-separador::before,
.dsl-separador::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.dsl-separador--simple {
    border: none;
    border-top: 1px solid var(--border-color);
    height: 0;
}

.dsl-separador__texto { white-space: nowrap; }

/* ---- Responsive shortcodes ---- */
@media (max-width: 600px) {
    .dsl-cita { padding: 18px 16px; }
    .dsl-cita__texto { font-size: 1.05em; }
    .dsl-datos__grid { gap: 20px; }
    .dsl-num__valor { font-size: 28px; }
    .dsl-recuadro { padding: 14px 16px; gap: 10px; }
    .dsl-claves { padding: 16px 18px; }
}

/* ==========================================================================
   SOCIAL LOGIN BUTTONS
   ========================================================================== */
.auth-social {
    margin-bottom: 20px;
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    background: var(--card-bg, #fff);
    border: 1.5px solid var(--border-color, #e0e0e0);
    color: var(--text-primary, #222);
}

.auth-social__btn:hover {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.auth-social__btn--google:hover {
    border-color: #4285F4;
    color: #4285F4;
}

.auth-social__btn--facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.auth-social__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 4px;
    color: var(--text-secondary, #999);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-social__divider::before,
.auth-social__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #e0e0e0);
}

[data-theme="dark"] .auth-social__btn {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .auth-social__btn:hover {
    background: #252525;
}
