

:root {
    --lc-bg:          #141414;
    --lc-bg-card:     #1e1e1e;
    --lc-border:      rgba(232, 160, 44, 0.20);
    --lc-border-soft: rgba(255,255,255,0.07);
    --lc-text:        #c8c0b4;
    --lc-text-light:  #e8e0d4;
    --lc-muted:       #7a7060;
    --lc-radius:      2px;
    --lc-ease:        0.3s ease;
    --lc-gap:         1.5rem;
    --lc-cols:        4;
    --lc-hero-h:      72vh;
    --lc-container:   1320px;
}

/* ============================================
   HIDE SIDEBAR on blog + single
   ============================================ */
body.blog #sidebar,
body.single #sidebar {
    display: none !important;
}

body.blog .col-md-8,
body.single .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.blog .row,
body.single .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.blog,
body.single {
    overflow-x: hidden;
}

/* ============================================
   BLOG HERO
   Usa las clases del tema (.vc-hero) y añade
   las propias (.lc-blog-hero) para el fondo
   ============================================ */
.vc-hero.lc-blog-hero {
    position: relative;
    width: 100%;
    height: var(--lc-hero-h);
    min-height: 340px;
    background-color: var(--lc-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Overlay sobre la imagen */
.lc-blog-hero__overlay,
.vc-hero.lc-blog-hero .vc-hero__video-wrap {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(20,20,20,0.80) 100%);
    z-index: 1;
}

/* Contenido centrado */
.vc-hero.lc-blog-hero .vc-page-hero__content,
.lc-blog-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Título — usa la tipografía display del tema */
.vc-hero.lc-blog-hero .vc-hero__title,
.lc-blog-hero__title {
    color: var(--c-gold) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem;
    line-height: 1;
}

/* Regla dorada */
.vc-page-hero__rule.lc-blog-hero__rule,
.lc-blog-hero__rule {
    width: 60px;
    height: 2px;
    background-color: var(--c-gold);
    margin: 0 auto;
    border: none;
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.lc-blog-main {
    background-color: var(--lc-bg);
    padding: 5rem 0 6rem;
    min-height: 50vh;
}

.lc-blog-container {
    width: 90%;
    max-width: var(--lc-container);
    margin: 0 auto;
}

/* ============================================
   GRID
   ============================================ */
.lc-blog-grid {
    display: grid;
    grid-template-columns: repeat(var(--lc-cols), 1fr);
    gap: var(--lc-gap);
    margin-bottom: 4rem;
    padding: 0;
    list-style: none;
    margin-left: 0;
}

/* ============================================
   CARD
   ============================================ */
.lc-blog-card {
    background-color: var(--lc-bg-card);
    border: 1px solid var(--lc-border-soft);
    border-radius: var(--lc-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--lc-ease), border-color var(--lc-ease), box-shadow var(--lc-ease);
    margin: 0;
    cursor: pointer;
}

.lc-blog-card:hover,
.lc-blog-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--lc-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,160,44,0.12);
}

/* Image */
.lc-blog-card__image-link { display: block; overflow: hidden; }

.lc-blog-card__image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #0a0a0a;
    flex-shrink: 0;
}

.lc-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
    filter: brightness(0.88);
}

.lc-blog-card:hover .lc-blog-card__img {
    transform: scale(1.06);
    filter: brightness(1);
}

.lc-blog-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    pointer-events: none;
}

.lc-blog-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-blog-card__img-placeholder span {
    font-family: var(--f-display);
    font-size: 2.5rem;
    color: rgba(232,160,44,0.15);
    letter-spacing: 0.1em;
}

/* Body */
.lc-blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.625rem;
}

/* Title */
.lc-blog-card__title { margin: 0; line-height: 1.3; }

.lc-blog-card__title-link,
.lc-blog-card__title-link:visited {
    color: var(--lc-text-light);
    text-decoration: none;
    transition: color var(--lc-ease);
}

.lc-blog-card__title-link:hover { color: var(--c-gold); }

.lc-blog-card__title-link:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
    border-radius: var(--lc-radius);
    color: var(--c-gold);
}

/* Gold rule */
.lc-blog-card__rule {
    width: 32px;
    height: 1.5px;
    background-color: var(--c-gold);
    flex-shrink: 0;
}

/* Excerpt */
.lc-blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--lc-text);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.lc-blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--lc-border-soft);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lc-blog-card__date {
    font-size: 0.75rem;
    color: var(--lc-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lc-blog-card__btn {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(232,160,44,0.4);
    padding-bottom: 1px;
}

/* ============================================
   PAGINATION
   ============================================ */
.lc-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.lc-blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-blog-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lc-blog-pagination .page-numbers li { margin: 0; }

.lc-blog-pagination .page-numbers li a,
.lc-blog-pagination .page-numbers li a:visited,
.lc-blog-pagination .page-numbers li span.current {
    font-size: 0.875rem;
    color: var(--lc-text-light);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--lc-border-soft);
    border-radius: var(--lc-radius);
    min-width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--lc-ease), color var(--lc-ease), border-color var(--lc-ease);
    line-height: 1;
    background-color: transparent;
}

/* Fix: quitar border del span interno de la flecha */
.lc-blog-pagination .page-numbers li a span {
    border: none !important;
    padding: 0;
    min-width: auto;
    display: inline;
    background: transparent;
}

.lc-blog-pagination .page-numbers li a:hover {
    background-color: var(--c-gold);
    color: #141414;
    border-color: var(--c-gold);
}

.lc-blog-pagination .page-numbers li span.current {
    background-color: var(--c-gold);
    color: #141414;
    border-color: var(--c-gold);
    font-weight: 700;
}

.lc-blog-pagination .page-numbers li a:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 2px;
}

.lc-blog-pagination .page-numbers li .dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
    color: var(--lc-muted);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.lc-blog-empty { text-align: center; padding: 6rem 1rem; }
.lc-blog-empty__msg { font-size: 1.5rem; color: var(--lc-muted); }

/* ============================================================
   SINGLE POST
   ============================================================ */

#lc-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--c-gold);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Hero */
.lc-single-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-color: var(--lc-bg);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.lc-single-hero--no-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    height: 42vh;
    min-height: 260px;
    align-items: center;
}

.lc-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0.10) 100%);
    z-index: 1;
}

.lc-single-hero--no-image .lc-single-hero__overlay {
    background: rgba(0,0,0,0.4);
}

.lc-single-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5% 3.5rem;
}

.lc-single-hero--no-image .lc-single-hero__content {
    padding: 2rem 5%;
    text-align: center;
}

.lc-single-hero__title {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.lc-single-hero__rule {
    width: 50px;
    height: 2px;
    background-color: var(--c-gold);
    margin-bottom: 1rem;
}

.lc-single-hero--no-image .lc-single-hero__rule {
    margin-left: auto;
    margin-right: auto;
}

.lc-single-hero__date {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Main */
.lc-single-main {
    background-color: var(--lc-bg);
    padding: 4.5rem 0 6rem;
}

.lc-single-container {
    width: 90%;
    max-width: 860px;
    margin: 0 auto;
}

/* Byline */
.lc-single-byline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lc-border-soft);
}

.lc-single-byline__label { font-size: 0.85rem; color: var(--lc-muted); }

.lc-single-byline__author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-gold);
}

/* Content typography */
.lc-single-content {
    font-size: 1.0625rem;
    color: var(--lc-text);
    line-height: 1.9;
    margin-bottom: 3rem;
}

.lc-single-content p { margin-bottom: 1.6rem; }

.lc-single-content h2,
.lc-single-content h3,
.lc-single-content h4 {
    color: var(--lc-text-light);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.lc-single-content a,
.lc-single-content a:visited {
    color: var(--c-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lc-single-content a:hover { color: #f5b84a; }

.lc-single-content a:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 2px;
    border-radius: var(--lc-radius);
}

.lc-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--lc-radius);
    margin: 2rem 0;
    display: block;
}

.lc-single-content blockquote {
    border-left: 3px solid var(--c-gold);
    margin: 2.5rem 0;
    padding: 1.25rem 1.75rem;
    background: rgba(232,160,44,0.05);
    font-style: italic;
    color: var(--lc-text-light);
}

.lc-single-content ul,
.lc-single-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.lc-single-content li { margin-bottom: 0.5rem; }

/* Prev/Next nav */
.lc-single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lc-border-soft);
}

.lc-single-nav__item,
.lc-single-nav__item:visited {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--lc-bg-card);
    border: 1px solid var(--lc-border-soft);
    border-radius: var(--lc-radius);
    text-decoration: none;
    color: var(--lc-text-light);
    transition: border-color var(--lc-ease), transform var(--lc-ease);
    min-width: 0;
}

.lc-single-nav__item:hover {
    border-color: var(--lc-border);
    transform: translateY(-2px);
}

.lc-single-nav__item:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
    border-radius: var(--lc-radius);
}

.lc-single-nav__item--next { justify-content: flex-end; text-align: right; grid-column: 2; }
.lc-single-nav__item--prev { grid-column: 1; }
.lc-single-nav__item--prev:only-child,
.lc-single-nav__item--next:only-child { grid-column: 1 / -1; }

.lc-single-nav__arrow { font-size: 1.25rem; color: var(--c-gold); flex-shrink: 0; line-height: 1; }

.lc-single-nav__info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.lc-single-nav__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lc-muted);
}

.lc-single-nav__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--lc-text-light);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* Back to blog */
.lc-single-back { text-align: center; }

.lc-single-back__link,
.lc-single-back__link:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(232,160,44,0.4);
    padding-bottom: 2px;
    transition: border-color var(--lc-ease);
}

.lc-single-back__link:hover { border-color: var(--c-gold); color: #f5b84a; }

.lc-single-back__link:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 4px;
    border-radius: var(--lc-radius);
}

/* Reading progress */
@media (prefers-reduced-motion: reduce) {
    .lc-blog-card, .lc-blog-card__img,
    .lc-single-nav__item, #lc-reading-progress { transition: none !important; }
    .lc-blog-card:hover { transform: none; }
    .lc-blog-card:hover .lc-blog-card__img { transform: none; filter: brightness(0.88); }
    .lc-single-nav__item:hover { transform: none; }
}

/* ============================================
   BREAKPOINTS
   ============================================ */
@media (max-width: 1200px) { :root { --lc-cols: 3; } }

@media (max-width: 992px) {
    :root { --lc-cols: 2; --lc-hero-h: 55vh; }
    .lc-blog-main, .lc-single-main { padding: 3.5rem 0 4.5rem; }
    .lc-single-hero { height: 55vh; }
}

@media (max-width: 768px) {
    :root { --lc-cols: 2; --lc-hero-h: 48vh; }
    .lc-blog-main { padding: 3rem 0 4rem; }
    .lc-single-hero { height: 48vh; }
    .lc-single-nav { grid-template-columns: 1fr; }
    .lc-single-nav__item--next { grid-column: 1; justify-content: flex-start; text-align: left; }
    .lc-single-nav__title { max-width: 100%; }
}

@media (max-width: 576px) {
    :root { --lc-cols: 1; --lc-hero-h: 44vh; }
    .lc-blog-container, .lc-single-container { width: 92%; }
    .lc-blog-card__image-wrap { height: 200px; }
    .lc-single-hero { height: 44vh; min-height: 280px; }
}

@media (max-width: 400px) {
    .lc-blog-card__image-wrap { height: 180px; }
    .lc-single-nav__item { padding: 1rem; }
}