.hec-tours-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 2.4vw, 48px);
    width: 100%;
    margin-top: 2rem;
}

.hec-tour-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-radius: 18px;
    background: #cfcdc2;
    color: #292927;
    font-family: var(--hec-font-body);
}

/* Imagen */

.hec-tour-card__media {
    position: relative;
    display: block;
    height: clamp(273px, 9vw, 334px);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.hec-tour-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

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

.hec-tour-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.02) 35%,
            rgba(0, 0, 0, 0.12) 58%,
            rgba(0, 0, 0, 0.72) 100%);

    pointer-events: none;
    height: 270px;
}

/* Categoría */

.hec-tour-card__category {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;

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

    min-width: 200px;
    min-height: 50px;
    padding: 10px 25px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--hec-header-accent);

    font-family: var(--hec-font-header);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border: 1px solid #f4f4f4;
}

/* Título */

.hec-tour-card__title {
    position: absolute;
    z-index: 2;
    right: 26px;
    bottom: 28px;
    left: 26px;

    margin: 0;

    color: #fff;
    font-family: var(--hec-font-header);
    font-size: clamp(22px, 1vw, 32px);
    font-weight: 700;
    line-height: 0.98;
}

/* Precio / comfort */

.hec-tour-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 88px;
    padding: 18px 26px;

    border-bottom: 2px solid #fff;
}

.hec-tour-card__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
}

.hec-tour-card__from {
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}

.hec-tour-card__price strong {
    font-family: var(--hec-font-header);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.hec-tour-card__comfort {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;

    font-size: 15px;
}

.hec-tour-card__stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hec-tour-card__star {
    color: rgba(41, 41, 39, 0.22);
    font-size: 17px;
    line-height: 1;
}

.hec-tour-card__star.is-active {
    color: #292927;
}

/* Información */

.hec-tour-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px clamp(18px, 1vw, 48px);

    padding: 21px 26px 27px;
}

.hec-tour-card__pill {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;
    padding: 7px 18px;

    border-radius: 999px;
    background: #fff;
    color: #292927;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
}

/* =========================================================
   TOUR OVERVIEW
   ========================================================= */

.hec-tour-overview {
    position: relative;
    width: 100%;
    overflow: hidden;

    background-color: #e3e2db;
    background-image: url('../images/texture-road.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    font-family: var(--hec-font-body);
}

.hec-tour-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background: rgba(207, 205, 194, 0.78);

    pointer-events: none;
}

.hec-tour-overview__inner {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 32px;

    width: min(1180px, calc(100% - 48px));
    min-height: 132px;

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


/* =========================================================
   TITLE
   ========================================================= */

.hec-tour-overview__heading {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;

    min-width: 165px;
}

.hec-tour-overview__heading-line {
    display: block;

    width: 100%;
    height: 4px;

    background: var(--hec-header-accent);
}

.hec-tour-overview__heading-content {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 5px 0;

    color: #292927;

    font-family: var(--hec-font-header);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;
}

.hec-tour-overview__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #292927;
    color: #fff;

    font-family: var(--hec-font-body);
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   ITEMS
   ========================================================= */

.hec-tour-overview__items {
    flex: 1;

    display: grid;
    grid-template-columns:
        minmax(170px, 0.9fr) minmax(210px, 1.1fr) minmax(250px, 1.4fr) minmax(210px, 1fr);

    gap: 22px;
}

.hec-tour-overview__item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);

    min-width: 0;
    min-height: 78px;

    overflow: hidden;

    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.03);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hec-tour-overview__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--hec-header-accent);
    color: #fff;
}

.hec-tour-overview__icon img {
    display: block;
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.hec-tour-overview__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: 12px 14px;
}

.hec-tour-overview__label {
    display: block;

    margin-bottom: 3px;

    color: #383835;

    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

.hec-tour-overview__value {
    display: block;

    color: #292927;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;

    overflow-wrap: anywhere;
}

/* =========================================================
   WHITE BUTTON - PHOTO ICON
   ========================================================= */

a.hec-btn-icon-photo.e-button-base {
    gap: 18px;
}

/* Icono */
a.hec-btn-icon-photo.e-button-base::before {
    content: "";
    display: block;
    flex: 0 0 auto;

    width: 25px;
    height: 25px;

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

    -webkit-mask-image: url("../images/ico-photos.svg");
    mask-image: url("../images/ico-photos.svg");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

body.hec-lightbox-open {
    overflow: hidden;
}

.hec-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.hec-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(2px);
}

.hec-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 80px;
}

.hec-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1100px, 100%);
    height: min(78vh, 800px);
}

.hec-lightbox__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.985);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.hec-lightbox__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hec-lightbox__slide img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hec-lightbox__close {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hec-lightbox__close:focus,
.hec-lightbox__nav:focus {
    background-color: var(--hec-header-accent) !important;
}

.hec-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hec-lightbox__nav--prev {
    left: 24px;
}

.hec-lightbox__nav--next {
    right: 24px;
}

.hec-lightbox__counter {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    color: #fff;
    font-family: var(--hec-font-body);
    font-size: 13px;
    text-align: center;
}

/* Hover */

@media (hover: hover) and (pointer: fine) {

    .hec-tour-card__media:hover .hec-tour-card__image {
        transform: scale(1.045);
    }

    .hec-tour-card__media:hover .hec-tour-card__title {
        color: #fff;
    }

    .hec-tour-overview__item:hover {
        transform: translateY(-3px);

        box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.08);
    }

    a.hec-btn-icon-photo.e-button-base:hover::before {
        background-color: #fff;
        transform: scale(1.06);
    }

    .hec-lightbox__close:hover,
    .hec-lightbox__nav:hover {
        background: var(--hec-header-accent);
        border-color: var(--hec-header-accent);
    }

    .hec-lightbox__close:hover {
        transform: scale(1.05);
    }

    .hec-lightbox__nav--prev:hover {
        transform: translateY(-50%) translateX(-2px);
    }

    .hec-lightbox__nav--next:hover {
        transform: translateY(-50%) translateX(2px);
    }
}

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

@media (max-width: 1100px) {

    .hec-tour-overview__inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;

        padding: 24px 0;
    }

    .hec-tour-overview__heading {
        min-width: 170px;
    }

    .hec-tour-overview__items {
        width: 100%;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .hec-tour-overview__item {
        min-height: 74px;

        grid-template-columns: 62px minmax(0, 1fr);
    }

    .hec-tour-overview__icon img {
        width: 27px;
        height: 27px;
    }
}

/* Tablet */

@media (max-width: 1024px) {

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

    .hec-tour-card__media {
        height: 380px;
    }

    .hec-tour-card__overlay {
        height: 280px;
    }
}

/* Mobile */

a.hec-btn-large.e-button-base {
    min-height: 72px;
    padding: 18px 42px;
    font-size: 22px;
}

@media (max-width: 767px) {
    a.hec-btn-large.e-button-base {
        min-height: 58px;
        padding: 14px 30px;
        font-size: 17px;
    }

    .hec-lightbox__dialog {
        padding: 60px 16px 54px;
    }

    .hec-lightbox__stage {
        width: 100%;
        height: 68vh;
    }

    .hec-lightbox__nav {
        top: auto;
        bottom: 18px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .hec-lightbox__nav--prev {
        left: calc(50% - 54px);
    }

    .hec-lightbox__nav--next {
        right: calc(50% - 54px);
    }

    .hec-lightbox__counter {
        bottom: -46px;
    }

    .hec-lightbox__close {
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 700px) {

    .hec-tours-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hec-tour-card {
        border-radius: 15px;
    }

    .hec-tour-card__media {
        height: 410px;
    }

    .hec-tour-card__overlay {
        height: 325px;
    }

    .hec-tour-card__category {
        top: 20px;
        left: 20px;

        min-width: 0;
        min-height: 44px;
        padding: 10px 22px;

        font-size: 14px;
    }

    .hec-tour-card__title {
        right: 22px;
        bottom: 24px;
        left: 22px;
        font-size: 23px;
    }

    .hec-tour-card__price-row {
        padding: 17px 22px;
    }

    .hec-tour-card__from {
        font-size: 22px;
    }

    .hec-tour-card__price strong {
        font-size: 26px;
    }

    .hec-tour-card__comfort {
        gap: 7px;
        font-size: 15px;
    }

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

    .hec-tour-card__details {
        gap: 14px;
        padding: 20px 22px 24px;
    }

    .hec-tour-card__pill {
        min-height: 46px;
        padding: 7px 12px;
        font-size: 15px;
    }
}


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

@media (max-width: 640px) {

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

        gap: 14px;

        padding: 20px 0;
    }

    .hec-tour-overview__heading {
        min-width: 150px;
    }

    .hec-tour-overview__heading-content {
        font-size: 15px;
    }

    .hec-tour-overview__heading-line {
        height: 3px;
    }

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

        gap: 10px;
    }

    .hec-tour-overview__item {
        display: flex;
        flex-direction: column;

        min-height: 112px;

        border-radius: 7px;
    }

    .hec-tour-overview__icon {
        flex: 0 0 42px;

        min-height: 42px;
    }

    .hec-tour-overview__icon img {
        width: 23px;
        height: 23px;
    }

    .hec-tour-overview__content {
        flex: 1;

        justify-content: flex-start;

        padding: 10px 11px;
    }

    .hec-tour-overview__label {
        margin-bottom: 5px;

        font-size: 11px;
    }

    .hec-tour-overview__value {
        font-size: 12px;
        line-height: 1.18;
    }
}

/* Mobile pequeño */

@media (max-width: 430px) {

    .hec-tour-card__price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

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

@media (max-width: 370px) {

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

    .hec-tour-overview__item {
        display: grid;

        grid-template-columns: 54px minmax(0, 1fr);

        min-height: 66px;
    }

    .hec-tour-overview__icon {
        min-height: 100%;
    }

    .hec-tour-overview__content {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hec-lightbox__slide,
    .hec-lightbox__close,
    .hec-lightbox__nav {
        transition: none;
    }
}