/*
|--------------------------------------------------------------------------
| NOTICIAS ALTEA — PORTADA EDITORIAL V2
|--------------------------------------------------------------------------
*/

:root {
    --editorial-green: #15302b;
    --editorial-green-dark: #0d2420;
    --editorial-green-light: #255347;
    --editorial-mint: #dce9e3;
    --editorial-sand: #f1eee7;
    --editorial-paper: #fafaf8;
    --editorial-white: #ffffff;
    --editorial-ink: #17211e;
    --editorial-muted: #69736f;
    --editorial-line: #d9dfdc;
    --editorial-accent: #9fc4b6;
    --editorial-shadow: 0 24px 70px rgba(15, 38, 32, .12);
}

body {
    overflow-x: hidden;
    background: var(--editorial-paper);
}

.site-header {
    position: relative;
    z-index: 40;
    width: 100%;
    background: var(--editorial-green);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.header-inner {
    width: min(1380px, calc(100% - 64px));
}

.editorial-home {
    min-height: 70vh;
    background: var(--editorial-paper);
}

.editorial-shell {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    padding: 100px 0 125px;
}

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

.editorial-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: clamp(560px, 72vh, 780px);
    overflow: hidden;
    color: var(--editorial-white);
    background:
        var(--editorial-green)
        var(--hero-image)
        center / cover no-repeat;
}

.editorial-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(6, 25, 20, .94) 0%,
            rgba(6, 25, 20, .69) 43%,
            rgba(6, 25, 20, .18) 75%
        );
}

.editorial-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(5, 20, 16, .84) 0%,
            rgba(5, 20, 16, 0) 60%
        );
}

.editorial-hero__content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    padding: 95px 0;
}

.editorial-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.editorial-labels span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.editorial-labels .editorial-labels__featured {
    color: var(--editorial-green-dark);
    background: var(--editorial-accent);
    border-color: var(--editorial-accent);
}

.editorial-hero h1 {
    max-width: 920px;
    margin: 0;
    font: 500 clamp(44px, 6.3vw, 86px)/1.01 "Manrope", sans-serif;
    letter-spacing: -.055em;
}

.editorial-hero__content > p {
    max-width: 680px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.7;
}

.editorial-hero__actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 38px;
}

.editorial-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 23px;
    color: var(--editorial-green-dark);
    background: var(--editorial-white);
    border: 1px solid var(--editorial-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color .25s ease,
        background .25s ease;
}

.editorial-button:hover {
    color: var(--editorial-white);
    background: transparent;
}

.editorial-hero time {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| SELECTOR HORIZONTAL DE FECHAS
|--------------------------------------------------------------------------
*/

.editorial-dates {
    position: relative;
    background: var(--editorial-green-dark);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.editorial-dates__track {
    display: flex;
    width: min(1380px, 100%);
    margin: 0 auto;
    padding: 0 32px;
    overflow-x: auto;
    scrollbar-color:
        var(--editorial-accent)
        var(--editorial-green-dark);
    scrollbar-width: thin;
}

.date-chip {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 175px;
    min-height: 96px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, .68);
    border-right: 1px solid rgba(255, 255, 255, .12);
    text-decoration: none;
    transition:
        color .25s ease,
        background .25s ease;
}

.date-chip:first-child {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.date-chip small {
    margin-bottom: 8px;
    color: var(--editorial-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.date-chip strong {
    font: 500 14px/1.3 "Manrope", sans-serif;
    letter-spacing: .02em;
}

.date-chip:hover,
.date-chip.is-active {
    color: var(--editorial-white);
    background: var(--editorial-green-light);
}

/*
|--------------------------------------------------------------------------
| ENCABEZADOS DE SECCIÓN
|--------------------------------------------------------------------------
*/

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.section-title .eyebrow {
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
    font: 500 clamp(34px, 4vw, 55px)/1.06 "Manrope", sans-serif;
    letter-spacing: -.045em;
}

.section-title > span,
.section-title > a {
    max-width: 320px;
    padding-bottom: 8px;
    color: var(--editorial-muted);
    font-size: 13px;
    text-align: right;
    text-decoration: none;
}

.section-title > a {
    color: var(--editorial-green);
    border-bottom: 1px solid var(--editorial-green);
}

/*
|--------------------------------------------------------------------------
| NOTICIA DESTACADA
|--------------------------------------------------------------------------
*/

.featured-editorial {
    margin-bottom: 110px;
}

.featured-editorial__card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(350px, .75fr);
    min-height: 535px;
    overflow: hidden;
    color: var(--editorial-ink);
    background: var(--editorial-sand);
    text-decoration: none;
    box-shadow: var(--editorial-shadow);
}

.featured-editorial__image {
    min-height: 535px;
    overflow: hidden;
    background: var(--editorial-green);
}

.featured-editorial__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.featured-editorial__card:hover .featured-editorial__image img {
    transform: scale(1.035);
}

.featured-editorial__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 70px);
}

.editorial-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--editorial-green-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.featured-editorial__copy h3 {
    margin: 0;
    font: 500 clamp(31px, 3.5vw, 51px)/1.08 "Manrope", sans-serif;
    letter-spacing: -.045em;
}

.featured-editorial__copy > p {
    margin: 25px 0 0;
    color: var(--editorial-muted);
    font-size: 16px;
    line-height: 1.75;
}

.featured-editorial__copy footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 22px;
    color: var(--editorial-muted);
    border-top: 1px solid var(--editorial-line);
    font-size: 12px;
}

.featured-editorial__copy footer span {
    color: var(--editorial-green);
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| FILA DE TRES NOTICIAS
|--------------------------------------------------------------------------
*/

.latest-editorial {
    margin-bottom: 110px;
}

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

.editorial-news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: var(--editorial-white);
    border: 1px solid var(--editorial-line);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.editorial-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(15, 38, 32, .1);
}

.editorial-news-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--editorial-mint);
}

.editorial-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.editorial-news-card:hover .editorial-news-card__image img {
    transform: scale(1.04);
}

.editorial-news-card__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.editorial-news-card__copy h3 {
    margin: 0;
    font: 600 clamp(21px, 2vw, 27px)/1.2 "Manrope", sans-serif;
    letter-spacing: -.03em;
}

.editorial-news-card__copy h3 a {
    text-decoration: none;
}

.editorial-news-card__copy > p {
    margin: 18px 0 0;
    color: var(--editorial-muted);
    line-height: 1.65;
}

.editorial-news-card__copy footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 28px;
    color: var(--editorial-muted);
    font-size: 12px;
}

.editorial-news-card__copy footer > a {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    color: var(--editorial-white);
    background: var(--editorial-green);
    border-radius: 50%;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| SECCIONES POR ETIQUETA
|--------------------------------------------------------------------------
*/

.editorial-tag-sections {
    display: grid;
    gap: 110px;
}

.tag-editorial-section {
    padding-top: 90px;
    border-top: 1px solid var(--editorial-line);
}

/*
|--------------------------------------------------------------------------
| ESTADOS VACÍOS
|--------------------------------------------------------------------------
*/

.editorial-empty {
    padding: 55px 35px;
    color: var(--editorial-muted);
    text-align: center;
    background: var(--editorial-sand);
    border: 1px solid var(--editorial-line);
}

.editorial-empty p {
    margin: 0;
}

.editorial-empty--hero {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 135px 32px 80px;
    color: var(--editorial-white);
    background:
        linear-gradient(
            110deg,
            rgba(10, 35, 28, .97),
            rgba(18, 54, 44, .84)
        ),
        url("../assets/backgrounds/background-home.jpg")
        center / cover;
    border: 0;
}

.editorial-empty--hero .eyebrow {
    color: var(--editorial-accent);
}

.editorial-empty--hero h1 {
    max-width: 850px;
    margin: 0;
    font: 500 clamp(42px, 6vw, 74px)/1.03 "Manrope", sans-serif;
    letter-spacing: -.05em;
}

.editorial-empty--hero > p:last-child {
    margin-top: 25px;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
}

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

@media (max-width: 1000px) {
    .featured-editorial__card {
        grid-template-columns: 1fr;
    }

    .featured-editorial__image {
        min-height: 440px;
        max-height: 540px;
    }

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

    .editorial-news-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
    }

    .main-nav {
        z-index: 50;
    }

    .editorial-hero {
        min-height: 650px;
    }

    .editorial-hero__content {
        padding: 80px 0;
    }
}

@media (max-width: 680px) {
    .header-inner,
    .editorial-hero__content,
    .editorial-shell {
        width: calc(100% - 40px);
    }

    .editorial-shell {
        padding: 70px 0 85px;
    }

    .editorial-hero {
        min-height: 590px;
    }

    .editorial-hero::before {
        background:
            linear-gradient(
                0deg,
                rgba(5, 23, 18, .96) 0%,
                rgba(5, 23, 18, .55) 75%
            );
    }

    .editorial-hero__content {
        padding: 65px 0;
    }

    .editorial-hero h1 {
        font-size: clamp(39px, 12vw, 58px);
    }

    .editorial-hero__content > p {
        font-size: 16px;
    }

    .editorial-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .editorial-dates__track {
        padding: 0 20px;
    }

    .date-chip {
        min-width: 155px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .section-title > span,
    .section-title > a {
        padding: 0;
        text-align: left;
    }

    .featured-editorial,
    .latest-editorial {
        margin-bottom: 80px;
    }

    .featured-editorial__image {
        min-height: 300px;
    }

    .featured-editorial__copy {
        padding: 30px 25px;
    }

    .featured-editorial__copy footer {
        flex-direction: column;
    }

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

    .editorial-news-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .editorial-tag-sections {
        gap: 75px;
    }

    .tag-editorial-section {
        padding-top: 70px;
    }

    .editorial-empty--hero {
        min-height: 400px;
        padding-top: 85px;
    }
}

/*
|--------------------------------------------------------------------------
| NOTICIA DESTACADA — EDITOR
|--------------------------------------------------------------------------
*/

.featured-option {
    padding: 20px !important;
    background: #eef5f1;
    border: 1px solid #bfd3ca !important;
}

.featured-option legend {
    padding: 0 8px;
    color: #15302b;
    font-weight: 700;
}

.featured-check {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer;
}

.featured-check input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: #15302b;
}

.featured-check span {
    display: grid;
    gap: 5px;
}

.featured-check strong {
    color: #15302b;
    font-size: 14px;
}

.featured-check small,
.featured-help {
    color: #65706c;
    font-size: 12px;
    line-height: 1.5;
}

.featured-help {
    margin: 14px 0 0;
    padding-top: 13px;
    border-top: 1px solid #cfddd7;
}

