/* ==========================================================
   LAW TECHNOLOGY
   articulos.css
   Página general de artículos
   ========================================================== */


/* ==========================================================
   1. HERO DE ARTÍCULOS
   ========================================================== */

.articles-hero {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;

    padding-top: 74px;

    overflow: hidden;

    color: var(--white);

    background:
        linear-gradient(
            110deg,
            #031326 0%,
            #052848 52%,
            #063a68 100%
        );
}


/* Trama tecnológica */

.articles-hero-grid {
    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0.34;

    background-image:
        linear-gradient(
            rgba(55, 173, 255, 0.10) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(55, 173, 255, 0.10) 1px,
            transparent 1px
        );

    background-size: 58px 58px;

    mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 1),
            rgba(0, 0, 0, 0.45)
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 1),
            rgba(0, 0, 0, 0.45)
        );
}


/* Resplandores */

.articles-hero-glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(80px);
}


.articles-hero-glow-one {
    width: 430px;
    height: 430px;

    right: 7%;
    top: -120px;

    background:
        rgba(0, 174, 255, 0.20);
}


.articles-hero-glow-two {
    width: 330px;
    height: 330px;

    left: 34%;
    bottom: -230px;

    background:
        rgba(32, 218, 255, 0.15);
}


/* Elemento decorativo derecho */

.articles-hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -120px;
    top: -170px;

    border: 1px solid rgba(58, 206, 255, 0.10);
    border-radius: 50%;

    box-shadow:
        0 0 0 70px rgba(38, 185, 255, 0.025),
        0 0 0 140px rgba(38, 185, 255, 0.018);

    pointer-events: none;
}


.articles-hero::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    right: 18%;
    top: 38%;

    border-radius: 50%;

    background: var(--cyan-400);

    box-shadow:
        0 0 15px rgba(34, 216, 255, 0.95),
        -130px 80px 0 -1px rgba(34, 216, 255, 0.55),
        110px 120px 0 -1px rgba(34, 216, 255, 0.55);

    pointer-events: none;
}


.articles-hero-container {
    position: relative;
    z-index: 2;

    width: 100%;
}


.articles-hero-content {
    max-width: 790px;

    padding: 70px 0 65px;
}


/* Etiqueta superior */

.articles-eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 19px;

    color: var(--cyan-300);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}


.articles-eyebrow > span {
    width: 38px;
    height: 2px;

    flex-shrink: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--blue-400),
            var(--cyan-400)
        );

    box-shadow:
        0 0 10px rgba(34, 216, 255, 0.40);
}


/* Título */

.articles-hero h1 {
    margin: 0 0 16px;

    color: var(--white);

    font-size: clamp(3.3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.055em;
}


.articles-hero-content > p {
    max-width: 690px;

    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 1.05rem;
    line-height: 1.7;
}


/* Temas */

.articles-hero-topics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 28px;
}


.articles-hero-topics span {
    display: inline-flex;
    align-items: center;

    min-height: 31px;

    padding: 0 13px;

    border: 1px solid rgba(85, 211, 255, 0.20);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.77);

    background:
        rgba(2, 54, 95, 0.42);

    font-size: 0.68rem;
    font-weight: 500;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}



/* ==========================================================
   2. BIBLIOTECA DE ARTÍCULOS
   ========================================================== */

.articles-library {
    position: relative;

    padding: 62px 0 78px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f9fcff 100%
        );
}


.articles-library-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 30px;
}


.articles-library-heading h2 {
    margin: 9px 0 0;

    color: var(--navy-900);

    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.articles-library-heading > p {
    max-width: 470px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.82rem;
    line-height: 1.65;
}



/* ==========================================================
   3. FILTROS
   ========================================================== */

.article-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 31px;

    padding-bottom: 20px;

    border-bottom:
        1px solid #e7f0f8;
}


.article-filter {
    min-height: 37px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    border: 1px solid #d9e9f6;
    border-radius: 999px;

    color: #4a6580;

    background: var(--white);

    font-size: 0.69rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}


.article-filter:hover {
    color: var(--blue-600);

    border-color:
        rgba(8, 124, 240, 0.40);

    background: #f4faff;

    transform: translateY(-1px);
}


.article-filter.active {
    color: var(--white);

    border-color: var(--blue-600);

    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            #009be7
        );

    box-shadow:
        0 7px 20px rgba(0, 122, 235, 0.18);
}



/* ==========================================================
   4. GRID DE PUBLICACIONES
   ========================================================== */

.articles-library-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}



/* ==========================================================
   5. TARJETAS
   ========================================================== */

.library-article {
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(210px, 0.85fr)
        minmax(0, 1.15fr);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--white);

    box-shadow:
        0 10px 30px rgba(5, 48, 88, 0.055);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        opacity 0.25s ease;
}


.library-article:hover {
    transform: translateY(-4px);

    border-color:
        rgba(0, 137, 245, 0.24);

    box-shadow:
        0 20px 45px rgba(4, 55, 102, 0.11);
}


/* Primer artículo destacado */

.library-article-featured {
    grid-column: 1 / -1;

    min-height: 330px;

    grid-template-columns:
        minmax(390px, 1.08fr)
        minmax(0, 0.92fr);
}



/* ==========================================================
   6. IMÁGENES
   ========================================================== */

.library-article-image {
    position: relative;

    display: block;

    min-height: 245px;

    overflow: hidden;

    background: #dcecff;
}


.library-article-featured .library-article-image {
    min-height: 330px;
}


.library-article-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 52%,
            rgba(1, 22, 43, 0.18) 100%
        );

    pointer-events: none;
}


.library-article-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.55s ease;
}


.library-article:hover .library-article-image img {
    transform: scale(1.035);
}


/* Destacado */

.library-featured-label {
    position: absolute;
    z-index: 3;

    left: 18px;
    top: 18px;

    min-height: 27px;

    display: inline-flex;
    align-items: center;

    padding: 0 10px;

    border: 1px solid rgba(98, 226, 255, 0.35);
    border-radius: 999px;

    color: var(--white);

    background:
        rgba(3, 30, 57, 0.76);

    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.10em;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



/* ==========================================================
   7. CONTENIDO DE TARJETAS
   ========================================================== */

.library-article-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 25px 25px 21px;
}


.library-article-featured .library-article-content {
    justify-content: center;

    padding: 40px 42px;
}


.library-article-content .article-category {
    margin-bottom: 11px;
}


.library-article-content h2 {
    margin: 0 0 11px;

    color: var(--navy-900);

    font-size: 1.2rem;
    line-height: 1.24;
    letter-spacing: -0.03em;
}


.library-article-featured h2 {
    max-width: 560px;

    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}


.library-article-content h2 a {
    transition:
        color var(--transition);
}


.library-article-content h2 a:hover {
    color: var(--blue-600);
}


.library-article-content > p {
    margin: 0 0 25px;

    color: var(--text-soft);

    font-size: 0.79rem;
    line-height: 1.62;
}


.library-article-featured
.library-article-content > p {
    max-width: 570px;

    font-size: 0.9rem;
    line-height: 1.7;
}



/* ==========================================================
   8. PIE DE TARJETA
   ========================================================== */

.library-article-footer {
    margin-top: auto;

    display: flex;
    align-items: center;

    gap: 11px;

    padding-top: 15px;

    border-top:
        1px solid #edf3f8;

    color: var(--text-muted);

    font-size: 0.64rem;
}


.library-article-footer time {
    padding-left: 11px;

    border-left:
        1px solid #dfeaf3;
}


.library-article-footer .article-arrow {
    margin-left: auto;

    flex-shrink: 0;
}



/* ==========================================================
   9. FILTRADO
   ========================================================== */

.library-article.article-hidden {
    display: none;
}



/* ==========================================================
   10. BLOQUE FINAL
   ========================================================== */

.articles-purpose {
    position: relative;

    min-height: 240px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f2f9ff 0%,
            #e4f3ff 100%
        );
}


.articles-purpose-background {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 130%,
            rgba(0, 123, 224, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 120%,
            rgba(0, 189, 244, 0.13),
            transparent 38%
        );
}


.articles-purpose-background::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 50%;

    opacity: 0.24;

    background-image:
        linear-gradient(
            90deg,
            rgba(10, 124, 210, 0.10) 1px,
            transparent 1px
        );

    background-size: 70px 100%;
}


.articles-purpose-container {
    position: relative;
    z-index: 2;

    text-align: center;
}


.articles-purpose-container > span {
    display: block;

    margin-bottom: 9px;

    color: #7692ac;

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}


.articles-purpose-container h2 {
    max-width: 750px;

    margin: 0 auto;

    color: var(--navy-900);

    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}


.articles-purpose-container h2 strong {
    color: var(--blue-600);

    font-weight: 800;
}



/* ==========================================================
   11. TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .articles-library-grid {
        grid-template-columns: 1fr;
    }


    .library-article-featured {
        grid-column: auto;
    }


    .library-article,
    .library-article-featured {
        grid-template-columns:
            minmax(300px, 0.85fr)
            minmax(0, 1.15fr);
    }


    .articles-library-heading {
        gap: 30px;
    }

}



/* ==========================================================
   12. TABLET PEQUEÑA / MÓVIL
   ========================================================== */

@media (max-width: 820px) {

    /* Hero */

    .articles-hero {
        min-height: 390px;

        padding-top: 68px;
    }


    .articles-hero-content {
        max-width: 680px;

        margin-inline: auto;

        padding: 64px 0 56px;

        text-align: center;
    }


    .articles-eyebrow {
        justify-content: center;
    }


    .articles-hero h1 {
        font-size:
            clamp(3.1rem, 12vw, 4.6rem);
    }


    .articles-hero-content > p {
        margin-inline: auto;

        font-size: 0.95rem;
    }


    .articles-hero-topics {
        justify-content: center;
    }


    .articles-hero::before {
        width: 390px;
        height: 390px;

        right: -210px;
        top: -80px;
    }


    /* Biblioteca */

    .articles-library {
        padding: 48px 0 60px;
    }


    .articles-library-heading {
        display: block;

        margin-bottom: 25px;
    }


    .articles-library-heading > p {
        max-width: 600px;

        margin-top: 13px;
    }


    /* Tarjetas */

    .library-article,
    .library-article-featured {
        grid-template-columns: 1fr;
    }


    .library-article-image,
    .library-article-featured
    .library-article-image {
        min-height: 280px;
    }


    .library-article-featured
    .library-article-content {
        padding: 27px;
    }


    .library-article-featured h2 {
        font-size: 1.75rem;
    }

}



/* ==========================================================
   13. MÓVIL
   ========================================================== */

@media (max-width: 560px) {

    /* Hero */

    .articles-hero {
        min-height: auto;
    }


    .articles-hero-content {
        padding: 54px 0 48px;
    }


    .articles-eyebrow {
        font-size: 0.60rem;

        letter-spacing: 0.12em;
    }


    .articles-eyebrow > span {
        width: 27px;
    }


    .articles-hero h1 {
        margin-bottom: 15px;

        font-size: 3.05rem;
    }


    .articles-hero-content > p {
        font-size: 0.88rem;
        line-height: 1.65;
    }


    .articles-hero-topics {
        gap: 7px;

        margin-top: 23px;
    }


    .articles-hero-topics span {
        min-height: 29px;

        padding: 0 10px;

        font-size: 0.61rem;
    }


    /* Biblioteca */

    .articles-library {
        padding: 40px 0 52px;
    }


    .articles-library-heading h2 {
        font-size: 1.8rem;
    }


    .articles-library-heading > p {
        font-size: 0.77rem;
    }


    /* Filtros */

    .article-filters {
        flex-wrap: nowrap;

        gap: 7px;

        margin-right: -14px;
        margin-left: -14px;

        padding:
            0 14px 17px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .article-filters::-webkit-scrollbar {
        display: none;
    }


    .article-filter {
        flex: 0 0 auto;

        min-height: 35px;

        padding: 0 13px;

        font-size: 0.65rem;
    }


    /* Tarjetas */

    .articles-library-grid {
        gap: 19px;
    }


    .library-article-image,
    .library-article-featured
    .library-article-image {
        min-height: 205px;
    }


    .library-article-content,
    .library-article-featured
    .library-article-content {
        padding: 21px 19px 18px;
    }


    .library-article-content h2,
    .library-article-featured h2 {
        font-size: 1.25rem;
        line-height: 1.2;
    }


    .library-article-content > p,
    .library-article-featured
    .library-article-content > p {
        font-size: 0.78rem;
        line-height: 1.58;
    }


    .library-article-footer {
        flex-wrap: wrap;

        gap: 8px 10px;
    }


    .library-article-footer time {
        border-left: 0;

        padding-left: 0;
    }


    .library-article-footer .article-arrow {
        margin-left: auto;
    }


    /* Final */

    .articles-purpose {
        min-height: 205px;
    }


    .articles-purpose-container h2 {
        font-size: 1.8rem;
    }


    .articles-purpose-container h2 strong {
        display: block;
    }

}



/* ==========================================================
   14. MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 390px) {

    .articles-hero-content {
        padding: 45px 0 42px;
    }


    .articles-hero h1 {
        font-size: 2.65rem;
    }


    .articles-hero-topics span:last-child {
        display: none;
    }


    .library-article-image,
    .library-article-featured
    .library-article-image {
        min-height: 185px;
    }


    .library-article-content,
    .library-article-featured
    .library-article-content {
        padding: 19px 17px 17px;
    }


    .articles-purpose-container h2 {
        font-size: 1.6rem;
    }

}



/* ==========================================================
   15. ACCESIBILIDAD
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .library-article,
    .library-article-image img,
    .article-filter {
        transition: none;
    }

}