.gb-liveblog {
  --gb-bg: #ffffff;
  --gb-soft: #f5f6f8;
  --gb-soft-2: #eef0f3;
  --gb-text: #111111;
  --gb-muted: #6b7280;
  --gb-border: #d9dde3;
  --gb-red: #d60000;
  --gb-yellow: #f2b600;
  --gb-blue: #1f4fd8;
  --gb-black: #0f1115;

  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: var(--gb-bg);
  color: var(--gb-text);
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid var(--gb-border);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 17, 21, 0.08);
}

.gb-liveblog * {
  box-sizing: border-box;
}

.gb-liveblog ins.adsbygoogle,
.gb-liveblog .adsbygoogle,
.gb-liveblog .google-auto-placed,
.gb-liveblog iframe[src*="googlesyndication"],
.gb-liveblog iframe[src*="doubleclick"],
.gb-liveblog iframe[src*="googleads"],
.gb-liveblog .advertisement,
.gb-liveblog .adunit,
.gb-liveblog .wp-block-ad {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gb-live-header {
  position: relative;
  padding: 24px 26px 23px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #d60000 0%, #b90000 58%, #860000 100%);
  border-bottom: 0;
  color: #ffffff;
  overflow: hidden;
}

.gb-live-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.gb-live-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.gb-live-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
  animation: gbLivePulse 1.6s infinite;
}

@keyframes gbLivePulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.7); opacity: 0.15; }
  100% { transform: scale(1); opacity: 1; }
}

.gb-live-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(27px, 4vw, 43px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.gb-live-subtitle {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 600;
}

.gb-live-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: #111111;
  border-bottom: 0;
}

.gb-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gb-live-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gb-red);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(214, 0, 0, 0.25);
}

.gb-live-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #ffffff;
  color: #111111;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gb-live-button:hover,
.gb-live-button:focus {
  background: var(--gb-red);
  border-color: var(--gb-red);
  color: #ffffff;
  transform: translateY(-1px);
}

.gb-live-content {
  padding: 20px 24px 22px;
  background: #ffffff;
}

.gb-live-loading,
.gb-live-error,
.gb-live-empty {
  padding: 18px;
  background: var(--gb-soft);
  border: 1px solid var(--gb-border);
  color: var(--gb-text);
  line-height: 1.5;
  font-size: 15px;
  font-weight: 700;
}

.gb-live-error {
  border-color: rgba(214, 0, 0, 0.35);
  background: #fff1f1;
  color: #7a0000;
}

.gb-live-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gb-live-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--gb-border);
  position: relative;
}

.gb-live-item:first-child {
  padding-top: 0;
}

.gb-live-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gb-live-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 3px;
  height: calc(100% - 36px);
  background: var(--gb-blue);
}

.gb-live-item:first-child::before {
  top: 0;
  height: calc(100% - 18px);
}

.gb-live-item:last-child::before {
  height: calc(100% - 18px);
}

.gb-live-item.urgente::before { background: var(--gb-red); }
.gb-live-item.destacada::before { background: var(--gb-yellow); }
.gb-live-item.normal::before { background: var(--gb-blue); }

.gb-live-timebox {
  padding-left: 16px;
  padding-right: 10px;
}

.gb-live-time {
  color: var(--gb-black);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.gb-live-date {
  margin-top: 7px;
  color: var(--gb-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.gb-live-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--gb-blue);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.gb-live-badge.urgente {
  background: var(--gb-red);
  color: #ffffff;
}

.gb-live-badge.destacada {
  background: var(--gb-yellow);
  color: #111111;
}

.gb-live-entry-title {
  margin: 0 0 8px;
  color: var(--gb-text) !important;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.gb-live-text {
  margin: 0;
  color: #24272e !important;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 500;
  white-space: pre-line;
}

.gb-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 10px;
  color: var(--gb-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.gb-live-media {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  background: #000000;
}

.gb-live-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  background: #000000;
}

.gb-live-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000000;
}

.gb-live-video-wrap iframe,
.gb-live-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gb-live-video-file {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #000000;
}

.gb-live-link,
.gb-live-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 8px 11px;
  background: var(--gb-black);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gb-live-link:hover,
.gb-live-video-link:hover,
.gb-live-link:focus,
.gb-live-video-link:focus {
  background: var(--gb-red);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.gb-live-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 24px;
  background: var(--gb-soft);
  border-top: 1px solid var(--gb-border);
  color: var(--gb-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.gb-live-footer span {
  color: var(--gb-muted);
}

.gb-liveblog-admin-error {
  padding: 14px 16px;
  border: 1px solid #d63638;
  background: #fff1f1;
  color: #7a0000;
  font-weight: 700;
}

@media (max-width: 860px) {
  .gb-liveblog { max-width: 100%; }
  .gb-live-header { padding: 20px; }
  .gb-live-topbar { padding: 12px 20px; }
  .gb-live-content { padding: 16px 20px 20px; }
  .gb-live-footer { padding: 12px 20px; }
  .gb-live-item { grid-template-columns: 105px minmax(0, 1fr); gap: 16px; }
  .gb-live-time { font-size: 23px; }
  .gb-live-text { font-size: 15.5px; }
}

@media (max-width: 640px) {
  .gb-liveblog {
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .gb-live-header { padding: 20px 16px 19px; }
  .gb-live-topbar { padding: 11px 16px; }
  .gb-live-content { padding: 14px 16px 18px; }
  .gb-live-footer { padding: 12px 16px; }

  .gb-live-item {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 17px 0 17px 22px;
  }

  .gb-live-item:first-child { padding-top: 0; }
  .gb-live-item:last-child { padding-bottom: 0; }

  .gb-live-item::before {
    top: 17px;
    left: 0;
    width: 3px;
    height: calc(100% - 34px);
  }

  .gb-live-item:first-child::before {
    top: 0;
    height: calc(100% - 17px);
  }

  .gb-live-item:last-child::before {
    height: calc(100% - 17px);
  }

  .gb-live-timebox {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
  }

  .gb-live-time { font-size: 22px; }
  .gb-live-date { margin-top: 0; }
  .gb-live-badge { margin-top: 0; }
  .gb-live-entry-title { font-size: 20px; margin-left: 0; }
  .gb-live-text { font-size: 15.5px; margin-left: 0; }
  .gb-live-button { padding: 8px 11px; }
}

/* Refinamiento visual v1.1.3: etiquetas, fuentes, créditos y jerarquía editorial */
.gb-liveblog {
  --gb-red-dark: #990000;
  --gb-red-soft: #fff2f2;
  --gb-ink-soft: #2b2f36;
  --gb-chip: #f3f4f6;
  --gb-chip-border: #e1e5eb;
}

.gb-live-item {
  gap: 20px;
  padding: 21px 0;
}

.gb-live-item::before {
  width: 4px;
  border-radius: 999px;
  opacity: 0.98;
}

.gb-live-item.fijado {
  background: linear-gradient(90deg, rgba(214, 0, 0, 0.045), rgba(255, 255, 255, 0) 34%);
}

.gb-live-main {
  min-width: 0;
}

.gb-live-timebox {
  padding-left: 18px;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gb-live-time {
  display: inline-flex;
  align-items: baseline;
  color: #08090b;
  font-size: 27px;
  letter-spacing: -0.055em;
}

.gb-live-date {
  margin-top: 8px;
  padding: 3px 0;
  color: #737985;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.gb-live-badge,
.gb-live-pin,
.gb-live-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.gb-live-badge {
  margin-top: 11px;
  padding: 6px 9px 6px 8px;
  color: #ffffff;
  background: var(--gb-blue);
  box-shadow: 0 7px 18px rgba(31, 79, 216, 0.14);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.gb-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.86;
}

.gb-live-badge.urgente {
  background: var(--gb-red);
  color: #ffffff;
  box-shadow: 0 7px 20px rgba(214, 0, 0, 0.18);
}

.gb-live-badge.destacada {
  background: #fff3bc;
  color: #5d4300;
  border: 1px solid #f0c64a;
  box-shadow: 0 7px 18px rgba(242, 182, 0, 0.14);
}

.gb-live-pin {
  margin-top: 8px;
  padding: 6px 9px;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.gb-live-pin::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gb-red);
}

.gb-live-type {
  margin: 0 0 9px;
  padding: 6px 9px;
  background: var(--gb-chip);
  border: 1px solid var(--gb-chip-border);
  color: #4b5563;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.gb-live-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gb-red);
}

.gb-live-type-foto::before { background: #111111; }
.gb-live-type-video::before { background: var(--gb-blue); }
.gb-live-type-alerta::before { background: var(--gb-red); }
.gb-live-type-contexto::before { background: #737985; }
.gb-live-type-correccion::before { background: #b45309; }
.gb-live-type-resumen::before { background: #047857; }

.gb-live-entry-title {
  margin-bottom: 9px;
  color: #0b0d11 !important;
  letter-spacing: -0.03em;
}

.gb-live-text {
  color: var(--gb-ink-soft) !important;
}

.gb-live-media {
  margin-top: 15px;
  border: 0;
  border-radius: 2px;
  background: #050505;
  box-shadow: 0 1px 0 rgba(15, 17, 21, 0.08), 0 14px 28px rgba(15, 17, 21, 0.08);
}

.gb-live-image {
  border-radius: 2px;
}

.gb-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf0f4;
  color: var(--gb-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.gb-live-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 9px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #4b5563;
}

.gb-live-meta-label {
  color: var(--gb-red);
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.gb-live-meta-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4b5563;
  font-weight: 800;
}

.gb-live-meta-credit .gb-live-meta-label {
  color: #111111;
}

.gb-live-link,
.gb-live-video-link {
  gap: 7px;
  margin-top: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #111111;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 17, 21, 0.12);
}

.gb-live-link::after,
.gb-live-video-link::after {
  content: "→";
  font-weight: 900;
  transform: translateY(-0.5px);
}

.gb-live-link:hover,
.gb-live-video-link:hover,
.gb-live-link:focus,
.gb-live-video-link:focus {
  background: var(--gb-red);
  box-shadow: 0 10px 22px rgba(214, 0, 0, 0.18);
}

.gb-live-footer {
  background: #fafafa;
  color: #767d89;
}

@media (max-width: 640px) {
  .gb-live-item {
    gap: 10px;
    padding: 18px 0 18px 22px;
  }

  .gb-live-timebox {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 8px;
  }

  .gb-live-time {
    font-size: 23px;
  }

  .gb-live-date,
  .gb-live-badge,
  .gb-live-pin {
    margin-top: 0;
  }

  .gb-live-meta {
    gap: 6px;
  }

  .gb-live-meta-pill {
    max-width: 100%;
    border-radius: 12px;
  }

  .gb-live-meta-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}


/* Override fuerte v1.1.3: evita que una caché vieja o estilos del tema dejen la cabecera blanca */
.gb-liveblog .gb-live-header {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, #d60000 0%, #b90000 58%, #860000 100%) !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
}

.gb-liveblog .gb-live-kicker {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 999px !important;
}

.gb-liveblog .gb-live-dot {
  background: #ffffff !important;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18) !important;
}

.gb-liveblog .gb-live-title {
  color: #ffffff !important;
}

.gb-liveblog .gb-live-subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
}

.gb-liveblog .gb-live-topbar {
  background: #111111 !important;
  border-bottom: 0 !important;
}

.gb-liveblog .gb-live-status {
  color: #ffffff !important;
}
