/*
Theme Name: LVQS Noticias
Theme URI: https://lavozdelosquesobran.cl
Description: Tema editorial independiente para La Voz de los Que Sobran
Author: LVQS
Version: 4.9.3
Text Domain: lvqs
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --lvqs-teal:       #14a0b4;
  --lvqs-teal-dark:  #007864;
  --lvqs-teal-deep:  #008c8c;
  --lvqs-black:      #002828;
  --lvqs-black-soft: #0a1f1f;
  --lvqs-white:      #f0f0f0;
  --lvqs-white-pure: #ffffff;
  --lvqs-gray-light: #f4f7f7;
  --lvqs-gray-mid:   #dde6e6;
  --lvqs-gray-text:  #4a6464;
  --lvqs-text:       #111c1c;

  --lvqs-font-heading: 'Playfair Display', Georgia, serif;
  --lvqs-font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;
  --lvqs-font-ui:      'DM Sans', 'Helvetica Neue', sans-serif;

  --lvqs-radius:     4px;
  --lvqs-shadow:     0 2px 12px rgba(0,40,40,0.10);
  --lvqs-transition: 0.18s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { overflow-x: hidden;
  font-family: var(--lvqs-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--lvqs-text);
  background: var(--lvqs-gray-light);
}
a { color: var(--lvqs-teal-dark); text-decoration: none; }
a:hover { color: var(--lvqs-teal); }
img { max-width: 100%; height: auto; display: block; }

/* Fix desbordamiento horizontal en todos los navegadores incluyendo iOS Safari */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
/* Wrapper global que contiene todo */
.site-wrapper {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.lvqs-topbar {
  background: var(--lvqs-black);
  padding: 6px 0;
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  color: rgba(240,240,240,0.45);
  border-bottom: 1px solid rgba(20,160,180,0.15);
}
.lvqs-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lvqs-topbar-links { display: flex; gap: 14px; }
.lvqs-topbar-links a { color: rgba(240,240,240,0.45); font-size: 11px; }
.lvqs-topbar-links a:hover { color: var(--lvqs-teal); }

/* ============================================================
   HEADER
   ============================================================ */
.lvqs-header {
  background: var(--lvqs-black-soft);
  border-bottom: 3px solid var(--lvqs-teal);
}
.lvqs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.lvqs-logo { display: flex; align-items: center; text-decoration: none; }
.lvqs-logo-img { height: 52px; width: auto; display: block; object-fit: contain; }
.lvqs-logo-text { display: flex; flex-direction: column; }
.lvqs-logo-name {
  font-family: var(--lvqs-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--lvqs-white);
  line-height: 1.1;
}
.lvqs-logo-tagline {
  font-family: var(--lvqs-font-ui);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lvqs-teal);
  margin-top: 3px;
}
.lvqs-btn-primary {
  background: var(--lvqs-teal);
  color: var(--lvqs-black) !important;
  font-family: var(--lvqs-font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background var(--lvqs-transition);
  white-space: nowrap;
}
.lvqs-btn-primary:hover { background: var(--lvqs-teal-dark); color: var(--lvqs-white) !important; }

/* Sin buscador */
.lvqs-search-btn, .lvqs-search-bar, #lvqs-search-toggle, #lvqs-search-bar { display: none !important; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.lvqs-nav {
  background: var(--lvqs-black);
  border-bottom: 1px solid rgba(20,160,180,0.15);
}
.lvqs-nav-inner { overflow-x: auto; scrollbar-width: none; }
.lvqs-nav-inner::-webkit-scrollbar { display: none; }
.lvqs-nav ul { display: flex; list-style: none; padding: 0; margin: 0; }
.lvqs-nav ul li a {
  display: block;
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  font-weight: 600;
  color: rgba(240,240,240,0.55);
  padding: 11px 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all var(--lvqs-transition);
}
.lvqs-nav ul li a:hover,
.lvqs-nav ul li.current-menu-item a,
.lvqs-nav ul li.current_page_item a {
  color: var(--lvqs-white);
  border-bottom-color: var(--lvqs-teal);
}

/* ============================================================
   TICKER
   ============================================================ */
.lvqs-ticker {
  background: var(--lvqs-teal-dark);
  padding: 7px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  /* Forzar contenedor en Safari iOS */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.lvqs-ticker-label {
  background: var(--lvqs-black);
  color: var(--lvqs-teal);
  font-family: var(--lvqs-font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 14px;
  border-radius: 2px;
}
.lvqs-ticker-track {
  display: flex;
  gap: 36px;
  animation: lvqs-ticker 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.lvqs-ticker-track a { text-decoration: none; color: inherit; }
.lvqs-ticker-track span { font-family: var(--lvqs-font-ui); font-size: 12px; color: var(--lvqs-white); }
.lvqs-ticker-track span::before { content: '●'; margin-right: 8px; opacity: 0.4; }
.lvqs-ticker-track a:hover span { text-decoration: underline; }
@keyframes lvqs-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.lvqs-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0 48px;
}

/* ============================================================
   CATEGORÍA BADGE
   ============================================================ */
.lvqs-cat {
  display: inline-block;
  font-family: var(--lvqs-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--lvqs-teal);
  color: var(--lvqs-black);
}

/* ============================================================
   HERO
   ============================================================ */
.lvqs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 32px;
  border-radius: var(--lvqs-radius);
  overflow: hidden;
  box-shadow: var(--lvqs-shadow);
}
.lvqs-hero-main {
  position: relative;
  min-height: 300px;
  background: var(--lvqs-black);
  overflow: hidden;
  cursor: pointer;
}
.lvqs-hero-main:hover img { transform: scale(1.03); }
.lvqs-hero-main img { transition: transform 0.4s ease; }
.lvqs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,40,40,0.92) 0%, rgba(0,40,40,0.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.lvqs-hero-title {
  font-family: var(--lvqs-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--lvqs-white);
  line-height: 1.3;
  margin: 8px 0 6px;
}
.lvqs-hero-title a { color: inherit; }
.lvqs-hero-title a:hover { color: var(--lvqs-teal); }
.lvqs-hero-meta { font-family: var(--lvqs-font-ui); font-size: 11px; color: rgba(240,240,240,0.55); }
.lvqs-hero-side { display: flex; flex-direction: column; gap: 3px; }
.lvqs-hero-sub {
  flex: 1;
  position: relative;
  min-height: 148px;
  background: var(--lvqs-black);
  overflow: hidden;
  cursor: pointer;
}
.lvqs-hero-sub:hover img { transform: scale(1.04); }
.lvqs-hero-sub img { transition: transform 0.4s ease; }
.lvqs-hero-sub-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,40,40,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
}
.lvqs-hero-sub-title {
  font-family: var(--lvqs-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--lvqs-white);
  line-height: 1.3;
  margin-top: 5px;
}
.lvqs-hero-sub-title a { color: inherit; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.lvqs-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lvqs-gray-mid);
}
.lvqs-section-header::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--lvqs-teal);
  border-radius: 2px;
  flex-shrink: 0;
}
.lvqs-section-title {
  font-family: var(--lvqs-font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--lvqs-text);
  margin: 0;
}
.lvqs-section-more {
  margin-left: auto;
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--lvqs-teal-dark);
}
.lvqs-section-more:hover { color: var(--lvqs-teal); }

/* ============================================================
   GRILLA DE CARDS
   ============================================================ */
.lvqs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.lvqs-card {
  background: var(--lvqs-white-pure);
  border-radius: var(--lvqs-radius);
  overflow: hidden;
  box-shadow: var(--lvqs-shadow);
  transition: transform var(--lvqs-transition), box-shadow var(--lvqs-transition);
  cursor: pointer;
}
.lvqs-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,40,40,0.15); }
.lvqs-card-thumb { position: relative; height: 160px; overflow: hidden; background: var(--lvqs-black); }
.lvqs-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lvqs-card:hover .lvqs-card-thumb img { transform: scale(1.05); }
.lvqs-card-thumb .lvqs-cat { position: absolute; bottom: 8px; left: 8px; }
.lvqs-card-body { padding: 14px 16px 16px; }
.lvqs-card-title {
  font-family: var(--lvqs-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--lvqs-text);
  line-height: 1.4;
  margin: 0 0 8px;
}
.lvqs-card-title a { color: inherit; }
.lvqs-card-title a:hover { color: var(--lvqs-teal-dark); }
.lvqs-card-excerpt {
  font-size: 13px;
  color: var(--lvqs-gray-text);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lvqs-card-meta {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  color: var(--lvqs-gray-text);
  display: flex;
  gap: 6px;
}

/* ============================================================
   LISTA NUMERADA
   ============================================================ */
.lvqs-list-ranked { list-style: none; }
.lvqs-list-ranked li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--lvqs-gray-mid);
  align-items: flex-start;
}
.lvqs-list-ranked li:last-child { border-bottom: none; }
.lvqs-rank-num {
  font-family: var(--lvqs-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--lvqs-gray-mid);
  line-height: 1;
  min-width: 28px;
}
.lvqs-rank-cat {
  font-family: var(--lvqs-font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--lvqs-teal-dark);
  margin-bottom: 3px;
}
.lvqs-rank-title {
  font-family: var(--lvqs-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lvqs-text);
  line-height: 1.4;
}
.lvqs-rank-title a { color: inherit; }
.lvqs-rank-title a:hover { color: var(--lvqs-teal-dark); }
.lvqs-rank-meta { font-family: var(--lvqs-font-ui); font-size: 11px; color: var(--lvqs-gray-text); margin-top: 2px; }

/* ============================================================
   SIDEBAR — WIDGETS GENERALES
   ============================================================ */
.lvqs-sidebar-widget {
  background: var(--lvqs-white-pure);
  border-radius: var(--lvqs-radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--lvqs-shadow);
}
.lvqs-widget-title {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--lvqs-gray-text);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lvqs-gray-mid);
}

/* ============================================================
   WIDGET YOUTUBE — TODO EN UN BLOQUE, SIN GAPS
   ============================================================ */
.lvqs-yt-widget {
  background: var(--lvqs-black-soft);
  border-radius: var(--lvqs-radius);
  overflow: hidden;           /* fundamental: contiene el iframe */
  margin-bottom: 20px;
  box-shadow: var(--lvqs-shadow);
  /* Sin padding, sin margin interno */
}

/* Contenedor 16:9 exacto */
.lvqs-yt-widget-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;    /* ratio 16:9 */
  background: #000;
  display: block;
  font-size: 0;               /* elimina gap de whitespace */
  line-height: 0;             /* elimina gap de whitespace */
}
.lvqs-yt-widget-player iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.lvqs-yt-widget-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--lvqs-black), var(--lvqs-teal-dark));
  font-size: 11px;            /* resetear para el placeholder */
  line-height: 1.4;
}
.lvqs-yt-widget-placeholder span {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  color: rgba(240,240,240,0.35);
}

/* Info inmediatamente debajo del player */
.lvqs-yt-widget-info {
  padding: 11px 14px 13px;
  background: var(--lvqs-black-soft);
  /* display: block por defecto, sin float, sin grid */
}
.lvqs-yt-widget-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.lvqs-yt-widget-mode {
  font-family: var(--lvqs-font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lvqs-teal);
}
.lvqs-yt-widget-title {
  font-family: var(--lvqs-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--lvqs-white);
  margin-bottom: 2px;
  line-height: 1.3;
}
.lvqs-yt-widget-schedule {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  color: rgba(240,240,240,0.4);
  margin-bottom: 9px;
}
.lvqs-yt-widget-links { display: flex; gap: 7px; }
.lvqs-yt-widget-links a {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--lvqs-radius);
  border: 1px solid rgba(20,160,180,0.4);
  color: var(--lvqs-teal);
  transition: all var(--lvqs-transition);
}
.lvqs-yt-widget-links a:hover {
  background: var(--lvqs-teal);
  color: var(--lvqs-black);
  border-color: var(--lvqs-teal);
}

/* Punto parpadeante en vivo */
.lvqs-live-dot {
  width: 7px; height: 7px;
  background: var(--lvqs-teal);
  border-radius: 50%;
  flex-shrink: 0;
  animation: lvqs-pulse 1.5s ease-in-out infinite;
}
@keyframes lvqs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ============================================================
   NEWSLETTER WIDGET
   ============================================================ */
.lvqs-newsletter-widget {
  background: var(--lvqs-black);
  border-radius: var(--lvqs-radius);
  padding: 16px;
  margin-bottom: 20px;
}
.lvqs-newsletter-widget .lvqs-widget-title {
  color: rgba(240,240,240,0.4);
  border-color: rgba(255,255,255,0.1);
}
.lvqs-newsletter-desc {
  font-size: 12.5px;
  color: rgba(240,240,240,0.55);
  line-height: 1.55;
  margin-bottom: 11px;
}
.lvqs-newsletter-form input[type="email"] {
  width: 100%;
  padding: 8px 11px;
  font-size: 13px;
  border-radius: var(--lvqs-radius);
  border: 1px solid rgba(20,160,180,0.3);
  background: rgba(255,255,255,0.07);
  color: var(--lvqs-white);
  margin-bottom: 8px;
  font-family: var(--lvqs-font-ui);
}
.lvqs-newsletter-form input[type="email"]::placeholder { color: rgba(240,240,240,0.3); }
.lvqs-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--lvqs-teal); }
.lvqs-newsletter-form button {
  width: 100%;
  background: var(--lvqs-teal);
  color: var(--lvqs-black);
  font-family: var(--lvqs-font-ui);
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--lvqs-radius);
  padding: 9px;
  cursor: pointer;
  transition: background var(--lvqs-transition);
}
.lvqs-newsletter-form button:hover { background: var(--lvqs-teal-dark); color: var(--lvqs-white); }

/* ============================================================
   ARTÍCULO INDIVIDUAL
   ============================================================ */

/* Fondo blanco que envuelve todo el artículo */
.lvqs-single-wrap {
  background: var(--lvqs-white-pure);
  padding-top: 0;
  padding-bottom: 0;
}
.lvqs-single-wrap .lvqs-layout {
  background: transparent;
  padding-top: 0;
}

/* Caja del artículo con fondo blanco extendido */
.lvqs-single-article {
  background: var(--lvqs-white-pure);
  padding: 36px 44px 44px;   /* padding generoso en todos los lados */
  border-radius: var(--lvqs-radius);
  box-shadow: var(--lvqs-shadow);
}

/* Cabecera: categoría + título + byline */
.lvqs-single-header {
  padding: 0 0 24px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--lvqs-gray-mid);
}
.lvqs-single-header .lvqs-cat {
  margin-bottom: 16px;
}
.lvqs-single-title {
  font-family: var(--lvqs-font-heading);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--lvqs-text);
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.lvqs-single-excerpt {
  font-size: 17px;
  color: var(--lvqs-gray-text);
  line-height: 1.65;
  margin: 0 0 20px;
  font-style: italic;
  border-left: 3px solid var(--lvqs-teal);
  padding-left: 16px;
}

/* Byline */
.lvqs-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lvqs-byline-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lvqs-teal), var(--lvqs-teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lvqs-white);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--lvqs-font-ui);
  flex-shrink: 0;
}
.lvqs-byline-name {
  font-family: var(--lvqs-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--lvqs-text);
}
.lvqs-byline-date {
  font-family: var(--lvqs-font-ui);
  font-size: 13px;
  color: var(--lvqs-gray-text);
}
.lvqs-share-btns { margin-left: auto; display: flex; gap: 8px; }
.lvqs-share-btn {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--lvqs-gray-mid);
  color: var(--lvqs-gray-text);
  transition: all var(--lvqs-transition);
}
.lvqs-share-btn:hover { border-color: var(--lvqs-teal); color: var(--lvqs-teal-dark); }

/* Imagen destacada: sangra hasta los bordes del artículo */
.lvqs-single-featured {
  margin: 28px -44px 32px;
}
.lvqs-single-featured img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.lvqs-single-caption {
  font-family: var(--lvqs-font-ui);
  font-size: 12px;
  color: var(--lvqs-gray-text);
  font-style: italic;
  padding: 7px 44px 0;
}

/* Contenido */
.lvqs-single-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--lvqs-text);
  padding-top: 28px;
}
.lvqs-single-content p       { margin-bottom: 22px; }
.lvqs-single-content h2 {
  font-family: var(--lvqs-font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--lvqs-teal);
  color: var(--lvqs-text);
}
.lvqs-single-content h3 {
  font-family: var(--lvqs-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--lvqs-text);
}
.lvqs-single-content blockquote {
  border-left: 4px solid var(--lvqs-teal);
  background: rgba(20,160,180,0.05);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--lvqs-radius) var(--lvqs-radius) 0;
  font-style: italic;
  color: var(--lvqs-gray-text);
  font-size: 18px;
}
.lvqs-single-content a { color: var(--lvqs-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.lvqs-single-content img { border-radius: var(--lvqs-radius); margin: 16px 0; }
.lvqs-single-content ul,
.lvqs-single-content ol { padding-left: 24px; margin-bottom: 22px; }
.lvqs-single-content li { margin-bottom: 8px; }

/* Tags */
.lvqs-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--lvqs-gray-mid);
}
.lvqs-tag {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--lvqs-gray-mid);
  color: var(--lvqs-gray-text);
  transition: all var(--lvqs-transition);
}
.lvqs-tag:hover { border-color: var(--lvqs-teal); color: var(--lvqs-teal-dark); }

/* Autor */
.lvqs-author-box {
  display: flex;
  gap: 16px;
  background: var(--lvqs-gray-light);
  border-radius: var(--lvqs-radius);
  padding: 20px;
  margin-top: 28px;
}
.lvqs-author-label { font-family: var(--lvqs-font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--lvqs-gray-text); margin-bottom: 3px; }
.lvqs-author-name  { font-family: var(--lvqs-font-ui); font-size: 14px; font-weight: 600; color: var(--lvqs-text); margin-bottom: 5px; }
.lvqs-author-bio   { font-size: 13px; color: var(--lvqs-gray-text); line-height: 1.55; }

/* Sidebar en artículo */
.lvqs-single-wrap .lvqs-sidebar { padding-top: 28px; }

/* ============================================================
   ARCHIVE / CATEGORÍA
   ============================================================ */
.lvqs-archive-header {
  background: var(--lvqs-black);
  border-radius: var(--lvqs-radius);
  border-left: 4px solid var(--lvqs-teal);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.lvqs-archive-type { font-family: var(--lvqs-font-ui); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--lvqs-teal); margin-bottom: 6px; }
.lvqs-archive-title { font-family: var(--lvqs-font-heading); font-size: 24px; font-weight: 700; color: var(--lvqs-white); margin: 0 0 5px; }
.lvqs-archive-desc { font-size: 13px; color: rgba(240,240,240,0.45); margin: 0; line-height: 1.55; }

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.lvqs-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.lvqs-pagination .page-numbers {
  font-family: var(--lvqs-font-ui);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: var(--lvqs-radius);
  border: 1px solid var(--lvqs-gray-mid);
  color: var(--lvqs-gray-text);
  transition: all var(--lvqs-transition);
}
.lvqs-pagination .page-numbers:hover,
.lvqs-pagination .page-numbers.current { background: var(--lvqs-teal); border-color: var(--lvqs-teal); color: var(--lvqs-black); font-weight: 700; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.lvqs-empty { text-align: center; padding: 48px 20px; color: var(--lvqs-gray-text); font-family: var(--lvqs-font-ui); }

/* ============================================================
   FOOTER
   ============================================================ */
.lvqs-footer {
  background: var(--lvqs-black);
  border-top: 3px solid var(--lvqs-teal-dark);
  padding: 44px 0 0;
  margin-top: 48px;
}
.lvqs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.lvqs-footer-brand .lvqs-logo-name { font-size: 17px; display: block; margin-bottom: 10px; }
.lvqs-footer-brand p { font-size: 12.5px; color: rgba(240,240,240,0.45); line-height: 1.6; margin-bottom: 16px; }
.lvqs-footer-social { display: flex; gap: 8px; }
.lvqs-social-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(20,160,180,0.12);
  border: 1px solid rgba(20,160,180,0.22);
  display: flex; align-items: center; justify-content: center;
  color: rgba(240,240,240,0.55);
  font-size: 14px;
  transition: all var(--lvqs-transition);
}
.lvqs-social-btn:hover { background: var(--lvqs-teal); border-color: var(--lvqs-teal); color: var(--lvqs-black); }
.lvqs-footer-col-title { font-family: var(--lvqs-font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--lvqs-white); margin-bottom: 12px; }
.lvqs-footer-col a { display: block; font-family: var(--lvqs-font-ui); font-size: 12px; color: rgba(240,240,240,0.45); margin-bottom: 7px; transition: color var(--lvqs-transition); }
.lvqs-footer-col a:hover { color: var(--lvqs-teal); }
.lvqs-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; }
.lvqs-footer-copy { font-family: var(--lvqs-font-ui); font-size: 11px; color: rgba(240,240,240,0.28); }

/* ============================================================
   HERO CNN-STYLE — 1 GRANDE IZQUIERDA + 2 APILADAS DERECHA
   ============================================================ */
.lvqs-hero-cnn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 32px;
  background: var(--lvqs-white-pure);
  border-radius: var(--lvqs-radius);
  overflow: hidden;
  box-shadow: var(--lvqs-shadow);
}

/* ── Post principal (izquierda) ── */
.lvqs-hero-cnn-main {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--lvqs-gray-mid);
}
.lvqs-hero-cnn-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.lvqs-hero-cnn-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.lvqs-hero-cnn-main:hover .lvqs-hero-cnn-img { transform: scale(1.03); }
.lvqs-hero-cnn-noimg {
  height: 260px;
  background: linear-gradient(135deg, var(--lvqs-black), var(--lvqs-teal-dark));
}
.lvqs-hero-cnn-img-link .lvqs-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
}
.lvqs-hero-cnn-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lvqs-hero-cnn-title {
  font-family: var(--lvqs-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--lvqs-text);
  line-height: 1.3;
  margin: 0 0 10px;
}
.lvqs-hero-cnn-title a { color: inherit; }
.lvqs-hero-cnn-title a:hover { color: var(--lvqs-teal-dark); }
.lvqs-hero-cnn-excerpt {
  font-size: 13.5px;
  color: var(--lvqs-gray-text);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.lvqs-hero-cnn-meta {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  color: var(--lvqs-gray-text);
  margin-top: auto;
}

/* ── Posts secundarios (derecha, apilados) ── */
.lvqs-hero-cnn-side {
  display: flex;
  flex-direction: column;
}
.lvqs-hero-cnn-sub {
  display: flex;
  flex-direction: row;
  flex: 1;
  border-bottom: 1px solid var(--lvqs-gray-mid);
  overflow: hidden;
}
.lvqs-hero-cnn-sub:last-child { border-bottom: none; }
.lvqs-hero-cnn-sub-img-link {
  position: relative;
  display: block;
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
}
.lvqs-hero-cnn-sub-img {
  width: 140px;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.lvqs-hero-cnn-sub:hover .lvqs-hero-cnn-sub-img { transform: scale(1.04); }
.lvqs-hero-cnn-sub-img-link .lvqs-cat {
  position: absolute;
  bottom: 7px;
  left: 7px;
  font-size: 9px;
  padding: 2px 6px;
}
.lvqs-hero-cnn-sub-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.lvqs-hero-cnn-sub-title {
  font-family: var(--lvqs-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lvqs-text);
  line-height: 1.35;
  margin: 0 0 8px;
}
.lvqs-hero-cnn-sub-title a { color: inherit; }
.lvqs-hero-cnn-sub-title a:hover { color: var(--lvqs-teal-dark); }

/* ============================================================
   RESPONSIVE — ÚNICO BLOQUE, SIN DUPLICADOS
   ============================================================ */

/* ── Tablet (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .lvqs-layout {
    grid-template-columns: 1fr 240px;
    gap: 20px;
  }
  .lvqs-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .lvqs-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lvqs-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .lvqs-hero-cnn-sub-img,
  .lvqs-hero-cnn-sub-img-link {
    width: 120px;
  }
}

/* ── Móvil (≤ 768px) ── */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Layout: una columna */
  .lvqs-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 28px;
  }

  /* Topbar */
  .lvqs-topbar { padding: 5px 0; }
  .lvqs-topbar .container { flex-wrap: wrap; gap: 3px; }
  .lvqs-topbar-links { gap: 12px; }

  /* Header */
  .lvqs-header-inner { padding: 10px 0; }
  .lvqs-logo-img { height: 36px; }
  .lvqs-logo-name { font-size: 15px; }
  .lvqs-btn-primary { font-size: 11px; padding: 6px 12px; }

  /* Nav */
  .lvqs-nav ul li a {
    padding: 9px 11px;
    font-size: 10px;
    letter-spacing: 0.4px;
  }

  /* ── Hero CNN móvil: apilado vertical ── */
  .lvqs-hero-cnn {
    grid-template-columns: 1fr;
    border-radius: var(--lvqs-radius);
    margin-bottom: 20px;
  }
  .lvqs-hero-cnn-main {
    border-right: none;
    border-bottom: 1px solid var(--lvqs-gray-mid);
  }
  .lvqs-hero-cnn-img { height: 220px; }
  .lvqs-hero-cnn-noimg { height: 220px; }
  .lvqs-hero-cnn-body { padding: 14px 16px 16px; }
  .lvqs-hero-cnn-title { font-size: 18px; }
  .lvqs-hero-cnn-excerpt { -webkit-line-clamp: 2; }

  .lvqs-hero-cnn-sub-img-link { width: 110px; }
  .lvqs-hero-cnn-sub-img { width: 110px; min-height: 90px; }
  .lvqs-hero-cnn-sub-body { padding: 12px 14px; }
  .lvqs-hero-cnn-sub-title { font-size: 13.5px; }

  /* ── Grid ── */
  .lvqs-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lvqs-card-thumb { height: 200px; }
  .lvqs-card-title { font-size: 15px; }

  /* ── Section headers ── */
  .lvqs-section-header { margin-bottom: 14px; }

  /* ── Artículo ── */
  .lvqs-single-article { padding: 20px 18px 26px; }
  .lvqs-single-featured { margin: 22px -18px 24px; }
  .lvqs-single-caption { padding: 6px 18px 0; }
  .lvqs-single-title { font-size: 23px; }
  .lvqs-single-excerpt { font-size: 15px; }
  .lvqs-single-content { font-size: 16px; padding-top: 20px; }
  .lvqs-byline { flex-wrap: wrap; gap: 8px; }
  .lvqs-share-btns { margin-left: 0; width: 100%; }

  /* ── Sidebar ── */
  .lvqs-sidebar { padding-top: 20px; }

  /* ── Paginación ── */
  .lvqs-pagination { gap: 5px; }
  .lvqs-pagination .page-numbers { padding: 6px 10px; font-size: 11px; }

  /* ── Footer ── */
  .lvqs-footer { margin-top: 24px; padding: 28px 0 0; }
  .lvqs-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .lvqs-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }


  /* ── Shorts móvil ── */
  .lvqs-shorts-section {
    max-width: 100%;
    overflow: hidden;
  }
  .lvqs-shorts-carousel-wrap {
    max-width: 100%;
    overflow: hidden;
  }
  .lvqs-shorts-arrow { display: none !important; }
  .lvqs-shorts-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    overflow: hidden;
    width: 100%;
  }
  .lvqs-short-card {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .lvqs-short-badge { font-size: 8px; padding: 2px 5px; top: 5px; left: 5px; }
  .lvqs-short-title { font-size: 10.5px; line-height: 1.3; }
}

/* ── Pantallas muy pequeñas (≤ 400px) ── */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .lvqs-hero-cnn {
    margin-left: 0;
    margin-right: 0;
  }
  .lvqs-footer-grid { grid-template-columns: 1fr; }
  .lvqs-topbar-links a:not(:last-child) { display: none; }
}

/* ============================================================
   LVQS SHORTS — ESTILOS BASE (DESKTOP + MÓVIL)
   ============================================================ */
.lvqs-shorts-section {
  margin-bottom: 32px;
}

/* ── DESKTOP: carrusel horizontal ── */
.lvqs-shorts-carousel-wrap {
  position: relative;
}
.lvqs-shorts-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lvqs-shorts-carousel::-webkit-scrollbar { display: none; }

.lvqs-short-card {
  flex: 0 0 140px;
  width: 140px;
}
.lvqs-short-thumb-link { display: block; text-decoration: none; }
.lvqs-short-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;   /* 9:16 */
  background: var(--lvqs-black);
  border-radius: var(--lvqs-radius);
  overflow: hidden;
  margin-bottom: 7px;
}
.lvqs-short-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 0.3s ease;
}
.lvqs-short-thumb-link:hover .lvqs-short-thumb img { transform: scale(1.22); }
.lvqs-short-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
  pointer-events: none;
}
.lvqs-short-thumb-link:hover .lvqs-short-thumb::after { background: rgba(0,0,0,0.2); }
.lvqs-short-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.lvqs-short-thumb-link:hover .lvqs-short-play { opacity: 1; }
.lvqs-short-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--lvqs-teal);
  color: var(--lvqs-black);
  font-family: var(--lvqs-font-ui);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.lvqs-short-title {
  font-family: var(--lvqs-font-ui);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--lvqs-text);
  line-height: 1.4;
}

/* Flechas carrusel desktop */
.lvqs-shorts-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--lvqs-white-pure);
  border: 1px solid var(--lvqs-gray-mid);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: var(--lvqs-text);
  transition: all var(--lvqs-transition);
  z-index: 10;
}
.lvqs-shorts-arrow:hover { background: var(--lvqs-teal); color: var(--lvqs-black); border-color: var(--lvqs-teal); }
.lvqs-shorts-prev { left: -18px; }
.lvqs-shorts-next { right: -18px; }

/* ── MÓVIL: Shorts visibles en grilla de dos columnas ──
   Se declara DESPUÉS de los estilos base para que no sea sobrescrito. */
@media (max-width: 768px) {
  .lvqs-shorts-section {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
    overflow: visible;
  }
  .lvqs-shorts-carousel-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .lvqs-shorts-carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    overflow: visible;
  }
  .lvqs-short-card {
    display: block;
    flex: none;
    width: 100%;
    min-width: 0;
  }
  /* Mantiene la portada compacta: dos Shorts en móvil. */
  .lvqs-short-card:nth-child(n+3) {
    display: none;
  }
  .lvqs-shorts-arrow {
    display: none !important;
  }
  .lvqs-short-badge {
    font-size: 8px;
    padding: 2px 5px;
    top: 5px;
    left: 5px;
  }
  .lvqs-short-title {
    font-size: 10.5px;
    line-height: 1.3;
  }
}


/* ============================================================
   REPRODUCTOR HOME — mismo estilo que sidebar
   ============================================================ */
.lvqs-home-player {
  background: var(--lvqs-black-soft);
  border-radius: var(--lvqs-radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--lvqs-shadow);
}
/* Video 16:9 usando el mismo sistema que el sidebar */
.lvqs-home-player .lvqs-yt-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  font-size: 0;
  line-height: 0;
}
.lvqs-home-player .lvqs-yt-ratio iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
/* Barra info verde igual al sidebar */
.lvqs-home-player-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--lvqs-black-soft);
  border-top: 3px solid var(--lvqs-teal);  /* barra verde característica */
}
.lvqs-home-player-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lvqs-home-player-mode {
  font-family: var(--lvqs-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lvqs-teal);
}
.lvqs-home-player-title {
  font-family: var(--lvqs-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--lvqs-white);
  flex: 1;
}
.lvqs-home-player-link {
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--lvqs-teal);
  white-space: nowrap;
  transition: color var(--lvqs-transition);
}
.lvqs-home-player-link:hover {
  color: var(--lvqs-white);
}

@media (max-width: 768px) {
  .lvqs-home-player-info {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
  .lvqs-home-player-link {
    width: 100%;
  }
}

/* ============================================================
   BARRA DE COMUNIDAD
   ============================================================ */
.lvqs-community-bar {
  background: linear-gradient(135deg, var(--lvqs-black) 0%, var(--lvqs-black-soft) 100%);
  border-left: 4px solid var(--lvqs-teal);
  border-radius: var(--lvqs-radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--lvqs-shadow);
}
.lvqs-community-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.lvqs-community-bar-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lvqs-community-bar-text strong {
  font-family: var(--lvqs-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--lvqs-white);
  line-height: 1.3;
}
.lvqs-community-bar-text span {
  font-family: var(--lvqs-font-ui);
  font-size: 13px;
  color: rgba(240,240,240,0.55);
  line-height: 1.4;
}
.lvqs-community-bar-btn {
  background: var(--lvqs-teal);
  color: var(--lvqs-black) !important;
  font-family: var(--lvqs-font-ui);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--lvqs-transition);
}
.lvqs-community-bar-btn:hover {
  background: var(--lvqs-teal-dark);
  color: var(--lvqs-white) !important;
}

@media (max-width: 768px) {
  .lvqs-community-bar { padding: 16px; }
  .lvqs-community-bar-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lvqs-community-bar-btn { width: 100%; text-align: center; }
}

/* ============================================================
   DISCLAIMER DE OPINIÓN
   ============================================================ */
.lvqs-opinion-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(20,160,180,0.08);
  border: 1px solid rgba(20,160,180,0.3);
  border-left: 4px solid var(--lvqs-teal);
  border-radius: var(--lvqs-radius);
  padding: 14px 18px;
  margin-top: 32px;
  color: var(--lvqs-gray-text);
}
.lvqs-opinion-disclaimer svg {
  color: var(--lvqs-teal);
}
.lvqs-opinion-disclaimer p {
  font-family: var(--lvqs-font-ui);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* ============================================================
   BLOQUES DE ANUNCIOS
   ============================================================ */
.lvqs-ad-block {
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}
.lvqs-ad-block-1 {
  margin: 0 0 20px;
}
.lvqs-ad-article {
  margin: 28px 0;
  padding: 16px;
  background: var(--lvqs-gray-light);
  border-radius: var(--lvqs-radius);
  border: 1px dashed var(--lvqs-gray-mid);
}
.lvqs-ad-sidebar {
  margin-bottom: 20px;
}

/* ============================================================
   FIX: Neutralizar widgets flotantes de plugins externos
   que se salen del layout (ej: Tagdiv YouTube widget sticky)
   ============================================================ */

/* Cualquier elemento con position:fixed dentro del sidebar
   que no sea nuestro propio código */
.lvqs-sidebar [style*="position: fixed"],
.lvqs-sidebar [style*="position:fixed"],
.widget [style*="position: fixed"],
.widget [style*="position:fixed"] {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: auto !important;
}

/* Fix específico para widgets de YouTube/video flotantes
   que usan clases típicas de Tagdiv/Newspaper theme */
.td-smart-list-wrapper[style*="fixed"],
.td-block-title-wrap + div[style*="fixed"],
[class*="td-"][style*="position: fixed"],
[class*="td-"][style*="position:fixed"],
.tdb_sticky_widget,
.tdb-sticky,
[data-td-block-uid][style*="fixed"] {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 1 !important;
}

/* Asegurar que nuestro layout principal no sea invadido */
.lvqs-single-wrap {
  position: relative;
  z-index: 1;
}
.lvqs-main {
  position: relative;
  z-index: 2;
}
.lvqs-sidebar {
  position: relative;
  z-index: 1;
}

/* ============================================================
   COMENTARIOS — tema independiente v4
   ============================================================ */
.lvqs-comments { margin-top: 36px; }
.lvqs-comment-list { list-style: none; margin: 0; padding: 0; }
.lvqs-comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--lvqs-gray-mid); }
.lvqs-comment-list .children { list-style: none; margin: 14px 0 0 28px; }
.lvqs-comment-list .comment-body { position: relative; }
.lvqs-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--lvqs-font-ui); font-weight: 700; }
.lvqs-comment-list .avatar { border-radius: 50%; }
.lvqs-comment-list .comment-metadata { margin: 4px 0 10px 54px; font-family: var(--lvqs-font-ui); font-size: 12px; color: var(--lvqs-gray-text); }
.lvqs-comment-list .comment-content { margin-left: 54px; }
.lvqs-comment-list .reply { margin: 10px 0 0 54px; font-family: var(--lvqs-font-ui); font-size: 12px; font-weight: 700; }
.lvqs-comments .comment-respond { margin-top: 28px; }
.lvqs-comments .comment-reply-title { font-family: var(--lvqs-font-heading); margin-bottom: 12px; }
.lvqs-comments textarea,
.lvqs-comments input[type="text"],
.lvqs-comments input[type="email"],
.lvqs-comments input[type="url"] { width: 100%; border: 1px solid var(--lvqs-gray-mid); border-radius: var(--lvqs-radius); padding: 10px 12px; font: inherit; background: var(--lvqs-white-pure); }
.lvqs-comments .form-submit input { border: 0; border-radius: var(--lvqs-radius); padding: 10px 16px; background: var(--lvqs-teal); color: var(--lvqs-black); font-family: var(--lvqs-font-ui); font-weight: 700; cursor: pointer; }
.lvqs-comments-closed { color: var(--lvqs-gray-text); }

/* ============================================================
   v4.2 — MEJORAS EDITORIALES EN ARTÍCULOS
   ============================================================ */
.lvqs-development-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(20,160,180,0.10);
  border: 1px solid rgba(20,160,180,0.28);
  color: var(--lvqs-teal-dark);
  font-family: var(--lvqs-font-ui);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.lvqs-development-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lvqs-teal);
  box-shadow: 0 0 0 3px rgba(20,160,180,0.13);
}
.lvqs-byline-info { min-width: 0; }
.lvqs-byline-primary { line-height: 1.35; }
a.lvqs-byline-name:hover { color: var(--lvqs-teal-dark); }
.lvqs-updated-date {
  margin-top: 3px;
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  line-height: 1.35;
  color: var(--lvqs-gray-text);
}
.lvqs-share-btn {
  background: transparent;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.lvqs-share-btn.is-copied {
  border-color: var(--lvqs-teal);
  color: var(--lvqs-teal-dark);
  background: rgba(20,160,180,0.06);
}
.lvqs-author-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lvqs-teal), var(--lvqs-teal-dark));
}
.lvqs-author-avatar-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}
.lvqs-author-content { min-width: 0; }
.lvqs-author-box a.lvqs-author-name {
  display: inline-block;
}
.lvqs-author-box a.lvqs-author-name:hover { color: var(--lvqs-teal-dark); }
.lvqs-author-more {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--lvqs-font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--lvqs-teal-dark);
}
.lvqs-author-more:hover { color: var(--lvqs-teal); }

@media (max-width: 768px) {
  .lvqs-share-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .lvqs-share-btn {
    width: 100%;
    text-align: center;
    padding: 7px 9px;
  }
  .lvqs-author-box { align-items: flex-start; }
}


/* ============================================================
   v4.2.1 — Cabecera de artículo / autor
   ============================================================ */
.lvqs-byline {
  display: block;
  margin-top: 18px;
}
.lvqs-byline-author {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.lvqs-byline-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 16px;
}
.lvqs-byline-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.lvqs-byline-name {
  display: inline-block;
  width: fit-content;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.lvqs-byline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
  font-family: var(--lvqs-font-ui);
  font-size: 12px;
  line-height: 1.4;
  color: var(--lvqs-gray-text);
}
.lvqs-byline-date,
.lvqs-reading-time { font-size: inherit; color: inherit; }
.lvqs-byline-separator { opacity: .7; }
.lvqs-updated-date { margin-top: 3px; font-size: 11px; }
.lvqs-share-btns {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--lvqs-gray-mid);
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .lvqs-byline { margin-top: 20px; }
  .lvqs-byline-author { align-items: center; gap: 12px; }
  .lvqs-byline-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 17px;
  }
  .lvqs-byline-name { font-size: 14px; }
  .lvqs-byline-meta { font-size: 12px; margin-top: 4px; }
  .lvqs-share-btns {
    margin-top: 16px;
    padding-top: 14px;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .lvqs-byline-meta { gap: 4px; }
  .lvqs-byline-meta .lvqs-byline-date,
  .lvqs-byline-meta .lvqs-reading-time { white-space: nowrap; }
}




/* ============================================================
   v4.4.3 — SHORTS MÓVIL SIN DESBORDAR LA PORTADA
   ============================================================ */
html,
body {
  max-width: 100%;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
  }

  /* Todos los hijos directos de la portada pueden encogerse dentro del viewport. */
  .lvqs-main,
  .lvqs-content,
  .lvqs-home-main,
  .lvqs-shorts-section,
  .lvqs-shorts-carousel-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /*
   * El carrusel tiene un ancho físico igual al contenedor.
   * Solo su propio contenido hace scroll; nunca aumenta el ancho de body.
   */
  .lvqs-shorts-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    contain: inline-size;
  }

  .lvqs-shorts-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 0 10px !important;
    margin: 0 !important;
  }

  .lvqs-shorts-carousel::-webkit-scrollbar {
    display: none;
  }

  .lvqs-shorts-carousel > .lvqs-short-card,
  .lvqs-shorts-carousel > .lvqs-short-card:nth-child(n) {
    display: block !important;
    flex: 0 0 44% !important;
    width: 44% !important;
    max-width: 180px !important;
    min-width: 138px !important;
    scroll-snap-align: start;
  }

  .lvqs-short-card img,
  .lvqs-short-thumb {
    max-width: 100%;
  }

  .lvqs-shorts-arrow,
  .lvqs-shorts-prev,
  .lvqs-shorts-next {
    display: none !important;
  }
}

/* iPhone angostos */
@media (max-width: 390px) {
  .lvqs-shorts-carousel > .lvqs-short-card,
  .lvqs-shorts-carousel > .lvqs-short-card:nth-child(n) {
    flex-basis: 46% !important;
    width: 46% !important;
    min-width: 132px !important;
  }
}


/* ============================================================
   v4.7.0 — CORE WEB VITALS / ESTABILIDAD DE LAYOUT
   ============================================================ */
img {
  height: auto;
}

/* Evita trabajo de render fuera de pantalla sin ocultar contenido al usuario. */
@supports (content-visibility: auto) {
  .lvqs-shorts-section,
  .lvqs-community-bar {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
  }
}

/* Los embeds mantienen su caja antes de cargar y reducen CLS. */
.lvqs-video-wrap,
.lvqs-home-player-video,
.lvqs-short-video {
  aspect-ratio: 16 / 9;
}

.lvqs-short-video {
  aspect-ratio: 9 / 16;
}


/* v4.7.1 — Shorts: navegación limpia sin flechas flotantes */
.lvqs-shorts-arrow,
.lvqs-shorts-prev,
.lvqs-shorts-next {
  display: none !important;
}

/* v4.9.0 — Recirculación en artículos */
.lvqs-inline-related{margin:30px 0;padding:16px 18px;border-left:4px solid #14a9bd;background:#f4f7f7}
.lvqs-inline-related__eyebrow,.lvqs-next-read__label{display:block;margin-bottom:5px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.lvqs-inline-related a{font-weight:750;text-decoration:none}
.lvqs-next-read{margin-top:34px;padding:20px 0;border-top:1px solid #dce5e5;border-bottom:1px solid #dce5e5}
.lvqs-next-read__title{display:block;font-size:clamp(20px,2vw,25px);font-weight:750;line-height:1.2;text-decoration:none}
@media(max-width:768px){.lvqs-inline-related{margin:24px 0;padding:14px 15px}.lvqs-next-read{margin-top:28px}}


/* ============================================================
   v4.9.1 — LEE TAMBIÉN COMO TARJETA EDITORIAL
   ============================================================ */
.lvqs-inline-related {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 30px 0;
  padding: 16px;
  border: 1px solid #dce3e3;
  border-left: 4px solid #111;
  border-radius: 7px;
  background: #fff;
}
.lvqs-inline-related__thumb {
  display: block;
  width: 150px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #eef2f2;
}
.lvqs-inline-related__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lvqs-inline-related__body {
  min-width: 0;
}
.lvqs-inline-related__eyebrow {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.lvqs-inline-related__title {
  display: block;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}
@media (max-width: 520px) {
  .lvqs-inline-related {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .lvqs-inline-related__thumb {
    width: 105px;
  }
  .lvqs-inline-related__title {
    font-size: 16px;
  }
}

.lvqs-inline-related.no-thumb { grid-template-columns: 1fr; }


/* v4.9.2 — Ajuste fino tarjeta Relacionado */
.lvqs-inline-related__thumb {
  align-self: center;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}
.lvqs-inline-related__thumb img {
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}


/* ============================================================
   v4.9.3 — AJUSTES PORTADA ESCRITORIO + BOTÓN LVQS EN VIVO
   ============================================================ */

/* Los 6 Shorts caben exactamente dentro de la columna principal en escritorio. */
@media (min-width: 769px) {
  .lvqs-shorts-carousel {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .lvqs-shorts-carousel > .lvqs-short-card {
    width: auto;
    min-width: 0;
    max-width: 100%;
    flex: none;
  }
}

/* Acciones del header */
.lvqs-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lvqs-btn-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d71920;
  color: #fff !important;
  font-family: var(--lvqs-font-ui);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--lvqs-transition);
}
.lvqs-btn-live::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}
.lvqs-btn-live:hover {
  background: #b9141a;
  color: #fff !important;
}

@media (max-width: 768px) {
  .lvqs-header-actions { gap: 6px; }
  .lvqs-btn-live,
  .lvqs-btn-primary {
    font-size: 10px;
    padding: 6px 10px;
  }
  .lvqs-btn-live::before {
    width: 6px;
    height: 6px;
    margin-right: 5px;
  }
}
