/* =========================================================
   ESCOLI · TARJETA DESTACADA FINAL
   Se carga después de curso_tien.css
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.cp-page,
.cp-page .cp-wrap,
.cp-page .cp-featured-section,
.cp-page .cp-featured-card--final,
.cp-page .cp-featured-visual,
.cp-page .cp-featured-body--final {
    min-width: 0;
    max-width: 100%;
}

.cp-page {
    overflow-x: hidden;
    overflow-x: clip;
}

.cp-page .cp-featured-card.cp-featured-card--final {
    grid-template-columns: minmax(310px, 39%) minmax(0, 1fr) !important;
    overflow: hidden;
    border: 1px solid rgba(106, 5, 114, .14) !important;
    border-radius: 36px;
    background: #ffffff !important;
    box-shadow: 0 30px 82px rgba(50, 0, 56, .18) !important;
}

.cp-page .cp-featured-card--final::before {
    display: none;
}

/* Columna morada */
.cp-page .cp-featured-visual {
    position: relative;
    display: flex;
    min-height: 650px;
    flex-direction: column;
    justify-content: center;
    padding: 46px 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 12%, rgba(240, 142, 3, .28), transparent 35%),
        radial-gradient(circle at 8% 92%, rgba(247, 68, 54, .20), transparent 42%),
        linear-gradient(150deg, #320038 0%, #4e0656 52%, #6a0572 100%);
}

.cp-page .cp-featured-visual::before,
.cp-page .cp-featured-visual::after {
    position: absolute;
    border: 1px solid rgba(255, 232, 185, .16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.cp-page .cp-featured-visual::before {
    top: -80px;
    right: -95px;
    width: 260px;
    height: 260px;
}

.cp-page .cp-featured-visual::after {
    bottom: -120px;
    left: -110px;
    width: 290px;
    height: 290px;
}

.cp-page .cp-featured-insignia {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: #ffe8bc;
    background: rgba(255, 255, 255, .10);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.cp-page .cp-featured-insignia i {
    color: #f2bd59;
}

.cp-page .cp-featured-cover {
    position: relative;
    z-index: 2;
    width: min(280px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(245, 205, 123, .70);
    border-radius: 22px;
    background: #1a0d2c;
    box-shadow: 0 32px 64px rgba(0, 0, 0, .42);
    transform: rotate(-1.5deg);
}

.cp-page .cp-featured-cover img {
    display: block;
    width: 100%;
    height: auto;
}

/* Oculta el botón dibujado dentro de la portada antigua. */
.cp-page .cp-featured-cover__mask {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 25%;
    align-items: flex-end;
    justify-content: center;
    padding: 44px 18px 18px;
    color: #f4d17d;
    background:
        linear-gradient(
            180deg,
            rgba(18, 4, 30, 0) 0%,
            rgba(18, 4, 30, .94) 42%,
            #12041e 100%
        );
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .13em;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
}

.cp-page .cp-featured-access {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
    font-weight: 700;
}

.cp-page .cp-featured-access i {
    color: #f2bd59;
}

/* Contenido */
.cp-page .cp-featured-body.cp-featured-body--final {
    padding: clamp(34px, 4.5vw, 54px) !important;
}

.cp-page .cp-featured-body--final .cp-featured-desc {
    max-width: 58ch;
    color: rgba(30, 30, 47, .79);
}

.cp-page .cp-featured-body--final .cp-featured-meta {
    margin-bottom: 24px;
}

/* Precio y bono funcionan como una sola oferta. */
.cp-page .cp-featured-offer {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(240, 142, 3, .35);
    border-radius: 26px;
    background: #fffaf1;
    box-shadow: 0 18px 44px rgba(50, 0, 56, .10);
}

.cp-page .cp-featured-price-final {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 94% 8%, rgba(240, 142, 3, .24), transparent 35%),
        linear-gradient(135deg, #320038 0%, #6a0572 100%);
}

.cp-page .cp-featured-price-final__label,
.cp-page .cp-featured-price-final__base span {
    display: block;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cp-page .cp-featured-price-final__label {
    margin-bottom: 7px;
    color: #f4cd78;
}

.cp-page .cp-featured-price-final__amount {
    display: block;
    max-width: 100%;
    color: #ffffff;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
    overflow-wrap: anywhere;
}

.cp-page .cp-featured-price-final__base {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, .23);
    text-align: right;
}

.cp-page .cp-featured-price-final__base span {
    color: #d9c5e3;
}

.cp-page .cp-featured-price-final__base strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.cp-page .cp-featured-price-final__note {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .17);
    color: #eee3f2;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.55;
}

.cp-page .cp-featured-price-final__note i {
    flex: none;
    margin-top: 2px;
    color: #f4cd78;
}

.cp-page .cp-featured-price-error {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 22px;
    color: #4f183f;
    background: #f8edf5;
}

.cp-page .cp-featured-price-error > i {
    margin-top: 3px;
    color: #6a0572;
    font-size: 1.1rem;
}

.cp-page .cp-featured-price-error strong {
    font-weight: 900;
}

.cp-page .cp-featured-price-error p {
    margin: 5px 0 0;
    color: #6b5865;
    font-size: .85rem;
    line-height: 1.55;
}

.cp-page .cp-featured-bonus-final {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
    padding: 17px 19px;
    border-top: 1px dashed rgba(240, 142, 3, .42);
    background:
        radial-gradient(circle at 8% 12%, rgba(240, 142, 3, .12), transparent 36%),
        linear-gradient(135deg, #fffdf8, #fff3de);
}

.cp-page .cp-featured-bonus-final__image {
    width: 82px;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 11px 25px rgba(50, 0, 56, .18);
}

.cp-page .cp-featured-bonus-final__image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.cp-page .cp-featured-bonus-final__label {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: #935500;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .11em;
    line-height: 1.35;
    text-transform: uppercase;
}

.cp-page .cp-featured-bonus-final__label i {
    color: #f08e03;
}

.cp-page .cp-featured-bonus-final h3 {
    margin: 0 0 5px;
    color: #6a0572;
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.cp-page .cp-featured-bonus-final p {
    margin: 0;
    color: #5e4b56;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.5;
}

.cp-page .cp-featured-body--final .cp-featured-actions {
    align-items: stretch;
}

.cp-page .cp-featured-body--final .cp-cart-form {
    display: flex;
}

.cp-page .cp-featured-body--final .cp-btn-outline {
    border: 1.5px solid rgba(106, 5, 114, .34);
    color: #6a0572;
    background: #ffffff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
    .cp-page .cp-featured-card.cp-featured-card--final {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .cp-page .cp-featured-visual {
        min-height: auto;
        padding: 38px 28px 32px;
    }

    .cp-page .cp-featured-cover {
        width: min(245px, 76%);
    }
}

@media (max-width: 620px) {
    .cp-page .cp-featured-card.cp-featured-card--final {
        border-radius: 25px;
    }

    .cp-page .cp-featured-visual {
        padding: 32px 18px 27px;
    }

    .cp-page .cp-featured-insignia {
        align-self: center;
        text-align: center;
    }

    .cp-page .cp-featured-body.cp-featured-body--final {
        padding: 28px 19px !important;
    }

    .cp-page .cp-featured-price-final {
        grid-template-columns: minmax(0, 1fr);
        padding: 21px 18px;
    }

    .cp-page .cp-featured-price-final__base {
        padding: 12px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .17);
        border-left: 0;
        text-align: left;
    }

    .cp-page .cp-featured-bonus-final {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .cp-page .cp-featured-bonus-final__image {
        width: 68px;
    }

    .cp-page .cp-featured-body--final .cp-featured-actions,
    .cp-page .cp-featured-body--final .cp-cart-form,
    .cp-page .cp-featured-body--final .cp-btn {
        width: 100%;
    }

    .cp-page .cp-featured-body--final .cp-btn {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .cp-page .cp-featured-visual {
        padding-right: 14px;
        padding-left: 14px;
    }

    .cp-page .cp-featured-body.cp-featured-body--final {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .cp-page .cp-featured-price-final__amount {
        font-size: 1.72rem;
    }

    .cp-page .cp-featured-bonus-final {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .cp-page .cp-featured-bonus-final__image {
        width: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-page .cp-featured-cover {
        transform: none;
    }
}
