/* ===== CONTENEDOR RAÍZ PROTEGIDO ===== */
.sp-practice-section {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232d4f95' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    padding: 50px 0;
    font-family: 'Inter', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.sp-practice-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 0 40px;
    box-sizing: border-box;
    /* Habilita el espacio tridimensional para las tarjetas hijas */
    perspective: 1200px;
}

/* ===== TARJETAS CON PERSPECTIVA REAL 3D ===== */
.sp-practice-card {
    background: linear-gradient(160deg, #1a2744 0%, #0d1628 60%, #0a1020 100%);
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;

    /* Frontera esmerilada */
    border: 1px solid rgba(45, 79, 149, 0.06);
    box-shadow:
        0 15px 35px -5px rgba(10, 26, 53, 0.05),
        0 5px 15px -5px rgba(0, 0, 0, 0.03);

    /* Activación de renderizado avanzado 3D */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;

    /* Regreso fluido cuando el mouse sale de la tarjeta */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

/* Hover de Elevación Sombría */
.sp-practice-card:hover {
    box-shadow:
        0 35px 60px -15px rgba(10, 26, 53, 0.12),
        0 20px 30px -20px rgba(45, 79, 149, 0.05);
}

/* Contenedor Interno Satinado */
.sp-card-inner {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(160deg, #1a2744 0%, #0d1628 60%, #0a1020 100%);
    transform-style: preserve-3d;
}

/* Capa Dinámica de Reflejo de Cristal (Controlada por JS) */
.sp-card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.4s ease;
}

.sp-practice-card:hover .sp-card-shine {
    opacity: 1;
}

/* Línea de acento superior */
.sp-card-top-accent {
    height: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    z-index: 10;
}

/* ===== ETIQUETAS COMPACTAS (TAGS) ===== */
.sp-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.sp-label-red {
    color: #d01341;
    background-color: rgba(208, 19, 65, 0.06);
}

.sp-label-blue {
    color: #2d4f95;
    background-color: rgba(45, 79, 149, 0.06);
}

/* ===== EFECTO POP-OUT 3D PARA NÚMEROS (Z-AXIS PUSH) ===== */
.sp-stat {
    font-size: 76px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 20px;
    color: #2d4f95;
    display: flex;
    align-items: baseline;
    letter-spacing: -2px;

    /* Truco maestro: empuja el número hacia adelante fuera de la tarjeta */
    transform: translateZ(40px);
    transform-style: preserve-3d;
    will-change: transform;

    text-shadow:
        0px 10px 20px rgba(10, 26, 53, 0.08),
        0px 2px 4px rgba(10, 26, 53, 0.04);
}

.sp-stat-mis {
    font-size: 68px;
    letter-spacing: -1px;
}

.sp-percent {
    font-size: 32px;
    margin-left: 2px;
    color: #a0aec0;
    font-weight: 700;
}

.sp-dot {
    color: #b4935a;
    margin-left: 1px;
}

/* ===== TEXTOS EDITORIALES ===== */
.sp-headline {
    font-size: 21px;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 18px 0;
    font-weight: 700;
    letter-spacing: -0.015em;
    transform: translateZ(20px);
    /* Ligero despegue */
}

.sp-description {
    font-size: 14.5px;
    color: #adadae;
    line-height: 1.6;
    margin: 0 0 30px 0;
    transform: translateZ(10px);
}

.sp-description strong {
    color: #ffffff;
    font-weight: 600;
}

/* ===== LISTAS BULLETS PREMIUM ===== */
.sp-bullet-list {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 25px;
    margin: 0;
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateZ(15px);
}

.sp-bullet-list li {
    font-size: 14px;
    color: #d5d6d6;
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.sp-bullet-list li strong {
    color: #ffffff;
}

.sp-bullet-list li::before {
    content: "•";
    font-size: 18px;
    position: absolute;
    left: 2px;
    top: -2px;
}

.sp-list-red li::before {
    color: #d01341;
}

.sp-list-blue li::before {
    color: #b4935a;
}

/* ==========================================================================
   SISTEMA DE ANIMACIÓN INTERSECTION OBSERVER DE ENTRADA SUAVE
   ========================================================================== */
.sp-practice-card {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.sp-practice-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .sp-practice-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 24px;
    }

    .sp-practice-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .sp-card-inner {
        padding: 40px 25px;
    }

    .sp-stat {
        font-size: 60px;
    }

    .sp-stat-mis {
        font-size: 56px;
    }
}