/* ===== CARRUSEL PRODUCTOS PERSONALIZADOS – v4 ===== */

.cpr-section {
    --cpr-brand:            #6eaba5;
    --cpr-brand-dark:       #5a9490;
    --cpr-brand-light:      #e8f4f3;
    --cpr-text:             #1E293B;
    --cpr-bg:               #ffffff;
    --cpr-radius:           16px;
    --cpr-shadow:           0 2px 12px rgba(0, 0, 0, 0.06);
    --cpr-shadow-hover:     0 20px 48px rgba(0, 0, 0, 0.13);
}

/* ─── Section ─────────────────────────────────────── */
.cpr-section {
    padding: 80px 0;
    margin-top: 0 !important;
}

/* ─── Header ──────────────────────────────────────── */
.cpr-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2.5rem;
}

.cpr-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--cpr-text);
    margin: 0;
    line-height: 1.2;
}

.cpr-section-title span {
    color: var(--cpr-brand);
}

/* ─── Navigation arrows ───────────────────────────── */
.cpr-nav-controls {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}

.cpr-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--cpr-brand);
    background: #ffffff;
    color: var(--cpr-brand);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(110, 171, 165, 0.18);
    transition: background 0.22s ease, color 0.22s ease,
                border-color 0.22s ease, box-shadow 0.22s ease,
                transform 0.15s ease;
}

.cpr-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.cpr-arrow:hover {
    background: var(--cpr-brand);
    color: #ffffff;
    border-color: var(--cpr-brand);
    box-shadow: 0 6px 20px rgba(110, 171, 165, 0.45);
    transform: scale(1.08);
}

.cpr-arrow:focus-visible {
    outline: 2px solid var(--cpr-brand);
    outline-offset: 3px;
}

/* ─── Card item ───────────────────────────────────── */
.cpr-item {
    padding: 8px 10px 16px;
}

.cpr-card-block {
    display: flex;
    flex-direction: column;
    background: var(--cpr-bg);
    border-radius: var(--cpr-radius);
    box-shadow: var(--cpr-shadow);
    border: 1px solid rgba(110, 171, 165, 0.12);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.cpr-card-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--cpr-shadow-hover);
    text-decoration: none;
    color: inherit;
}

/* ─── Image wrapper ───────────────────────────────── */
.cpr-card-img-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: var(--cpr-radius) var(--cpr-radius) 0 0;
}

.cpr-card-img-wrap img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cpr-card-block:hover .cpr-card-img-wrap img {
    transform: scale(1.04);
}

/* ─── Card footer ─────────────────────────────────── */
.cpr-card-footer {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    text-align: left;
    flex: 1;
}

.cpr-card-nombre {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cpr-text);
    margin: 0;
    line-height: 1.3;
}

/* ─── CTA Button ──────────────────────────────────── */
.cpr-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    background: var(--cpr-brand);
    color: #ffffff !important;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .015em;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(110, 171, 165, 0.3);
    transition: background 0.22s ease, box-shadow 0.22s ease,
                transform 0.15s ease, gap 0.2s ease;
}

.cpr-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.cpr-card-block:hover .cpr-cta {
    background: var(--cpr-brand-dark);
    box-shadow: 0 5px 18px rgba(110, 171, 165, 0.45);
    transform: translateY(-1px);
    gap: .65rem;
}

.cpr-card-block:hover .cpr-cta svg {
    transform: translateX(3px);
}

/* ─── Pagination dots ─────────────────────────────── */
.cpr-dots-container {
    margin-top: 2.25rem;
    display: flex;
    justify-content: center;
}

.cpr-dots {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.cpr-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cpr-brand);
    opacity: 0.25;
    border: none;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    display: block;
    transition: background 0.22s ease, opacity 0.22s ease,
                width 0.28s ease, border-radius 0.28s ease;
}

.cpr-dots li.slick-active button {
    opacity: 1;
    width: 26px;
    border-radius: 4px;
}

.cpr-dots li button:hover {
    opacity: 0.65;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .cpr-section {
        padding: 56px 0;
    }
    .cpr-arrow {
        width: 46px;
        height: 46px;
    }
    .cpr-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 575px) {
    .cpr-section {
        padding: 48px 0;
    }
    .cpr-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .cpr-nav-controls {
        align-self: flex-end;
    }
}
