.nik-flip-container {
    perspective: 1000px;
    margin: 0 auto;
}

.nik-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.nik-front, .nik-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* --- LOGICA 3D DIRECCIONES --- */
.nik-flip-dir-bottom-to-top .nik-flip-container:hover .nik-card { transform: rotateX(180deg); }
.nik-flip-dir-bottom-to-top .nik-back { transform: rotateX(180deg); }

.nik-flip-dir-top-to-bottom .nik-flip-container:hover .nik-card { transform: rotateX(-180deg); }
.nik-flip-dir-top-to-bottom .nik-back { transform: rotateX(-180deg); }

.nik-flip-dir-left-to-right .nik-flip-container:hover .nik-card { transform: rotateY(180deg); }
.nik-flip-dir-left-to-right .nik-back { transform: rotateY(180deg); }

.nik-flip-dir-right-to-left .nik-flip-container:hover .nik-card { transform: rotateY(-180deg); }
.nik-flip-dir-right-to-left .nik-back { transform: rotateY(-180deg); }

.nik-back {
    flex-direction: column;
    gap: 25px;
}

.nik-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, fill 0.3s ease;
}

.nik-icon-wrap svg {
    display: inline-block;
}

/* --- BASE DEL BOTÓN INTELIGENTE --- */
.nik-button {
    background-color: rgba(0, 0, 0, 0);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s ease, padding 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
}

.nik-button:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}