/* =============================================
   VSE Package Carousel – Frontend Styles v1.0.0
   Viaja Sin Escalas
   ============================================= */

/* =============================================
   VSE Package Carousel – Frontend Styles v1.1.0
   Las tarjetas usan .vse-package-card y heredan
   TODOS los estilos de package-card.css.
   Este archivo solo añade la capa de carrusel.
   ============================================= */

/* ── Badge flotante (específico del carrusel) ── */
.vse-carousel__slide .vse-package-card {
    position: relative; /* contexto para el badge */
}

/* ── Banderín ── */
.vse-carousel-badge--pennant,
.vse-card-badge--pennant {
    left: 0 !important;
    transform: none !important;
    border-radius: 4px 0 0 4px !important;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    padding-right: 22px !important;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.18);
}

.vse-carousel-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: #e91e8c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 18px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(233, 30, 140, 0.32);
    pointer-events: none;
}

/* ── Badge: position variants ── */
.vse-carousel-badge--left {
    left: 14px;
    transform: none;
}
.vse-carousel-badge--right {
    left: auto;
    right: 14px;
    transform: none;
}
/* center is default (left:50% + translateX(-50%)) */

/* ── Badge: banner style (full-width ribbon) ── */
.vse-carousel-badge--banner {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    text-align: center;
    padding: 7px 16px !important;
    box-shadow: none;
}

/* ── Root ──────────────────────────────────── */
.vse-carousel {
    width: 100%;
    box-sizing: border-box;
}

/* ── Track area: flechas + wrapper en fila ── */
.vse-carousel__track-area {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative; /* anchor para la flecha indicadora en móvil */
}

/* ── Wrapper: recorta el track deslizante ─── */
.vse-carousel__wrapper {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    /*
     * Solo padding/margin vertical: evita que offsetWidth incluya
     * píxeles extra horizontales que descuadran el cálculo de ancho
     * de slides en JS (última tarjeta se cortaba 24px a la derecha).
     * El padding-bottom sigue protegiendo la sombra inferior de las tarjetas.
     */
    padding: 4px 0 18px;
    margin: -4px 0 -18px;
    box-sizing: content-box;
}

/* ── Track: slides en fila, sin transición inicial ── */
.vse-carousel__track {
    display: flex;
    align-items: stretch;
    will-change: transform;
    /* La transición se aplica vía JS para evitar flash inicial */
}

/* ── Slide individual ─────────────────────── */
.vse-carousel__slide {
    flex-shrink: 0;
    box-sizing: border-box;
    /* width/min-width se asignan por JS según breakpoint */
}

/* ══════════════════════════════════════════
   FLECHAS DE NAVEGACIÓN
══════════════════════════════════════════ */

.vse-carousel__arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B3A6B;
    font-size: 15px;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.15s;
    padding: 0;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.vse-carousel__arrow:hover:not(:disabled) {
    background: #2E6DAD;
    color: #fff;
    box-shadow: 0 4px 18px rgba(46, 109, 173, 0.3);
    transform: scale(1.05);
}

.vse-carousel__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ocultar flechas en móvil si el usuario lo configuró */
.vse-carousel--hide-arrows-mobile .vse-carousel__arrow {
    display: flex; /* se sobreescribe con media query */
}

@media (max-width: 767px) {
    .vse-carousel--hide-arrows-mobile .vse-carousel__arrow {
        display: none;
    }

    .vse-carousel--hide-arrows-mobile .vse-carousel__track-area {
        gap: 0;
    }
}

/* ══════════════════════════════════════════
   FLECHA INDICADORA EN MÓVIL
══════════════════════════════════════════ */

.vse-carousel__hint-arrow {
    display: none; /* visible solo en móvil vía media query */
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #1B3A6B;
    font-size: 13px;
    z-index: 5;
    padding: 0;
    line-height: 1;
    transition: opacity 0.35s ease;
    pointer-events: auto;
}

@media (max-width: 767px) {
    .vse-carousel__hint-arrow {
        display: flex;
    }
}

.vse-carousel__hint-arrow.is-faded {
    opacity: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════════
   PUNTOS DE PAGINACIÓN
══════════════════════════════════════════ */

.vse-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    min-height: 16px; /* evita saltos de layout mientras JS construye los puntos */
}

.vse-carousel__dot {
    height: 8px;
    min-width: 8px;
    width: 8px;
    border-radius: 9999px;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.vse-carousel__dot.is-active {
    background: #2E6DAD;
    width: 26px;
}

.vse-carousel__dot:hover:not(.is-active) {
    background: #999;
}
