/* =========================================================
   TOUR CATEGORY HERO
   ========================================================= */

.hec-tour-category-hero {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    width: 100%;
    min-height: 610px;

    overflow: hidden;

    background-color: #222;
}


/* =========================================================
   BACKGROUND IMAGE
   ========================================================= */

.hec-tour-category-hero__media {
    position: absolute !important;
    inset: 0 !important;

    z-index: 0;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
}

.hec-tour-category-hero__media img,
.hec-tour-category-hero__image {
    position: absolute;

    top: 0;
    left: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;
    object-position: center center;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.hec-tour-category-hero__overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.20) 45%,
            rgba(0, 0, 0, 0.65) 100%);

    pointer-events: none;
}


/* =========================================================
   CONTENT
   ========================================================= */

.hec-tour-category-hero__content {
    position: relative;
    z-index: 2;

    width: min(1380px, calc(100% - 48px));

    margin: 0 auto;
    padding: 0 0 65px;

    text-align: center;
}

.hec-tour-category-hero__eyebrow {
    display: block;

    margin: 0 0 10px;

    color: #fff;

    font-family: var(--hec-font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
}

.hec-tour-category-hero__title {
    max-width: 900px;

    margin: 0 auto;

    color: #fff;

    font-family: var(--hec-font-header);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 700;
    line-height: 0.95;

    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .hec-tour-category-hero {
        min-height: 520px;
    }

    .hec-tour-category-hero__content {
        padding-bottom: 50px;
    }

    .hec-tour-category-hero__title {
        font-size: clamp(40px, 6vw, 58px);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .hec-tour-category-hero {
        min-height: 430px;
    }

    .hec-tour-category-hero__content {
        width: calc(100% - 40px);
        padding-bottom: 38px;
    }

    .hec-tour-category-hero__eyebrow {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .hec-tour-category-hero__title {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 0.95;
    }
}


/* =========================================================
   CATEGORY CONTENT
   ========================================================= */

.hec-tour-category-content {
    width: min(1380px, calc(100% - 48px));

    margin: 0 auto;
    padding: 24px 0 80px;
}

/* =========================================================
   TOUR BREADCRUMB
   ========================================================= */

.hec-tour-category-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    width: 100%;
    margin: 0;

    font-family: var(--hec-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;

    color: #292927;
}

.hec-tour-category-breadcrumb a {
    color: #292927;
    text-decoration: underline;
    text-underline-offset: 3px;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.hec-tour-category-breadcrumb a:hover {
    color: #cf3517;
}

.hec-tour-category-breadcrumb__separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #292927;
    opacity: 0.65;
}

.hec-tour-category-breadcrumb__current {
    color: #292927;
    font-weight: 500;
}


/* Mobile */

@media (max-width: 767px) {

    .hec-tour-category-breadcrumb {
        gap: 6px;

        font-size: 12px;
    }

}

.hec-tour-category-description {
    max-width: 850px;

    margin: 0 auto 44px;

    font-size: 17px;
    line-height: 1.5;
    text-align: center;
}

.hec-tour-category-description p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   TOURS ARCHIVE
   ========================================================= */

.hec-tours-archive {
    background: #fff;
}

.hec-tours-archive__intro {
    padding: 190px 24px 50px;

    text-align: center;
}

.hec-tours-archive__intro-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

.hec-tours-archive__eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--hec-header-accent);

    font-family: var(--hec-font-header);
    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
}

.hec-tours-archive__intro h1 {
    margin: 0;

    color: #292927;

    font-family: var(--hec-font-header);
    font-size: 2rem;
    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   LARGE CATEGORY CARDS
   ========================================================= */

.hec-tour-destinations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;

    width: min(1380px, calc(100% - 48px));

    margin: 0 auto;
    padding-bottom: 80px;
}

.hec-tour-destination-card {
    position: relative;
    display: flex;
    align-items: flex-end;

    min-height: 560px;
    overflow: hidden;

    border-radius: 20px;

    background-color: #292927;
}

/* Imagen como background visual */
.hec-tour-destination-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.hec-tour-destination-card__image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.001);

    transition:
        transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

/* Overlay */
.hec-tour-destination-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.08) 15%,
            rgba(0, 0, 0, 0.20) 45%,
            rgba(0, 0, 0, 0.82) 100%);

    pointer-events: none;
}

/* Contenido */
.hec-tour-destination-card__content {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 42px;

    color: #fff;
}

.hec-tour-destination-card__content h2 {
    max-width: 700px;

    margin: 0 0 18px;

    color: #fff;

    font-family: var(--hec-font-header);
    font-size: clamp(38px, 3.2vw, 56px);
    font-weight: 700;
    line-height: 0.98;

    text-transform: uppercase;
}

/* Hover */
@media (hover: hover) and (pointer: fine) {

    .hec-tour-destination-card:hover .hec-tour-destination-card__image {
        transform: scale(1.055);
    }
}

/* Tablet */
@media (max-width: 1024px) {

    .hec-tour-destination-card {
        min-height: 480px;
    }

    .hec-tour-destination-card__content {
        padding: 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .hec-tour-destination-card {
        min-height: 430px;
        border-radius: 16px;
    }

    .hec-tour-destination-card__content {
        padding: 24px;
    }

    .hec-tour-destination-card__content h2 {
        font-size: 34px;
    }
}


/* =========================================================
   ALL TOURS
   ========================================================= */

.hec-tours-archive__all {
    padding: 30px 0 90px;
}

.hec-tours-archive__all-inner {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

.hec-tours-archive__all h2 {
    margin: 0 0 36px;

    font-family: var(--hec-font-header);
    font-size: clamp(30px, 3vw, 30px);

    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 1024px) {

    .hec-tour-category-hero {
        min-height: 520px;
    }

    .hec-tour-category-hero__content {
        padding-bottom: 60px;
    }

    .hec-tour-destinations {
        gap: 20px;
    }

    .hec-tour-destination-card {
        min-height: 480px;
    }

    .hec-tour-destination-card__content {
        padding: 30px;
    }
}


@media (max-width: 767px) {

    .hec-tours-archive__intro {
        padding:
            calc(var(--hec-header-height-scrolled) + 45px) 16px 36px;
    }

    .hec-tour-destinations {
        grid-template-columns: 1fr;

        width: calc(100% - 28px);

        gap: 18px;

        padding-bottom: 50px;
    }

    .hec-tour-destination-card {
        min-height: 430px;

        border-radius: 16px;
    }

    .hec-tour-destination-card__content {
        padding: 25px;
    }

    .hec-tour-destination-card h2 {
        font-size: 34px;
    }

    .hec-tour-destination-card__description {
        font-size: 14px;
    }


    .hec-tour-category-hero {
        min-height: 460px;
    }

    .hec-tour-category-hero__content {
        width: calc(100% - 32px);

        padding-bottom: 45px;
    }

    .hec-tour-category-hero__eyebrow {
        font-size: 17px;
    }

    .hec-tour-category-hero__title {
        font-size: 38px;
    }


    .hec-tour-category-content {
        width: calc(100% - 28px);

        padding-top: 18px;
        padding-bottom: 55px;
    }

    .hec-tour-category-breadcrumb {
        margin-bottom: 28px;

        font-size: 12px;
    }

    .hec-tour-category-description {
        margin-bottom: 30px;

        font-size: 15px;
    }
}