:root {
    --altea-news-green: #15302b;
    --altea-news-green-2: #29483f;
    --altea-news-bg: #f7f7f3;
    --altea-news-white: #ffffff;
    --altea-news-text: #17302b;
    --altea-news-muted: #687772;
    --altea-news-border: rgba(21, 48, 43, .12);
}

.altea-news-page,
.altea-news-page *,
.altea-news-page *::before,
.altea-news-page *::after {
    box-sizing: border-box;
}

.altea-news-page {
    overflow: hidden;
    color: var(--altea-news-text);
    background: var(--altea-news-bg);
}

.altea-news-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| HERO
|--------------------------------------------------------------------------
*/

.altea-news-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 490px;
    overflow: hidden;
    padding: 120px 0 76px;
    background:
        radial-gradient(
            circle at 79% 16%,
            rgba(255, 255, 255, .14),
            transparent 26%
        ),
        linear-gradient(
            132deg,
            #10251f 0%,
            #17362f 55%,
            #31554c 100%
        );
}

.altea-news-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .045) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
}

.altea-news-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -65%;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.altea-news-hero__glow {
    position: absolute;
    top: -250px;
    right: -120px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, .065);
    filter: blur(4px);
}

.altea-news-hero .altea-news-shell {
    position: relative;
    z-index: 2;
    animation:
        alteaNewsEnter .85s cubic-bezier(.2, .7, .2, 1)
        both;
}

.altea-news-eyebrow {
    display: inline-block;
    margin-bottom: 19px;
    color: rgba(255, 255, 255, .67);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .20em;
}

.altea-news-eyebrow--dark {
    color: var(--altea-news-muted);
}

.altea-news-hero h1 {
    max-width: 950px;
    margin: 0;
    color: #fff;
    font-size:
        clamp(54px, 7vw, 98px);
    font-weight: 500;
    line-height: .94;
    letter-spacing: -.058em;
}

.altea-news-hero p {
    max-width: 780px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .79);
    font-size:
        clamp(19px, 2vw, 27px);
    font-weight: 400;
    line-height: 1.42;
}

/*
|--------------------------------------------------------------------------
| CONTENIDO
|--------------------------------------------------------------------------
*/

.altea-news-content {
    padding: 88px 0 125px;
}

.altea-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 43px;
}

.altea-news-heading h2 {
    margin: 0;
    color: var(--altea-news-text);
    font-size:
        clamp(38px, 5vw, 65px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.048em;
}

.altea-news-count {
    padding-bottom: 5px;
    color: var(--altea-news-muted);
    font-size: 14px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| GRILLA
|--------------------------------------------------------------------------
*/

.altea-news-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.altea-news-card {
    min-width: 0;
    overflow: hidden;
    border:
        1px solid var(--altea-news-border);
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 8px 30px rgba(21, 48, 43, .035);
    transition:
        transform .4s cubic-bezier(.2, .8, .2, 1),
        box-shadow .4s ease,
        border-color .4s ease;
}

.altea-news-card:hover {
    border-color:
        rgba(21, 48, 43, .20);
    transform: translateY(-8px);
    box-shadow:
        0 28px 70px rgba(21, 48, 43, .13);
}

.altea-news-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #d8dedb;
}

.altea-news-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition:
        transform .8s cubic-bezier(.2, .8, .2, 1),
        filter .5s ease;
}

.altea-news-card:hover
.altea-news-card__media img {
    transform: scale(1.055);
}

.altea-news-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(7, 27, 22, .58) 0%,
            rgba(7, 27, 22, .05) 58%,
            transparent 100%
        );
}

.altea-news-card__date {
    position: absolute;
    left: 18px;
    bottom: 17px;
    z-index: 2;
    padding: 8px 12px;
    color: #fff;
    border:
        1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background:
        rgba(17, 43, 37, .74);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 800;
}

.altea-news-card__body {
    padding: 25px 25px 29px;
}

.altea-news-card__category {
    display: block;
    margin-bottom: 13px;
    color: var(--altea-news-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .15em;
}

.altea-news-card h3 {
    margin: 0;
    font-size:
        clamp(22px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.09;
    letter-spacing: -.035em;
}

.altea-news-card h3 a {
    color: var(--altea-news-text);
    text-decoration: none;
}

.altea-news-card__body p {
    margin: 18px 0 0;
    color: var(--altea-news-muted);
    font-size: 14px;
    line-height: 1.67;
}

.altea-news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    color: var(--altea-news-green);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.altea-news-card__more span {
    display: inline-block;
    transition:
        transform .25s ease;
}

.altea-news-card:hover
.altea-news-card__more span {
    transform: translateX(5px);
}

/*
|--------------------------------------------------------------------------
| VACIO
|--------------------------------------------------------------------------
*/

.altea-news-empty {
    padding: 85px 30px;
    border:
        1px solid var(--altea-news-border);
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.altea-news-empty > span {
    color: var(--altea-news-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.altea-news-empty h3 {
    margin: 15px 0 10px;
    font-size:
        clamp(30px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -.04em;
}

.altea-news-empty p {
    margin: 0;
    color: var(--altea-news-muted);
}

/*
|--------------------------------------------------------------------------
| ANIMACION
|--------------------------------------------------------------------------
*/

@keyframes alteaNewsEnter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {

    .altea-news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 680px) {

    .altea-news-shell {
        width:
            min(100% - 30px, 1240px);
    }

    .altea-news-hero {
        min-height: 400px;
        padding:
            92px 0 54px;
    }

    .altea-news-content {
        padding:
            64px 0 82px;
    }

    .altea-news-heading {
        display: block;
    }

    .altea-news-count {
        display: block;
        margin-top: 16px;
    }

    .altea-news-grid {
        grid-template-columns: 1fr;
    }

}
