/*
Theme Name: loopdigital
Theme URI: https://loopdigital.com.ar
Author: loopdigital
Description: Theme oficial de loopdigital — Argentina al instante.
Version: 1.0.0
License: GNU General Public License v2
Text Domain: loopdigital
*/

/* ============================================
   BRAND TOKENS
   ============================================ */
:root {
  --ld-navy:        #1B3A5C;
  --ld-navy-mid:    #224B78;
  --ld-navy-light:  #EEF2F7;
  --ld-teal:        #2EC4A0;
  --ld-teal-dark:   #1A9E82;
  --ld-teal-light:  #E8F8F4;
  --ld-black:       #0F0F0F;
  --ld-white:       #FFFFFF;
  --ld-grey:        #F5F6F7;
  --ld-grey-mid:    #E8EAEC;
  --ld-text-pri:    #0F0F0F;
  --ld-text-sec:    #5A6A7A;
  --ld-text-ter:    #8A9AAA;
  --ld-border:      #E2E6EA;
  --ld-red:         #E74C3C;
  --ld-urgent:      #FF3B30;

  --font-main:      'Plus Jakarta Sans', sans-serif;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
  --transition:     0.2s ease;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--ld-text-pri);
  background: var(--ld-grey);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.ld-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.ld-grid-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .ld-grid-main { grid-template-columns: 1fr; }
  .ld-sidebar { display: none; }
}

/* ============================================
   HEADER
   ============================================ */
.ld-header {
  background: var(--ld-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--ld-teal);
}

.ld-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}

/* Logo */
.ld-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.ld-logo__text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  color: #fff;
}

.ld-logo__text .digital { color: var(--ld-teal); }

.ld-logo__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ld-teal);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: super;
  font-size: 0;
}

/* Nav */
.ld-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.ld-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: all var(--transition);
}

.ld-nav a:hover,
.ld-nav a.current { color: #fff; background: rgba(255,255,255,0.1); }

.ld-nav a.current { color: var(--ld-teal); background: rgba(46,196,160,0.1); }

/* Live badge */
.ld-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ld-urgent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  flex-shrink: 0;
}

.ld-live__dot {
  width: 7px;
  height: 7px;
  background: var(--ld-urgent);
  border-radius: 50%;
  animation: pulse-live 1.4s ease-in-out infinite;
}

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

/* Hamburger mobile */
.ld-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.ld-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .ld-nav { display: none; position: fixed; top: 63px; left: 0; right: 0; background: var(--ld-navy); padding: 16px 24px; flex-direction: column; align-items: flex-start; border-bottom: 3px solid var(--ld-teal); }
  .ld-nav.open { display: flex; }
  .ld-nav a { width: 100%; padding: 10px 12px; }
  .ld-menu-toggle { display: flex; }
  .ld-live { display: none; }
}

/* ============================================
   BREAKING BAR
   ============================================ */
.ld-breaking {
  background: var(--ld-urgent);
  overflow: hidden;
}

.ld-breaking__inner {
  display: flex;
  align-items: center;
  height: 36px;
}

.ld-breaking__label {
  flex-shrink: 0;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
}

.ld-breaking__ticker {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.ld-breaking__track {
  display: flex;
  gap: 64px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

.ld-breaking__track span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

.ld-breaking__track span::before {
  content: '■';
  margin-right: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 8px;
}

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

/* ============================================
   TOPBAR (fecha + buscador)
   ============================================ */
.ld-topbar {
  background: var(--ld-white);
  border-bottom: 1px solid var(--ld-border);
  padding: 8px 0;
}

.ld-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ld-topbar__date {
  font-size: 11px;
  color: var(--ld-text-ter);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ld-topbar__search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--ld-grey);
  border: 1px solid var(--ld-border);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.ld-topbar__search:focus-within { border-color: var(--ld-teal); }

.ld-topbar__search input {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--ld-text-pri);
  width: 200px;
  outline: none;
}

.ld-topbar__search button {
  padding: 6px 12px;
  color: var(--ld-text-ter);
  font-size: 14px;
  transition: color var(--transition);
}

.ld-topbar__search button:hover { color: var(--ld-teal); }

@media (max-width: 768px) {
  .ld-topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 16px;
  }

  .ld-topbar__date {
    font-size: 10px;
    text-align: center;
    line-height: 1.3;
  }

  .ld-topbar__search {
    width: 100%;
    min-width: 0;
  }

  .ld-topbar__search input {
    flex: 1;
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 480px) {
  .ld-topbar {
    padding: 6px 0;
  }

  .ld-topbar__inner {
    padding: 0 12px;
    gap: 8px;
  }

  .ld-topbar__date {
    font-size: 9px;
  }

  .ld-topbar__search input {
    padding: 8px 12px;
    font-size: 16px;
  }

  .ld-topbar__search button {
    padding: 8px 12px;
    flex-shrink: 0;
  }
}

/* ============================================
   HERO — nota principal
   ============================================ */
.ld-hero-section {
  margin-top: 24px;
}

.ld-hero {
  background: var(--ld-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  margin-bottom: 3px;
}

.ld-hero__image {
  position: relative;
  overflow: hidden;
  background: var(--ld-navy-light);
}

.ld-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ld-hero:hover .ld-hero__image img { transform: scale(1.03); }

.ld-hero__body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ld-navy);
  position: relative;
  overflow: hidden;
}

.ld-hero__body::before {
  content: '«';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 280px;
  font-weight: 800;
  color: rgba(46,196,160,0.04);
  line-height: 1;
  font-family: var(--font-main);
  pointer-events: none;
}

.ld-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ld-teal);
  margin-bottom: 16px;
}

.ld-hero__cat::before {
  content: '■';
  font-size: 7px;
}

.ld-hero__cat.urgent { color: var(--ld-urgent); }

.ld-hero__title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.ld-hero__excerpt {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ld-hero__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.ld-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: gap var(--transition);
}

.ld-hero__link:hover { gap: 10px; }

@media (max-width: 768px) {
  .ld-hero { grid-template-columns: 1fr; min-height: auto; }
  .ld-hero__body { padding: 28px 24px; }
  .ld-hero__title { font-size: 22px; }
}

/* ============================================
   BANNERS DESTACADOS — home
   ============================================ */
.ld-banners {
  margin-top: 24px;
}

.ld-banners__grid {
  display: grid;
  gap: 16px;
}

.ld-banners__grid--1 { grid-template-columns: 1fr; }
.ld-banners__grid--2 { grid-template-columns: repeat(2, 1fr); }
.ld-banners__grid--3 { grid-template-columns: repeat(3, 1fr); }
.ld-banners__grid--4 { grid-template-columns: repeat(2, 1fr); }

.ld-banners__item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--ld-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ld-banners__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ld-banners__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1200 / 280;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ld-banners__grid--2,
  .ld-banners__grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SECTION HEADER (categorías)
   ============================================ */
.ld-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ld-border);
}

.ld-section-header__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-text-pri);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-section-header__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--ld-teal);
  border-radius: 2px;
}

.ld-section-header__link {
  font-size: 11px;
  font-weight: 600;
  color: var(--ld-teal-dark);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.ld-section-header__link:hover { color: var(--ld-navy); }

/* ============================================
   CARD — nota estándar
   ============================================ */
.ld-card {
  background: var(--ld-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.ld-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ld-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ld-grey);
}

.ld-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ld-card:hover .ld-card__thumb img { transform: scale(1.05); }

.ld-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ld-navy-light), var(--ld-teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--ld-teal);
  letter-spacing: -1px;
}

.ld-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ld-card__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ld-teal-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ld-card__cat-link,
.ld-card__cat-label {
  color: inherit;
  transition: opacity var(--transition), color var(--transition);
}

.ld-card__cat-link:hover {
  opacity: 0.85;
}

.ld-card__cat.urgent { color: var(--ld-urgent); }

.ld-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ld-text-pri);
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  flex: 1;
}

.ld-card__meta {
  font-size: 10px;
  color: var(--ld-text-ter);
  font-weight: 500;
  margin-top: auto;
}

/* Card horizontal (lista) */
.ld-card--horizontal {
  flex-direction: row;
  align-items: stretch;
}

.ld-card--horizontal .ld-card__thumb {
  width: 110px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.ld-card--horizontal .ld-card__title { font-size: 13px; }

/* Card sin imagen */
.ld-card--text-only .ld-card__body { padding: 16px 18px; }

.ld-card--text-only .ld-card__title { font-size: 14px; }

/* ============================================
   CARD GRIDS
   ============================================ */
.ld-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ld-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ld-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ld-list .ld-card--horizontal + .ld-card--horizontal { border-top: 1px solid var(--ld-border); }

@media (max-width: 768px) {
  .ld-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ld-grid-2 { grid-template-columns: 1fr; }
}

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

/* ============================================
   SIDEBAR
   ============================================ */
.ld-sidebar { display: flex; flex-direction: column; gap: 24px; }

.ld-widget {
  background: var(--ld-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ld-widget__head {
  padding: 14px 18px;
  background: var(--ld-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-widget__head-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.ld-widget__body { padding: 4px 0; }

/* Trending */
.ld-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ld-border);
  transition: background var(--transition);
}

.ld-trending-item:last-child { border-bottom: none; }
.ld-trending-item:hover { background: var(--ld-grey); }

.ld-trending-item__num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ld-grey-mid);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.ld-trending-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ld-text-pri);
  line-height: 1.35;
}

/* Newsletter widget */
.ld-newsletter {
  background: linear-gradient(135deg, var(--ld-navy), var(--ld-navy-mid));
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
}

.ld-newsletter__eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ld-teal);
  margin-bottom: 10px;
}

.ld-newsletter__title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.ld-newsletter__desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ld-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ld-newsletter__input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: border-color var(--transition);
}

.ld-newsletter__input::placeholder { color: rgba(255,255,255,0.35); }
.ld-newsletter__input:focus { border-color: var(--ld-teal); }

.ld-btn-teal {
  background: var(--ld-teal);
  color: var(--ld-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}

.ld-btn-teal:hover { background: var(--ld-teal-dark); transform: translateY(-1px); }

/* ============================================
   CATEGORY TABS
   ============================================ */
.ld-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ld-tab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--ld-white);
  color: var(--ld-text-sec);
  border: 1px solid var(--ld-border);
  cursor: pointer;
  transition: all var(--transition);
}

.ld-tab:hover { border-color: var(--ld-teal); color: var(--ld-teal-dark); }
.ld-tab.active { background: var(--ld-navy); color: #fff; border-color: var(--ld-navy); }

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

.ld-single__hero {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--ld-navy-light);
}

.ld-single__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-single__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6));
}

.ld-single__body { padding: 40px 48px 56px; }

.ld-single__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ld-teal-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-single__cat a { color: inherit; }
.ld-single__cat a:hover { color: var(--ld-navy); }

.ld-single__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ld-text-pri);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.ld-single__subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--ld-text-sec);
  line-height: 1.5;
  margin-bottom: 24px;
  border-left: 3px solid var(--ld-teal);
  padding-left: 16px;
}

.ld-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--ld-text-ter);
  font-weight: 500;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ld-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ld-single__meta a { color: var(--ld-teal-dark); font-weight: 600; }
.ld-single__meta a:hover { color: var(--ld-navy); }

.ld-single__meta-sep { color: var(--ld-border); }

.ld-single__share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ld-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ld-grey);
  color: var(--ld-text-sec);
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
}

.ld-share-btn:hover { background: var(--ld-navy); color: #fff; }

/* Contenido editorial */
.ld-content {
  font-size: 17px;
  font-weight: 300;
  color: var(--ld-text-pri);
  line-height: 1.8;
}

.ld-content p { margin-bottom: 20px; }
.ld-content p:last-child { margin-bottom: 0; }

.ld-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ld-text-pri);
  letter-spacing: -0.5px;
  margin: 36px 0 16px;
  line-height: 1.2;
}

.ld-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ld-text-pri);
  margin: 28px 0 12px;
}

.ld-content blockquote {
  border-left: 4px solid var(--ld-teal);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--ld-teal-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ld-navy);
  font-style: normal;
  line-height: 1.5;
}

.ld-content ul, .ld-content ol {
  list-style: none;
  margin: 16px 0 20px 0;
}

.ld-content ul li, .ld-content ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.ld-content ul li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--ld-teal);
  font-size: 10px;
  top: 5px;
}

.ld-content ol {
  counter-reset: ld-counter;
}

.ld-content ol li { counter-increment: ld-counter; }

.ld-content ol li::before {
  content: counter(ld-counter) '.';
  position: absolute;
  left: 0;
  color: var(--ld-teal-dark);
  font-weight: 700;
  font-size: 13px;
}

.ld-content a {
  color: var(--ld-teal-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26,158,130,0.3);
  transition: text-decoration-color var(--transition);
}

.ld-content a:hover { text-decoration-color: var(--ld-teal); }

.ld-content figure {
  margin: 32px 0;
}

.ld-content figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.ld-content figcaption {
  font-size: 12px;
  color: var(--ld-text-ter);
  margin-top: 8px;
  font-style: italic;
}

.ld-breadcrumb {
  margin-bottom: 0;
}

.ld-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ld-text-ter);
  line-height: 1.4;
}

.ld-breadcrumb__item {
  display: flex;
  align-items: center;
}

.ld-breadcrumb__link {
  color: var(--ld-text-ter);
  text-decoration: none;
  transition: color var(--transition);
}

.ld-breadcrumb__link:hover {
  color: var(--ld-navy);
}

.ld-breadcrumb__current {
  color: var(--ld-text-sec);
}

.ld-breadcrumb__sep {
  color: var(--ld-border);
  user-select: none;
}

.ld-single__body > .ld-breadcrumb {
  margin-bottom: 12px;
}

.ld-single__meta-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
}

.ld-single-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Tags */
.ld-tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ld-border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.ld-tags__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ld-text-ter);
  padding-top: 6px;
  flex-shrink: 0;
}

.ld-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ld-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--ld-navy-light);
  color: var(--ld-navy);
  transition: background var(--transition), color var(--transition);
}

.ld-tag:hover {
  background: var(--ld-teal-light);
  color: var(--ld-teal-dark);
}

.ld-content img,
.ld-content iframe {
  max-width: 100%;
  height: auto;
}

.ld-content .wp-block-embed,
.ld-content .wp-block-image {
  margin: 32px 0;
}

@media (max-width: 768px) {
  .ld-single__body { padding: 24px 20px 36px; }
  .ld-single__title { font-size: 26px; }
  .ld-single__subtitle { font-size: 16px; }
  .ld-content { font-size: 16px; }
  .ld-single__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ld-single__share { margin-left: 0; }
}

/* ============================================
   RELATED POSTS
   ============================================ */
.ld-related {
  padding: 32px 48px;
  border-top: 1px solid var(--ld-border);
  background: var(--ld-grey);
}

@media (max-width: 768px) {
  .ld-related { padding: 24px 20px; }
}

/* ============================================
   COMENTARIOS — single
   ============================================ */
.ld-comments-wrap {
  background: var(--ld-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ld-comments {
  padding: 36px 48px 44px;
}

.ld-comments__header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ld-border);
}

.ld-comments__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-text-pri);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-comments__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--ld-teal);
  border-radius: 2px;
}

.ld-comments__list,
.ld-comments__list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-comments__list > .ld-comment {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ld-border);
}

.ld-comments__list > .ld-comment:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ld-comments__list .children {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--ld-teal-light);
}

.ld-comments__list .children .ld-comment {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ld-grey-mid);
}

.ld-comments__list .children .ld-comment:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ld-comment__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ld-comment__avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ld-grey-mid);
}

.ld-comment__main {
  flex: 1;
  min-width: 0;
}

.ld-comment__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.ld-comment__author {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: var(--ld-navy);
}

.ld-comment__time {
  font-size: 11px;
  font-weight: 500;
  color: var(--ld-text-ter);
}

.ld-comment__moderation {
  font-size: 12px;
  color: var(--ld-urgent);
  background: rgba(255, 59, 48, 0.08);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.ld-comment__content {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ld-text-pri);
}

.ld-comment__content p {
  margin: 0 0 12px;
}

.ld-comment__content p:last-child { margin-bottom: 0; }

.ld-comment__reply a {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ld-teal-dark);
  transition: color var(--transition);
}

.ld-comment__reply a:hover { color: var(--ld-navy); }

.ld-comments__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--ld-border);
  font-size: 13px;
}

.ld-comments__nav-label {
  font-weight: 600;
  color: var(--ld-text-ter);
}

.ld-comments__nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--ld-grey);
  color: var(--ld-text-sec);
  font-weight: 600;
  transition: all var(--transition);
}

.ld-comments__nav a:hover {
  background: var(--ld-navy);
  color: #fff;
}

.ld-comments__closed {
  font-size: 14px;
  color: var(--ld-text-sec);
  padding: 16px 0;
}

/* Formulario */
.ld-comment-respond {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px solid var(--ld-border);
}

.ld-comment-respond__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ld-text-pri);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.ld-comment-respond #cancel-comment-reply-link {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ld-text-ter);
}

.ld-comment-respond #cancel-comment-reply-link:hover {
  color: var(--ld-urgent);
}

.ld-comment-form {
  margin-top: 20px;
}

.ld-comment-form__note,
.ld-comment-form__logged-in {
  font-size: 12px;
  color: var(--ld-text-ter);
  margin-bottom: 20px;
  line-height: 1.5;
}

.ld-comment-form__logged-in a {
  color: var(--ld-teal-dark);
  font-weight: 600;
}

.ld-comment-form__field {
  margin: 0 0 16px;
}

.ld-comment-form__field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ld-text-sec);
  margin-bottom: 6px;
}

.ld-comment-form__field .required {
  color: var(--ld-urgent);
}

.ld-comment-form__input,
.ld-comment-form__textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  color: var(--ld-text-pri);
  background: var(--ld-grey);
  border: 1px solid var(--ld-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ld-comment-form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.ld-comment-form__input:focus,
.ld-comment-form__textarea:focus {
  outline: none;
  border-color: var(--ld-teal);
  box-shadow: 0 0 0 3px rgba(46, 196, 160, 0.15);
  background: var(--ld-white);
}

.ld-comment-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ld-text-sec);
  cursor: pointer;
}

.ld-comment-form__checkbox input {
  margin-top: 3px;
  accent-color: var(--ld-teal);
}

.ld-comment-form__submit {
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
}

@media (min-width: 640px) {
  .ld-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }

  .ld-comment-form__note,
  .ld-comment-form__logged-in,
  .ld-comment-form__field--comment,
  .ld-comment-form__field--cookies,
  .ld-comment-form .form-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ld-comments { padding: 24px 20px 28px; }
  .ld-comment__inner { gap: 12px; }
  .ld-comment__avatar-img { width: 44px; height: 44px; }
  .ld-comments__list .children { padding-left: 14px; }
}

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.ld-archive-header {
  background: var(--ld-navy);
  padding: 40px 0;
  margin-bottom: 32px;
}

.ld-archive-header__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ld-teal);
  margin-bottom: 8px;
}

.ld-archive-header__title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
}

.ld-archive-header__count {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* ============================================
   PAGINATION
   ============================================ */
.ld-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
}

.ld-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--ld-white);
  color: var(--ld-text-sec);
  border: 1px solid var(--ld-border);
  transition: all var(--transition);
  text-decoration: none;
}

.ld-page-btn:hover { border-color: var(--ld-navy); color: var(--ld-navy); }
.ld-page-btn.current { background: var(--ld-navy); color: #fff; border-color: var(--ld-navy); }

/* ============================================
   FOOTER
   ============================================ */
.ld-footer {
  background: var(--ld-black);
  margin-top: 64px;
  padding: 48px 0 0;
}

.ld-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 40px;
}

.ld-footer__brand .ld-logo__text { font-size: 26px; color: #fff; }
.ld-footer__brand .ld-logo__text .digital { color: var(--ld-teal); }

.ld-footer__tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  line-height: 1.6;
}

.ld-footer__col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ld-teal);
  margin-bottom: 16px;
}

.ld-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-footer__links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.ld-footer__links a:hover { color: rgba(255,255,255,0.85); }

.ld-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ld-footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  font-weight: 400;
}

.ld-footer__legal {
  display: flex;
  gap: 20px;
}

.ld-footer__legal a {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  transition: color var(--transition);
}

.ld-footer__legal a:hover { color: rgba(255,255,255,0.5); }

@media (max-width: 900px) {
  .ld-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .ld-footer__grid { grid-template-columns: 1fr; }
  .ld-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   UTILITY
   ============================================ */
.ld-spacer { height: 32px; }
.ld-spacer--sm { height: 16px; }
.ld-spacer--lg { height: 48px; }

.ld-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

.ld-badge--urgent { background: var(--ld-urgent); color: #fff; }
.ld-badge--teal { background: var(--ld-teal-light); color: var(--ld-teal-dark); }

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Entrada / fade */
@keyframes ld-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ld-fade-in { animation: ld-fade-up 0.4s ease both; }

/* === Single (noticia individual) === */
.ld-container.ld-single-section {
  margin-top: 24px;
}

/* === Páginas estáticas === */
.ld-container.ld-page-section {
  margin-top: 24px;
  padding-bottom: 8px;
}

.ld-page__header {
  padding: 28px 48px 24px;
  border-bottom: 1px solid var(--ld-border);
}

.ld-page__header .ld-breadcrumb {
  margin-bottom: 18px;
}

.ld-page__header .ld-page__title {
  margin-bottom: 12px;
}

.ld-page__header .ld-page__subtitle {
  margin-bottom: 0;
}

.ld-page {
  background: var(--ld-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ld-page__hero {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--ld-navy-light);
}

.ld-page__hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ld-page__body {
  padding: 32px 48px 56px;
}

.ld-page__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ld-text-pri);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.ld-page__subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--ld-text-sec);
  line-height: 1.5;
  margin-bottom: 32px;
  border-left: 3px solid var(--ld-teal);
  padding-left: 16px;
}

.ld-page-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ld-border);
  font-size: 14px;
  color: var(--ld-text-sec);
}

.ld-page-nav__label {
  font-weight: 600;
  margin-bottom: 8px;
}

.ld-page-nav a {
  color: var(--ld-teal-dark);
  font-weight: 600;
}

.ld-page-nav a:hover {
  color: var(--ld-navy);
}

@media (max-width: 768px) {
  .ld-page__header { padding: 20px 20px 18px; }
  .ld-page__body { padding: 20px 20px 36px; }
  .ld-page__title { font-size: 26px; }
  .ld-page__subtitle { font-size: 16px; }
}

/* === TAREA 2 — search.php (búsqueda) === */
.ld-search-featured {
  margin-bottom: 16px;
}

.ld-search-grid {
  margin-bottom: 32px;
}

.ld-search-empty {
  background: var(--ld-white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ld-search-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.ld-search-empty__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ld-text-pri);
  margin-bottom: 8px;
}

.ld-search-empty__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ld-text-sec);
  margin-bottom: 32px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.ld-search-empty__cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.ld-search-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--ld-navy-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--ld-teal);
  text-align: left;
  transition: background var(--transition), transform var(--transition);
}

.ld-search-cat-link:hover {
  background: var(--ld-teal-light);
  transform: translateX(4px);
}

.ld-search-cat-link__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ld-navy);
}

.ld-search-cat-link__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ld-text-ter);
  flex-shrink: 0;
}

.ld-search-empty__form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.ld-search-empty__input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ld-text-pri);
  background: var(--ld-grey);
  border: 1px solid var(--ld-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition);
}

.ld-search-empty__input:focus {
  border-color: var(--ld-teal);
}

@media (max-width: 768px) {
  .ld-search-empty { padding: 40px 24px; }
  .ld-search-empty__form { flex-direction: column; }
  .ld-search-cat-link { padding: 16px 18px; }
  .ld-search-cat-link__name { font-size: 16px; }
}

/* === TAREA 3 — Barra de progreso de lectura (single) === */
.ld-read-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 63px;
  height: 2px;
  z-index: 101;
  background: transparent;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ld-read-progress.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.ld-read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ld-teal);
  transition: width 0.12s ease-out;
  will-change: width;
}

/* === TAREA 4 — Tabla de contenidos automática (single) === */
.ld-content h2[id] {
  scroll-margin-top: 80px;
}

.ld-toc {
  background: var(--ld-navy-light);
  border-left: 4px solid var(--ld-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 0 0 32px;
}

.ld-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ld-navy);
  margin-bottom: 14px;
}

.ld-toc__list {
  list-style: decimal;
  margin: 0;
  padding-left: 22px;
  counter-reset: none;
}

.ld-toc__item {
  position: static;
  padding-left: 0;
  margin-bottom: 8px;
}

.ld-toc__item::before {
  content: none;
  display: none;
}

.ld-toc__item:last-child {
  margin-bottom: 0;
}

.ld-toc__item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ld-navy);
  text-decoration: none;
  transition: color var(--transition);
}

.ld-toc__item a:hover {
  color: var(--ld-teal-dark);
}

@media (max-width: 768px) {
  .ld-toc { padding: 20px 22px; }
  .ld-content h2[id] { scroll-margin-top: 72px; }
}

/* === TAREA 5 — Badge de categoría con color custom === */
/* Color inline en .ld-card__cat-link; fallback --ld-teal-dark vía .ld-card__cat */

/* === TAREA 6 — Widget últimas de cada sección === */
.ld-widget__body--section-latest {
  padding: 8px;
}

.ld-widget--section-latest .ld-list {
  gap: 8px;
}

.ld-widget--section-latest .ld-card {
  box-shadow: none;
}

.ld-widget--section-latest .ld-card--horizontal + .ld-card--horizontal {
  border-top: none;
}

/* === TAREA 7 — Widget En vivo (REST ticker) === */
.ld-widget__head--live .ld-widget__head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-live-ticker__dot {
  width: 7px;
  height: 7px;
  background: var(--ld-urgent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-live 1.4s ease-in-out infinite;
}

.ld-widget__body--live {
  padding: 6px 0;
}

.ld-live-ticker__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-live-ticker__item {
  border-bottom: 1px solid var(--ld-border);
}

.ld-live-ticker__item:last-child {
  border-bottom: none;
}

.ld-live-ticker__link {
  display: block;
  padding: 12px 18px;
  transition: background var(--transition);
}

.ld-live-ticker__link:hover {
  background: var(--ld-teal-light);
}

.ld-live-ticker__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-text-pri);
  line-height: 1.35;
  margin-bottom: 4px;
}

.ld-live-ticker__time {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ld-text-ter);
}

.ld-live-ticker__status {
  padding: 16px 18px;
  font-size: 12px;
  color: var(--ld-text-ter);
  text-align: center;
}

.ld-widget--live.is-loading .ld-live-ticker__dot {
  opacity: 0.6;
}

/* === TAREA 10 — Performance: lazy load imágenes === */
img.ld-lazy-observe:not(.ld-img--loaded) {
  opacity: 0;
}

img.ld-lazy-observe.ld-img--loaded {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* === Quiénes somos + Contacto === */
.ld-about__intro,
.ld-contact__intro {
  margin-bottom: 32px;
}

.ld-about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ld-about-card {
  background: var(--ld-grey);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--ld-border);
}

.ld-about-card--cta {
  background: var(--ld-navy);
  color: var(--ld-white);
  border-color: var(--ld-navy);
}

.ld-about-card--cta .ld-about-card__title,
.ld-about-card--cta .ld-about-card__text {
  color: var(--ld-white);
}

.ld-about-card--cta .ld-about-card__text {
  opacity: 0.85;
}

.ld-about-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ld-navy);
}

.ld-about-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ld-text-sec);
}

.ld-about-list {
  list-style: none;
}

.ld-about-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ld-text-sec);
}

.ld-about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ld-teal);
}

.ld-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.ld-contact__info-title,
.ld-contact__form-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ld-navy);
  margin-bottom: 20px;
}

.ld-contact__item {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.ld-contact__item a {
  color: var(--ld-teal-dark);
  font-weight: 600;
}

.ld-contact__item a:hover {
  color: var(--ld-navy);
}

.ld-contact__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ld-text-ter);
  margin-bottom: 4px;
}

.ld-contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.ld-contact__social a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ld-teal-dark);
}

.ld-contact__feedback {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.ld-contact__feedback.is-visible {
  display: block;
}

.ld-contact__feedback.is-success {
  background: var(--ld-teal-light);
  color: var(--ld-teal-dark);
  border: 1px solid var(--ld-teal);
}

.ld-contact__feedback.is-error {
  background: #fdecea;
  color: var(--ld-red);
  border: 1px solid #f5c6cb;
}

.ld-contact-form__field {
  margin-bottom: 16px;
}

.ld-contact-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ld-text-pri);
}

.ld-contact-form__field .required {
  color: var(--ld-red);
}

.ld-contact-form__input,
.ld-contact-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ld-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--ld-white);
  transition: border-color var(--transition);
}

.ld-contact-form__input:focus,
.ld-contact-form__textarea:focus {
  outline: none;
  border-color: var(--ld-teal);
}

.ld-contact-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.ld-contact-form__submit {
  width: 100%;
}

@media (max-width: 768px) {
  .ld-about-grid,
  .ld-contact__grid {
    grid-template-columns: 1fr;
  }
}

/* === TAREA 3 — Badge urgente en cards === */
.ld-card__thumb { position: relative; }

.ld-card__urgent-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ld-urgent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  z-index: 2;
  pointer-events: none;
}

.ld-card__cat--urgent,
.ld-card__cat--urgent a,
.ld-card__cat--urgent .ld-card__cat-link,
.ld-card__cat--urgent .ld-card__cat-label {
  color: var(--ld-urgent) !important;
}

/* === TAREA 5 — Contador de vistas === */
.ld-trending-item__content { flex: 1; min-width: 0; }
.ld-trending-item__views {
  display: block;
  font-size: 10px;
  color: var(--ld-text-ter);
  margin-top: 2px;
  font-weight: 500;
}

/* === TAREA 6 — Modo lectura === */
body.ld-reading-mode .ld-header,
body.ld-reading-mode .ld-footer,
body.ld-reading-mode .ld-sidebar,
body.ld-reading-mode .ld-topbar,
body.ld-reading-mode .ld-breaking,
body.ld-reading-mode .ld-banners,
body.ld-reading-mode .ld-related,
body.ld-reading-mode .ld-comments-wrap,
body.ld-reading-mode .ld-read-progress,
body.ld-reading-mode .ld-tags {
  display: none !important;
}

body.ld-reading-mode .ld-grid-main {
  grid-template-columns: 1fr;
}

body.ld-reading-mode .ld-single-col {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 40px;
}

body.ld-reading-mode .ld-content {
  font-size: 19px;
  line-height: 1.9;
}

body.ld-reading-mode .ld-single__title {
  font-size: 42px;
}

body.ld-reading-mode .ld-single__body {
  padding: 48px 48px 64px;
}

body.ld-reading-mode {
  background: #FAFAF8;
}

#ld-reading-mode-toggle[aria-pressed="true"] {
  background: var(--ld-navy);
  color: #fff;
}

@media (max-width: 768px) {
  body.ld-reading-mode .ld-single__body { padding: 24px 20px 40px; }
  body.ld-reading-mode .ld-content { font-size: 17px; }
  body.ld-reading-mode .ld-single__title { font-size: 28px; }
}
