/* ========================================
   PG-NOVEDADES - PARALLAX + RANKING + ASIDE
   HOMENET TEMA v1.3
======================================== */

@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* ========================================
   HERO PARALLAX SECTION
======================================== */

.novedades-hero-parallax {
    position: relative;
    height: 85vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

/* Parallax Background */
.parallax-bg-novedades {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: calc(100% + 200px);
    /* Imagen definida inline desde el Customizer */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 1;
}

/* Overlay */
.parallax-overlay-novedades {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 2;
}

.parallax-overlay-novedades::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 249, 8, 0.15) 0%,
        transparent 70%
    );
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Content */
.parallax-content-novedades {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 40px;
    max-width: 1000px;
}

/* Breadcrumbs */
.breadcrumbs-novedades {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.breadcrumbs-novedades a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breadcrumbs-novedades a:hover {
    color: #fff908;
}

.breadcrumbs-novedades .separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs-novedades .current {
    color: #fff908;
    font-weight: 700;
}

/* Hero Icon */
.hero-icon-novedades {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #fff908 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #0a0a0a;
    box-shadow: 0 12px 48px rgba(255, 249, 8, 0.5);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Title */
.hero-title-novedades {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Description */
.hero-description-novedades {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Line Separator */
.hero-line-novedades {
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, #fff908 0%, #ffd700 100%);
    margin: 0 auto 40px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 249, 8, 0.6);
}

/* Stats */
.hero-stats-novedades {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item-novedades {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item-novedades:hover {
    background: rgba(255, 249, 8, 0.12);
    border-color: rgba(255, 249, 8, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 249, 8, 0.2);
}

.stat-item-novedades > i {
    font-size: 2.5rem;
    color: #fff908;
}

.stat-item-novedades > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator-novedades {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff908;
    font-size: 1.2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.scroll-indicator-novedades:hover {
    background: #fff908;
    color: #0a0a0a;
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========================================
   MAIN SECTION - CONTENIDO + ASIDE
======================================== */

.novedades-main-section {
    width: 100%;
    padding: 80px 40px;
    background: linear-gradient(135deg, #0f0f0f 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.novedades-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 249, 8, 0.05) 0%,
        transparent 50%
    );
    z-index: 0;
}

/* LAYOUT DOS COLUMNAS: 70% CONTENIDO - 5% GAP - 25% ASIDE */
.novedades-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 70% 25%;
    gap: 5%;
    align-items: start;
}

/* Contenido principal - 70% */
.novedades-content {
    width: 100%;
}

/* Sidebar Compacto - 25% SIN scroll */
.novedades-sidebar-compact {
    position: sticky;
    top: 100px;
}

/* ========================================
   CONTENIDO PRINCIPAL
======================================== */

.novedades-content {
    background: transparent;
}

/* Section Header */
.section-header-novedades {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-title-wrapper i {
    font-size: 2.5rem;
    color: #fff908;
}

.section-title-novedades {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-subtitle-novedades {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Ranking List - Formato vertical (lista) */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Ranking Item - Card horizontal tipo ranking */
.ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 280px 1fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

/* Efecto de degradado que se funde con el fondo */
.ranking-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0) 0%,
        rgba(10, 10, 10, calc(1 - var(--fade-opacity, 1))) 100%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 249, 8, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.ranking-item:hover::after {
    opacity: 0;
}

/* Asegurar que el contenido esté sobre el overlay */
.ranking-item > * {
    position: relative;
    z-index: 2;
}

/* Medallas Top 3 */
.ranking-item.gold {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.12) 0%,
        rgba(255, 249, 8, 0.08) 100%
    );
    border-color: rgba(255, 215, 0, 0.3);
}

.ranking-item.silver {
    background: linear-gradient(
        135deg,
        rgba(192, 192, 192, 0.12) 0%,
        rgba(192, 192, 192, 0.08) 100%
    );
    border-color: rgba(192, 192, 192, 0.3);
}

.ranking-item.bronze {
    background: linear-gradient(
        135deg,
        rgba(205, 127, 50, 0.12) 0%,
        rgba(205, 127, 50, 0.08) 100%
    );
    border-color: rgba(205, 127, 50, 0.3);
}

/* Rank Badge - Primera columna del grid */
.rank-badge {
    position: relative;
    width: 70px;
    height: 70px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 249, 8, 0.5);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-weight: 800;
    flex-shrink: 0;
}

.rank-badge i {
    font-size: 0.9rem;
}

.rank-badge span {
    font-size: 0.85rem;
    color: #ffffff;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5);
}

.rank-badge.gold i,
.rank-badge.gold span {
    color: #0a0a0a;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border-color: #c0c0c0;
    box-shadow: 0 8px 32px rgba(192, 192, 192, 0.5);
}

.rank-badge.silver i,
.rank-badge.silver span {
    color: #0a0a0a;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a570 100%);
    border-color: #cd7f32;
    box-shadow: 0 8px 32px rgba(205, 127, 50, 0.5);
}

.rank-badge.bronze i,
.rank-badge.bronze span {
    color: #ffffff;
}

/* Rank Thumbnail - Segunda columna del grid */
.rank-thumb {
    position: relative;
    width: 280px;
    height: 180px;
    overflow: hidden;
    display: block;
    border-radius: 12px;
    flex-shrink: 0;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .rank-thumb img {
    transform: scale(1.1);
}

.rank-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .rank-thumb-overlay {
    opacity: 1;
}

.rank-thumb-overlay i {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff908 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 1.5rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.ranking-item:hover .rank-thumb-overlay i {
    transform: scale(1);
}

/* Rank Info - Tercera columna del grid */
.rank-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.rank-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 249, 8, 0.15);
    border: 1px solid rgba(255, 249, 8, 0.3);
    border-radius: 50px;
    color: #fff908;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rank-cat:hover {
    background: #fff908;
    color: #0a0a0a;
}

.rank-post-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.rank-post-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .rank-post-title a {
    color: #fff908;
}

.rank-post-excerpt {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
}

.rank-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-author-info img {
    border-radius: 50%;
    border: 2px solid rgba(255, 249, 8, 0.3);
}

.rank-author-info span {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.rank-post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rank-time,
.rank-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.rank-time i,
.rank-read-time i {
    color: #fff908;
}

/* Ver Más Button */
.ver-mas-wrapper {
    margin-top: 48px;
    text-align: center;
}

.ver-mas-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 249, 8, 0.3);
    border-radius: 50px;
    color: #fff908;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ver-mas-btn:hover {
    background: linear-gradient(135deg, #fff908 0%, #ffd700 100%);
    border-color: #fff908;
    color: #0a0a0a;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 249, 8, 0.4);
}

.ver-mas-btn i {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ver-mas-btn:hover i {
    transform: translateY(4px);
}

/* Pagination */
.pagination-wrapper-novedades {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper-novedades ul {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper-novedades a,
.pagination-wrapper-novedades span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-wrapper-novedades a:hover {
    background: linear-gradient(135deg, #fff908 0%, #ffd700 100%);
    border-color: #fff908;
    color: #0a0a0a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 249, 8, 0.4);
}

.pagination-wrapper-novedades .current {
    background: linear-gradient(135deg, #fff908 0%, #ffd700 100%);
    border-color: #fff908;
    color: #0a0a0a;
    box-shadow: 0 4px 16px rgba(255, 249, 8, 0.3);
}

.pagination-wrapper-novedades .prev,
.pagination-wrapper-novedades .next {
    padding: 0 28px;
    border-radius: 50px;
}

/* No Posts */
.no-posts-novedades {
    text-align: center;
    padding: 100px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.no-posts-novedades i {
    font-size: 5rem;
    color: rgba(255, 249, 8, 0.3);
    margin-bottom: 24px;
}

.no-posts-novedades h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.no-posts-novedades p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========================================
   ASIDE / SIDEBAR - NO NECESARIO (TODO EN UNA COLUMNA)
======================================== */

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .novedades-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .novedades-sidebar-compact {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }

    .ranking-item {
        grid-template-columns: auto 220px 1fr;
        gap: 20px;
        padding: 16px;
    }

    .rank-thumb {
        width: 220px;
        height: 150px;
    }

    .rank-badge {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .ranking-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .rank-badge {
        position: absolute;
        top: 16px;
        left: 16px;
        width: 55px;
        height: 55px;
        z-index: 3;
    }

    .rank-thumb {
        width: 100%;
        height: 200px;
    }

    .hero-stats-novedades {
        gap: 24px;
    }

    .stat-item-novedades {
        padding: 16px 24px;
    }
}

@media (max-width: 768px) {
    .novedades-hero-parallax {
        height: 70vh;
        min-height: 500px;
    }

    .novedades-main-section {
        padding: 60px 24px;
    }

    .rank-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rank-post-stats {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-icon-novedades {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }

    .rank-badge {
        width: 60px;
        height: 60px;
    }

    .rank-badge i {
        font-size: 1rem;
    }

    .rank-badge span {
        font-size: 0.95rem;
    }
}
