/* ═══════════════════════════════════════════
   Servicios CPT – Grid & Hover Carousel
   ═══════════════════════════════════════════ */

.scpt-grid {
    display: grid;
    grid-template-columns: repeat(var(--scpt-cols, 2), 1fr);
    gap: 20px;
    width: 100%;
}

/* ── Tarjeta ── */
.scpt-card {
    position: relative;
    height: var(--scpt-height, 420px);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

/* ── Slides de fondo ── */
.scpt-card__slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.scpt-card__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
}

.scpt-card__slide.is-active {
    opacity: 1;
}

/* ── Overlay oscuro ── */
.scpt-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    background: linear-gradient(
        0deg,
        rgba(10, 5, 20, 0.85) 0%,
        rgba(10, 5, 20, 0.5) 45%,
        rgba(10, 5, 20, 0.15) 100%
    );
    transition: background 0.4s ease;
}

.scpt-card:hover .scpt-card__overlay {
    background: linear-gradient(
        0deg,
        rgba(10, 5, 20, 0.90) 0%,
        rgba(10, 5, 20, 0.55) 50%,
        rgba(10, 5, 20, 0.2) 100%
    );
}

/* ── Contenido ── */
.scpt-card__content {
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.scpt-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.scpt-card__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
    line-height: 1.5;
    max-width: 90%;
}

.scpt-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e91e8c;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: gap 0.3s ease, color 0.3s ease;
}

.scpt-card__btn:hover {
    color: #ff45a8;
    gap: 12px;
    text-decoration: none;
}

.scpt-card__arrow {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.scpt-card__btn:hover .scpt-card__arrow {
    transform: translateX(4px);
}

/* ── Indicadores (dots) ── */
.scpt-card__indicators {
    position: absolute;
    bottom: 14px;
    right: 18px;
    z-index: 4;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scpt-card:hover .scpt-card__indicators {
    opacity: 1;
}

.scpt-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, transform 0.3s ease;
}

.scpt-card__dot.is-active {
    background: #e91e8c;
    transform: scale(1.25);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .scpt-grid {
        grid-template-columns: 1fr !important;
    }
    .scpt-card {
        height: 340px !important;
    }
    .scpt-card__title {
        font-size: 1.2rem;
    }
}
