/* =============================================
   VSE Package Card – Frontend Styles v1.1.0
   Viaja Sin Escalas
   ============================================= */

.vse-package-card {
    font-family: inherit;
    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);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    background: #fff;
}

.vse-package-card:hover {
    box-shadow: 0 16px 48px rgba(74, 45, 127, 0.14);
    transform: translateY(-2px);
}

/* ── Imagen encima del header ── */
.vse-card__image-above {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    flex-shrink: 0;
}

/* ── Header ──
   Sin background hardcodeado: lo maneja Elementor.
   El ::after decorativo se eliminó para no interferir. */
.vse-card__header {
    padding: 24px 24px 22px;  /* default — overridden by Elementor control */
    position: relative;
    overflow: hidden;
}

.vse-card__header--bg-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.vse-header-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 30, 60, 0.65);
    z-index: 0;
}

.vse-header-content {
    position: relative;
    z-index: 1;
}

.vse-card__key {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7eb8ef;
    font-weight: 600;
    margin: 0 0 9px 0;
    line-height: 1.4;
}

.vse-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

/* ── Cuerpo ── */
.vse-card__body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    flex: 1;
}

.vse-block-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6340a8;
    margin: 0 0 9px 0;
}

.vse-block {
    display: flex;
    flex-direction: column;
}

/* ── Badge sección especial ── */
/* ── Sección Especial (Chepe / Tramos) ── */
.vse-chepe-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vse-chepe-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vse-chepe-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eceaf7;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #0f1e3c;
    width: fit-content;
    max-width: 100%;
}

.vse-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a2d7f;
    flex-shrink: 0;
    line-height: 1;
}

.vse-badge-icon i,
.vse-badge-icon svg {
    display: block;
    color: inherit;
}

.vse-chepe-duration {
    font-size: 12px;
    color: #5a5270;
    margin: 6px 0 0 2px;
    line-height: 1.4;
}

/* ── Pernoctas ── */
.vse-stops-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.vse-stop {
    font-size: 12px;
    font-weight: 600;
    color: #4a2d7f;
    background: rgba(74, 45, 127, 0.08);
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.vse-arrow {
    font-size: 11px;
    color: #2d7dd2;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Divisor ── */
.vse-divider {
    height: 1px;
    background: #eceaf7;
    width: 100%;
    flex-shrink: 0;
}

/* ── Tours ── */
.vse-tours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Override Elementor's default ul li margin-bottom that forces 25px spacing */
.elementor-widget .vse-tours-list li.vse-tour-item,
.vse-tours-list li.vse-tour-item {
    margin-bottom: 0 !important;
}

.vse-tour-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vse-tour-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d7dd2;
    font-size: 15px;
    width: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.vse-tour-icon i,
.vse-tour-icon svg {
    display: block;
    color: inherit;
    font-size: inherit;
    width: auto;
    height: 1em;
}

.vse-tour-name {
    font-size: 13.5px;
    color: #5a5270;
    line-height: 1.4;
}

/* ── Salidas ── */
.vse-departure-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vse-departure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6340a8;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.vse-departure-icon i,
.vse-departure-icon svg {
    display: block;
    color: inherit;
    font-size: inherit;
    height: 1em;
}

.vse-departure-text {
    font-size: 13px;
    color: #5a5270;
    line-height: 1.5;
}

.vse-departure-text strong {
    color: #0f1e3c;
    font-weight: 600;
}

/* ── Precio ── */
.vse-price-box {
    background: #f3f0f9;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vse-price-from-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a5270;
    margin: 0 0 4px 0;
}

.vse-price-amount {
    font-size: 26px;
    font-weight: 700;
    color: #4a2d7f;
    margin: 0 0 3px 0;
    line-height: 1.2;
    display: block;
}

.vse-currency {
    font-size: 13px;
    font-weight: 400;
    color: #5a5270;
    display: inline;
    margin-left: 3px;
}

.vse-price-note {
    font-size: 12px;
    color: #5a5270;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .vse-card__header { padding: 18px 18px 16px; }
    .vse-card__body   { padding: 18px; }
    .vse-card__title  { font-size: 17px; }
    .vse-price-amount { font-size: 22px; }
}

/* ── Botón de Reserva ── */
.vse-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.vse-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 20px;
    border-radius: 10px;
    transition: filter 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
    line-height: 1.3;
}

.vse-cta-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.vse-cta-btn.vse-cta-full {
    width: 100%;
}

.vse-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.vse-cta-icon i,
.vse-cta-icon svg {
    display: block;
    color: inherit;
    font-size: inherit;
}

.vse-cta-text {
    line-height: 1;
}

/* ── Botón "Ver Detalles del Viaje" ── */
.vse-cta2-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.vse-cta2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(74,45,127,0.06);
    color: #4a2d7f;
    border: 2px solid #4a2d7f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    line-height: 1.3;
}

.vse-cta2-btn:hover {
    background: rgba(74,45,127,0.12);
    transform: translateY(-1px);
    color: #4a2d7f;
    text-decoration: none;
}

.vse-cta2-btn.vse-cta-full {
    width: 100%;
}

.vse-cta2-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.vse-cta2-icon i,
.vse-cta2-icon svg {
    display: block;
    color: inherit;
    font-size: inherit;
}

.vse-cta2-text {
    line-height: 1;
}

/* Gap between the two CTA buttons when both visible */
.vse-cta-wrapper + .vse-cta2-wrapper {
    margin-top: 6px;
}
