.cp-tour-carousel {
    padding-top: 16px;
    padding-bottom: 32px;
}

/* Soporte para ambas versiones del render:
   - la vieja con .cp-tour-shell
   - la nueva con .cp-tour-carousel__inner */
.cp-tour-carousel > .cp-tour-shell,
.cp-tour-carousel__inner {
    width: min(1240px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

/* Si el carrusel cae dentro de un bloque de contenido más angosto,
   no fuerces un shell externo */
.cp-entry .cp-tour-carousel > .cp-tour-shell,
.cp-entry .cp-tour-carousel__inner,
.cp-content-card__body .cp-tour-carousel > .cp-tour-shell,
.cp-content-card__body .cp-tour-carousel__inner {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.cp-tour-carousel__head {
    padding: 0 0 18px;
}

.cp-tour-carousel__head-copy {
    display: grid;
    gap: 6px;
}

.cp-tour-carousel__head-copy h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    color: #111827;
}

.cp-tour-carousel__subtitle {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.cp-tour-carousel__container {
    position: relative;
    padding-right: 56px;
    padding-left: 56px;
}

.cp-tour-carousel__viewport {
    overflow: hidden;
}

.cp-tour-carousel__track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.cp-tour-carousel__track > .cp-tour-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.cp-tour-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cp-tour-carousel__arrow:hover {
    transform: translateY(-50%) scale(1.03);
}

.cp-tour-carousel__arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cp-tour-carousel__arrow--prev {
    left: 0;
}

.cp-tour-carousel__arrow--next {
    right: 0;
}

.cp-tour-carousel__arrow span {
    font-size: 28px;
    line-height: 1;
}

.cp-tour-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.cp-tour-carousel__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
}

.cp-tour-carousel__dot.is-active {
    background: #111827;
}

@media (max-width: 1024px) {
    .cp-tour-carousel__track > .cp-tour-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .cp-tour-carousel > .cp-tour-shell,
    .cp-tour-carousel__inner {
        width: calc(100% - 24px);
    }

    .cp-entry .cp-tour-carousel > .cp-tour-shell,
    .cp-entry .cp-tour-carousel__inner,
    .cp-content-card__body .cp-tour-carousel > .cp-tour-shell,
    .cp-content-card__body .cp-tour-carousel__inner {
        width: 100%;
    }

    .cp-tour-carousel__container {
        padding-right: 42px;
        padding-left: 42px;
    }

    .cp-tour-carousel__track > .cp-tour-card {
        flex: 0 0 100%;
    }

    .cp-tour-carousel__arrow {
        width: 36px;
        height: 36px;
    }

    .cp-tour-carousel__arrow span {
        font-size: 24px;
    }

    .cp-tour-carousel__head-copy h2 {
        font-size: 26px;
    }
}