/* =========================================
   SKY RP — NOTICIAS
========================================= */


/* =========================================
   PÁGINA
========================================= */

.news-page {
    min-height: 100vh;

    padding: 150px 0 120px;

    background: #08090b;
}


/* =========================================
   ENCABEZADO
========================================= */

.news-header {
    max-width: 720px;

    margin-bottom: 70px;
}

.news-header h1 {
    font-size: clamp(48px, 7vw, 82px);

    line-height: 0.98;

    letter-spacing: -4px;

    margin-bottom: 25px;
}

.news-header h1 span {
    display: block;

    color: #777d86;
}

.news-header p {
    max-width: 600px;

    color: #9da3ad;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   NOTICIA DESTACADA
========================================= */

.featured-news {
    display: grid;

    grid-template-columns: 1.35fr 1fr;

    min-height: 430px;

    margin-bottom: 100px;

    overflow: hidden;

    background: #111419;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 16px;
}

.featured-image {
    position: relative;

    min-height: 430px;

    overflow: hidden;

    background: #0d0f12;
}

.featured-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.featured-news:hover
.featured-image img {
    transform: scale(1.03);
}


/* =========================================
   CONTENIDO DESTACADO
========================================= */

.featured-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 55px;
}

.featured-content h2 {
    max-width: 500px;

    font-size: 36px;

    line-height: 1.08;

    letter-spacing: -1.5px;

    margin-bottom: 18px;
}

.featured-content p {
    max-width: 500px;

    margin-bottom: 25px;

    color: #777d86;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================
   CATEGORÍA
========================================= */

.news-category {
    display: inline-flex;

    width: fit-content;

    align-items: center;

    padding: 6px 10px;

    margin-bottom: 18px;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 5px;

    color: #8f959e;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================================
   FECHA
========================================= */

.news-date {
    color: #555b64;

    font-size: 10px;

    letter-spacing: 0.5px;
}


/* =========================================
   LEER MÁS
========================================= */

.read-more {
    display: inline-flex;

    width: fit-content;

    margin-top: 25px;

    padding: 11px 17px;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 7px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.2s ease;
}

.read-more:hover {
    background: #ffffff;

    color: #08090b;

    transform: translateY(-2px);
}


/* =========================================
   TÍTULO SECCIÓN
========================================= */

.news-section-title {
    margin-bottom: 35px;
}

.news-section-title h2 {
    font-size: 32px;

    line-height: 1;

    letter-spacing: -1px;
}


/* =========================================
   GRID
========================================= */

.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* =========================================
   TARJETA
========================================= */

.news-card {
    overflow: hidden;

    background: #111419;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);

    border-color: rgba(255,255,255,0.18);
}


/* =========================================
   IMAGEN TARJETA
========================================= */

.news-card-image {
    position: relative;

    width: 100%;

    height: 210px;

    overflow: hidden;

    background: #0d0f12;
}

.news-card-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.news-card:hover
.news-card-image img {
    transform: scale(1.04);
}


/* =========================================
   CONTENIDO TARJETA
========================================= */

.news-card-content {
    padding: 25px;
}

.news-card-content .news-category {
    margin-bottom: 14px;
}

.news-card h3 {
    min-height: 44px;

    margin-bottom: 10px;

    font-size: 18px;

    line-height: 1.25;

    letter-spacing: -0.3px;
}

.news-card p {
    min-height: 63px;

    margin-bottom: 20px;

    color: #777d86;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================
   FOOTER TARJETA
========================================= */

.news-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,0.06);
}

.news-card-footer a {
    color: #ffffff;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.news-card-footer a:hover {
    opacity: 0.6;
}


/* =========================================
   NAVBAR ACTIVA
========================================= */

.nav-links a.active {
    color: #ffffff;
}


/* =========================================
   NOTICIA COMPLETA
========================================= */

.full-news {
    max-width: 950px;

    margin: 0 auto;

    padding: 80px 0;
}


/* =========================================
   CABECERA
========================================= */

.full-news-header {
    margin-bottom: 55px;
}

.full-news-meta {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 20px;
}

.full-news-header h1 {
    margin-bottom: 20px;

    font-size: clamp(36px, 5vw, 64px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.full-news-date {
    color: #555b64;

    font-size: 12px;

    letter-spacing: 0.5px;
}


/* =========================================
   BLOQUES DE NOTICIA
========================================= */

.full-news-blocks {
    display: flex;

    flex-direction: column;

    gap: 30px;
}


/* =========================================
   BLOQUE TEXTO
========================================= */

.full-news-text {
    max-width: 850px;

    margin: 0 auto;

    color: #d5d8dd;

    font-size: 17px;

    line-height: 1.8;

    white-space: normal;

    overflow-wrap: break-word;
}


/* =========================================
   BLOQUE IMAGEN
========================================= */

.full-news-image {
    width: 100%;

    min-height: 400px;

    max-height: 700px;

    margin: 0;

    padding: 10px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #0d0f12;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 16px;
}

.full-news-image img {
    width: 100%;

    max-width: 100%;

    height: auto;

    max-height: 680px;

    display: block;

    object-fit: contain;

    border-radius: 10px;
}


/* =========================================
   VOLVER
========================================= */

.full-news-back {
    max-width: 850px;

    margin: 55px auto 0;

    padding-top: 30px;

    border-top: 1px solid rgba(255,255,255,0.06);
}

.full-news-back a {
    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.full-news-back a:hover {
    opacity: 0.6;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .featured-news {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 320px;
    }

    .featured-content {
        padding: 40px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-news {
        max-width: 900px;
    }

    .full-news-image {
        min-height: 350px;

        max-height: 600px;
    }

}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 600px) {

    .news-page {
        padding: 120px 0 80px;
    }

    .news-header {
        margin-bottom: 45px;
    }

    .news-header h1 {
        font-size: 50px;

        letter-spacing: -2.5px;
    }

    .news-header p {
        font-size: 14px;
    }


    /* DESTACADA */

    .featured-news {
        margin-bottom: 70px;
    }

    .featured-image {
        min-height: 230px;
    }

    .featured-content {
        padding: 30px 25px;
    }

    .featured-content h2 {
        font-size: 28px;
    }


    /* GRID */

    .news-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    /* TARJETAS */

    .news-card-image {
        height: 200px;
    }

    .news-card h3,
    .news-card p {
        min-height: auto;
    }


    /* NOTICIA */

    .full-news {
        padding: 50px 0;
    }

    .full-news-header {
        margin-bottom: 40px;
    }

    .full-news-header h1 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }

    .full-news-blocks {
        gap: 22px;
    }


    /* TEXTO */

    .full-news-text {
        font-size: 15px;

        line-height: 1.7;
    }


    /* IMAGEN */

    .full-news-image {
        min-height: 220px;

        max-height: 450px;

        padding: 6px;

        border-radius: 12px;
    }

    .full-news-image img {
        max-height: 438px;

        border-radius: 8px;
    }

}


/* =========================================
   MÓVILES MUY PEQUEÑOS
========================================= */

@media (max-width: 400px) {

    .full-news-image {
        min-height: 180px;

        max-height: 350px;
    }

    .full-news-image img {
        max-height: 338px;
    }

}

/* =========================================================
   NAVBAR - LOGO
========================================================= */

.navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;

    flex-shrink: 0;
}

.navbar .nav-logo img {
    width: 42px !important;
    height: 42px !important;

    max-width: 42px !important;
    max-height: 42px !important;

    object-fit: contain !important;

    display: block;
}

.navbar .nav-logo span {
    font-size: 18px;
    font-weight: 700;

    color: #ffffff;

    white-space: nowrap;
}

/* =========================================================
   TARJETAS DE NOTICIAS
========================================================= */

.news-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #0d0f12;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.14);
}


/* =========================================================
   IMAGEN DE LA TARJETA
========================================================= */

.news-card-image {
    display: block;

    width: 100%;
    height: 240px;

    overflow: hidden;

    background: #111419;
}

.news-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}


/* Cuando una noticia no tiene imagen */

.news-card-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #555b64;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================================================
   CONTENIDO
========================================================= */

.news-card-content {
    padding: 24px;
}

.news-card-content .news-meta {
    margin-bottom: 12px;
}

.news-card-content h3 {
    margin: 0 0 12px;

    font-size: 22px;
    line-height: 1.2;
}

.news-card-content h3 a {
    color: #ffffff;

    text-decoration: none;
}

.news-card-content p {
    margin: 0 0 20px;

    color: #858b94;

    font-size: 14px;
    line-height: 1.65;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}


/* =========================================================
   LEER NOTICIA
========================================================= */

.news-read-more {
    display: inline-flex;
    align-items: center;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: opacity .2s ease;
}

.news-read-more:hover {
    opacity: .65;
}


/* =========================================================
   GRID
========================================================= */

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   DESTACADA
========================================================= */

.featured-news {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    margin-bottom: 70px;

    background: #0d0f12;

    border: 1px solid rgba(255,255,255,.07);

    border-radius: 18px;
}

.featured-news-image {
    display: block;

    width: 100%;
    height: 420px;

    overflow: hidden;

    background: #111419;
}

.featured-news-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.featured-news-content {
    padding: 32px;
}

.featured-news-content h2 {
    margin: 0 0 15px;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.featured-news-content h2 a {
    color: #ffffff;
    text-decoration: none;
}

.featured-news-content p {
    max-width: 800px;

    margin: 0 0 20px;

    color: #858b94;

    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 220px;
    }

    .featured-news-image {
        height: 280px;
    }

    .featured-news-content {
        padding: 24px;
    }

}