/*
Theme Name:   Astra Child — Libre de Cadenas
Template:     astra
Version:      2.0.0
Description:  Child theme de Astra para Libre de Cadenas
Author:       Libre de Cadenas
*/

/* =========================================
   TOKENS
   ========================================= */
:root {
  --navy:       #0D1B2A;
  --navy-dark:  #080F18;
  --navy-mid:   #102236;
  --teal:       #0EA5E9;
  --teal-dark:  #0284C7;
  --gold:       #F59E0B;
  --gold-dark:  #D97706;
  --white:      #FFFFFF;
  --offwhite:   #F8FAFC;
  --surface:    #F1F5F9;
  --border:     #E2E8F0;
  --text:       #0F172A;
  --text-soft:  #475569;
  --text-muted: #94A3B8;

  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --r:    6px;
  --r-lg: 12px;
  --r-xl: 20px;
  --shadow:       0 4px 20px rgba(13,27,42,.08), 0 1px 4px rgba(13,27,42,.04);
  --shadow-hover: 0 16px 48px rgba(13,27,42,.16), 0 4px 16px rgba(13,27,42,.08);
  --header-h: 72px;

  --error:         #dc2626;
  --error-bg:      #fef2f2;
  --error-border:  #fecaca;
  --success:       #065f46;
  --success-bg:    #ecfdf5;
  --success-border:#a7f3d0;
  --warn:          #92400e;
  --warn-bg:       #fffbeb;
  --warn-border:   #fde68a;
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ldc-home-page {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ldc-home-page * { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 20px; }
h3 { font-size: 1.05rem; margin-bottom: 12px; font-family: var(--font-body); font-weight: 600; }

p { color: var(--text-soft); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 0; }
img { max-width: 100%; display: block; }

/* =========================================
   LAYOUT
   ========================================= */
.ldc-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}
.ldc-section { padding: 104px 0; }
.ldc-section--offwhite { background: var(--offwhite); }
.ldc-section--navy     { background: var(--navy); }

.ldc-center { text-align: center; }
.ldc-center p, .ldc-center .ldc-lead { margin-left: auto; margin-right: auto; }
.ldc-light { color: var(--white) !important; }

/* =========================================
   TYPOGRAPHY UTILITIES
   ========================================= */
.ldc-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ldc-eyebrow--teal { color: var(--teal); }

.ldc-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 48px;
  text-align: justify;
}
.ldc-lead--light { color: rgba(255,255,255,.68); }

/* =========================================
   BUTTONS
   ========================================= */
.ldc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 28px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.ldc-btn--lg { padding: 15px 36px; font-size: 0.95rem; }

.ldc-btn--primary {
  background: var(--teal);
  color: var(--white) !important;
  border-color: var(--teal);
}
.ldc-btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 4px 20px rgba(14,165,233,.35);
  transform: translateY(-1px);
}

.ldc-btn--gold {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
}
.ldc-btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 20px rgba(245,158,11,.35);
  transform: translateY(-1px);
}

.ldc-btn--ghost {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255,255,255,.35);
}
.ldc-btn--ghost:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.65);
}

.ldc-btn--outline {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--border);
}
.ldc-btn--outline:hover {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}
.ldc-section--navy .ldc-btn--outline {
  color: var(--white) !important;
  border-color: rgba(255,255,255,.4);
}
.ldc-section--navy .ldc-btn--outline:hover {
  background: var(--white);
  color: var(--navy) !important;
  border-color: var(--white);
}

.ldc-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 64px;
}

/* =========================================
   HEADER
   ========================================= */
.ldc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13,27,42,.88);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.ldc-header--scrolled {
  background: rgba(13,27,42,.97);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.25);
}
.ldc-header--hidden { transform: translateY(-100%); }

.ldc-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ldc-logo { text-decoration: none !important; display: flex; align-items: center; }
.ldc-logo-img { height: 52px; width: auto; display: block; filter: brightness(0) invert(1); }
.ldc-logo-img--full { height: 80px; }
.ldc-logo__text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.ldc-nav__list {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.ldc-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.72) !important;
  padding: 7px 14px;
  border-radius: var(--r);
  transition: color .15s ease, background .15s ease;
  text-decoration: none !important;
}
.ldc-nav__link:hover { color: var(--white) !important; background: rgba(255,255,255,.08); }
.ldc-nav__link--active { color: var(--white) !important; position: relative; }
.ldc-nav__link--active::after { content: ''; position: absolute; bottom: 3px; left: 14px; right: 14px; height: 2px; background: var(--teal); border-radius: 1px; }
.ldc-nav__link--cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 7px 18px;
  font-weight: 600;
}
.ldc-nav__link--cta:hover { background: var(--teal-dark) !important; color: var(--white) !important; }

.ldc-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.ldc-nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: all .22s ease;
}
.ldc-nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.ldc-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.ldc-nav__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.ldc-mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--navy-dark);
  padding: 24px 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 999;
}
.ldc-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.ldc-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.07); }
.ldc-mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,.80);
  text-decoration: none;
}

/* Admin bar offset */
.admin-bar .ldc-header { top: 32px; }
.admin-bar .ldc-mobile-menu { top: calc(var(--header-h) + 32px); }

/* =========================================
   HERO
   ========================================= */
.ldc-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 96px) 40px 112px;
  background: var(--navy-dark);
  overflow: hidden;
}

.ldc-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 92% 55%, rgba(14,165,233,.16) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 10% 80%, rgba(14,165,233,.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 65% 5%,  rgba(245,158,11,.07) 0%, transparent 60%),
    linear-gradient(155deg, #080F18 0%, #0D1B2A 50%, #0E2035 100%);
  pointer-events: none;
}

.ldc-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 36px 36px;
}

.ldc-hero__bg::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(14,165,233,.30) 30%, rgba(245,158,11,.20) 70%, transparent 100%);
}

.ldc-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
}

.ldc-hero .ldc-eyebrow { color: var(--teal); opacity: .9; }

.ldc-hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 24px;
  line-height: 1.08;
}

.ldc-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.62);
  line-height: 1.78;
  max-width: 52ch;
  margin-bottom: 0;
}

.ldc-hero__icon {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* =========================================
   TRUST BAR
   ========================================= */
.ldc-trust-bar {
  background: rgba(8,15,24,.98);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 22px 0;
}
.ldc-trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ldc-trust-bar__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.55);
  padding: 2px 0;
}
.ldc-trust-bar__list svg { color: var(--teal); flex-shrink: 0; opacity: .75; }

/* =========================================
   GAP LIST (el problema)
   ========================================= */
.ldc-gap-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 44px 0;
}
.ldc-gap-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow .2s ease;
}
.ldc-gap-item:hover { box-shadow: var(--shadow); }
.ldc-gap-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(14,165,233,.08);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.ldc-gap-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.ldc-gap-item p { margin: 0; font-size: 0.9rem; line-height: 1.65; text-align: justify; }

.ldc-callout {
  background: var(--offwhite);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 22px 28px;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-top: 44px;
}
.ldc-callout strong { color: var(--navy); }

/* =========================================
   FEATURE CARDS
   ========================================= */
.ldc-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 52px 0;
}
.ldc-feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-top: none;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}
.ldc-feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ldc-feature-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(14,165,233,.08);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.ldc-feature-card__body { flex: 1; }
.ldc-feature-card h3 { color: var(--navy); margin-bottom: 8px; }
.ldc-feature-card p { font-size: 0.9rem; line-height: 1.70; margin: 0; text-align: justify; }

.ldc-quote {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--navy);
  text-align: center;
  border: none;
  padding: 56px 0 0;
  margin: 0;
  quotes: none;
  line-height: 1.4;
}

/* =========================================
   DOS VÍAS
   ========================================= */
.ldc-two-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}
.ldc-track {
  border-radius: var(--r-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.ldc-track--dark {
  background: linear-gradient(145deg, #080F18 0%, #0D1B2A 55%, #102338 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.ldc-track--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.ldc-track--dark::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.ldc-track--light {
  background: var(--white);
  border: 1.5px solid var(--border);
}
.ldc-track--light::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
}

.ldc-track__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.ldc-track--dark .ldc-track__tag {
  background: rgba(245,158,11,.15);
  color: var(--gold);
  border: 1px solid rgba(245,158,11,.20);
}
.ldc-track__tag--teal {
  background: rgba(14,165,233,.10);
  color: var(--teal);
  border: 1px solid rgba(14,165,233,.20);
}

.ldc-track--dark h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.ldc-track--dark p { color: rgba(255,255,255,.65); position: relative; z-index: 1; font-size: 0.92rem; text-align: justify; }
.ldc-track--light h3 { color: var(--navy); font-family: var(--font-head); font-size: 1.6rem; font-weight: 400; line-height: 1.2; }
.ldc-track--light p  { color: var(--text-soft); font-size: 0.92rem; text-align: justify; }

.ldc-checklist { list-style: none; margin: 20px 0 32px; padding: 0; position: relative; z-index: 1; }
.ldc-checklist li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ldc-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.8rem;
}
.ldc-checklist--light li { color: rgba(255,255,255,.75); }
.ldc-checklist--light li::before { color: var(--gold); }
.ldc-checklist li::before { color: var(--teal); }

/* =========================================
   SELECTIVIDAD
   ========================================= */
.ldc-section--navy {
  position: relative;
  overflow: hidden;
}
.ldc-section--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.ldc-divider-gold {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border: none;
  margin: 44px auto;
}
.ldc-selectivity-close {
  font-size: 1.1rem;
  color: rgba(255,255,255,.68);
  line-height: 1.78;
}
.ldc-selectivity-close strong { color: var(--white); }

/* =========================================
   FORMULARIO
   ========================================= */
.ldc-form {
  margin-top: 52px;
  background: var(--offwhite);
  border-radius: var(--r-xl);
  padding: 52px 48px;
  border: 1px solid var(--border);
}
.ldc-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.ldc-form__field { margin-bottom: 20px; }
.ldc-form__field:last-child { margin-bottom: 0; }

.ldc-form__field label {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.ldc-form__field label span { color: var(--teal); }

.ldc-form__field input,
.ldc-form__field select,
.ldc-form__field textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  appearance: none;
  -webkit-appearance: none;
  height: auto;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ldc-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}
.ldc-form__field input:focus,
.ldc-form__field select:focus,
.ldc-form__field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.ldc-form__field input::placeholder,
.ldc-form__field textarea::placeholder { color: var(--text-muted); }
.ldc-form__field textarea { resize: vertical; min-height: 140px; }

.ldc-form__error { display: block; color: var(--error); font-size: 0.78rem; margin-top: 5px; }
.ldc-form__field--error input,
.ldc-form__field--error select,
.ldc-form__field--error textarea { border-color: var(--error) !important; }
.ldc-form__error--privacy { margin: 8px 0 0; }

.ldc-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 68px;
  padding-top: 0;
  border-top: none;
}
.ldc-form__legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 38ch;
  line-height: 1.6;
}

.ldc-contact-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.ldc-contact-email svg { color: var(--teal); flex-shrink: 0; }
.ldc-contact-email a { color: var(--text-soft); font-weight: 600; }
.ldc-contact-email a:hover { color: var(--teal); }

.ldc-alert {
  padding: 14px 18px;
  border-radius: var(--r);
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}
.ldc-alert--ok    { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.ldc-alert--error { background: var(--error-bg);   color: var(--error);   border: 1px solid var(--error-border); }

/* Checkbox de consentimiento en el formulario de contacto */
.ldc-form__privacy {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}
.ldc-form__privacy input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ldc-form__privacy label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.ldc-form__privacy-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 8px 0 0;
  padding-left: 28px;
}
.ldc-form__privacy label a { color: var(--teal); text-decoration: underline; }
.ldc-form__privacy label::before {
  content: '';
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  margin-top: 1px;
  transition: background .15s, border-color .15s;
}
.ldc-form__privacy input[type="checkbox"]:checked + label::before {
  background: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================
   FOOTER
   ========================================= */
.ldc-footer {
  background: var(--navy-dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,.50);
  border-top: 1px solid rgba(255,255,255,.06);
}
.ldc-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ldc-footer__logo { margin-bottom: 16px; }
.ldc-footer__logo .ldc-logo-img { height: 80px; width: auto; filter: brightness(0) invert(1); opacity: .75; }
.ldc-footer__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}
.ldc-footer__desc { font-size: 0.875rem; line-height: 1.7; margin-top: 16px; color: rgba(255,255,255,.68); text-align: justify; }
.ldc-footer__col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.ldc-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ldc-footer__col li { margin-bottom: 10px; }
.ldc-footer__col a { color: rgba(255,255,255,.52); font-size: 0.875rem; }
.ldc-footer__col a:hover { color: rgba(255,255,255,.88); text-decoration: none; }
.ldc-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,.28);
}
.ldc-footer__bottom p { margin: 0; color: inherit; }
.ldc-footer__bottom a { color: rgba(255,255,255,.38); }
.ldc-footer__bottom a:hover { color: rgba(255,255,255,.68); text-decoration: none; }

/* =========================================
   QUIÉNES SOMOS
   ========================================= */
.ldc-about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: center;
}
.ldc-about__img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  display: block;
}
.ldc-about__tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.ldc-about__role {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.ldc-about__content p { text-align: justify; }

/* =========================================
   NEWSLETTER
   ========================================= */
.ldc-nl-free { font-size: 0.82rem; color: rgba(255,255,255,.52); margin: -30px 0 28px; }
.ldc-nl-wrap { max-width: 520px; margin: 0 auto; }
.ldc-nl-form { width: 100%; }
.ldc-nl-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.ldc-nl-input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ldc-nl-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.ldc-nl-input::placeholder { color: var(--text-muted); }
.ldc-nl-fields .ldc-btn { width: 100%; justify-content: center; }
.ldc-nl-legal { margin: 0; text-align: left; }
.ldc-nl-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ldc-nl-legal label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.ldc-nl-legal label::before {
  content: '';
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 4px;
  background: transparent;
  margin-top: 1px;
  transition: background .15s ease, border-color .15s ease;
}
.ldc-nl-check:checked + label::before {
  background: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.ldc-nl-legal a { color: rgba(255,255,255,.70); text-decoration: underline; }
.ldc-nl-legal--error label::before { border-color: var(--error); }
.ldc-nl-field-wrap { display: flex; flex-direction: column; gap: 4px; }
.ldc-nl-input--error { border-color: var(--error) !important; }
.ldc-nl-check-error {
  font-size: 0.78rem;
  color: var(--error);
  margin: 4px 0 0;
}
.ldc-nl-success__text {
  font-size: 1rem;
  color: var(--white);
  padding: 28px 32px;
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.20);
  border-radius: var(--r-lg);
  margin: 0;
}
.ldc-nl-success__text p { color: var(--white) !important; }
.ldc-nl-success__text strong { color: var(--white); }
.ldc-nl-success__text em { color: rgba(255,255,255,.85); }

/* =========================================
   FAQ
   ========================================= */
.ldc-wrap--narrow { max-width: 760px; }

.ldc-faq-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin: 32px 0 0;
}
.ldc-faq-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  letter-spacing: .01em;
}
.ldc-faq-tab:hover { color: var(--teal); }
.ldc-faq-tab--active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.ldc-faq-group { margin-top: 8px; }
.ldc-faq-group[hidden] { display: none; }

.ldc-faq-item {
  border-bottom: 1px solid var(--border);
}
.ldc-faq-item:first-child { border-top: 1px solid var(--border); }

.ldc-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 48px 20px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  line-height: 1.5;
  transition: color .15s;
}
.ldc-faq-q:hover { color: var(--teal); }
.ldc-faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  transition: transform .25s;
}
.ldc-faq-item.is-open .ldc-faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.ldc-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  padding-top: 0;
  padding-bottom: 0;
}
.ldc-faq-item.is-open .ldc-faq-a {
  max-height: 600px;
  padding-top: 12px;
  padding-bottom: 20px;
  padding-left: 20px;
}
.ldc-faq-a p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0 0 12px;
  line-height: 1.7;
  text-align: justify;
}
.ldc-faq-a p:last-child { margin-bottom: 0; }

/* =========================================
   YOUTUBE
   ========================================= */
.ldc-yt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  justify-content: center;
}
.ldc-yt-card {
  flex: 0 0 calc(33.333% - 19px);
  min-width: 240px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ldc-yt-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-dark);
}
.ldc-yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ldc-yt-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
  margin: 0;
}

/* =========================================
   CONTENIDO / VÍDEOS
   ========================================= */
.ldc-videos-h2 { margin-bottom: 48px; }
.ldc-videos-cta { text-align: center; margin-top: 64px; }
.ldc-videos-cta__note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 900px) {
  .ldc-two-tracks { grid-template-columns: 1fr; }
  .ldc-footer__grid { grid-template-columns: 1fr 1fr; }
  .ldc-yt-card { flex: 0 0 calc(50% - 14px); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .ldc-section { padding: 72px 0; }
  .ldc-wrap { padding: 0 20px; }
  .ldc-header__inner { padding: 0 20px; }

  .ldc-hero { padding: calc(var(--header-h) + 56px) 20px 80px; min-height: auto; }
  .ldc-hero__icon { display: none; }
  .ldc-about { grid-template-columns: 1fr; gap: 36px; }
  .ldc-about__img { max-width: 280px; margin: 0 auto; }
  .ldc-cta-group { flex-direction: column; align-items: flex-start; }
  .ldc-cta-group .ldc-btn { width: 100%; text-align: center; }

  .ldc-trust-bar__list { gap: 8px 24px; }

  .ldc-nav__list { display: none; }
  .ldc-nav__toggle { display: flex; }

  .ldc-form { padding: 32px 24px; }
  .ldc-form__grid { grid-template-columns: 1fr; }
  .ldc-form__footer { flex-direction: column; align-items: stretch; }
  .ldc-form__footer .ldc-btn { text-align: center; }

  .ldc-track { padding: 36px 28px; }
  .ldc-track--dark h3,
  .ldc-track--light h3 { font-size: 1.35rem; }

  .ldc-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .ldc-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .ldc-hero h1 { font-size: 2.1rem; }
  .ldc-trust-bar { display: none; }
  .ldc-gap-item { flex-direction: column; }
  .ldc-yt-card { flex: 0 0 100%; max-width: 100%; }
}

/* =========================================
   PÁGINAS LEGALES
   ========================================= */
body.ldc-legal-page { background: var(--white); }

.ldc-legal {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 120px;
}

.ldc-legal h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 8px;
  color: var(--navy);
}
.ldc-legal__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 52px;
}
.ldc-legal h2 {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 48px;
  margin-bottom: 14px;
}
.ldc-legal h3 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 10px;
}
.ldc-legal p { font-size: 0.93rem; line-height: 1.85; color: var(--text-soft); text-align: justify; hyphens: auto; }
.ldc-legal ul, .ldc-legal ol { padding-left: 20px; margin-bottom: 16px; }
.ldc-legal li { font-size: 0.93rem; line-height: 1.75; color: var(--text-soft); text-align: justify; hyphens: auto; margin-bottom: 6px; }
.ldc-legal a { color: var(--teal); }
.ldc-legal a:hover { text-decoration: underline; }
.ldc-legal strong { color: var(--text); }

.ldc-legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 16px 0 28px;
}
.ldc-legal table th,
.ldc-legal table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.ldc-legal table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ldc-legal table td { color: var(--text-soft); }

@media (max-width: 600px) {
  .ldc-legal { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
  .ldc-legal table { font-size: 0.8rem; }
  .ldc-legal table th, .ldc-legal table td { padding: 8px 10px; }
}

/* =========================================
   HOME — TARJETAS VÍAS (versión grande)
   ========================================= */
.ldc-home-vias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ldc-home-via {
  border-radius: var(--r-xl);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}
.ldc-home-via--dark {
  background: var(--navy);
  color: var(--white);
}
.ldc-home-via--light {
  background: var(--offwhite);
  border: 1px solid var(--border);
  color: var(--text);
}
.ldc-home-via__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 24px;
  width: fit-content;
}
.ldc-home-via--dark .ldc-home-via__tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.ldc-home-via--light .ldc-home-via__tag { background: rgba(14,165,233,.1); color: var(--teal-dark); }
.ldc-home-via h3 { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.25; margin-bottom: 16px; }
.ldc-home-via--dark h3 { color: var(--white); }
.ldc-home-via--light h3 { color: var(--text); }
.ldc-home-via p { font-size: 0.95rem; line-height: 1.75; margin-bottom: 24px; }
.ldc-home-via--dark p { color: rgba(255,255,255,.7); }
.ldc-home-via--light p { color: var(--text-soft); }
.ldc-home-via ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ldc-home-via ul li {
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.ldc-home-via ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}
.ldc-home-via--dark ul li { color: rgba(255,255,255,.75); }
.ldc-home-via--dark ul li::before { color: var(--gold); }
.ldc-home-via--light ul li { color: var(--text-soft); }
.ldc-home-via--light ul li::before { color: var(--teal); }

/* =========================================
   PÁGINAS INTERIORES — HERO
   ========================================= */
.ldc-page-hero {
  padding: calc(var(--header-h) + 64px) 0 72px;
  background: var(--navy-dark);
  color: var(--white);
}
.ldc-page-hero--light {
  background: var(--offwhite);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.ldc-page-hero .ldc-eyebrow { margin-bottom: 16px; }
.ldc-page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.ldc-page-hero--light h1 { color: var(--text); }
.ldc-page-hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  max-width: 56ch;
  margin-bottom: 36px;
}
.ldc-page-hero--light .ldc-page-hero__sub { color: var(--text-soft); }

/* =========================================
   TEST DE AUTOEVALUACIÓN
   ========================================= */
.ldc-test-wrap { max-width: 660px; margin: 0 auto; }
.ldc-test__info {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding: 10px 14px;
  margin-bottom: 32px;
  line-height: 1.6;
  background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0;
}
.ldc-test__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow);
}
.ldc-test__intro-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}
.ldc-test__intro-text { font-size: 0.95rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 28px; }
.ldc-test__context-label { font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.ldc-test__context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.ldc-test__ctx-btn {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  text-align: center;
  transition: border-color .15s, color .15s, background .15s;
}
.ldc-test__ctx-btn:hover, .ldc-test__ctx-btn.is-active {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(14,165,233,.05);
}
.ldc-test__progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 28px;
  overflow: hidden;
}
.ldc-test__progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  transition: width .35s ease;
}
.ldc-test__step-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.ldc-test__question {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}
.ldc-test__btn-group { display: flex; flex-direction: column; gap: 10px; }
.ldc-test__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color .15s, background .15s;
  width: 100%;
  text-align: left;
}
.ldc-test__opt:hover { border-color: var(--teal); background: rgba(14,165,233,.04); }
.ldc-test__opt-icon { font-size: 1.1rem; }
.ldc-test__back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 16px;
}
.ldc-test__back-btn:hover { color: var(--text-soft); }

/* Resultado */
.ldc-test__result { text-align: center; }
.ldc-test__result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.badge--low  { background: var(--success-bg); color: var(--success); }
.badge--leve { background: var(--warn-bg);    color: var(--warn); }
.badge--mid  { background: var(--warn-bg);    color: var(--warn); }
.badge--high { background: var(--error-bg);   color: var(--error); }
.ldc-test__result-h {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.ldc-test__result-body {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto 28px;
}
.ldc-test__result-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ldc-test__restart-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 8px;
}
.ldc-test__restart-btn:hover { color: var(--text-soft); border-color: var(--text-muted); }

/* =========================================
   PÁGINA CONTENIDO — GRID VÍDEOS
   ========================================= */
.ldc-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.ldc-content-grid .ldc-yt-card {
  max-width: none;
}
.ldc-content-grid .ldc-yt-title {
  color: var(--text);
  font-size: 1.05rem;
}
.ldc-content-grid .ldc-yt-card:last-child:nth-child(odd) {
  grid-column: 1 / 2;
}

/* =========================================
   TEST — DESGLOSE POR DIMENSIONES
   ========================================= */
.ldc-test__dims {
  margin: 28px 0 32px;
  padding: 24px 28px;
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ldc-test__dims-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.ldc-test__dim {
  margin-bottom: 18px;
}
.ldc-test__dim:last-child { margin-bottom: 0; }
.ldc-test__dim-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.ldc-test__dim-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.ldc-test__dim-score {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.ldc-test__dim-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.ldc-test__dim-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  transition: width .5s ease;
}

/* =========================================
   BLOG — LISTADO (home.php)
   ========================================= */
.ldc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.ldc-blog-grid:has(> article:only-child) {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
.ldc-blog-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.ldc-blog-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); }
.ldc-blog-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.ldc-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.ldc-blog-card:hover .ldc-blog-card__thumb img { transform: scale(1.04); }
.ldc-blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ldc-blog-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ldc-blog-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 10px;
}
.ldc-blog-card__title a {
  color: inherit;
  text-decoration: none;
}
.ldc-blog-card__title a:hover { color: var(--teal-dark); }
.ldc-blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}
.ldc-blog-card__readmore {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
}
.ldc-blog-card__readmore:hover { text-decoration: underline; }
.ldc-blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}
.ldc-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.ldc-blog-pagination .page-numbers:hover,
.ldc-blog-pagination .page-numbers.current {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* =========================================
   BLOG — ENTRADA INDIVIDUAL (single.php)
   ========================================= */
.ldc-post-header {
  padding: calc(var(--header-h) + 56px) 0 48px;
  background: var(--navy);
}
.ldc-post-header .ldc-post-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.ldc-post-header .ldc-post-meta a { color: var(--teal); text-decoration: none; }
.ldc-post-header .ldc-post-meta a:hover { text-decoration: underline; }
.ldc-post-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin: 0 0 20px;
}
.ldc-post-header .ldc-post-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 620px;
}
.ldc-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.ldc-post-body h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  margin: 2.4em 0 .7em;
  color: var(--navy);
}
.ldc-post-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 2em 0 .5em;
  color: var(--navy);
}
.ldc-post-body h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 1.8em 0 .4em;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: .08em;
}
.ldc-post-body p { margin: 0 0 1.4em; }
.ldc-post-body ul,
.ldc-post-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.6em;
}
.ldc-post-body li { margin-bottom: .5em; }
.ldc-post-body a { color: var(--teal-dark); }
.ldc-post-body a:hover { text-decoration: underline; }
.ldc-post-body blockquote {
  border-left: 3px solid var(--teal);
  margin: 2em 0;
  padding: 12px 24px;
  background: var(--offwhite);
  font-style: italic;
  color: var(--text-soft);
}
.ldc-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}
.ldc-post-body figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -12px;
  margin-bottom: 1.5em;
}
.ldc-post-body > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text);
}
.ldc-post-body hr,
.ldc-post-body .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.8em auto;
  max-width: 120px;
}
.ldc-post-author {
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  margin-top: 24px;
  font-style: italic;
}
.ldc-post-nav {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.ldc-post-nav__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.ldc-post-nav__link {
  font-size: 0.88rem;
  color: var(--teal-dark);
  text-decoration: none;
  max-width: 48%;
}
.ldc-post-nav__link:hover { text-decoration: underline; }
.ldc-post-nav__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ldc-post-nav__prev { text-align: left; }
.ldc-post-nav__next { text-align: right; }

/* =========================================
   RESPONSIVO — NUEVAS SECCIONES
   ========================================= */
@media (max-width: 900px) {
  .ldc-home-vias { grid-template-columns: 1fr; }
  .ldc-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ldc-home-via { padding: 36px 28px; }
  .ldc-test__card { padding: 28px 20px; }
  .ldc-test__context-grid { grid-template-columns: 1fr; }
  .ldc-content-grid { grid-template-columns: 1fr; }
  .ldc-page-hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .ldc-blog-grid { grid-template-columns: 1fr; }
  .ldc-post-nav__inner { flex-direction: column; gap: 16px; }
  .ldc-post-nav__link { max-width: 100%; }
  .ldc-test__dims { padding: 20px 16px; }
}
