/* ================================================================
   Hemeroteca Digital – styles.css  v2.0
   Desarrollado por Lanzer · www.lanzer.co
   ================================================================ */

:root {
    --lve-primary:   #c8102e;
    --lve-viewer-bg: #1a1a2e;
    --lve-radius:    8px;
    --lve-shadow:    0 4px 20px rgba(0,0,0,.12);
    --lve-shadow-lg: 0 8px 40px rgba(0,0,0,.22);
}

/* ================================================================
   EDICIÓN DESTACADA (HERO)
   ================================================================ */
.lve-featured {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--lve-shadow);
    align-items: center;
}
.lve-featured-cover img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.lve-featured-label {
    display: inline-block;
    background: var(--lve-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.lve-featured-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 6px 0 8px;
    line-height: 1.2;
}
.lve-featured-date { font-size: 13px; color: #888; margin: 0 0 8px; }
.lve-featured-desc { font-size: 14px; color: #555; margin: 0 0 18px; line-height: 1.6; }
.lve-featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================================================================
   NAVEGACIÓN AÑO / MES
   ================================================================ */
.lve-years-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.lve-year-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}
.lve-year-btn:hover { background: #e5e7eb; }
.lve-year-btn.active {
    background: var(--lve-primary);
    border-color: var(--lve-primary);
    color: #fff;
}
.lve-months-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.lve-tab-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s;
}
.lve-tab-btn:hover { background: #fff; color: #333; }
.lve-tab-btn.active {
    background: var(--lve-primary);
    border-color: var(--lve-primary);
    color: #fff;
}

/* ================================================================
   CATÁLOGO GRID
   ================================================================ */
.lve-catalog-wrap .lve-catalog,
body .lve-catalog {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
    margin-bottom: 20px;
}

.lve-catalog-wrap .lve-catalog > .lve-card,
body .lve-catalog > .lve-card {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Columnas usando calc() — inmune a cualquier tema */
.lve-catalog-wrap .lve-cols-2 > .lve-card,
body .lve-cols-2 > .lve-card { width: calc(50% - 10px) !important; }

.lve-catalog-wrap .lve-cols-3 > .lve-card,
body .lve-cols-3 > .lve-card { width: calc(33.333% - 14px) !important; }

.lve-catalog-wrap .lve-cols-4 > .lve-card,
body .lve-cols-4 > .lve-card { width: calc(25% - 15px) !important; }

.lve-catalog-wrap .lve-cols-5 > .lve-card,
body .lve-cols-5 > .lve-card { width: calc(20% - 16px) !important; }

.lve-catalog-wrap .lve-cols-6 > .lve-card,
body .lve-cols-6 > .lve-card { width: calc(16.666% - 17px) !important; }

@media (max-width: 900px) {
    .lve-catalog-wrap .lve-cols-3 > .lve-card,
    .lve-catalog-wrap .lve-cols-4 > .lve-card,
    .lve-catalog-wrap .lve-cols-5 > .lve-card,
    .lve-catalog-wrap .lve-cols-6 > .lve-card,
    body .lve-cols-3 > .lve-card,
    body .lve-cols-4 > .lve-card,
    body .lve-cols-5 > .lve-card,
    body .lve-cols-6 > .lve-card { width: calc(50% - 10px) !important; }
    .lve-featured { grid-template-columns: 140px 1fr; gap: 20px; }
}
@media (max-width: 520px) {
    .lve-catalog-wrap .lve-catalog > .lve-card,
    body .lve-catalog > .lve-card { width: calc(50% - 10px) !important; }
    .lve-featured { grid-template-columns: 1fr; }
    .lve-featured-cover { text-align: center; }
    .lve-featured-cover img { max-width: 160px; }
}

/* Tarjeta -------------------------------------------------------- */
.lve-card {
    background: #fff;
    border-radius: var(--lve-radius);
    box-shadow: var(--lve-shadow);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.lve-card:hover { transform: translateY(-4px); box-shadow: var(--lve-shadow-lg); }

.lve-card-cover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f0f0f0;
}
.lve-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}
.lve-card:hover .lve-card-cover img { transform: scale(1.04); }

.lve-card-no-cover {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f9f9f9; color: #ccc; font-size: 36px;
}
.lve-card-overlay {
    position: absolute; inset: 0;
    background: rgba(200,16,46,.75);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.lve-card:hover .lve-card-overlay { opacity: 1; }
.lve-read-btn {
    background: #fff; color: var(--lve-primary);
    font-weight: 700; font-size: 13px; padding: 8px 18px; border-radius: 30px;
}

.lve-card-info { padding: 12px 14px; }
.lve-card-number {
    display: inline-block;
    background: var(--lve-primary); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 2px 7px; border-radius: 3px; margin-bottom: 5px;
}
.lve-card-title { font-size: 13px; font-weight: 700; color: #1a1a1a; margin: 0 0 3px; line-height: 1.3; }
.lve-card-date  { font-size: 11px; color: #888; display: block; margin-bottom: 8px; }
.lve-card-actions { display: flex; gap: 6px; }

/* Botones -------------------------------------------------------- */
.lve-btn-primary {
    display: inline-block;
    background: var(--lve-primary); color: #fff !important;
    font-size: 12px; font-weight: 600; padding: 6px 14px;
    border-radius: 5px; text-decoration: none; transition: opacity .2s;
}
.lve-btn-primary:hover { opacity: .85; }
.lve-btn-lg { font-size: 14px; padding: 10px 22px; }
.lve-btn-secondary {
    display: inline-block;
    background: #f3f4f6; color: #374151 !important;
    font-size: 12px; font-weight: 600; padding: 6px 14px;
    border-radius: 5px; text-decoration: none; border: 1px solid #e5e7eb; transition: background .2s;
}
.lve-btn-secondary:hover { background: #e5e7eb; }

/* ================================================================
   VISOR PAGEFLIP
   ================================================================ */
.lve-viewer-wrap {
    background: var(--lve-viewer-bg);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--lve-shadow-lg);
}

/* Header --------------------------------------------------------- */
.lve-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0,0,0,.35);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.lve-viewer-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lve-viewer-logo {
    max-height: 38px;
    max-width: 130px;
    object-fit: contain;
}
.lve-viewer-portal-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}
.lve-viewer-title-wrap {}
.lve-viewer-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lve-viewer-date { font-size: 11px; color: rgba(255,255,255,.5); margin: 0; }
.lve-edition-badge {
    background: var(--lve-primary); color: #fff;
    font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 700;
}

/* Controles ------------------------------------------------------ */
.lve-viewer-controls { display: flex; align-items: center; gap: 6px; }
.lve-ctrl-btn {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff; font-size: 17px;
    width: 36px; height: 36px;
    border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background .2s;
    line-height: 1;
}
.lve-ctrl-btn:hover, .lve-ctrl-btn.active { background: rgba(255,255,255,.25); color: #fff; }
.lve-page-indicator {
    font-size: 12px; color: rgba(255,255,255,.6);
    min-width: 55px; text-align: center; font-variant-numeric: tabular-nums;
}

/* Loading -------------------------------------------------------- */
.lve-viewer-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 70px 20px; color: rgba(255,255,255,.6); gap: 16px;
}
.lve-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--lve-primary);
    border-radius: 50%;
    animation: lve-spin .8s linear infinite;
}
@keyframes lve-spin { to { transform: rotate(360deg); } }

/* Flipbook ------------------------------------------------------- */
.lve-flipbook-container {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: radial-gradient(ellipse at center, #2d2d4e 0%, var(--lve-viewer-bg) 70%);
    min-height: 300px;
    overflow: hidden;
}
.lve-flipbook {
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lve-flipbook .lve-page {
    position: absolute !important;
    top: 0; left: 0;
    display: block !important;
    overflow: hidden;
}

/* Miniaturas ----------------------------------------------------- */
.lve-thumbs-panel {
    background: rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 12px 16px;
    max-height: 130px;
    overflow-x: auto;
    overflow-y: hidden;
}
.lve-thumbs-grid {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lve-thumb {
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .2s, transform .2s;
}
.lve-thumb:hover { border-color: rgba(255,255,255,.6); transform: scale(1.06); }
.lve-thumb.active { border-color: var(--lve-primary); }

/* Crédito Lanzer ------------------------------------------------- */
.lve-viewer-credit {
    text-align: right;
    padding: 6px 14px;
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.05);
}
.lve-viewer-credit a {
    font-size: 10px;
    color: var(--lve-primary);
    text-decoration: none;
    opacity: .7;
    letter-spacing: .3px;
}
.lve-viewer-credit a:hover { opacity: 1; }

/* Fullscreen ----------------------------------------------------- */
.lve-viewer-wrap:fullscreen {
    border-radius: 0;
    display: flex;
    flex-direction: column;
}
.lve-viewer-wrap:fullscreen .lve-flipbook-container { flex: 1; }

/* Mensajes ------------------------------------------------------- */
.lve-empty, .lve-error {
    padding: 20px; border-radius: var(--lve-radius); font-size: 14px; text-align: center;
}
.lve-empty { background: #f3f4f6; color: #888; }
.lve-error { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* ================================================================
   PORTADA DESDE PDF (canvas)
   ================================================================ */
.lve-cover-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}
.lve-cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #ccc;
    font-size: 36px;
    border-radius: inherit;
}
.lve-cover-wrap--featured {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    aspect-ratio: 3/4;
}

/* Admin: quitar campo portada del meta box ya que es automática */

/* ================================================================
   SECCIÓN RECIENTES — [hemeroteca_recientes]
   ================================================================ */

.lve-recientes {
    margin: 0 0 32px;
    font-family: inherit;
}

/* Encabezado ---------------------------------------------------- */
.lve-recientes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--lve-primary);
}
.lve-recientes-titulo {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.3px;
}
.lve-recientes-logo {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
}
.lve-recientes-ver-todas {
    font-size: 13px;
    font-weight: 600;
    color: var(--lve-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}
.lve-recientes-ver-todas:hover { opacity: .75; }

/* Grid ---------------------------------------------------------- */
.lve-recientes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Edición principal (grande) ------------------------------------ */
.lve-recientes-main {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--lve-shadow);
    transition: box-shadow .25s;
}
.lve-recientes-main:hover { box-shadow: var(--lve-shadow-lg); }

.lve-recientes-main-cover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    flex-shrink: 0;
}
.lve-recientes-main-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.lve-recientes-main:hover .lve-recientes-main-cover img { transform: scale(1.04); }

.lve-recientes-main-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200,16,46,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.lve-recientes-main:hover .lve-recientes-main-overlay { opacity: 1; }
.lve-recientes-leer {
    background: #fff;
    color: var(--lve-primary);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 30px;
}

.lve-recientes-main-info {
    padding: 18px 18px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lve-recientes-main-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 6px 0 6px;
    line-height: 1.25;
}
.lve-recientes-main-date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}
.lve-recientes-main-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Las 3 siguientes (columna derecha) ---------------------------- */
.lve-recientes-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lve-recientes-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: box-shadow .2s, transform .2s;
}
.lve-recientes-item:hover {
    box-shadow: var(--lve-shadow);
    transform: translateX(3px);
}

.lve-recientes-item-cover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    flex-shrink: 0;
}
.lve-recientes-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.lve-recientes-item:hover .lve-recientes-item-cover img { transform: scale(1.06); }

.lve-recientes-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200,16,46,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity .25s;
}
.lve-recientes-item:hover .lve-recientes-item-overlay { opacity: 1; }

.lve-recientes-item-info {
    padding: 10px 12px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.lve-recientes-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 3px 0 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lve-recientes-item-date {
    font-size: 11px;
    color: #aaa;
    display: block;
}
.lve-recientes-item-leer {
    font-size: 12px;
    font-weight: 700;
    color: var(--lve-primary);
    text-decoration: none;
    margin-top: 4px;
}
.lve-recientes-item-leer:hover { text-decoration: underline; }

/* Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
    .lve-recientes-grid { grid-template-columns: 1fr; }
    .lve-recientes-main { grid-template-columns: 150px 1fr; }
    .lve-recientes-side { flex-direction: row; overflow-x: auto; }
    .lve-recientes-item { min-width: 180px; flex-shrink: 0; grid-template-columns: 1fr; }
    .lve-recientes-item-cover { aspect-ratio: 3/4; }
}
@media (max-width: 520px) {
    .lve-recientes-main { grid-template-columns: 1fr; }
    .lve-recientes-main-cover { aspect-ratio: 3/4; max-height: 220px; }
    .lve-recientes-main-info { padding: 14px; }
}

/* ================================================================
   DFLIP CONTAINER — wrapper sobre el visor nativo de dFlip
   ================================================================ */
.lve-dflip-container {
    background: var(--lve-viewer-bg, #1a1a2e);
    padding: 0;
    min-height: 500px;
    position: relative;
}

/* Ajustar el visor dFlip para que ocupe todo el ancho */
.lve-dflip-container ._df_book_wrap,
.lve-dflip-container .df-container {
    width: 100% !important;
}

/* Forzar fondo correcto en el contenedor dFlip */
.lve-viewer-wrap .df-container,
.lve-viewer-wrap .df-book-page {
    background-color: var(--lve-viewer-bg, #1a1a2e) !important;
}

/* Ocultar el branding propio de dFlip si aparece */
.lve-viewer-wrap .df-floating-controls .df-logo { display: none !important; }

/* ================================================================
   v3.0 — BUSCADOR, MODO OSCURO, COMPARTIR, NAV ANTERIOR/SIGUIENTE
   ================================================================ */

/* ---- Barra de herramientas ---- */
.lve-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.lve-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: border-color .2s;
}
.lve-search-box:focus-within { border-color: var(--lve-primary); }
.lve-search-icon { font-size: 16px; color: #aaa; }
.lve-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 14px;
    background: transparent;
    color: #1a1a1a;
}
.lve-search-clear {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}
.lve-search-clear:hover { color: var(--lve-primary); }
.lve-dark-toggle {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.lve-dark-toggle:hover { background: #e5e7eb; }

/* ---- Resultados de búsqueda ---- */
.lve-search-results { margin-bottom: 20px; }
.lve-search-info {
    font-size: 13px;
    color: #888;
    margin: 0 0 14px;
}

/* ---- Grid de meses (sin tabs) ---- */
.lve-month-block { margin-bottom: 32px; }
.lve-month-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--lve-primary);
}
.lve-month-dot {
    width: 10px;
    height: 10px;
    background: var(--lve-primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.lve-month-count {
    font-size: 11px;
    background: #f3f4f6;
    color: #888;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: auto;
}
.lve-year-panel.lve-hidden { display: none; }

/* ---- Modo oscuro — catálogo ---- */
body.lve-dark-mode {
    background-color: #111 !important;
    color: #e5e7eb !important;
}
body.lve-dark-mode .lve-search-box {
    background: #1f2937;
    border-color: #374151;
}
body.lve-dark-mode .lve-search-box input { color: #e5e7eb; }
body.lve-dark-mode .lve-card {
    background: #1f2937;
    border-color: #374151;
}
body.lve-dark-mode .lve-card-title { color: #f9fafb; }
body.lve-dark-mode .lve-card-date  { color: #9ca3af; }
body.lve-dark-mode .lve-month-title { color: #f9fafb; }
body.lve-dark-mode .lve-year-btn {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}
body.lve-dark-mode .lve-year-btn.active {
    background: var(--lve-primary) !important;
    color: #fff !important;
}
body.lve-dark-mode .lve-featured {
    background: #1f2937;
    border-color: #374151;
}
body.lve-dark-mode .lve-featured-title { color: #f9fafb; }
body.lve-dark-mode .lve-dark-toggle {
    background: #1f2937;
    border-color: #374151;
}
body.lve-dark-mode .lve-month-count { background: #374151; color: #9ca3af; }

/* ---- Modo oscuro — visor ---- */
.lve-viewer-dark .lve-viewer-header { background: rgba(0,0,0,.6); }

/* ---- Popup de compartir ---- */
.lve-share-popup {
    position: relative;
    z-index: 100;
}
.lve-share-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    max-width: 420px;
    margin: 0 auto 0;
}
.lve-share-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.lve-share-url-box {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.lve-share-url-box input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #555;
    background: #f9fafb;
    outline: none;
}
.lve-share-copy {
    background: var(--lve-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.lve-share-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.lve-share-wa, .lve-share-fb, .lve-share-tw {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
}
.lve-share-wa { background: #25d366; }
.lve-share-fb { background: #1877f2; }
.lve-share-tw { background: #000; }
.lve-share-close {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    width: 100%;
}
.lve-share-close:hover { background: #f3f4f6; }

/* ---- Navegación anterior / siguiente ---- */
.lve-edition-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.07);
    flex-wrap: wrap;
}
.lve-edition-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s;
    max-width: 35%;
}
.lve-edition-nav-btn:hover { color: #fff; }
.lve-edition-nav-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.lve-nav-disabled {
    color: rgba(255,255,255,.3);
    font-size: 12px;
    font-style: italic;
    max-width: 35%;
}
.lve-edition-nav-all {
    color: var(--lve-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.lve-edition-nav-all:hover { opacity: .8; }

@media (max-width: 600px) {
    .lve-edition-nav { justify-content: center; gap: 8px; }
    .lve-edition-nav-btn span { max-width: 90px; }
    .lve-toolbar { flex-wrap: wrap; }
}

/* ================================================================
   BADGE EDICION ESPECIAL — rojo suave
   ================================================================ */
.lve-card-especial {
    display: inline-block;
    background: #e05555;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Badge especial en el visor */
.lve-edition-badge.lve-badge-especial {
    background: #e05555 !important;
    letter-spacing: .5px;
}
