/* ============================================================
   LIBERTAD DE EXPRESIÓN — Custom UI Layer for Headline Theme
   Replaces header/nav with Libertad design; home page hero layout
   ============================================================ */

/* ─── CSS VARIABLES ─── */
:root {
  --ldx-azul:        #1a3a6b;
  --ldx-azul-light:  #234d8f;
  --ldx-rojo:        #c41230;
  --ldx-rojo-dark:   #a00e27;
  --ldx-negro:       #111111;
  --ldx-gris-oscuro: #333333;
  --ldx-gris-medio:  #666666;
  --ldx-gris-claro:  #e8e8e8;
  --ldx-fondo:       #ffffff;
  --ldx-blanco:      #ffffff;
  --ldx-serif:       'Playfair Display', Georgia, serif;
  --ldx-sans:        'Source Sans 3', system-ui, sans-serif;
  --ldx-body-font:   'Libre Baskerville', Georgia, serif;
  --ldx-max-width:   1200px;
  --ldx-transition:  0.25s ease;
}

/* ─── OVERRIDE HEADLINE DEFAULT HEADER ─── */
/* Hide the original Headline header since we replace it */
#gh-head { display: none !important; }

/* Ensure body font is set */
body {
  font-family: var(--ldx-sans);
  background: var(--ldx-fondo);
  color: var(--ldx-negro);
  -webkit-font-smoothing: antialiased;
}

/* ─── SEARCH OVERLAY ─── */
.ldx-search-overlay {
  display: none !important;
}
.ldx-search-overlay form {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
  position: relative;
}
.ldx-search-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  color: white;
  font-family: var(--ldx-serif);
  font-size: 32px;
  padding: 12px 0;
  outline: none;
}
.ldx-search-overlay input::placeholder { color: rgba(255,255,255,0.45); }
.ldx-search-close {
  position: absolute;
  top: -60px;
  right: 24px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  border: none;
  background: none;
  transition: opacity 0.2s;
}
.ldx-search-close:hover { opacity: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.ldx-header {
  background: var(--ldx-blanco);
  border-bottom: 1px solid var(--ldx-gris-claro);
  padding: 18px 0 14px;
  position: relative;
  z-index: 50;
}

.ldx-header-inner {
  max-width: var(--ldx-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* Left: logo image */
.ldx-header-logo-img {
  display: flex;
  align-items: center;
}
.ldx-header-logo-img a {
  display: inline-flex;
  align-items: center;
}
.ldx-header-logo-img img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}
.ldx-logo-placeholder {
  width: 56px;
  height: 56px;
  background: var(--ldx-gris-claro);
  border-radius: 4px;
}

/* Center: site name + tagline */
.ldx-site-identity { text-align: center; }
.ldx-site-name,
h1.ldx-site-name,
h1.ldx-site-name a {
  font-family: var(--ldx-serif);
  font-size: 34px;
  font-weight: 900;
  color: var(--ldx-azul);
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
  display: block;
  animation: ldxLogoIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
  margin: 0;
  padding: 0;
  border: none;
}
h1.ldx-site-name { display: block; }

@keyframes ldxLogoIn {
  from { opacity: 0; letter-spacing: 6px; }
  to   { opacity: 1; letter-spacing: -0.5px; }
}
.ldx-site-tagline {
  display: inline-block;
  background: var(--ldx-rojo);
  color: white;
  font-family: var(--ldx-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  margin-top: 5px;
}

/* Right cluster */
.ldx-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.ldx-header-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ldx-header-social a {
  color: var(--ldx-gris-oscuro);
  display: inline-flex;
  align-items: center;
  transition: color var(--ldx-transition), transform 0.2s;
}
.ldx-header-social a:hover { color: var(--ldx-rojo); transform: translateY(-2px); }

.ldx-header-divider {
  width: 1px;
  height: 20px;
  background: var(--ldx-gris-claro);
  flex-shrink: 0;
}

.ldx-search-toggle {
  color: var(--ldx-gris-oscuro);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--ldx-transition), transform 0.15s;
}
.ldx-search-toggle:hover { color: var(--ldx-azul); }
body.ldx-dark .ldx-search-toggle { color: rgba(255,255,255,.75); }
body.ldx-dark .ldx-search-toggle:hover { color: #ffffff; }

/* ── PILL THEME TOGGLE ── */
/* ── CIRCULAR THEME TOGGLE (Magic UI animated style) ── */
.ldx-theme-toggle {
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--ldx-gris-claro);
  border-radius: 50%;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--ldx-gris-oscuro);
}
.ldx-theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--ldx-rojo);
}
body.ldx-dark .ldx-theme-toggle {
  border-color: #333;
  color: #e0e0e0;
}
body.ldx-dark .ldx-theme-toggle:hover {
  border-color: var(--ldx-rojo);
}

.ldx-icon-sun,
.ldx-icon-moon {
  position: absolute;
  transition: opacity 0.15s ease, transform 0.2s ease;
}
.ldx-icon-sun  { opacity: 1; transform: scale(1) rotate(0deg); stroke: currentColor; }
.ldx-icon-moon { opacity: 0; transform: scale(0.5) rotate(-30deg); fill: currentColor; }

body.ldx-dark .ldx-icon-sun  { opacity: 0; transform: scale(0.5) rotate(30deg); }
body.ldx-dark .ldx-icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }

/* View Transition API — circular clip reveal */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) { z-index: 9999; }
::view-transition-old(root) { z-index: 1; }

/* ── HAMBURGER (mobile only) ── */
.ldx-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--ldx-gris-claro);
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.ldx-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ldx-gris-oscuro);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.ldx-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ldx-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ldx-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.ldx-nav {
  background: var(--ldx-blanco);
  border-bottom: 3px solid var(--ldx-azul);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.ldx-nav-inner {
  max-width: var(--ldx-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.ldx-nav-inner::-webkit-scrollbar { display: none; }

/* Ghost {{navigation}} outputs <ul class="nav"> > <li> > <a> */
.ldx-nav-inner .nav,
.ldx-mobile-links .nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.ldx-mobile-links .nav {
  flex-direction: column;
}

.ldx-nav-inner .nav li,
.ldx-nav-inner .nav li a,
.ldx-mobile-links .nav li,
.ldx-mobile-links .nav li a {
  display: block;
}

/* Desktop nav links */
.ldx-nav-inner .nav li a {
  font-family: var(--ldx-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ldx-gris-oscuro) !important;
  padding: 13px 13px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color var(--ldx-transition);
  position: relative;
  text-decoration: none;
}
.ldx-nav-inner .nav li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 3px;
  background: var(--ldx-rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.ldx-nav-inner .nav li a:hover { color: var(--ldx-rojo) !important; }
.ldx-nav-inner .nav li a:hover::after { transform: scaleX(1); }
.ldx-nav-inner .nav li.nav-current a { color: var(--ldx-rojo) !important; }
.ldx-nav-inner .nav li.nav-current a::after { transform: scaleX(1); }

/* Mobile nav links */
.ldx-mobile-links .nav li a {
  font-family: var(--ldx-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ldx-negro) !important;
  padding: 15px 20px;
  border-bottom: 1px solid var(--ldx-gris-claro);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--ldx-transition), color var(--ldx-transition);
  text-decoration: none;
}
.ldx-mobile-links .nav li a::after {
  content: '›';
  font-size: 18px;
  color: var(--ldx-gris-medio);
  font-weight: 400;
  position: static;
  transform: none;
  background: none;
  height: auto;
  width: auto;
}
.ldx-mobile-links .nav li a:hover { background: #fafafa; color: var(--ldx-azul) !important; }
.ldx-mobile-links .nav li.nav-current a {
  color: var(--ldx-rojo) !important;
  border-left: 3px solid var(--ldx-rojo);
  padding-left: 17px;
}

/* Dark mode nav */
body.ldx-dark .ldx-nav-inner .nav li a { color: #cccccc !important; }
body.ldx-dark .ldx-mobile-links .nav li a { border-bottom-color: #222; color: #f0f0f0 !important; }
body.ldx-dark .ldx-mobile-links .nav li a:hover { background: #1a1a1a; }

/* ============================================================
   MOBILE FULL-SCREEN MENU
   ============================================================ */
.ldx-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ldx-blanco);
  z-index: 999;
  flex-direction: column;
  overflow-y: auto;
}
.ldx-mobile-menu.is-open { display: flex; }

.ldx-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 3px solid var(--ldx-azul);
  flex-shrink: 0;
}
.ldx-mobile-logo {
  font-family: var(--ldx-serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--ldx-azul);
}
.ldx-mobile-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--ldx-gris-claro);
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ldx-gris-oscuro);
  line-height: 1;
  transition: background var(--ldx-transition), color var(--ldx-transition);
}
.ldx-mobile-close:hover { background: var(--ldx-rojo); color: white; border-color: var(--ldx-rojo); }

.ldx-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
}
.ldx-mobile-links a {
  font-family: var(--ldx-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ldx-negro) !important;
  padding: 15px 20px;
  border-bottom: 1px solid var(--ldx-gris-claro);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--ldx-transition), color var(--ldx-transition);
  text-decoration: none;
}
.ldx-mobile-links a::after {
  content: '›';
  font-size: 18px;
  color: var(--ldx-gris-medio);
  font-weight: 400;
}
.ldx-mobile-links a:hover { background: #fafafa; color: var(--ldx-azul) !important; }
.ldx-mobile-links a.ldx-current {
  color: var(--ldx-rojo) !important;
  border-left: 3px solid var(--ldx-rojo);
  padding-left: 17px;
}

/* ============================================================
   HOMEPAGE — SECTION TAG LABELS
   ============================================================ */
.section-tag {
  font-family: var(--ldx-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ldx-rojo);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

.article-meta {
  font-family: var(--ldx-sans);
  font-size: 11.5px;
  color: var(--ldx-gris-medio);
  font-weight: 600;
}
.article-meta .author { color: var(--ldx-azul); }

/* ============================================================
   HERO GRID — HOMEPAGE
   ============================================================ */
.site-main {
  max-width: var(--ldx-max-width);
  margin: 0 auto;
  padding: 28px 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 280px;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ldx-gris-claro);
}

/* Featured Large */
.featured-large { position: relative; }
.featured-large .img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}
.featured-large .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-large:hover .img-wrap img { transform: scale(1.03); }
.featured-large h2 {
  font-family: var(--ldx-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ldx-negro);
  margin-bottom: 10px;
  transition: color var(--ldx-transition);
}
.featured-large:hover h2 { color: var(--ldx-azul); }
.featured-large h2 a { color: inherit; text-decoration: none; }
.featured-large p.excerpt {
  font-family: var(--ldx-sans);
  font-size: 14px;
  color: var(--ldx-gris-medio);
  line-height: 1.65;
  margin-bottom: 10px;
}

/* Center column */
.hero-center { display: flex; flex-direction: column; gap: 20px; }
.hero-card-medium { cursor: pointer; }
.hero-card-medium .img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 10px;
}
.hero-card-medium .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-card-medium:hover .img-wrap img { transform: scale(1.04); }
.hero-card-medium h3 {
  font-family: var(--ldx-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ldx-negro);
  margin-bottom: 7px;
  transition: color var(--ldx-transition);
}
.hero-card-medium:hover h3 { color: var(--ldx-azul); }
.hero-card-medium h3 a { color: inherit; text-decoration: none; }
.hero-card-medium p {
  font-size: 13px;
  color: var(--ldx-gris-medio);
  line-height: 1.55;
  margin-bottom: 7px;
}
.hero-card-medium:hover { transform: translateY(-3px); }
.hero-card-medium { transition: transform 0.25s ease; }

/* Sidebar latest */
.sidebar-latest {
  border-left: 1px solid var(--ldx-gris-claro);
  padding-left: 24px;
}
.sidebar-latest h2, .sidebar-heading {
  font-family: var(--ldx-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ldx-negro);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ldx-azul);
}
.sidebar-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ldx-gris-claro);
  border-left: 3px solid transparent;
  padding-left: 0;
  transition: border-color var(--ldx-transition), padding-left var(--ldx-transition);
  cursor: pointer;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover {
  border-left-color: var(--ldx-rojo);
  padding-left: 8px;
}
.sidebar-item .thumb {
  width: 58px;
  height: 52px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-item .info h3 {
  font-family: var(--ldx-sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ldx-negro);
  margin-bottom: 3px;
  transition: color var(--ldx-transition);
}
.sidebar-item .info h3 a { color: inherit; text-decoration: none; }
.sidebar-item:hover .info h3 { color: var(--ldx-azul); }
.sidebar-item .meta-small {
  font-size: 10.5px;
  color: var(--ldx-gris-medio);
}

/* ============================================================
   SECTION BLOCKS — HOMEPAGE CATEGORY GRIDS
   ============================================================ */
.section-block { margin-bottom: 38px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ldx-azul);
}
.section-header h2 {
  font-family: var(--ldx-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--ldx-azul);
  letter-spacing: -0.3px;
}
.see-all {
  font-family: var(--ldx-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ldx-rojo);
  transition: color var(--ldx-transition);
  text-decoration: none;
}
.see-all:hover { color: var(--ldx-rojo-dark); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.article-card { cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.article-card .img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 10px;
}
.article-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .img-wrap img { transform: scale(1.05); }
.article-card h4 {
  font-family: var(--ldx-serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ldx-negro);
  margin-bottom: 7px;
  transition: color var(--ldx-transition);
}
.article-card h4 a { color: inherit; text-decoration: none; }
.article-card:hover h4 { color: var(--ldx-azul); }
.article-card p {
  font-size: 12.5px;
  color: var(--ldx-gris-medio);
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   VIDEOS SECTION
   ============================================================ */
.videos-section {
  background: var(--ldx-azul);
  padding: 32px 0;
  margin: 10px 0 38px;
}
.videos-section .container {
  max-width: var(--ldx-max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.videos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.videos-header h2 {
  font-family: var(--ldx-serif);
  font-size: 22px;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.yt-badge {
  background: var(--ldx-rojo);
  color: white;
  font-family: var(--ldx-sans);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
}
.videos-header a {
  font-family: var(--ldx-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color var(--ldx-transition);
  text-decoration: none;
}
.videos-header a:hover { color: white; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  cursor: pointer;
  transition: background var(--ldx-transition), transform 0.25s ease;
}
.video-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(196,18,48,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: background var(--ldx-transition), transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.video-card:hover .play-btn {
  background: var(--ldx-rojo);
  transform: translate(-50%, -50%) scale(1.15);
}
.video-info { padding: 12px 14px; }
.video-info h5 {
  font-family: var(--ldx-sans);
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 4px;
}
.video-info h5 a { color: white; text-decoration: none; }
.video-info .vmeta {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   DARK MODE
   ============================================================ */
body.ldx-dark {
  background: #0f0f0f;
  color: #f0f0f0;
}
body.ldx-dark .ldx-header,
body.ldx-dark .ldx-nav { background: #181818; }
body.ldx-dark .ldx-site-name,
body.ldx-dark h1.ldx-site-name,
body.ldx-dark h1.ldx-site-name a { color: #ffffff !important; }
body.ldx-dark .ldx-mobile-menu { background: #111111; }
body.ldx-dark .ldx-mobile-header { border-bottom-color: var(--ldx-azul); }
body.ldx-dark .ldx-mobile-logo { color: white; }
body.ldx-dark .ldx-mobile-close { border-color: #333; color: #ccc; }
body.ldx-dark .ldx-mobile-links a { border-bottom-color: #222; color: #f0f0f0 !important; }
body.ldx-dark .ldx-mobile-links a:hover { background: #1a1a1a; }
body.ldx-dark .hero-grid { border-bottom-color: #2a2a2a; }
body.ldx-dark .sidebar-latest { border-left-color: #2a2a2a; }
body.ldx-dark .sidebar-item { border-bottom-color: #2a2a2a; }
body.ldx-dark .featured-large h2,
body.ldx-dark .hero-card-medium h3,
body.ldx-dark .sidebar-latest h2,
body.ldx-dark .sidebar-heading,
body.ldx-dark .sidebar-item .info h3,
body.ldx-dark .article-card h4 { color: #f0f0f0; }
body.ldx-dark .section-header { border-bottom-color: var(--ldx-azul); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sidebar-latest { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .ldx-header { padding: 12px 0; }
  .ldx-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .ldx-header-logo-img img { height: 40px; }
  .ldx-site-name,
  h1.ldx-site-name,
  h1.ldx-site-name a { font-size: 20px; letter-spacing: -0.3px; }
  .ldx-site-tagline { font-size: 9px; padding: 2px 7px; }

  /* Hide social + divider on mobile */
  .ldx-header-social { display: none; }
  .ldx-header-divider { display: none; }
  .ldx-theme-toggle { display: none; }

  /* Show hamburger */
  .ldx-hamburger { display: flex; }

  /* Hide desktop nav on mobile */
  .ldx-nav-inner .nav { display: none; }
  .ldx-nav { min-height: 0; padding: 0; border-bottom: none; box-shadow: none; position: static; }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: none;
    margin-bottom: 24px;
  }
  .hero-center { display: none; }
  .featured-large h2 { font-size: 22px; }
  .featured-large .img-wrap { aspect-ratio: 16/9; }

  /* Section grids */
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Videos */
  .videos-section { padding: 24px 0; }
  .videos-grid { grid-template-columns: 1fr; gap: 14px; }
  .videos-header h2 { font-size: 18px; }

  .section-header h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  .ldx-site-name,
  h1.ldx-site-name,
  h1.ldx-site-name a { font-size: 17px; }
  .ldx-site-tagline { display: none; }
  .ldx-header-logo-img img { height: 34px; }

  .featured-large h2 { font-size: 19px; }
  .article-card h4 { font-size: 15px; }
}

/* ── FECHA LARGA DEL ARTÍCULO ── */
/* Ocultar el sidebar flotante del tema base */
.gh-article-sidebar { display: none !important; }

.ldx-post-date-full {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ldx-sans);
    font-size: 13px;
    color: var(--ldx-gris-medio);
    margin-bottom: 4px;
}
.ldx-post-date-full time {
    font-weight: 500;
    color: var(--ldx-gris-oscuro);
    text-transform: capitalize; /* "miércoles" con mayúscula inicial */
}
.ldx-post-readtime {
    color: var(--ldx-gris-medio);
}
.ldx-post-readtime::before {
    content: '·';
    margin-right: 10px;
    color: var(--ldx-gris-claro);
}

/* ── BARRA DE COMPARTIR ── */
.ldx-share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    margin-top: 8px;
    border-top: 1px solid var(--ldx-gris-claro);
    border-bottom: 1px solid var(--ldx-gris-claro);
}
.ldx-share-label {
    font-family: var(--ldx-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--ldx-negro);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ldx-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ldx-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    text-decoration: none;
    color: #fff;
}
.ldx-share-btn:hover { transform: translateY(-2px); opacity: 0.88; color: #fff; }
.ldx-share-btn svg { width: 17px; height: 17px; }
.ldx-share-whatsapp { background: #25D366; }
.ldx-share-facebook { background: #1877F2; }
.ldx-share-twitter { background: #000000; }
.ldx-share-linkedin { background: #0A66C2; }
.ldx-share-copy     { background: #455a6b; }
.ldx-share-copy.ldx-copied { background: #2e7d32; }

@media (max-width: 600px) {
    .ldx-share-bar { gap: 12px; padding: 16px 0; }
    .ldx-share-btn { width: 34px; height: 34px; }
    .ldx-share-btn svg { width: 15px; height: 15px; }
}

/* ============================================================
   FOOTER — Libertad de Expresión
   ============================================================ */

.ldx-foot {
  font-family: var(--ldx-sans);
  margin-top: 80px;
}

.ldx-foot-accent-bar {
  height: 3px;
  background: var(--ldx-rojo);
}

.ldx-foot-body {
  background: #1e1e1e;
  padding: 52px 0 32px;
}

body.ldx-dark .ldx-foot-body {
  background: #111111;
}

.ldx-foot-inner {
  max-width: var(--ldx-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand column */
.ldx-foot-brand {}

.ldx-foot-site-name {
  font-family: var(--ldx-serif);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1;
  text-decoration: none;
  display: block;
  margin: 0 0 6px 0;
}

.ldx-foot-tagline {
  display: inline-block;
  background: var(--ldx-rojo);
  color: white;
  font-family: var(--ldx-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 10px;
  margin-bottom: 16px;
}

.ldx-foot-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.50);
  margin: 0;
  max-width: 340px;
}

/* Columns */
.ldx-foot-col {}

.ldx-foot-col-title {
  font-family: var(--ldx-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ldx-rojo);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(196,18,48,0.3);
}

/* Tags */
.ldx-foot-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ldx-foot-tags li a {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.09);
  transition: background var(--ldx-transition), color var(--ldx-transition), border-color var(--ldx-transition);
}

.ldx-foot-tags li a:hover {
  background: var(--ldx-rojo);
  color: #ffffff;
  border-color: var(--ldx-rojo);
}

/* Page links */
.ldx-foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ldx-foot-links li + li { margin-top: 10px; }

.ldx-foot-links a {
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--ldx-transition);
}

.ldx-foot-links a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--ldx-rojo);
  border-radius: 50%;
  flex-shrink: 0;
}

.ldx-foot-links a:hover { color: #ffffff; }

/* Bottom bar */
.ldx-foot-bottom {
  max-width: var(--ldx-max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ldx-foot-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
}

/* Social icons */
.ldx-foot-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ldx-foot-social-link {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  transition: background var(--ldx-transition), border-color var(--ldx-transition), color var(--ldx-transition);
}

.ldx-foot-social-link:hover {
  background: var(--ldx-rojo);
  border-color: var(--ldx-rojo);
  color: #ffffff;
}

.ldx-foot-social-placeholder {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .ldx-foot-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ldx-foot-brand {
    grid-column: 1 / -1;
  }
  .ldx-foot-desc { max-width: 100%; }
}

@media (max-width: 600px) {
  .ldx-foot-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ldx-foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ldx-foot {
    margin-top: 48px;
  }
}

/* Footer email signup bar */
.ldx-foot-signup {
  background: rgba(196,18,48,0.10);
  border-top: 1px solid rgba(196,18,48,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ldx-foot-signup-inner {
  max-width: var(--ldx-max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ldx-foot-signup-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.70);
  font-size: 14px;
}

.ldx-foot-signup-text svg {
  color: var(--ldx-rojo);
  flex-shrink: 0;
}

.ldx-foot-signup-btn {
  background: var(--ldx-rojo);
  color: #ffffff;
  border: none;
  font-family: var(--ldx-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 22px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ldx-transition);
}

.ldx-foot-signup-btn:hover {
  background: var(--ldx-rojo-dark);
}

@media (max-width: 600px) {
  .ldx-foot-signup-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================================
   DARK MODE — POST PAGE & SEGUIR LEYENDO CARDS
   ============================================================ */

/* Post title (h1) */
body.ldx-dark .gh-article-title {
  color: #f0f0f0;
}

/* Post excerpt / subtitle */
body.ldx-dark .gh-article-excerpt {
  color: #aaaaaa;
}

/* Post meta (author, date, reading time) */
body.ldx-dark .gh-article-meta,
body.ldx-dark .gh-article-meta-inner,
body.ldx-dark .gh-article-meta a,
body.ldx-dark .gh-article-tag {
  color: #888888;
}

/* Post body content */
body.ldx-dark .gh-content {
  color: #d0d0d0;
}
body.ldx-dark .gh-content h1,
body.ldx-dark .gh-content h2,
body.ldx-dark .gh-content h3,
body.ldx-dark .gh-content h4,
body.ldx-dark .gh-content h5,
body.ldx-dark .gh-content h6 {
  color: #f0f0f0;
}
body.ldx-dark .gh-content a {
  color: #6ea8d8;
}
body.ldx-dark .gh-content blockquote {
  border-left-color: var(--ldx-rojo);
  color: #aaaaaa;
}

/* "Seguir leyendo" / Read next section */
body.ldx-dark .gh-read-next {
  border-top-color: #2a2a2a;
}
body.ldx-dark .gh-pagehead-title {
  color: #f0f0f0;
}

/* Cards in seguir leyendo (gh-topic-grid / loop-grid) */
body.ldx-dark .gh-card-title {
  color: #f0f0f0;
}
body.ldx-dark .gh-card-excerpt {
  color: #999999;
}
body.ldx-dark .gh-card-author,
body.ldx-dark .gh-card-date,
body.ldx-dark .gh-card-footer {
  color: #777777;
}
body.ldx-dark .gh-card {
  background: transparent;
}
body.ldx-dark .gh-card-link:hover .gh-card-title {
  color: #ffffff;
}

/* article-card excerpt text (home & category pages) */
body.ldx-dark .article-card p {
  color: #888888;
}
body.ldx-dark .article-card .article-meta,
body.ldx-dark .article-card .author {
  color: #666666;
}

/* Header X/Twitter placeholder (no URL configured yet) */
.ldx-header-social-placeholder {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* ============================================================
   DARK MODE — FIXES (share bar, post date, header social icons)
   ============================================================ */

/* Share bar */
body.ldx-dark .ldx-share-bar {
  border-top-color: #2a2a2a;
  border-bottom-color: #2a2a2a;
}
body.ldx-dark .ldx-share-label {
  color: #cccccc;
}

/* Post date & readtime */
body.ldx-dark .ldx-post-date-full {
  color: #777777;
}
body.ldx-dark .ldx-post-date-full time {
  color: #aaaaaa;
}
body.ldx-dark .ldx-post-readtime {
  color: #666666;
}
body.ldx-dark .ldx-post-readtime::before {
  color: #444444;
}

/* Header social icons in dark mode */
body.ldx-dark .ldx-header-social a {
  color: #aaaaaa;
}
body.ldx-dark .ldx-header-social a:hover {
  color: var(--ldx-rojo);
}
body.ldx-dark .ldx-header-social-placeholder {
  color: #aaaaaa;
}

/* Header divider in dark mode */
body.ldx-dark .ldx-header-divider {
  background: #333333;
}

/* Dark mode — section headers (Últimas Noticias, etc.) */
body.ldx-dark .section-header h2 {
  color: #f0f0f0;
}
body.ldx-dark .see-all {
  color: #888888;
}
body.ldx-dark .see-all:hover {
  color: var(--ldx-rojo);
}

/* Dark mode — home page card descriptions */
body.ldx-dark .featured-large p.excerpt,
body.ldx-dark .hero-card-medium p,
body.ldx-dark .article-card p,
body.ldx-dark .sidebar-item .info p {
  color: #b0b0b0;
}

/* ═══════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════ */
.ldx-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  line-height: 1.4;
}
.ldx-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}
.ldx-breadcrumb a:hover {
  color: var(--ldx-rojo);
}
.ldx-breadcrumb span[aria-hidden] {
  color: #bbb;
  font-size: 14px;
}
.ldx-breadcrumb-current {
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
}

/* Dark mode breadcrumbs */
body.ldx-dark .ldx-breadcrumb,
body.ldx-dark .ldx-breadcrumb a {
  color: #666;
}
body.ldx-dark .ldx-breadcrumb a:hover {
  color: var(--ldx-rojo);
}
body.ldx-dark .ldx-breadcrumb-current {
  color: #999;
}

/* ═══════════════════════════════════════════════
   POST BYLINE (autor + fecha)
   ═══════════════════════════════════════════════ */
.ldx-post-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 10px 0 18px;
  font-size: 14px;
  color: #666;
}
.ldx-post-author {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.ldx-post-author:hover {
  color: var(--ldx-rojo);
}
.ldx-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ldx-byline-sep {
  color: #ccc;
  font-size: 16px;
  line-height: 1;
}
.ldx-byline-date {
  color: #888;
  font-size: 13px;
}

/* Dark mode byline */
body.ldx-dark .ldx-post-byline {
  color: #777;
}
body.ldx-dark .ldx-post-author {
  color: #ccc;
}
body.ldx-dark .ldx-post-author:hover {
  color: var(--ldx-rojo);
}
body.ldx-dark .ldx-byline-sep {
  color: #444;
}
body.ldx-dark .ldx-byline-date {
  color: #666;
}


/* ============================================================
   QUIÉNES SOMOS + CONTÁCTANOS — Páginas estáticas LDX
   ============================================================ */

/* ── Variables locales (usan las del tema) ── */
.ldx-page {
  --qs-ease: cubic-bezier(.22,.61,.36,1);
  --qs-page-max: 1200px;
  --qs-bg: var(--ldx-fondo, #fff);
  --qs-bg2: #f5f4f0;
  --qs-fg: var(--ldx-negro, #111);
  --qs-fg2: var(--ldx-gris-oscuro, #333);
  --qs-fg3: var(--ldx-gris-medio, #666);
  --qs-border: rgba(0,0,0,.10);
  --qs-card-bg: #ffffff;
  --qs-card-border: rgba(0,0,0,.09);
  --qs-red: var(--ldx-rojo, #c41230);
  --qs-red-dark: var(--ldx-rojo-dark, #a00e27);
  --qs-input-bg: #f8f7f4;
  --qs-input-border: rgba(0,0,0,.15);
}

/* Dark mode override */
body.ldx-dark .ldx-page {
  --qs-bg: #111111;
  --qs-bg2: #1a1a1a;
  --qs-fg: #f0ede6;
  --qs-fg2: #b8b4ac;
  --qs-fg3: #777470;
  --qs-border: rgba(255,255,255,.10);
  --qs-card-bg: #1c1c1c;
  --qs-card-border: rgba(255,255,255,.08);
  --qs-input-bg: #242424;
  --qs-input-border: rgba(255,255,255,.15);
}

.ldx-page {
  background: var(--qs-bg);
  color: var(--qs-fg);
  overflow-x: hidden;
}

/* ── Scroll animations ── */
.ldx-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--qs-ease), transform .7s var(--qs-ease);
}
.ldx-anim.ldx-visible {
  opacity: 1;
  transform: none;
}

/* ── Section tags ── */
.ldx-qs-section-tag,
.ldx-ct-section-tag,
.ldx-ct-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ldx-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--qs-red);
  margin-bottom: .9rem;
}
.ldx-qs-section-tag::before,
.ldx-qs-section-tag--center::before,
.ldx-ct-section-tag::before,
.ldx-ct-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--qs-red);
  flex-shrink: 0;
}
.ldx-qs-section-tag--center { display: flex; justify-content: center; }

/* ==============================================
   QUIÉNES SOMOS
============================================== */

/* Hero */
.ldx-qs-hero {
  max-width: var(--qs-page-max);
  margin: 0 auto;
  padding: 4rem 2rem 0;
  text-align: center;
}
.ldx-qs-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2.5rem;
}
.ldx-qs-hero__line { flex: 0 0 60px; height: 1px; background: var(--qs-border); }
.ldx-qs-hero__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--qs-fg3);
}
.ldx-qs-hero__title {
  font-family: var(--ldx-serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--qs-fg);
  margin: 0 0 1.5rem;
  animation: ldxFadeUp .9s var(--qs-ease) both;
}
.ldx-qs-hero__title em { color: var(--qs-red); font-style: italic; }
.ldx-qs-hero__sub {
  font-size: 1.1rem;
  color: var(--qs-fg2);
  line-height: 1.75;
  margin: 0 0 3rem;
  animation: ldxFadeUp .9s var(--qs-ease) .15s both;
}
.ldx-qs-hero__img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 900px;
  aspect-ratio: 16/7;
  animation: ldxFadeUp .9s var(--qs-ease) .3s both;
}
.ldx-qs-hero__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 8s ease;
}
.ldx-qs-hero__img-wrap:hover .ldx-qs-hero__img { transform: scale(1.03); }
.ldx-qs-hero__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
}
.ldx-qs-hero__img-caption {
  position: absolute;
  bottom: 1.25rem; left: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,.85);
  font-size: .82rem; letter-spacing: .03em;
  text-align: left;
}

/* MVV Cards */
.ldx-qs-mvv {
  padding: 5rem 2rem;
  max-width: var(--qs-page-max);
  margin: 0 auto;
}
.ldx-qs-mvv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.ldx-qs-card {
  background: var(--qs-card-bg);
  border: 1px solid var(--qs-card-border);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  transition: transform .35s var(--qs-ease), box-shadow .35s var(--qs-ease);
}
.ldx-qs-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.ldx-qs-card__title {
  font-family: var(--ldx-serif);
  font-size: 1.4rem; font-weight: 700;
  color: var(--qs-fg); margin: 0 0 .75rem;
}
.ldx-qs-card__body { font-size: .98rem; line-height: 1.75; color: var(--qs-fg2); margin: 0; }

/* Historia */
.ldx-qs-historia { background: var(--qs-bg2); padding: 5rem 2rem; }
.ldx-qs-historia__inner {
  max-width: var(--qs-page-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 800px) {
  .ldx-qs-historia__inner { grid-template-columns: 1fr; }
  .ldx-qs-historia__media { order: -1; }
}
.ldx-qs-historia__heading {
  font-family: var(--ldx-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.02em; color: var(--qs-fg);
  margin: 0 0 1.5rem;
}
.ldx-qs-historia__text p { font-size: 1rem; line-height: 1.8; color: var(--qs-fg2); margin: 0 0 1.25rem; }
.ldx-qs-historia__lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--qs-fg2);
  margin: 0 0 1.4rem;
}
.ldx-qs-historia__lead--independence {
  color: var(--qs-fg);
}
.ldx-qs-historia__independence-label {
  font-family: var(--ldx-serif);
  font-weight: 700;
  color: var(--qs-red);
  font-style: italic;
}

/* Image stack */
.ldx-qs-img-stack { position: relative; }
.ldx-qs-img-stack__main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.ldx-qs-img-stack__accent {
  position: absolute; width: 48%; aspect-ratio: 1;
  object-fit: cover; border-radius: 8px;
  bottom: -1.75rem; left: -1.75rem;
  border: 4px solid var(--qs-bg2);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.ldx-qs-img-stack__badge {
  position: absolute; top: 1rem; right: -.5rem;
  background: var(--qs-red); color: #fff;
  padding: .6rem 1rem; border-radius: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.5;
  display: flex; flex-direction: column; gap: 1px;
  box-shadow: 0 4px 16px rgba(196,18,48,.35);
}

/* Equipo */
.ldx-qs-equipo { padding: 5rem 2rem; max-width: var(--qs-page-max); margin: 0 auto; }
.ldx-qs-equipo__heading {
  font-family: var(--ldx-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.15;
  text-align: center; color: var(--qs-fg); margin: 0 0 .75rem;
}
.ldx-qs-equipo__sub { text-align: center; color: var(--qs-fg2); font-size: 1rem; margin: 0 0 3rem; }
.ldx-qs-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.ldx-qs-team-card {
  border-radius: 10px; overflow: hidden;
  background: var(--qs-card-bg); border: 1px solid var(--qs-card-border);
  transition: transform .35s var(--qs-ease), box-shadow .35s var(--qs-ease);
}
.ldx-qs-team-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.13); }
.ldx-qs-team-card__img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.ldx-qs-team-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--qs-ease), filter .6s;
  filter: grayscale(20%);
}
.ldx-qs-team-card:hover .ldx-qs-team-card__img-wrap img { transform: scale(1.06); filter: grayscale(0%); }
.ldx-qs-team-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(196,18,48,.65) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.ldx-qs-team-card:hover .ldx-qs-team-card__overlay { opacity: 1; }
.ldx-qs-team-card__info { padding: 1.1rem 1.25rem; }
.ldx-qs-team-card__info h4 { font-family: var(--ldx-serif); font-size: 1.05rem; font-weight: 700; color: var(--qs-fg); margin: 0 0 .25rem; }
.ldx-qs-team-card__info span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--qs-red); }

/* CTA */
.ldx-qs-cta { background: var(--qs-fg); padding: 5rem 2rem; text-align: center; }
.ldx-qs-cta__inner { max-width: 600px; margin: 0 auto; }
.ldx-qs-cta__pre { font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--qs-red); margin: 0 0 .75rem; }
.ldx-qs-cta__heading {
  font-family: var(--ldx-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--qs-bg); margin: 0 0 2rem; line-height: 1;
}
.ldx-qs-cta__btn {
  display: inline-block;
  background: var(--qs-red); color: #fff;
  font-family: var(--ldx-sans);
  font-size: .95rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .95rem 2.5rem; border-radius: 50px;
  text-decoration: none;
  transition: background .25s, transform .25s var(--qs-ease);
}
.ldx-qs-cta__btn:hover { background: var(--qs-red-dark); transform: scale(1.03); }

@media (max-width: 600px) {
  .ldx-qs-img-stack__accent { display: none; }
}

/* ==============================================
   CONTÁCTANOS
============================================== */

/* Hero */
.ldx-ct-hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; overflow: hidden;
}
.ldx-ct-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ldx-ct-hero__bg-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: ldxHeroZoom 18s ease-in-out infinite alternate;
}
.ldx-ct-hero__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.4) 60%, rgba(196,18,48,.15) 100%);
}
.ldx-ct-hero__content {
  position: relative; z-index: 1;
  max-width: var(--qs-page-max); width: 100%;
  margin: 0 auto; padding: 8rem 2rem 5rem;
}
.ldx-ct-hero .ldx-ct-tag { color: #ff8a92; }
.ldx-ct-hero .ldx-ct-tag::before { background: #ff8a92; }
.ldx-ct-hero__title {
  font-family: var(--ldx-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -.03em;
  color: #fff; margin: 0 0 1.5rem; max-width: 650px;
  animation: ldxFadeUp .9s var(--qs-ease) .1s both;
}
.ldx-ct-hero__title em { color: var(--qs-red); font-style: italic; }
.ldx-ct-hero__sub {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,.82); max-width: 480px;
  margin: 0 0 2.5rem;
  animation: ldxFadeUp .9s var(--qs-ease) .25s both;
}
.ldx-ct-hero__scroll-btn {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  padding: .75rem 1.5rem; border-radius: 50px;
  transition: background .25s, color .25s, border-color .25s;
  animation: ldxFadeUp .9s var(--qs-ease) .4s both;
}
.ldx-ct-hero__scroll-btn:hover { background: var(--qs-red); border-color: var(--qs-red); color: #fff; }
.ldx-ct-hero__scroll-line {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  z-index: 1; animation: ldxPulse 2s ease-in-out infinite;
}

/* Channels */
.ldx-ct-channels { background: var(--qs-bg2); padding: 4.5rem 2rem; }
.ldx-ct-channels__inner { max-width: var(--qs-page-max); margin: 0 auto; }
.ldx-ct-channels__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ldx-ct-channel-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--qs-card-bg); border: 1px solid var(--qs-card-border);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  text-decoration: none; color: var(--qs-fg);
  transition: transform .3s var(--qs-ease), box-shadow .3s var(--qs-ease), border-color .3s;
}
.ldx-ct-channel-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.1); border-color: var(--qs-red); }
.ldx-ct-channel-card--address:hover { transform: none; box-shadow: none; border-color: var(--qs-card-border); cursor: default; }
.ldx-ct-channel-card__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 8px;
  background: rgba(196,18,48,.09); color: var(--qs-red);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s;
}
.ldx-ct-channel-card:hover .ldx-ct-channel-card__icon { background: var(--qs-red); color: #fff; }
.ldx-ct-channel-card--address:hover .ldx-ct-channel-card__icon { background: rgba(196,18,48,.09); color: var(--qs-red); }
.ldx-ct-channel-card__body { flex: 1; min-width: 0; }
.ldx-ct-channel-card__body h3 { font-size: .9rem; font-weight: 700; margin: 0 0 .2rem; color: var(--qs-fg); }
.ldx-ct-channel-card__body p { font-size: .82rem; color: var(--qs-fg3); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldx-ct-channel-card__arrow { color: var(--qs-fg3); font-size: 1.1rem; transition: color .25s, transform .25s; flex-shrink: 0; }
.ldx-ct-channel-card:hover .ldx-ct-channel-card__arrow { color: var(--qs-red); transform: translateX(3px); }

/* Main form area */
.ldx-ct-main { padding: 5rem 2rem; }
.ldx-ct-main__inner {
  max-width: var(--qs-page-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 4rem; align-items: start;
}
@media (max-width: 900px) { .ldx-ct-main__inner { grid-template-columns: 1fr; } }

.ldx-ct-form-header h2 {
  font-family: var(--ldx-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  color: var(--qs-fg); margin: 0 0 .75rem;
}
.ldx-ct-form-header h2 em { color: var(--qs-red); font-style: italic; }
.ldx-ct-form-header p { color: var(--qs-fg3); font-size: .95rem; margin: 0 0 2.5rem; }

/* Form fields */
.ldx-ct-form { display: flex; flex-direction: column; gap: 1.25rem; }
.ldx-ct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 500px) { .ldx-ct-form__row { grid-template-columns: 1fr; } }
.ldx-ct-form__field { display: flex; flex-direction: column; gap: .45rem; }
.ldx-ct-form__field label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--qs-fg2); }
.ldx-ct-form__field label span { color: var(--qs-red); }
.ldx-ct-form__field input,
.ldx-ct-form__field textarea {
  background: var(--qs-input-bg); border: 1px solid var(--qs-input-border);
  border-radius: 8px; padding: .85rem 1rem;
  font-family: var(--ldx-sans); font-size: .98rem; color: var(--qs-fg);
  outline: none; transition: border-color .25s, box-shadow .25s;
  width: 100%; box-sizing: border-box; resize: vertical;
}
.ldx-ct-form__field input::placeholder,
.ldx-ct-form__field textarea::placeholder { color: var(--qs-fg3); }
.ldx-ct-form__field input:focus,
.ldx-ct-form__field textarea:focus { border-color: var(--qs-red); box-shadow: 0 0 0 3px rgba(196,18,48,.12); }

.ldx-ct-select-wrap { position: relative; }
.ldx-ct-select-wrap select {
  appearance: none; background: var(--qs-input-bg);
  border: 1px solid var(--qs-input-border); border-radius: 8px;
  padding: .85rem 2.5rem .85rem 1rem;
  font-family: var(--ldx-sans); font-size: .98rem; color: var(--qs-fg);
  width: 100%; outline: none; cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.ldx-ct-select-wrap select:focus { border-color: var(--qs-red); box-shadow: 0 0 0 3px rgba(196,18,48,.12); }
.ldx-ct-select-arrow { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--qs-fg3); pointer-events: none; }

.ldx-ct-form__field--check { flex-direction: row; align-items: flex-start; }
.ldx-ct-checkbox { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; font-size: .88rem; color: var(--qs-fg2); line-height: 1.5; }
.ldx-ct-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.ldx-ct-checkbox__box {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--qs-input-border); background: var(--qs-input-bg);
  margin-top: 1px; transition: background .2s, border-color .2s; position: relative;
}
.ldx-ct-checkbox input:checked + .ldx-ct-checkbox__box { background: var(--qs-red); border-color: var(--qs-red); }
.ldx-ct-checkbox input:checked + .ldx-ct-checkbox__box::after {
  content: ''; position: absolute; inset: 3px 2px 2px 5px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}
.ldx-ct-checkbox a { color: var(--qs-red); text-decoration: underline; }

.ldx-ct-form__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--qs-red); color: #fff; border: none; border-radius: 50px;
  padding: 1rem 2.5rem; font-family: var(--ldx-sans); font-size: .95rem;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, transform .25s var(--qs-ease);
  align-self: flex-start;
}
.ldx-ct-form__submit:hover { background: var(--qs-red-dark); transform: scale(1.03); }
.ldx-ct-form__submit:active { transform: scale(.98); }
.ldx-ct-form__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.ldx-ct-form__success {
  display: none; align-items: center; gap: 12px;
  background: rgba(196,18,48,.07); border: 1px solid rgba(196,18,48,.2);
  border-radius: 8px; padding: 1rem 1.25rem;
  font-size: .95rem; font-weight: 600; color: var(--qs-fg);
}
.ldx-ct-form__success.ldx-visible { display: flex; }
.ldx-ct-form__success svg { color: var(--qs-red); flex-shrink: 0; }

/* Aside */
.ldx-ct-aside { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 6rem; }
.ldx-ct-aside__block { background: var(--qs-card-bg); border: 1px solid var(--qs-card-border); border-radius: 10px; padding: 1.5rem; }
.ldx-ct-aside__title { font-family: var(--ldx-serif); font-size: 1.05rem; font-weight: 700; color: var(--qs-fg); margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--qs-border); }
.ldx-ct-hours { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ldx-ct-hours li { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.ldx-ct-hours li span { color: var(--qs-fg3); }
.ldx-ct-hours li strong { color: var(--qs-fg); font-weight: 600; }
.ldx-ct-aside__note { font-size: .78rem; color: var(--qs-fg3); margin: 0; padding-top: .75rem; border-top: 1px solid var(--qs-border); line-height: 1.6; }
.ldx-ct-social { display: flex; flex-direction: column; gap: .5rem; }
.ldx-ct-social__link { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--qs-fg2); text-decoration: none; transition: background .2s, color .2s; }
.ldx-ct-social__link:hover { background: rgba(196,18,48,.08); color: var(--qs-red); }
.ldx-ct-aside__tip { background: rgba(196,18,48,.06); border-color: rgba(196,18,48,.18); display: flex; align-items: flex-start; gap: 1rem; }
.ldx-ct-aside__tip-icon { flex-shrink: 0; color: var(--qs-red); margin-top: 2px; }
.ldx-ct-aside__tip strong { display: block; font-size: .9rem; color: var(--qs-fg); margin-bottom: .4rem; }
.ldx-ct-aside__tip p { font-size: .82rem; color: var(--qs-fg2); line-height: 1.6; margin: 0; }

@media (max-width: 600px) {
  .ldx-ct-hero { min-height: 70vh; }
  .ldx-ct-aside { position: static; }
}

/* ── Keyframes ── */
@keyframes ldxFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ldxHeroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@keyframes ldxPulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: .8; }
}



/* ============================================================
   POLÍTICA DE PRIVACIDAD — ldx-pp (minimal)
   ============================================================ */

.ldx-pp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* Header */
.ldx-pp-header {
  max-width: 680px;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--qs-border);
}
.ldx-pp-title {
  font-family: var(--ldx-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--qs-fg);
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
.ldx-pp-meta {
  font-size: .82rem;
  color: var(--qs-fg3);
  margin: 0 0 1.25rem;
}
.ldx-pp-intro {
  font-size: .98rem;
  line-height: 1.8;
  color: var(--qs-fg2);
  margin: 0;
}

/* Layout */
.ldx-pp-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 780px) {
  .ldx-pp-body { grid-template-columns: 1fr; gap: 2rem; }
  .ldx-pp-toc { position: static; }
}

/* TOC */
.ldx-pp-toc {
  position: sticky;
  top: 5rem;
}
.ldx-pp-toc__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--qs-fg3);
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--qs-border);
}
.ldx-pp-toc__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .05rem;
}
.ldx-pp-toc__link {
  display: block;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--qs-fg3);
  text-decoration: none;
  padding: .35rem .5rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.ldx-pp-toc__link:hover,
.ldx-pp-toc__link.ldx-pp-toc--active {
  color: var(--qs-red);
  background: rgba(196,18,48,.05);
  border-left-color: var(--qs-red);
}

/* Content */
.ldx-pp-content { max-width: 680px; }

.ldx-pp-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--qs-border);
}
.ldx-pp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ldx-pp-section h2 {
  font-family: var(--ldx-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--qs-fg);
  margin: 0 0 1rem;
}
.ldx-pp-section p {
  font-size: .97rem;
  line-height: 1.85;
  color: var(--qs-fg2);
  margin: 0 0 .9rem;
}
.ldx-pp-section p:last-child { margin-bottom: 0; }
.ldx-pp-section ul {
  margin: .5rem 0 .9rem 1.2rem;
  padding: 0;
  display: flex; flex-direction: column; gap: .5rem;
}
.ldx-pp-section ul li {
  font-size: .97rem;
  line-height: 1.75;
  color: var(--qs-fg2);
}
.ldx-pp-section a {
  color: var(--qs-red);
  text-decoration: underline;
  text-decoration-color: rgba(196,18,48,.4);
  text-underline-offset: 2px;
}
.ldx-pp-section a:hover { text-decoration-color: var(--qs-red); }

/* PP Hero */
.ldx-pp-hero {
  position: relative;
  background: #111111;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}
.ldx-pp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.ldx-pp-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.ldx-pp-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #ff8a92;
  background: rgba(196,18,48,.2);
  border: 1px solid rgba(196,18,48,.35);
  padding: .3rem .85rem;
  border-radius: 50px;
}
.ldx-pp-updated {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.ldx-pp-hero__title {
  font-family: var(--ldx-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.03em;
  color: #ffffff;
  margin: 0 0 1.5rem;
  animation: ldxFadeUp .8s var(--qs-ease) both;
}
.ldx-pp-hero__title em {
  color: var(--ldx-rojo, #c41230);
  font-style: italic;
}
.ldx-pp-hero__sub {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0;
  animation: ldxFadeUp .8s var(--qs-ease) .15s both;
}
.ldx-pp-hero__deco {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  user-select: none;
  pointer-events: none;
}
.ldx-pp-deco-word {
  font-family: var(--ldx-serif);
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 700;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.04);
  white-space: nowrap;
  line-height: 1;
}
