/**
 * Estilos visuales enriquecidos para entradas de El Nogales
 * Compatible al 100% con Zox News
 */

.elnogales-vip-badge {
    display: none !important;
}

.elnogales-quote {
    border-left: 4px solid #b21f1f;
    padding: 16px 22px;
    margin: 24px 0;
    background: #fbfbfc;
    font-style: italic;
    font-size: 17px;
    line-height: 1.6;
    color: #2c3e50;
    border-radius: 0 8px 8px 0;
}

.elnogales-stat-card {
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
}

.elnogales-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.elnogales-stat-desc {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.elnogales-interactive-map-wrapper {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.elnogales-map-header {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.elnogales-editorial-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 30px;
    font-size: 13px;
    color: #777;
}

.elnogales-byline strong {
    color: #b21f1f;
}

/* Galería de imágenes de publicaciones y álbumes */
.elnogales-article-gallery {
    margin: 32px 0;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.elnogales-gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #b21f1f;
    padding-bottom: 8px;
}

.elnogales-gallery-hint {
    font-size: 13px;
    color: #64748b;
    margin: -8px 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.elnogales-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.elnogales-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    background: #f1f1f1;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    cursor: zoom-in;
}

.elnogales-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.elnogales-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}

.elnogales-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.elnogales-gallery-item:hover img {
    transform: scale(1.05);
}

.elnogales-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    pointer-events: none;
}

.elnogales-gallery-item:hover .elnogales-gallery-item-overlay {
    opacity: 1;
}

@media (max-width: 600px) {
    .elnogales-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ==========================================================================
   MODAL LIGHTBOX & CARRUSEL DESLIZABLE (TOUCH & SWIPE FRIENDLY)
   ========================================================================== */

body.elnogales-lightbox-open {
    overflow: hidden !important;
    touch-action: none !important;
}

.elnogales-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    animation: elnogalesLbFadeIn 0.22s ease-out;
}

.elnogales-lightbox-modal.is-active {
    display: flex;
}

@keyframes elnogalesLbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.elnogales-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.elnogales-lightbox-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    color: #ffffff;
}

.elnogales-lightbox-counter {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.elnogales-lightbox-counter strong {
    color: #ffffff;
    font-size: 16px;
}

.elnogales-lightbox-close {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.elnogales-lightbox-close:hover,
.elnogales-lightbox-close:focus {
    background: #b21f1f;
    border-color: #b21f1f;
    transform: scale(1.08);
}

.elnogales-lightbox-stage {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.elnogales-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.elnogales-lightbox-nav:hover,
.elnogales-lightbox-nav:focus {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%) scale(1.1);
}

.elnogales-lightbox-prev {
    left: 20px;
    padding-right: 2px;
}

.elnogales-lightbox-next {
    right: 20px;
    padding-left: 2px;
}

.elnogales-lightbox-image-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 74vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elnogales-lightbox-img {
    max-width: 90vw;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
}

.elnogales-lightbox-img.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.elnogales-lightbox-spinner {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: elnogalesLbSpin 0.7s linear infinite;
    display: none;
}

@keyframes elnogalesLbSpin {
    to { transform: rotate(360deg); }
}

.elnogales-lightbox-caption-bar {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #f1f5f9;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 24px 4px;
    max-width: 760px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.elnogales-lightbox-swipe-hint {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    padding-bottom: 12px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .elnogales-lightbox-topbar {
        padding: 10px 14px;
    }
    .elnogales-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
        background: rgba(0, 0, 0, 0.4);
    }
    .elnogales-lightbox-prev {
        left: 8px;
    }
    .elnogales-lightbox-next {
        right: 8px;
    }
    .elnogales-lightbox-img {
        max-width: 96vw;
        max-height: 70vh;
    }
    .elnogales-lightbox-caption-bar {
        font-size: 13px;
        padding: 6px 14px 2px;
    }
}

/* ==========================================================================
   Relación de Fuentes de Información y Enlaces Originales
   ========================================================================== */
.elnogales-article-sources {
    margin: 28px 0 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #be123c;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.elnogales-sources-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.elnogales-sources-header .dashicons {
    color: #be123c;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.elnogales-sources-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.elnogales-sources-list li {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 6px;
}

.elnogales-sources-list li:last-child {
    margin-bottom: 0;
}

.elnogales-sources-list a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.elnogales-sources-list a:hover {
    color: #be123c;
    text-decoration: underline;
}
