/* ==========================================================================
   ÚLTIMAS OPINIONES - EUROFREETOUR
   --------------------------------------------------------------------------
   Carrusel horizontal de testimonios.
   ========================================================================== */


/* ==========================================================================
   1. SECCIÓN
   ========================================================================== */

.eft-reviews {
    position: relative;
    padding: 94px 0 108px;
    background: #ffffff;
    overflow: hidden;
}

.eft-reviews__container {
    position: relative;
}


/* ==========================================================================
   2. ENCABEZADO
   ========================================================================== */

.eft-reviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 66px;
}

.eft-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #ff4e55;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eft-reviews__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #ff4e55;
}

.eft-reviews__title {
    margin: 0;
    color: #746565;
    font-family: var(--eft-font-heading);
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}


/* ==========================================================================
   3. CONTROLES
   ========================================================================== */

.eft-reviews__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eft-reviews__nav {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #f53d46;
    color: #ffffff;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(245, 61, 70, 0.22);

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        opacity 0.22s ease;
}

.eft-reviews__nav:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);
    background: #e92f39;
    box-shadow:
        0 13px 26px rgba(245, 61, 70, 0.3);
}

.eft-reviews__nav:disabled {
    background: #ffb4b7;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.92;
}


/* ==========================================================================
   4. CARRUSEL
   ========================================================================== */

.eft-reviews__viewport {
    width: 100%;

    /* Mantiene oculto el desbordamiento horizontal,
       pero deja espacio vertical para el hover */
    overflow-x: hidden;
    overflow-y: visible;

    /* Aire superior e inferior para que la tarjeta pueda elevarse */
    padding: 10px 0 14px;
}

.eft-reviews__track {
    display: flex;
    align-items: stretch;
    gap: 18px;

    padding-top: 4px;

    transform: translate3d(0, 0, 0);

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}


/* ==========================================================================
   5. TARJETA
   ========================================================================== */

.eft-review-card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 18px 18px 0;

    border: 2px solid #d1d1d1;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 3px 8px rgba(16, 24, 40, 0.025);

    overflow: hidden;

    transition:
        border-color 0.24s ease,
        transform 0.24s ease,
        box-shadow 0.24s ease;
}

.eft-review-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 78, 85, 0.44);

    box-shadow:
        0 16px 34px rgba(40, 25, 28, 0.08);
}


/* ==========================================================================
   6. CABECERA DE LA TARJETA
   ========================================================================== */

.eft-review-card__top {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.eft-review-card__avatar {
    width: 58px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 58px;

    border-radius: 50%;

    background: #dddddd;
    color: #5d5d5d;

    overflow: hidden;
}

.eft-review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eft-review-card__avatar svg {
    width: 45px;
    height: 45px;
}

.eft-review-card__name {
    margin: 0 0 2px;
    color: #756666;
    font-family: var(--eft-font-body);
    font-size: 0.99rem;
    font-weight: 700;
    line-height: 1.25;
}

.eft-review-card__name span {
    font-weight: 600;
}

.eft-review-card__country-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eft-review-card__country {
    color: #756666;
    font-size: 0.9rem;
    font-weight: 700;
}

.eft-review-card__stars {
    display: inline-flex;
    gap: 1px;
    color: #d8d8d8;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.eft-review-card__stars span.is-filled {
    color: #ff5159;
}


/* ==========================================================================
   7. METADATOS Y COMENTARIO
   ========================================================================== */

.eft-review-card__meta {
    margin: 7px 0 8px;
    padding-left: 70px;

    color: #6d6767;
    font-size: 0.73rem;
    font-weight: 400;
    line-height: 1.35;
}

.eft-review-card__meta strong {
    color: #5f5757;
    font-weight: 700;
}

.eft-review-card__meta span {
    margin: 0 4px;
    color: #b4abab;
}

.eft-review-card__comment {
    margin: 0;
    padding: 0 0 13px 70px;

    color: #706969;
    font-size: 0.83rem;
    font-weight: 400;
    line-height: 1.32;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ==========================================================================
   8. TOUR RELACIONADO
   ========================================================================== */

.eft-review-card__tour {
    min-height: 58px;

    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding: 8px 0;

    border-top: 1px solid #eeeeee;
}

.eft-review-card__tour-image {
    width: 52px;
    height: 38px;

    display: block;

    border-radius: 2px;

    object-fit: cover;
}

.eft-review-card__tour-name {
    color: #ff424b;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.15;
    text-decoration: none;
}

.eft-review-card__tour-name:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ==========================================================================
   9. TABLET
   ========================================================================== */

@media (max-width: 992px) {
    .eft-reviews {
        padding: 82px 0 92px;
    }

    .eft-reviews__header {
        margin-bottom: 48px;
    }

    .eft-review-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}


/* ==========================================================================
   10. MÓVIL
   ========================================================================== */

@media (max-width: 680px) {
    .eft-reviews {
        padding: 66px 0 72px;
    }

    .eft-reviews__header {
        align-items: center;
        margin-bottom: 36px;
    }

    .eft-reviews__eyebrow {
        font-size: 0.7rem;
    }

    .eft-reviews__title {
        font-size: 1.55rem;
    }

    .eft-reviews__nav {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .eft-reviews__viewport {
        overflow: visible;
    }

    .eft-reviews__track {
        gap: 14px;
    }

    .eft-review-card {
        flex-basis: calc(100vw - 60px);
        max-width: 360px;
        padding: 16px 16px 0;
        border-radius: 18px;
        scroll-snap-align: start;
    }

    .eft-review-card__avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .eft-review-card__meta,
    .eft-review-card__comment {
        padding-left: 66px;
    }
}


/* ==========================================================================
   11. MÓVIL PEQUEÑO
   ========================================================================== */

@media (max-width: 390px) {
    .eft-reviews__header {
        gap: 14px;
    }

    .eft-reviews__title {
        font-size: 1.4rem;
    }

    .eft-review-card {
        flex-basis: calc(100vw - 42px);
    }

    .eft-review-card__meta,
    .eft-review-card__comment {
        padding-left: 0;
    }
}