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

/* ── 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%;
}

/* ── Wrapper: recorta el track deslizante ─── */
.vse-carousel__wrapper {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

/* ── 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 */
}

/* ══════════════════════════════════════════
   TARJETA DEL CARRUSEL
══════════════════════════════════════════ */

.vse-carousel-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(74, 45, 127, 0.13);
    box-shadow: 0 2px 16px rgba(74, 45, 127, 0.07);
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.22s ease;
}

.vse-carousel-card:hover {
    box-shadow: 0 12px 40px rgba(74, 45, 127, 0.15);
    transform: translateY(-3px);
}

/* ── Imagen ── */
.vse-carousel-card__image {
    width: 100%;
    height: 200px;           /* sobreescrito por control Elementor */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #d0d5dd; /* placeholder cuando no hay imagen */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* ── Insignia "Destacado" ─────────────────── */
.vse-featured-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: 2;
    box-shadow: 0 2px 10px rgba(233, 30, 140, 0.32);
}

/* ── Cuerpo de la tarjeta ─────────────────── */
.vse-carousel-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* ── Título ─────────────────────────────── */
.vse-carousel-card__title {
    font-size: 15.5px;
    font-weight: 700;
    color: #1B3A6B;
    line-height: 1.35;
    margin: 0;
    /* Máximo 3 líneas con ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Fila de metadata (categoría | precio) ── */
.vse-carousel-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

/* ── Columna izquierda: categoría + duración ── */
.vse-carousel-card__category {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.vse-carousel-cat-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vse-carousel-cat-icon {
    color: #2E6DAD;
    font-size: 12px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* ── Columna derecha: precio ─────────────── */
.vse-carousel-card__price {
    flex-shrink: 0;
    text-align: right;
}

.vse-carousel-price-label {
    display: block;
    font-size: 10px;
    color: #777;
    line-height: 1.4;
    white-space: nowrap;
}

.vse-carousel-price-amount {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #1B3A6B;
    line-height: 1.1;
    white-space: nowrap;
}

.vse-carousel-price-note {
    display: block;
    font-size: 10px;
    color: #777;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── Destinos ────────────────────────────── */
.vse-carousel-card__stops {
    font-size: 12.5px;
    color: #2E6DAD;
    line-height: 1.55;
    /* Máximo 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Botón CTA ───────────────────────────── */
.vse-carousel-cta {
    display: block;
    text-align: center;
    background: #2E6DAD;
    color: #fff;
    border-radius: 30px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: auto;      /* empuja el botón al fondo de la tarjeta */
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.vse-carousel-cta:hover {
    background: #1B3A6B;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ══════════════════════════════════════════
   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;
    }
}

/* ══════════════════════════════════════════
   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: 4px;
    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;  /* pill animado para el activo */
}

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