/* ============================================================================
   LÍDERES — Sistema de estilos completo
   Archivo único para: admin (repeaters), home block, archive, single,
   taxonomías, modo oscuro y responsive.
   Usa tokens del theme: --red, --red-dark, --red-darker, --red-light,
   --text-primary, --text-secondary, --card-bg, --border-color,
   --radius, --radius-lg, --container, --shadow-sm/md/lg, --font-sans.
   ============================================================================ */

/* Tokens locales (fallbacks por si algún token del theme no está definido) */
.lid-root,
.lid-home,
.lid-archive,
.lid-single,
.dsl-lid-admin {
    --lid-red: #d3403d;
    --lid-red-dark: #a71717;
    --lid-red-darker: #740607;
    --lid-red-light: #e85a5a;
    --lid-red-50: #fff5f5;
    --lid-red-100: #fee2e2;
    --lid-red-200: #fecaca;
    --lid-red-700: #b91c1c;
    --lid-red-900: #450a0a;

    --lid-gold: #b8860b;
    --lid-gold-light: #fcd34d;
    --lid-blue: #1e40af;
    --lid-blue-light: #60a5fa;

    --lid-green: #16a34a;
    --lid-amber: #f59e0b;
    --lid-yellow: #eab308;
    --lid-red-strong: #dc2626;
    --lid-gray: #6b7280;
}

/* ============================================================================
   1. HOME BLOCK — "Protagonistas del poder"
   ============================================================================ */

.lid-home {
    padding: 48px 0 56px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(211, 64, 61, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(211, 64, 61, 0.05) 0%, transparent 55%);
}

.lid-home__inner {
    max-width: var(--container, 1280px);
    margin: 0 auto;
    padding: 0 20px;
}

.lid-home__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.lid-home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--lid-red);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.lid-home__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lid-red);
    box-shadow: 0 0 0 4px rgba(211, 64, 61, 0.15);
}

.lid-home__title {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    color: var(--text-primary, #111);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lid-home__subtitle {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary, #555);
    font-weight: 500;
    max-width: 600px;
    line-height: 1.5;
}

.lid-home__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--lid-red) 0%, var(--lid-red-dark) 100%);
    color: #fff;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(211, 64, 61, 0.25);
    white-space: nowrap;
}

.lid-home__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(211, 64, 61, 0.35);
}

.lid-home__cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.lid-home__cta:hover svg {
    transform: translateX(3px);
}

/* Carrusel de rostros */
.lid-home__track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

/* Card de líder en home */
.lid-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--lid-red-50) 0%, var(--lid-red-100) 100%);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary, #111);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    isolation: isolate;
    aspect-ratio: 3 / 4.2;
    border: 1px solid rgba(211, 64, 61, 0.08);
}

.lid-home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(211, 64, 61, 0.35) 0%, transparent 60%);
    opacity: 0.4;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.lid-home-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 34px rgba(211, 64, 61, 0.22);
}

.lid-home-card:hover::before {
    opacity: 0.7;
}

.lid-home-card__img {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.lid-home-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.lid-home-card__img--png img {
    object-fit: contain;
    object-position: bottom center;
    transform: scale(1.05);
}

.lid-home-card:hover .lid-home-card__img img {
    transform: scale(1.06);
}

.lid-home-card:hover .lid-home-card__img--png img {
    transform: scale(1.1);
}

.lid-home-card__info {
    position: relative;
    z-index: 2;
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 45%, #fff 100%);
    min-height: 72px;
}

.lid-home-card__name {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary, #111);
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.lid-home-card__cargo {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state home (si no hay destacados) */
.lid-home--empty {
    display: none;
}

/* ============================================================================
   2. ARCHIVE — /lideres/
   ============================================================================ */

.lid-archive {
    background: var(--bg, #fafafa);
    padding-bottom: 60px;
}

.lid-archive__hero {
    position: relative;
    padding: 64px 20px 48px;
    background: linear-gradient(135deg, var(--lid-red-900) 0%, var(--lid-red-darker) 45%, var(--lid-red-dark) 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.lid-archive__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.lid-archive__hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container, 1280px);
    margin: 0 auto;
}

.lid-archive__hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 12px;
}

.lid-archive__hero-title {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
}

.lid-archive__hero-desc {
    font-size: 16px;
    line-height: 1.55;
    max-width: 640px;
    opacity: 0.92;
    margin: 0;
}

.lid-archive__hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lid-archive__hero-stat b {
    display: block;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.lid-archive__hero-stat span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
    margin-top: 4px;
}

/* Filtros sticky */
.lid-archive__filters {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    padding: 14px 20px;
}

.lid-archive__filters-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: var(--container, 1280px);
    margin: 0 auto;
}

.lid-archive__filters-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary, #555);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 6px;
}

.lid-archive__filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #111);
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
}

.lid-archive__filter-btn:hover {
    border-color: var(--lid-red);
    color: var(--lid-red);
}

.lid-archive__filter-btn.is-active {
    background: linear-gradient(135deg, var(--lid-red) 0%, var(--lid-red-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(211, 64, 61, 0.28);
}

.lid-archive__search {
    flex: 1 1 180px;
    max-width: 280px;
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #e5e7eb);
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

.lid-archive__search:focus {
    outline: none;
    border-color: var(--lid-red);
    box-shadow: 0 0 0 3px rgba(211, 64, 61, 0.15);
}

/* Grid */
.lid-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    max-width: var(--container, 1280px);
    margin: 34px auto 0;
    padding: 0 20px;
}

.lid-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary, #111);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
}

.lid-card:hover {
    transform: translateY(-4px);
    border-color: var(--lid-red);
    box-shadow: 0 14px 30px rgba(211, 64, 61, 0.15);
}

.lid-card__img {
    position: relative;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(180deg, var(--lid-red-50) 0%, var(--lid-red-100) 100%);
    overflow: hidden;
}

.lid-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.lid-card__img--png img {
    object-fit: contain;
    object-position: bottom center;
}

.lid-card:hover .lid-card__img img {
    transform: scale(1.05);
}

.lid-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lid-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff;
    color: var(--text-primary, #111);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.lid-badge.sector--politica      { background: var(--lid-red); color: #fff; }
.lid-badge.sector--empresarial   { background: var(--lid-gold); color: #fff; }
.lid-badge.sector--institucional { background: var(--lid-blue); color: #fff; }
.lid-badge.sector--otro          { background: #6b7280; color: #fff; }

.lid-card__body {
    padding: 14px 16px 16px;
}

.lid-card__name {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
    line-height: 1.2;
}

.lid-card__cargo {
    font-size: 12px;
    color: var(--text-secondary, #666);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lid-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--lid-red-50);
    color: var(--lid-red-dark);
    border: 1px solid var(--lid-red-100);
}

.lid-archive__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #666);
    font-size: 15px;
}

/* ============================================================================
   3. SINGLE — /lideres/{slug}/
   ============================================================================ */

.lid-single {
    --lid-tab-height: 56px;
}

/* Hero */
.lid-single__hero {
    position: relative;
    padding: 60px 20px 44px;
    background: linear-gradient(135deg, var(--lid-red-900) 0%, var(--lid-red-darker) 50%, var(--lid-red-dark) 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.lid-single__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.lid-single__hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
}

.lid-single__portrait {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lid-single__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.lid-single__portrait--png img {
    object-fit: contain;
    object-position: bottom center;
}

.lid-single__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lid-single__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.lid-single__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
}

.lid-single__badge.sector--politica      { background: rgba(211, 64, 61, 0.75); border-color: transparent; }
.lid-single__badge.sector--empresarial   { background: rgba(184, 134, 11, 0.75); border-color: transparent; }
.lid-single__badge.sector--institucional { background: rgba(30, 64, 175, 0.75); border-color: transparent; }

.lid-single__name {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: clamp(34px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
}

.lid-single__cargo {
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 600;
    opacity: 0.95;
    margin: 4px 0 0;
}

.lid-single__tagline {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.55;
    margin: 8px 0 0;
    max-width: 600px;
}

.lid-single__ministats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lid-single__ministat b {
    display: block;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.lid-single__ministat span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    margin-top: 3px;
}

.lid-single__social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.lid-single__social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lid-single__social a:hover {
    background: #fff;
    color: var(--lid-red-dark);
    transform: translateY(-2px);
}

.lid-single__social svg {
    width: 16px;
    height: 16px;
}

/* Tabs sticky */
.lid-single__tabs {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.lid-single__tabs-inner {
    max-width: var(--container, 1280px);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.lid-single__tabs-inner::-webkit-scrollbar { display: none; }

.lid-single__tab {
    flex: 0 0 auto;
    padding: 18px 16px;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary, #666);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.lid-single__tab:hover { color: var(--lid-red); }

.lid-single__tab.is-active {
    color: var(--lid-red);
}

.lid-single__tab.is-active::after {
    content: '';
    position: absolute;
    inset: auto 16px 0 16px;
    height: 3px;
    background: linear-gradient(90deg, var(--lid-red) 0%, var(--lid-red-dark) 100%);
    border-radius: 3px 3px 0 0;
}

/* Secciones del single */
.lid-single__section {
    max-width: var(--container, 1280px);
    margin: 0 auto;
    padding: 56px 20px;
    scroll-margin-top: calc(var(--lid-tab-height) + 16px);
}

.lid-single__section + .lid-single__section {
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.lid-single__section-title {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--text-primary, #111);
}

.lid-single__section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--lid-red);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.lid-single__section-eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--lid-red);
}

.lid-single__section-desc {
    color: var(--text-secondary, #666);
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 720px;
}

/* Trayectoria vertical timeline */
.lid-tray {
    position: relative;
    padding-left: 28px;
}

.lid-tray::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 2px;
    background: linear-gradient(180deg, var(--lid-red) 0%, var(--lid-red-100) 100%);
    border-radius: 2px;
}

.lid-tray__item {
    position: relative;
    padding: 4px 0 28px;
}

.lid-tray__item::before {
    content: '';
    position: absolute;
    top: 7px;
    left: -24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lid-red);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--lid-red);
}

.lid-tray__year {
    display: inline-block;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--lid-red-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--lid-red-50);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.lid-tray__cargo {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0 0 2px;
}

.lid-tray__org {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin: 0;
}

/* Promesas dashboard */
.lid-prom__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.lid-prom__stat {
    padding: 18px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    text-align: center;
}

.lid-prom__stat b {
    display: block;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.lid-prom__stat span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.lid-prom__stat--total b       { color: var(--text-primary, #111); }
.lid-prom__stat--cumplida b    { color: var(--lid-green); }
.lid-prom__stat--proceso b     { color: var(--lid-amber); }
.lid-prom__stat--incumplida b  { color: var(--lid-red-strong); }

.lid-prom__progress {
    height: 10px;
    background: #eef0f3;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 28px;
}

.lid-prom__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lid-green) 0%, #22c55e 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.lid-prom__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.lid-prom__filter {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #e5e7eb);
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    color: var(--text-primary, #111);
    cursor: pointer;
    transition: all 0.18s ease;
}

.lid-prom__filter:hover { border-color: var(--lid-red); color: var(--lid-red); }
.lid-prom__filter.is-active { background: var(--lid-red); color: #fff; border-color: transparent; }

.lid-prom__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lid-prom__item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-left: 4px solid var(--lid-gray);
    border-radius: var(--radius-lg, 12px);
    transition: box-shadow 0.2s ease;
}

.lid-prom__item:hover { box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.07)); }

.lid-prom__item[data-estado="cumplida"]    { border-left-color: var(--lid-green); }
.lid-prom__item[data-estado="en-proceso"]  { border-left-color: var(--lid-amber); }
.lid-prom__item[data-estado="parcial"]     { border-left-color: var(--lid-yellow); }
.lid-prom__item[data-estado="incumplida"]  { border-left-color: var(--lid-red-strong); }
.lid-prom__item[data-estado="pendiente"]   { border-left-color: var(--lid-gray); }

.lid-prom__estado {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

.lid-prom__estado[data-estado="cumplida"]   { background: var(--lid-green); }
.lid-prom__estado[data-estado="en-proceso"] { background: var(--lid-amber); }
.lid-prom__estado[data-estado="parcial"]    { background: var(--lid-yellow); color: #5a3a00; }
.lid-prom__estado[data-estado="incumplida"] { background: var(--lid-red-strong); }
.lid-prom__estado[data-estado="pendiente"]  { background: var(--lid-gray); }

.lid-prom__texto {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary, #111);
    margin: 0;
}

.lid-prom__fecha {
    font-size: 11px;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.lid-prom__link {
    font-size: 12px;
    color: var(--lid-red);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.lid-prom__link:hover { text-decoration: underline; }

/* Frases pullquotes */
.lid-frases {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lid-frase {
    position: relative;
    padding: 28px 24px 22px 52px;
    background: linear-gradient(145deg, var(--lid-red-50) 0%, #fff 70%);
    border: 1px solid var(--lid-red-100);
    border-radius: var(--radius-lg, 12px);
    border-left: 4px solid var(--lid-red);
}

.lid-frase::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 14px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 88px;
    line-height: 1;
    color: var(--lid-red);
    opacity: 0.22;
    font-weight: 700;
}

.lid-frase__texto {
    font-size: 17px;
    line-height: 1.55;
    font-style: italic;
    color: var(--text-primary, #111);
    margin: 0 0 12px;
}

.lid-frase__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    font-weight: 600;
}

.lid-frase__meta b {
    color: var(--lid-red-dark);
    font-weight: 700;
}

/* Hitos split (logros vs controversias) */
.lid-hitos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.lid-hitos__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lid-hitos__col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.lid-hitos__col--logros .lid-hitos__col-title {
    color: var(--lid-gold);
    border-color: var(--lid-gold-light);
}

.lid-hitos__col--contra .lid-hitos__col-title {
    color: var(--lid-red);
    border-color: var(--lid-red-200);
}

.lid-hito {
    padding: 14px 16px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius, 8px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lid-hito:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
    transform: translateY(-2px);
}

.lid-hito__fecha {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary, #666);
    margin-bottom: 4px;
}

.lid-hito__titulo {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0 0 4px;
    line-height: 1.3;
}

.lid-hito__desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary, #555);
    margin: 0;
}

.lid-hitos__empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary, #999);
    font-size: 13px;
    font-style: italic;
    border: 1px dashed var(--border-color, #e5e7eb);
    border-radius: var(--radius, 8px);
}

/* Videos grid */
.lid-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.lid-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    cursor: pointer;
    background: #000;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: none;
    padding: 0;
}

.lid-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.lid-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.lid-video:hover img { opacity: 0.85; }

.lid-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lid-red) 0%, var(--lid-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.lid-video:hover .lid-video__play { transform: translate(-50%, -50%) scale(1.1); }

.lid-video__play::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}

.lid-video__titulo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Notas relacionadas */
.lid-notas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.lid-nota {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lid-nota:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 6px 18px rgba(0, 0, 0, 0.08));
}

.lid-nota__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.lid-nota__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lid-nota__body { padding: 12px 14px; }

.lid-nota__titulo {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
    color: var(--text-primary, #111);
}

.lid-nota__fecha {
    font-size: 11px;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Timeline unificada */
.lid-timeline {
    position: relative;
    padding-left: 30px;
}

.lid-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--lid-red) 0%, var(--lid-red-50) 100%);
}

.lid-timeline__item {
    position: relative;
    padding: 0 0 22px 6px;
}

.lid-timeline__item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lid-gray);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--lid-gray);
}

.lid-timeline__item[data-tipo="cargo"]::before,
.lid-timeline__item[data-tipo="trayectoria"]::before { background: var(--lid-blue); box-shadow: 0 0 0 2px var(--lid-blue); }
.lid-timeline__item[data-tipo="promesa"]::before     { background: var(--lid-amber); box-shadow: 0 0 0 2px var(--lid-amber); }
.lid-timeline__item[data-tipo="logro"]::before       { background: var(--lid-green); box-shadow: 0 0 0 2px var(--lid-green); }
.lid-timeline__item[data-tipo="controversia"]::before { background: var(--lid-red-strong); box-shadow: 0 0 0 2px var(--lid-red-strong); }

.lid-timeline__date {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--lid-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.lid-timeline__title {
    font-family: var(--font-sans, 'Montserrat'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--text-primary, #111);
}

.lid-timeline__desc {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin: 0;
    line-height: 1.5;
}

/* Empty state genérico para secciones */
.lid-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary, #888);
    font-size: 13px;
    font-style: italic;
    border: 1px dashed var(--border-color, #e5e7eb);
    border-radius: var(--radius, 8px);
}

/* YouTube lightbox */
.lid-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lid-lightbox.is-open {
    display: flex;
}

.lid-lightbox__inner {
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    position: relative;
}

.lid-lightbox__inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.lid-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    line-height: 36px;
    text-align: center;
}

/* ============================================================================
   4. DARK MODE
   ============================================================================ */

html[data-theme="dark"] .lid-home {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(211, 64, 61, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(211, 64, 61, 0.08) 0%, transparent 55%);
}

html[data-theme="dark"] .lid-home__header { border-bottom-color: #2a2a2a; }
html[data-theme="dark"] .lid-home__title,
html[data-theme="dark"] .lid-home__subtitle { color: #e5e5e5; }
html[data-theme="dark"] .lid-home__subtitle { opacity: 0.75; }

html[data-theme="dark"] .lid-home-card {
    background: linear-gradient(180deg, #1f1315 0%, #2a1a1c 100%);
    border-color: rgba(211, 64, 61, 0.2);
}

html[data-theme="dark"] .lid-home-card__info {
    background: linear-gradient(180deg, transparent 0%, rgba(30, 30, 30, 0.95) 45%, #1e1e1e 100%);
}

html[data-theme="dark"] .lid-home-card__name { color: #f5f5f5; }
html[data-theme="dark"] .lid-home-card__cargo { color: #b7b7b7; }

html[data-theme="dark"] .lid-archive { background: #141414; }

html[data-theme="dark"] .lid-archive__filters {
    background: rgba(20, 20, 20, 0.92);
    border-bottom-color: #2a2a2a;
}

html[data-theme="dark"] .lid-archive__filter-btn {
    background: #1e1e1e;
    border-color: #2a2a2a;
    color: #e5e5e5;
}

html[data-theme="dark"] .lid-archive__filter-btn:hover {
    border-color: var(--lid-red-light);
    color: var(--lid-red-light);
}

html[data-theme="dark"] .lid-archive__search {
    background: #1e1e1e;
    border-color: #2a2a2a;
    color: #e5e5e5;
}

html[data-theme="dark"] .lid-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
    color: #e5e5e5;
}

html[data-theme="dark"] .lid-card__img {
    background: linear-gradient(180deg, #1f1315 0%, #2a1a1c 100%);
}

html[data-theme="dark"] .lid-card__name { color: #f5f5f5; }
html[data-theme="dark"] .lid-card__cargo { color: #b7b7b7; }

html[data-theme="dark"] .lid-card__chip {
    background: rgba(211, 64, 61, 0.15);
    color: var(--lid-red-light);
    border-color: rgba(211, 64, 61, 0.3);
}

html[data-theme="dark"] .lid-single__tabs {
    background: rgba(20, 20, 20, 0.94);
    border-bottom-color: #2a2a2a;
}

html[data-theme="dark"] .lid-single__tab { color: #b7b7b7; }
html[data-theme="dark"] .lid-single__tab:hover,
html[data-theme="dark"] .lid-single__tab.is-active { color: var(--lid-red-light); }
html[data-theme="dark"] .lid-single__tab.is-active::after {
    background: linear-gradient(90deg, var(--lid-red-light) 0%, var(--lid-red) 100%);
}

html[data-theme="dark"] .lid-single__section + .lid-single__section { border-top-color: #2a2a2a; }
html[data-theme="dark"] .lid-single__section-title { color: #f5f5f5; }
html[data-theme="dark"] .lid-single__section-eyebrow { color: var(--lid-red-light); }
html[data-theme="dark"] .lid-single__section-eyebrow::before { background: var(--lid-red-light); }
html[data-theme="dark"] .lid-single__section-desc { color: #b7b7b7; }

html[data-theme="dark"] .lid-tray__year {
    background: rgba(211, 64, 61, 0.15);
    color: var(--lid-red-light);
}
html[data-theme="dark"] .lid-tray__cargo { color: #f5f5f5; }
html[data-theme="dark"] .lid-tray__org { color: #b7b7b7; }
html[data-theme="dark"] .lid-tray__item::before { border-color: #141414; }

html[data-theme="dark"] .lid-prom__stat {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
html[data-theme="dark"] .lid-prom__stat--total b { color: #f5f5f5; }
html[data-theme="dark"] .lid-prom__stat span { color: #b7b7b7; }

html[data-theme="dark"] .lid-prom__progress { background: #2a2a2a; }

html[data-theme="dark"] .lid-prom__filter {
    background: #1e1e1e;
    border-color: #2a2a2a;
    color: #e5e5e5;
}

html[data-theme="dark"] .lid-prom__item {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
html[data-theme="dark"] .lid-prom__texto { color: #e5e5e5; }
html[data-theme="dark"] .lid-prom__fecha { color: #b7b7b7; }

html[data-theme="dark"] .lid-frase {
    background: linear-gradient(145deg, rgba(211, 64, 61, 0.12) 0%, #1e1e1e 70%);
    border-color: rgba(211, 64, 61, 0.25);
    border-left-color: var(--lid-red-light);
}
html[data-theme="dark"] .lid-frase__texto { color: #e5e5e5; }
html[data-theme="dark"] .lid-frase__meta { color: #b7b7b7; }
html[data-theme="dark"] .lid-frase__meta b { color: var(--lid-red-light); }
html[data-theme="dark"] .lid-frase::before { color: var(--lid-red-light); opacity: 0.18; }

html[data-theme="dark"] .lid-hito {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
html[data-theme="dark"] .lid-hito__titulo { color: #f5f5f5; }
html[data-theme="dark"] .lid-hito__desc { color: #b7b7b7; }
html[data-theme="dark"] .lid-hito__fecha { color: #999; }
html[data-theme="dark"] .lid-hitos__col--logros .lid-hitos__col-title { border-color: rgba(184, 134, 11, 0.35); color: var(--lid-gold-light); }
html[data-theme="dark"] .lid-hitos__col--contra .lid-hitos__col-title { border-color: rgba(211, 64, 61, 0.35); color: var(--lid-red-light); }
html[data-theme="dark"] .lid-hitos__empty { border-color: #2a2a2a; color: #888; }

html[data-theme="dark"] .lid-nota {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
html[data-theme="dark"] .lid-nota__titulo { color: #f5f5f5; }
html[data-theme="dark"] .lid-nota__fecha { color: #b7b7b7; }

html[data-theme="dark"] .lid-timeline__date { color: var(--lid-red-light); }
html[data-theme="dark"] .lid-timeline__title { color: #f5f5f5; }
html[data-theme="dark"] .lid-timeline__desc { color: #b7b7b7; }
html[data-theme="dark"] .lid-timeline__item::before { border-color: #141414; }

html[data-theme="dark"] .lid-empty {
    border-color: #2a2a2a;
    color: #888;
}

/* ============================================================================
   5. RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
    .lid-single__hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    .lid-single__portrait {
        max-width: 240px;
        margin: 0 auto;
    }
    .lid-single__badges,
    .lid-single__ministats,
    .lid-single__social { justify-content: center; }

    .lid-hitos { grid-template-columns: 1fr; }
    .lid-prom__item { grid-template-columns: 110px 1fr; }
    .lid-prom__item .lid-prom__link { grid-column: 1 / -1; text-align: right; }
}

@media (max-width: 700px) {
    .lid-home { padding: 32px 0 40px; }
    .lid-home__header { flex-direction: column; align-items: stretch; }
    .lid-home__cta { align-self: flex-start; }

    .lid-home__track {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 160px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .lid-home-card { scroll-snap-align: start; }

    .lid-archive__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 14px; }

    .lid-archive__hero { padding: 44px 18px 32px; }
    .lid-archive__filters-inner { flex-wrap: wrap; }
    .lid-archive__search { margin-left: 0; width: 100%; max-width: none; }

    .lid-single__hero { padding: 44px 18px 32px; }
    .lid-single__section { padding: 40px 18px; }

    .lid-videos { grid-template-columns: 1fr; }
    .lid-notas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
    .lid-archive__grid { grid-template-columns: 1fr; }
    .lid-notas { grid-template-columns: 1fr; }
    .lid-home__track { grid-auto-columns: 140px; }
}

/* ============================================================================
   6. ADMIN — Meta box "Ficha del Líder" + tabs + repeaters
   ============================================================================ */

.dsl-lid-admin {
    font-family: var(--font-sans, 'Montserrat'), -apple-system, sans-serif;
}

.dsl-lid-admin * { box-sizing: border-box; }

.dsl-lid-admin__tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #dcdcde;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.dsl-lid-admin__tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dsl-lid-admin__tab:hover { color: var(--lid-red); }

.dsl-lid-admin__tab.is-active {
    color: var(--lid-red);
    border-bottom-color: var(--lid-red);
    background: rgba(211, 64, 61, 0.05);
}

.dsl-lid-admin__panel { display: none; }
.dsl-lid-admin__panel.is-active { display: block; }

.dsl-lid-admin table.form-table {
    margin: 0;
}

.dsl-lid-admin table.form-table th {
    width: 160px;
    padding: 10px 16px 10px 0;
}

.dsl-lid-admin input[type="text"],
.dsl-lid-admin input[type="url"],
.dsl-lid-admin input[type="number"],
.dsl-lid-admin input[type="date"],
.dsl-lid-admin select,
.dsl-lid-admin textarea {
    font-size: 13px;
}

/* Repeater rows */
.dsl-lid-rep {
    margin: 4px 0 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
}

.dsl-lid-rep__rows { display: flex; flex-direction: column; }

.dsl-lid-rep__row {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f1;
    background: #fafafa;
    align-items: start;
}

.dsl-lid-rep__row:nth-child(even) { background: #fff; }
.dsl-lid-rep__row:last-child { border-bottom: none; }

.dsl-lid-rep__row[data-kind="trayectoria"] {
    grid-template-columns: 1fr 1fr 90px 90px 36px;
}
.dsl-lid-rep__row[data-kind="frases"] {
    grid-template-columns: 2fr 110px 1fr 36px;
}
.dsl-lid-rep__row[data-kind="promesas"] {
    grid-template-columns: 2fr 130px 110px 1fr 36px;
}
.dsl-lid-rep__row[data-kind="hitos"] {
    grid-template-columns: 110px 130px 1.2fr 2fr 36px;
}
.dsl-lid-rep__row[data-kind="videos"] {
    grid-template-columns: 2fr 1fr 36px;
}

.dsl-lid-rep__row input,
.dsl-lid-rep__row select,
.dsl-lid-rep__row textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.dsl-lid-rep__row textarea { min-height: 54px; resize: vertical; }

.dsl-lid-rep__del {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #d63638;
    background: #fff;
    color: #d63638;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    justify-self: center;
    padding: 0;
    line-height: 1;
}

.dsl-lid-rep__del:hover { background: #d63638; color: #fff; }

.dsl-lid-rep__add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    padding: 8px 14px;
    background: var(--lid-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dsl-lid-rep__add:hover { background: var(--lid-red-dark); }

.dsl-lid-rep__empty {
    padding: 14px;
    text-align: center;
    color: #777;
    font-size: 13px;
    font-style: italic;
    background: #fafafa;
}

/* Retrato picker */
.dsl-lid-retrato {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 6px;
}

.dsl-lid-retrato__preview {
    width: 120px;
    height: 160px;
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #888;
    font-size: 11px;
    text-align: center;
    padding: 8px;
}

.dsl-lid-retrato__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.dsl-lid-retrato__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dsl-lid-retrato__hint {
    font-size: 12px;
    color: #777;
    max-width: 260px;
}

/* Panel de stats preview (promesas) */
.dsl-lid-admin__preview {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 12px;
    color: #50575e;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dsl-lid-admin__preview b { color: var(--lid-red); }

@media (max-width: 900px) {
    .dsl-lid-rep__row[data-kind="trayectoria"],
    .dsl-lid-rep__row[data-kind="frases"],
    .dsl-lid-rep__row[data-kind="promesas"],
    .dsl-lid-rep__row[data-kind="hitos"],
    .dsl-lid-rep__row[data-kind="videos"] {
        grid-template-columns: 1fr 36px;
    }
    .dsl-lid-rep__row > * { grid-column: 1; }
    .dsl-lid-rep__row .dsl-lid-rep__del { grid-column: 2; grid-row: 1; }
}

/* ============================================================================
   7. ADMIN alias — clases efectivamente usadas en admin-lider.php
   (.dsl-lid-tabs / .dsl-lid-tab / .dsl-lid-panel / .dsl-lid-repeater /
    .dsl-lid-row / .dsl-lid-row__remove / .dsl-lid-add / .dsl-lid-field / .dsl-lid-hint)
   ============================================================================ */

.dsl-lid-metabox {
    font-family: var(--font-sans, 'Montserrat'), -apple-system, sans-serif;
}

.dsl-lid-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.dsl-lid-grid-2 .dsl-lid-field { margin-bottom: 0; }
.dsl-lid-grid-2 .dsl-lid-field input,
.dsl-lid-grid-2 .dsl-lid-field select,
.dsl-lid-grid-2 .dsl-lid-field textarea { max-width: none; }

.dsl-lid-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #dcdcde;
    margin: 0 0 18px;
    flex-wrap: wrap;
}

.dsl-lid-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dsl-lid-tab:hover { color: var(--lid-red); }

.dsl-lid-tab.is-active {
    color: var(--lid-red);
    border-bottom-color: var(--lid-red);
    background: rgba(211, 64, 61, 0.05);
}

.dsl-lid-panel { display: none; }
.dsl-lid-panel.is-active { display: block; }

.dsl-lid-hint {
    font-size: 12px;
    color: #777;
    margin: 0 0 12px;
    font-style: italic;
}

.dsl-lid-field {
    display: block;
    margin-bottom: 14px;
}

.dsl-lid-field > span {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    margin-bottom: 4px;
}

.dsl-lid-field input[type="text"],
.dsl-lid-field input[type="url"],
.dsl-lid-field input[type="number"],
.dsl-lid-field input[type="date"],
.dsl-lid-field select,
.dsl-lid-field textarea {
    width: 100%;
    max-width: 480px;
    padding: 6px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.dsl-lid-field small {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

.dsl-lid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.dsl-lid-grid .dsl-lid-field { margin-bottom: 0; }
.dsl-lid-grid .dsl-lid-field input,
.dsl-lid-grid .dsl-lid-field select,
.dsl-lid-grid .dsl-lid-field textarea { max-width: none; }

.dsl-lid-repeater {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.dsl-lid-repeater:empty {
    border-style: dashed;
    padding: 14px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.dsl-lid-repeater:empty::before {
    content: 'Sin entradas. Presioná “+ Agregar” para empezar.';
}

.dsl-lid-row {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 10px;
    padding: 12px;
    align-items: start;
    border-bottom: 1px solid #f0f0f1;
    background: #fafafa;
}

.dsl-lid-row:nth-child(even) { background: #fff; }
.dsl-lid-row:last-child { border-bottom: none; }

.dsl-lid-row__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.dsl-lid-row__fields--stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dsl-lid-row__inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.dsl-lid-row input,
.dsl-lid-row select,
.dsl-lid-row textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    font-family: inherit;
}

.dsl-lid-row textarea { min-height: 52px; resize: vertical; }

.dsl-lid-row__remove {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #d63638;
    background: #fff;
    color: #d63638;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    justify-self: center;
    transition: all 0.15s ease;
}

.dsl-lid-row__remove:hover { background: #d63638; color: #fff; }

.dsl-lid-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

/* Preview de stats de promesas en admin (opcional, poblado por JS) */
.dsl-lid-prom-preview {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 12px;
    color: #50575e;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dsl-lid-prom-preview b { color: var(--lid-red); font-weight: 700; }
