/* Contenedor principal */
.destacados-viaje-container {
    margin: 60px 0;
    padding: 0;
    background: transparent;
    font-family: var(--font-family, 'Poppins', sans-serif);
}

/* Header */
.destacados-header {
    text-align: center;
        margin-bottom: 40px;
   
}

.destacados-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-titulo, #bdd8eb);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.destacados-subtitulo {
    font-size: 16px;
    color: var(--color-texto, #fff);
    
    margin: 0;
    font-weight: 300;
}

/* Contenedor de pestañas */
.destacados-tabs-container {
    max-width: 100%;
}

/* Navegación de pestañas */
.destacados-tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 40px;
    background: rgba(189, 216, 235, 0.1);
    border-radius: 16px;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: none;
    min-width: 120px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--color-texto, #fff);
    font-family: var(--font-family, 'Poppins', sans-serif);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.tab-btn:hover {
    background: rgba(189, 216, 235, 0.15);
    opacity: 1;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--color-titulo, #bdd8eb);
    color: #474747;
    opacity: 1;
    box-shadow: 0 8px 32px rgba(189, 216, 235, 0.3);
}

.tab-btn.active .tab-text {
    color: #474747;
}


/* Contenido de pestañas */
.destacados-tabs-content {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Splide Slider Styles */
.splide {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.splide__track {
    padding: 0 40px;
    cursor: grab;
}

.splide__track:active {
    cursor: grabbing;
}

.splide__slide {
    padding: 0 10px;
    display: flex;
    justify-content: center;
}

/* Gradientes laterales para efecto difuminado */
.splide::before,
.splide::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.splide::before {
    left: 0;
    background: linear-gradient(to right, var(--color-fondo, #353535) 0%, transparent 100%);
}

.splide::after {
    right: 0;
    background: linear-gradient(to left, var(--color-fondo, #353535) 0%, transparent 100%);
}

/* Cards de destacados */
.destacado-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: 323px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s ease;
}

@media (max-width: 769px) {
    .destacado-card {
        max-width: 323px;
    }
}



.destacado-imagen {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.destacado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.destacado-card:hover .destacado-imagen img {
    transform: scale(1.05);
}

/* Badge "Tú eliges" */
.tu-eliges-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 10;
    border: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.tu-eliges-linea1,
.tu-eliges-linea2 {
    display: block;
    color: white;
    margin: 0;
}

.tu-eliges-linea2 {
    margin-top: 1px;
}

.destacado-card:hover .tu-eliges-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.destacado-contenido {
    background: rgba(189, 216, 235, 0.08);
    border: 1px solid rgba(189, 216, 235, 0.15);
    border-radius: 16px;
    padding: 20px 18px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.destacado-card:hover .destacado-contenido {
    background: rgba(189, 216, 235, 0.12);
    border-color: rgba(189, 216, 235, 0.25);
    box-shadow: 0 8px 32px rgba(189, 216, 235, 0.15);
}

.destacado-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-titulo, #bdd8eb);
    margin: 0 0 0px 0;
    line-height: 1.3;
    text-align: left;
}

.destacado-descripcion {
    font-size: 0.85rem;
    color: var(--color-texto, #fff);
    opacity: 0;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Mostrar descripción solo en slides centrales en desktop */
@media (min-width: 769px) {
    .splide__slide.show-description .destacado-descripcion {
        opacity: 0.85;
        max-height: none;
        margin-top: 10px;
    }
}

/* En móvil mostrar siempre la descripción */
@media (max-width: 640px) {
    .splide__slide.show-description .destacado-descripcion {
        opacity: 0.85;
        max-height: none;
    }
}

/* Flechas del slider */
.splide__arrows {
    position: absolute;
    top: 33%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 50;
}

@media screen and (max-width: 680px) {
    .splide__arrows {
        top: 22%;
    }

#splide-actividades .splide__arrows {
        top: 35%;
    }

}

.splide__arrow {
    position: absolute;
    top: 0;
    width: 45px;
    height: 45px;
    background: var(--color-titulo, #bdd8eb);
    border: none;
    border-radius: 50%;
    color: var(--color-fondo, #1a1a1a);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 8px 32px rgba(189, 216, 235, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
}

.splide__arrow:hover {
    background: var(--color-texto, #fff);
  
    
}

.splide__arrow--prev {
    left: 15px;
}

.splide__arrow--next {
    right: 15px;
}

.splide__arrow:disabled {
    cursor: not-allowed;
}

/* Estados de error */
.error {
    padding: 20px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    color: var(--color-texto, #fff);
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .splide::before,
    .splide::after {
        width: 60px;
    }
    
    .splide__track {
        padding: 0 30px;
    }
    
    .splide__arrow--prev {
        left: 10px;
    }
    
    .splide__arrow--next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .destacados-titulo {
        font-size: 2rem;
    }

    .destacados-subtitulo {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .destacados-tabs-nav {
        flex-direction: row;
        gap: 4px;
        padding: 8px;
        justify-content: center;
    }

    .tab-btn {
        flex: 1;
        min-width: auto;
        max-width: none;
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    /* Hide gradientes laterales en mobile */
    .splide::before,
    .splide::after {
        display: none;
    }
    
    .splide__track {
        padding: 0 25px;
    }
    
    .destacado-imagen {
        height: 311px;
        margin-bottom: 12px;
    }
    
    .destacado-contenido {
        padding: 18px 15px;
    }
    
    .destacado-titulo {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .destacado-descripcion {
        font-size: 0.8rem;
    }
    
    .splide__arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .splide__arrow--prev {
        left: 8px;
    }
    
    .splide__arrow--next {
        right: 8px;
    }
    
    .tu-eliges-badge {
        top: 12px;
        right: 12px;
        width: 50px;
        height: 50px;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .destacados-viaje-container {
        margin: 50px 0;
    }

    .destacados-titulo {
        font-size: 1.7rem;
    }

    /* Hide gradientes laterales en mobile */
    .splide::before,
    .splide::after {
        display: none;
    }
    
    .splide__track {
        padding: 0 20px;
    }
    
    .destacado-imagen {
        height: 311px;
        margin-bottom: 10px;
    }
    
    .destacado-contenido {
        padding: 15px 12px;
    }
    
    .destacado-titulo {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .destacado-descripcion {
        font-size: 0.85rem;
    }
    
    .splide__arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .splide__arrow--prev {
        left: 5px;
    }
    
    .splide__arrow--next {
        right: 5px;
    }
    
    .tu-eliges-badge {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 0.55rem;
    }
}