/* =========================================
   PREMIUM 3D FEATURES SECTION
   ========================================= */
.section-features-premium {
    padding: 100px 20px;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
    position: relative;
    overflow: hidden;
}

.section-features-premium::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 400px;
    background: rgba(0, 214, 122, 0.08);
    /* Glow primario suavísimo */
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.premium-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.premium-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.premium-title span {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-3d-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    /* Clave para el efecto 3D */
    z-index: 1;
    position: relative;
}

@media (min-width: 900px) {
    .features-3d-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* TARJETA 3D MEJORADA */
.feature-card-3d {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    /* Padding externo para el "marco" */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.feature-card-3d:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    border-color: rgba(0, 214, 122, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 214, 122, 0.1);
    /* Glow externo */
}

/* Interior de la tarjeta */
.feature-card-inner {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 30px 24px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efecto gradiente interior sutil */
.feature-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 40%);
    opacity: 0.5;
    pointer-events: none;
}

/* Imagen flotante */
.feature-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateZ(20px);
    /* Efecto pop-out */
    transition: transform 0.3s ease;
}

.feature-card-3d:hover .feature-img-wrapper {
    transform: translateZ(30px) scale(1.02);
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card-3d:hover .feature-img-wrapper img {
    transform: scale(1.1);
}

/* Tipografía */
.feature-card-3d h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    transform: translateZ(10px);
}

.feature-card-3d p {
    font-size: 1rem;
    line-height: 1.6;
    color: #a0a0a0;
    transform: translateZ(10px);
}

.feature-highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Elementos decorativos flotantes (esferas) */
.floating-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    top: -40px;
    right: -40px;
    pointer-events: none;
    transition: opacity 0.3s;
}

.feature-card-3d:hover .floating-orb {
    opacity: 0.3;
}