/**
 * Estilos para la Sección Premium de Testimonios
 * Plugin: Global Expeditions Home Sections
 *
 * Espacio de nombres: .ge-testimonials, .ge-testimonials__*
 * Composición: Panel blanco a la izquierda superpuesto sobre fotografía panorámica a la derecha.
 */

/* ==========================================================================
   1. CONTENEDOR PRINCIPAL
   ========================================================================== */
.ge-testimonials {
    background-color: #FAF8F5;
    padding: 85px 0 95px 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.ge-testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    position: relative;
}

/* ==========================================================================
   2. BLOQUE DIVIDIDO EN DOS PARTES CON SUPERPOSICIÓN ELEGANTE
   ========================================================================== */
.ge-testimonials__wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   3. PANEL IZQUIERDO: TARJETA BLANCA / MARFIL
   ========================================================================== */
.ge-testimonials__panel {
    background-color: #FFFFFF;
    border-radius: 18px;
    padding: 50px 48px 46px 48px;
    width: 55%;
    max-width: 600px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09), 0 4px 14px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 3;
    margin-right: -70px; /* Superposición parcial sobre la fotografía */
    box-sizing: border-box;
}

/* ==========================================================================
   4. ENCABEZADO DEL PANEL (TÍTULO Y SUBTÍTULO)
   ========================================================================== */
.ge-testimonials__header {
    margin-bottom: 18px;
}

.ge-testimonials__title {
    font-family: inherit;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    line-height: 1.25 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.4px;
}

.ge-testimonials__subtitle {
    font-family: inherit;
    font-size: 15.5px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* ==========================================================================
   5. CINCO ESTRELLAS DORADAS
   ========================================================================== */
.ge-testimonials__stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 22px;
}

.ge-testimonials__star {
    color: #D97706;
    fill: #D97706;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.25));
}

/* ==========================================================================
   6. CONTENEDOR DEL TESTIMONIO EN CURSIVA
   ========================================================================== */
.ge-testimonials__quote-box {
    min-height: 125px; /* Evita saltos bruscos de altura al cambiar testimonios */
    display: flex;
    align-items: flex-start;
    margin-bottom: 26px;
    position: relative;
}

.ge-testimonials__quote {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.ge-testimonials__text {
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    color: #334155 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Estado de transición durante el cambio interactivo */
.ge-testimonials__text.is-fading,
.ge-testimonials__avatar.is-fading,
.ge-testimonials__meta.is-fading {
    opacity: 0;
    transform: translateY(4px);
}

/* ==========================================================================
   7. BARRA INFERIOR: AUTOR Y NAVEGACIÓN
   ========================================================================== */
.ge-testimonials__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #F1F5F9;
    padding-top: 22px;
    margin-top: 6px;
}

.ge-testimonials__author {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ge-testimonials__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ge-testimonials__avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ge-testimonials__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ge-testimonials__name {
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ge-testimonials__country {
    font-family: inherit;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   8. FLECHAS DE NAVEGACIÓN
   ========================================================================== */
.ge-testimonials__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ge-testimonials__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #CBD5E1;
    background-color: #FFFFFF;
    color: #0F172A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
}

.ge-testimonials__btn svg {
    display: block;
    transition: transform 0.2s ease;
}

.ge-testimonials__btn:hover {
    background-color: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
}

.ge-testimonials__btn--prev:hover svg {
    transform: translateX(-2px);
}

.ge-testimonials__btn--next:hover svg {
    transform: translateX(2px);
}

.ge-testimonials__btn:active {
    transform: translateY(0);
}

.ge-testimonials__btn:focus-visible {
    outline: 3px solid #55BFEA;
    outline-offset: 2px;
}

/* ==========================================================================
   9. FOTOGRAFÍA PANORÁMICA DERECHA (MACHU PICCHU)
   ========================================================================== */
.ge-testimonials__media {
    flex: 1;
    height: 520px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    background-color: #0F172A;
    box-sizing: border-box;
}

.ge-testimonials__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ge-testimonials__wrapper:hover .ge-testimonials__image {
    transform: scale(1.03);
}

/* ==========================================================================
   10. RESPONSIVE / ADAPTABILIDAD
   ========================================================================== */
@media (max-width: 1024px) {
    .ge-testimonials {
        padding: 70px 0 80px 0;
    }

    .ge-testimonials__panel {
        width: 58%;
        margin-right: -50px;
        padding: 42px 36px 38px 36px;
    }

    .ge-testimonials__media {
        height: 460px;
    }

    .ge-testimonials__title {
        font-size: 25px !important;
    }
}

@media (max-width: 820px) {
    .ge-testimonials__wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .ge-testimonials__panel {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 22px;
        padding: 36px 28px 32px 28px;
        border-radius: 16px;
    }

    .ge-testimonials__media {
        width: 100%;
        height: 320px;
        border-radius: 16px;
    }

    .ge-testimonials__quote-box {
        min-height: auto;
    }
}

@media (max-width: 540px) {
    .ge-testimonials {
        padding: 50px 0 60px 0;
    }

    .ge-testimonials__container {
        padding: 0 16px;
    }

    .ge-testimonials__panel {
        padding: 28px 20px 26px 20px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .ge-testimonials__title {
        font-size: 22px !important;
    }

    .ge-testimonials__subtitle {
        font-size: 14px !important;
    }

    .ge-testimonials__stars {
        margin-bottom: 16px;
    }

    .ge-testimonials__star {
        width: 18px;
        height: 18px;
    }

    .ge-testimonials__text {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
    }

    .ge-testimonials__footer {
        padding-top: 18px;
    }

    .ge-testimonials__avatar {
        width: 42px;
        height: 42px;
    }

    .ge-testimonials__name {
        font-size: 14px !important;
    }

    .ge-testimonials__country {
        font-size: 12.5px !important;
    }

    .ge-testimonials__btn {
        width: 38px;
        height: 38px;
    }

    .ge-testimonials__media {
        height: 240px;
        border-radius: 14px;
    }
}

/* ==========================================================================
   11. PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ge-testimonials__text,
    .ge-testimonials__avatar,
    .ge-testimonials__meta,
    .ge-testimonials__btn,
    .ge-testimonials__btn svg,
    .ge-testimonials__image {
        transition: none !important;
        transform: none !important;
    }
}
