/* Asegurar que Font Awesome esté cargado. Si no, agregar este @import o usar el CDN */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');



.cp-tc-carousel {
    padding: 32px 0;
    background: #fff;
    overflow: visible; /* Para que las flechas puedan sobresalir */
}
.cp-tc-container {
    width: min(1280px, 92%);
    margin: 0 auto;
    position: relative;
}
.cp-tc-viewport {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}
.cp-tc-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    transition: transform 0.45s ease;
    cursor: grab;
}
.cp-tc-track.is-dragging {
    cursor: grabbing;
}
.cp-tc-card {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 0;
}
.cp-tc-card__link {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1.65;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transition: box-shadow 0.3s ease;
}

.cp-tc-card__link,
.cp-tc-card__link img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

.cp-tc-card__link:hover {
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
}
/* Gradiente fijo en la parte inferior */
.cp-tc-card__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    z-index: 2;
    /*pointer-events: none;*/
}
.cp-tc-card__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    background-size: cover;
    background-position: center;
}
.cp-tc-card__crown,
.cp-tc-card__badge {
    position: absolute;
    top: 14px;
    z-index: 3;
    font-size: 18px;
}
.cp-tc-card__crown {
    left: 14px;
    background: rgb(255 255 255 / 50%);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    color: #fff;
}
.cp-tc-card__badge {
    right: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(17,24,39,0.62);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    backdrop-filter: blur(6px);
	font-family: var(--font-montserrat);
}
.cp-tc-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 22px 20px 0;
    color: #fff;
    transition: transform 0.45s ease;
    background: transparent;
}
.cp-tc-card__destinos {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
	font-family: var(--font-montserrat);
}
.cp-tc-card__destinos i {
    font-size: 11px;
}
.cp-tc-card__title {
    margin: 0 0 5px 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
	font-family: var(--font-lato);
	color: #fff;
}
.cp-tc-card__separator {
    margin: 0px !important;
    border: 0;
    height: 1px;
    background-color: #fff !important;
}
.cp-tc-card__info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.cp-tc-card__duration {
    font-size: 12px;
    font-weight: 600;
	font-family: var(--font-montserrat);
}
.cp-tc-card__price {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    position: relative;
    top: 2px; /* Pequeño ajuste para que la moneda quede más arriba */
	font-family: var(--font-lato);
}
.cp-tc-card__price-number {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
.cp-tc-card__price-currency {
    font-size: 11px;
    font-weight: 900;
    align-self: flex-start; /* Hace que la moneda se alinee arriba */
    line-height: 1.2;
}
.cp-tc-card__hover-content {
    margin-top: 16px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.45s ease;
}
.cp-tc-card__desc {
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
	font-family: var(--font-montserrat);
	font-weight: 500px;
}
.cp-tc-card__btn {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 5px 0;
    background: #fff;
	color: #006da8;
    border-radius: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    transition: background 0.25s;
	font-family: var(--font-lato);
}
.cp-tc-card__link:hover .cp-tc-card__body {
    transform: translateY(-20px);
}
.cp-tc-card__link:hover .cp-tc-card__hover-content {
    opacity: 1;
    max-height: 200px;
}
/* Flechas con iconos Font Awesome, fuera de las cards y visibles */
.cp-tc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Quitamos sombra y fondo por defecto */
    box-shadow: none;
}

/* Flecha izquierda */
.cp-tc-arrow--prev::before {
    content: "\23F4";
}

/* Flecha derecha */
.cp-tc-arrow--next::before {
    content: "\23F5";
}

/* Estilos comunes para el pseudo-elemento */
.cp-tc-arrow::before {
    font-size: 40px;
    color: rgba(0, 0, 0, 0.75) !important;
    transform: scaleY(2.5);
    display: inline-block;
    transition: all 0.2s;
    line-height: 1;
}

/* Estilo para flechas deshabilitadas */
.cp-tc-arrow.is-disabled::before {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Efecto hover */
.cp-tc-arrow:hover::before {
    color: transparent;
    transform: scaleY(2.5) scale(1.05);
}

.cp-tc-arrow--prev {
    left: -5%;
}

.cp-tc-arrow--next {
    right: -5%;
}

/* Responsive: ajustamos flechas */
@media (max-width: 1300px) {
    /*.cp-tc-arrow--prev { left: -25px; }
    .cp-tc-arrow--next { right: -25px; }*/
}
@media (max-width: 1024px) {
    .cp-tc-card {
        flex: 0 0 calc((100% - 48px) / 3);
    }
    .cp-tc-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    /*.cp-tc-arrow--prev { left: -20px; }
    .cp-tc-arrow--next { right: -20px; }*/
}
@media (max-width: 768px) {
    .cp-tc-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
    .cp-tc-card__title {
        font-size: 18px;
    }
    .cp-tc-card__price-number {
        font-size: 20px;
    }
	
    /*.cp-tc-arrow {
        display: none;
    }*/
}
@media (max-width: 480px) {
    .cp-tc-card {
        flex: 0 0 100%;
    }
    .cp-tc-card__btn {
        width: 100%;
    }
	
	.cp-tc-arrow--prev {
		left: -9%;
	}

	.cp-tc-arrow--next {
		right: -9%;
	}
}



/* =========================================
   Cards informativas con efecto hover (tipo carrusel)
   ========================================= */

.custom-article-cards {
    display: flex;
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: center;
}

.article-card {
    position: relative;
    flex: 0 0 calc(25% - 18px) !important;
    aspect-ratio: 1 / 1;
    border-radius: 15px !important;
    overflow: hidden !important;
    cursor: pointer;
    background: none !important;
    display: flex;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 0 20px 22px;
    transition: box-shadow 0.3s ease !important;
}

.article-card .cac-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
.article-card .cac-img .elementor-widget-container,
.article-card .cac-img a {
    display: block;
    width: 100%;
    height: 100%;
}
.article-card .cac-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Desactivamos el enlace de la imagen para que no compita con el JS */
.article-card .cac-img a {
    /*pointer-events: none;*/
}
/*
.article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.article-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    opacity: 0;
    transform: scaleY(0.55);
    transform-origin: bottom;
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.article-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.35) 65%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
}*/

.article-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.55) 35%,
        rgba(0,0,0,0.15) 70%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
    opacity: 1;
    transform: scaleY(0.35);
    transform-origin: bottom;
    transition: transform 0.45s ease;
}

.article-card .cac-title,
.article-card .cac-description {
    position: relative;
    z-index: 3;
}

.article-card .cac-title {
    margin: 0 0 5px 0;
    text-align: center;
    transition: transform 0.45s ease;
}
.article-card .cac-title .elementor-heading-title {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    color: #fff;
	font-family: var(--font-lato);
	    margin-bottom: -15px;

}

.article-card .cac-description {
    margin-top: 0;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, max-height 0.45s ease, transform 0.45s ease;
}
.article-card .cac-description p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    color: #fff;
	font-family: var(--font-montserrat);
	font-weight: 500;
}

.article-card:hover::after {
    /*opacity: 1;*/
    transform: scaleY(1);
}

.article-card:hover .cac-title {
    transform: translateY(-10px);
}
.article-card:hover .cac-description {
    opacity: 1;
    max-height: 130px;
    transform: translateY(-10px);
}
.article-card:hover {
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
}

@media (max-width: 1024px) {
    .article-card {
        flex: 0 0 calc(50% - 12px) !important;
    }
    .custom-article-cards {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .article-card {
        flex: 0 0 calc(50% - 12px) !important;
    }
    .article-card .cac-title .elementor-heading-title {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .article-card {
        flex: 0 0 100% !important;
    }
    .custom-article-cards {
        gap: 16px;
    }
    .article-card:hover .cac-description {
        max-height: 130px;
    }
}