/* ==========================================================================
   Lo Público MX — Diseño Editorial Digital (Rojo Prensa · Negro Tinta · Bernal)
   ========================================================================== */
:root {
  --red: #C81E25;
  --red-dark: #9F151B;
  --red-soft: #FDECEE;
  --ink: #111318;
  --ink-2: #2C303A;
  --muted: #646B78;
  --amber: #D98A32;
  --amber-soft: #FDF3E5;
  --paper: #F5F4F0;
  --white: #FFFFFF;
  --border: #E4E2DC;
  --border-strong: #CECAC0;
  --green: #16803C;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(17, 19, 24, 0.05);
  --shadow-md: 0 12px 30px rgba(17, 19, 24, 0.09);
  --font-head: 'Merriweather', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.lp-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Top Utility Bar */
.lp-topbar {
  background: var(--ink);
  color: #D7DBE2;
  font-size: 0.78rem;
  border-bottom: 2px solid var(--red);
}
.lp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.lp-topbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-topbar a:hover { color: #FFFFFF; }
.lp-topbar-cta {
  background: var(--red);
  color: #fff !important;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
}
.lp-topbar-cta:hover { background: var(--red-dark); }

/* Masthead */
.lp-masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.lp-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-brand-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--ink);
  box-shadow: 0 6px 18px rgba(17, 19, 24, 0.16);
  flex-shrink: 0;
}
.lp-brand-title {
  font-weight: 900;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}
.lp-brand-title span { color: var(--red); }
.lp-brand-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.lp-masthead-ad {
  flex: 1;
  max-width: 620px;
  min-width: 260px;
}

/* Sticky Category Navigation */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}
.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lp-nav-links::-webkit-scrollbar { display: none; }
.lp-nav-links a {
  padding: 13px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: #E2E5EB;
  border-bottom: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lp-nav-links a:hover, .lp-nav-links a.active {
  background: rgba(255, 255, 255, 0.07);
  border-bottom-color: var(--red);
  color: #FFFFFF;
}
.lp-nav-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
  gap: 6px;
}
.lp-nav-search input {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.82rem;
  width: 140px;
  outline: none;
}
.lp-nav-search input::placeholder { color: #B4BBC7; }
.lp-nav-search button {
  background: transparent;
  border: 0;
  color: #E2E5EB;
  cursor: pointer;
}

/* Breaking Ticker */
.lp-ticker {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.lp-ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  overflow: hidden;
}
.lp-ticker-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: lpPulse 1.4s infinite;
}
@keyframes lpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}
.lp-ticker-links {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
}
.lp-ticker-links a:hover { color: var(--red); }

/* Badges */
.lp-cat-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
}
.lp-sponsored-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--amber-soft);
  color: #9A550E;
  border: 1px solid rgba(217, 138, 50, 0.4);
}

/* Main Grid */
.lp-main { padding: 24px 0 60px; }

/* Hero Bento */
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.lp-hero-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.45s ease;
}
.lp-hero-main:hover .lp-hero-bg { transform: scale(1.03); }
.lp-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 14, 18, 0.75) 38%, rgba(12, 14, 18, 0.96) 100%);
}
.lp-hero-overlay h1 {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.24;
  margin: 10px 0 10px;
}
.lp-hero-overlay p {
  margin: 0 0 12px;
  font-size: 0.93rem;
  color: #D7DCE3;
}
.lp-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lp-hero-overlay .lp-meta { color: #B9C0CC; }

.lp-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-side-story {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lp-side-story:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.lp-side-story h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.35;
  margin: 7px 0 6px;
}

/* Content + Sidebar Layout */
.lp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.lp-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2.5px solid var(--ink);
  padding-bottom: 8px;
  margin: 0 0 18px;
}
.lp-section-title h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lp-section-title h2::before {
  content: '';
  width: 6px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}

/* News Cards Grid */
.lp-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.lp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.lp-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #181B22, #2B1A1D);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-card-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}
.lp-card-fallback img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
}
.lp-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.lp-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.04rem;
  line-height: 1.35;
  margin: 0;
}
.lp-card-body p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
  flex: 1;
}

/* Sidebar Widgets */
.lp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lp-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.lp-widget-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
}

/* Most Read */
.lp-rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-rank-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.lp-rank-item:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-rank-num {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  min-width: 22px;
}
.lp-rank-item h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.35;
}
.lp-rank-item:hover h4 { color: var(--red); }

/* Poll */
.lp-poll-q {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 12px;
  line-height: 1.4;
}
.lp-poll-opt {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.lp-poll-opt:hover { border-color: var(--red); }
.lp-poll-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(200, 30, 37, 0.14);
  pointer-events: none;
  transition: width 0.4s ease;
}
.lp-poll-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Monetization Ad Slots */
.lp-ad-slot { text-align: center; }
.lp-ad-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.lp-ad-img-link img {
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.lp-ad-card {
  display: block;
  background: linear-gradient(135deg, #171920, #2A1619);
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 138, 50, 0.45);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.lp-ad-card:hover { transform: translateY(-2px); }
.lp-ad-kicker {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #F4B96E;
  text-transform: uppercase;
}
.lp-ad-card-title {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 6px 0 10px;
}
.lp-ad-card-cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.lp-ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 12px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  background: #FAF9F6;
  color: var(--ink-2);
  font-size: 0.8rem;
}
.lp-ad-placeholder:hover { border-color: var(--red); background: var(--red-soft); }
.lp-ad-placeholder .lp-ad-kicker { color: var(--red); }

/* CTA Boxes */
.lp-cta-box {
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
}
.lp-cta-wa { background: linear-gradient(135deg, #0E6D3B, #169350); }
.lp-cta-report { background: linear-gradient(135deg, #16181F, #9F151B); }
.lp-cta-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.lp-cta-box p { margin: 0 0 14px; font-size: 0.85rem; opacity: 0.92; }

/* Buttons & Forms */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.lp-btn:hover { opacity: 0.94; transform: translateY(-1px); }
.lp-btn-red { background: var(--red); color: #fff; }
.lp-btn-dark { background: var(--ink); color: #fff; }
.lp-btn-white { background: #fff; color: var(--ink); }
.lp-btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.lp-btn-sm { padding: 7px 13px; font-size: 0.8rem; }

.lp-field { margin-bottom: 14px; }
.lp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink-2);
}
.lp-input, .lp-select, .lp-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: 0.92rem;
  color: var(--ink);
}
.lp-input:focus, .lp-select:focus, .lp-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 30, 37, 0.12);
}

/* Article Detail */
.lp-article-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.lp-article-box h1 {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.25;
  margin: 12px 0 12px;
}
.lp-article-excerpt {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.lp-article-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  margin: 16px 0 22px;
}
.lp-article-body p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.lp-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0 22px;
}

/* Footer */
.lp-footer {
  background: var(--ink);
  color: #C4CAD4;
  padding: 40px 0 28px;
  border-top: 4px solid var(--red);
}
.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.lp-footer h4 { color: #fff; margin: 0 0 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.lp-footer a { display: block; margin-bottom: 6px; font-size: 0.86rem; color: #B4BCC9; }
.lp-footer a:hover { color: #fff; }
.lp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 980px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-layout { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-masthead-ad { display: none; }
}
@media (max-width: 640px) {
  .lp-news-grid { grid-template-columns: 1fr; }
  .lp-article-box { padding: 18px; }
  .lp-nav-search { display: none; }
}
