body {
    background: radial-gradient(circle, #24246e, #06051f);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation div,
.background-animation div::before,
.background-animation div::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
    transform-origin: top;
    transition: all 5s linear 0s;
}

.purple {
    animation: purple linear 30s alternate infinite;
    border: 2px solid #241379;
    border-radius: 100%;
    width: 19px;
    height: 19px;
    transform: translate3d(67vw, 34vh, 0);
    z-index: 10;
}

.purple::before {
    animation: purple-pseudo linear 15s alternate infinite;
    background: #241379;
    border: 2px solid #241379;
    width: 10px;
    height: 5px;
    transform: translate3d(16vw, -18vh, 0) rotate(219deg);
}

.purple::after {
    animation: purple-pseudo linear 20s alternate infinite;
    border: 2px solid #241379;
    width: 25px;
    height: 45px;
    transform: translate3d(-60vw, -18vh, 0) rotate(42deg);
}

@keyframes purple {
    50% {
        transform: translate3d(49vw, 95vh, 0);
    }
    100% {
        transform: translate3d(48vw, 85vh, 0);
    }
}

@keyframes purple-pseudo {
    33% {
        transform: translate3d(-38vw, -17vh, 0) rotate(103deg);
    }
    100% {
        transform: translate3d(-1vw, -64vh, 0) rotate(28deg);
    }
}

.medium-blue {
    animation: medium-blue linear 30s alternate infinite;
    border: 2px solid #2185bf;
    border-radius: 100%;
    width: 10px;
    height: 10px;
    transform: translate3d(40vw, 43vh, 0);
    z-index: 5;
}

.medium-blue::before {
    animation: medium-blue-pseudo linear 15s alternate infinite;
    background: #2185bf;
    border: 2px solid #2185bf;
    width: 35px;
    height: 34px;
    transform: translate3d(14vw, -7vh, 0) rotate(333deg);
}

.medium-blue::after {
    animation: medium-blue-pseudo linear 20s alternate infinite;
    border: 2px solid #2185bf;
    width: 41px;
    height: 29px;
    transform: translate3d(56vw, 9vh, 0) rotate(87deg);
}

@keyframes medium-blue {
    50% {
        transform: translate3d(33vw, 8vh, 0);
    }
    100% {
        transform: translate3d(4vw, 92vh, 0);
    }
}

@keyframes medium-blue-pseudo {
    33% {
        transform: translate3d(9vw, 79vh, 0) rotate(189deg);
    }
    100% {
        transform: translate3d(89vw, -49vh, 0) rotate(7deg);
    }
}

.light-blue {
    animation: light-blue linear 30s alternate infinite;
    border: 2px solid #1fbce1;
    border-radius: 100%;
    width: 14px;
    height: 14px;
    transform: translate3d(61vw, 77vh, 0);
    z-index: 6;
}

.light-blue::before {
    animation: light-blue-pseudo linear 15s alternate infinite;
    background: #1fbce1;
    border: 2px solid #1fbce1;
    width: 35px;
    height: 47px;
    transform: translate3d(-36vw, 8vh, 0) rotate(245deg);
}

.light-blue::after {
    animation: light-blue-pseudo linear 20s alternate infinite;
    border: 2px solid #1fbce1;
    width: 20px;
    height: 39px;
    transform: translate3d(-28vw, -33vh, 0) rotate(305deg);
}

@keyframes light-blue {
    50% {
        transform: translate3d(85vw, 38vh, 0);
    }
    100% {
        transform: translate3d(43vw, 100vh, 0);
    }
}

@keyframes light-blue-pseudo {
    33% {
        transform: translate3d(-80vw, -14vh, 0) rotate(330deg);
    }
    100% {
        transform: translate3d(-25vw, -72vh, 0) rotate(30deg);
    }
}

.red {
    animation: red linear 30s alternate infinite;
    border: 2px solid #b62f56;
    border-radius: 100%;
    width: 49px;
    height: 49px;
    transform: translate3d(79vw, 46vh, 0);
    z-index: 11;
}

.red::before {
    animation: red-pseudo linear 15s alternate infinite;
    background: #b62f56;
    border: 2px solid #b62f56;
    width: 29px;
    height: 19px;
    transform: translate3d(-54vw, 22vh, 0) rotate(50deg);
}

.red::after {
    animation: red-pseudo linear 20s alternate infinite;
    border: 2px solid #b62f56;
    width: 47px;
    height: 25px;
    transform: translate3d(10vw, 53vh, 0) rotate(292deg);
}

@keyframes red {
    50% {
        transform: translate3d(97vw, 91vh, 0);
    }
    100% {
        transform: translate3d(51vw, 50vh, 0);
    }
}

@keyframes red-pseudo {
    33% {
        transform: translate3d(-64vw, 1vh, 0) rotate(70deg);
    }
    100% {
        transform: translate3d(48vw, 4vh, 0) rotate(278deg);
    }
}

.orange {
    animation: orange linear 30s alternate infinite;
    border: 2px solid #d5764c;
    border-radius: 100%;
    width: 44px;
    height: 44px;
    transform: translate3d(52vw, 91vh, 0);
    z-index: 12;
}

.orange::before {
    animation: orange-pseudo linear 15s alternate infinite;
    background: #d5764c;
    border: 2px solid #d5764c;
    width: 42px;
    height: 32px;
    transform: translate3d(-13vw, -29vh, 0) rotate(11deg);
}

.orange::after {
    animation: orange-pseudo linear 20s alternate infinite;
    border: 2px solid #d5764c;
    width: 42px;
    height: 26px;
    transform: translate3d(-5vw, -10vh, 0) rotate(40deg);
}

@keyframes orange {
    50% {
        transform: translate3d(98vw, 31vh, 0);
    }
    100% {
        transform: translate3d(92vw, 18vh, 0);
    }
}

@keyframes orange-pseudo {
    33% {
        transform: translate3d(-10vw, 58vh, 0) rotate(145deg);
    }
    100% {
        transform: translate3d(5vw, -11vh, 0) rotate(176deg);
    }
}

.yellow {
    animation: yellow linear 30s alternate infinite;
    border: 2px solid #ffd53e;
    border-radius: 100%;
    width: 37px;
    height: 37px;
    transform: translate3d(13vw, 38vh, 0);
    z-index: 10;
}

.yellow::before {
    animation: yellow-pseudo linear 15s alternate infinite;
    background: #ffd53e;
    border: 2px solid #ffd53e;
    width: 20px;
    height: 24px;
    transform: translate3d(71vw, 49vh, 0) rotate(82deg);
}

.yellow::after {
    animation: yellow-pseudo linear 20s alternate infinite;
    border: 2px solid #ffd53e;
    width: 41px;
    height: 28px;
    transform: translate3d(3vw, 55vh, 0) rotate(147deg);
}

@keyframes yellow {
    50% {
        transform: translate3d(100vw, 81vh, 0);
    }
    100% {
        transform: translate3d(17vw, 54vh, 0);
    }
}

@keyframes yellow-pseudo {
    33% {
        transform: translate3d(-38vw, -77vh, 0) rotate(225deg);
    }
    100% {
        transform: translate3d(2vw, 31vh, 0) rotate(236deg);
    }
}

.cyan {
    animation: cyan linear 30s alternate infinite;
    border: 2px solid #78ffba;
    border-radius: 100%;
    width: 6px;
    height: 6px;
    transform: translate3d(10vw, 42vh, 0);
    z-index: 8;
}

.cyan::before {
    animation: cyan-pseudo linear 15s alternate infinite;
    background: #78ffba;
    border: 2px solid #78ffba;
    width: 40px;
    height: 17px;
    transform: translate3d(21vw, 55vh, 0) rotate(332deg);
}

.cyan::after {
    animation: cyan-pseudo linear 20s alternate infinite;
    border: 2px solid #78ffba;
    width: 23px;
    height: 16px;
    transform: translate3d(71vw, -21vh, 0) rotate(169deg);
}

@keyframes cyan {
    50% {
        transform: translate3d(38vw, 19vh, 0);
    }
    100% {
        transform: translate3d(32vw, 98vh, 0);
    }
}

@keyframes cyan-pseudo {
    33% {
        transform: translate3d(-10vw, 37vh, 0) rotate(98deg);
    }
    100% {
        transform: translate3d(56vw, -58vh, 0) rotate(137deg);
    }
}

.light-green {
    animation: light-green linear 30s alternate infinite;
    border: 2px solid #98fd85;
    border-radius: 100%;
    width: 38px;
    height: 38px;
    transform: translate3d(38vw, 51vh, 0);
    z-index: 9;
}

.light-green::before {
    animation: light-green-pseudo linear 15s alternate infinite;
    background: #98fd85;
    border: 2px solid #98fd85;
    width: 30px;
    height: 8px;
    transform: translate3d(-7vw, 38vh, 0) rotate(75deg);
}

.light-green::after {
    animation: light-green-pseudo linear 20s alternate infinite;
    border: 2px solid #98fd85;
    width: 28px;
    height: 14px;
    transform: translate3d(3vw, -24vh, 0) rotate(318deg);
}

@keyframes light-green {
    50% {
        transform: translate3d(79vw, 94vh, 0);
    }
    100% {
        transform: translate3d(66vw, 6vh, 0);
    }
}

@keyframes light-green-pseudo {
    33% {
        transform: translate3d(-44vw, -8vh, 0) rotate(58deg);
    }
    100% {
        transform: translate3d(-27vw, 64vh, 0) rotate(51deg);
    }
}

.lime {
    animation: lime linear 30s alternate infinite;
    border: 2px solid #befb46;
    border-radius: 100%;
    width: 44px;
    height: 44px;
    transform: translate3d(80vw, 77vh, 0);
    z-index: 7;
}

.lime::before {
    animation: lime-pseudo linear 15s alternate infinite;
    background: #befb46;
    border: 2px solid #befb46;
    width: 14px;
    height: 25px;
    transform: translate3d(11vw, -49vh, 0) rotate(247deg);
}

.lime::after {
    animation: lime-pseudo linear 20s alternate infinite;
    border: 2px solid #befb46;
    width: 47px;
    height: 44px;
    transform: translate3d(-53vw, 16vh, 0) rotate(185deg);
}

@keyframes lime {
    50% {
        transform: translate3d(23vw, 41vh, 0);
    }
    100% {
        transform: translate3d(36vw, 93vh, 0);
    }
}

@keyframes lime-pseudo {
    33% {
        transform: translate3d(11vw, -31vh, 0) rotate(274deg);
    }
    100% {
        transform: translate3d(38vw, -79vh, 0) rotate(93deg);
    }
}

.magenta {
    animation: magenta linear 30s alternate infinite;
    border: 2px solid #6c046c;
    border-radius: 100%;
    width: 26px;
    height: 26px;
    transform: translate3d(41vw, 35vh, 0);
    z-index: 5;
}

.magenta::before {
    animation: magenta-pseudo linear 15s alternate infinite;
    background: #6c046c;
    border: 2px solid #6c046c;
    width: 49px;
    height: 36px;
    transform: translate3d(1vw, 25vh, 0) rotate(21deg);
}

.magenta::after {
    animation: magenta-pseudo linear 20s alternate infinite;
    border: 2px solid #6c046c;
    width: 14px;
    height: 12px;
    transform: translate3d(55vw, -2vh, 0) rotate(28deg);
}

@keyframes magenta {
    50% {
        transform: translate3d(74vw, 94vh, 0);
    }
    100% {
        transform: translate3d(80vw, 38vh, 0);
    }
}

@keyframes magenta-pseudo {
    33% {
        transform: translate3d(-73vw, -67vh, 0) rotate(94deg);
    }
    100% {
        transform: translate3d(-34vw, 43vh, 0) rotate(352deg);
    }
}

.lightish-red {
    animation: lightish-red linear 30s alternate infinite;
    border: 2px solid #f04c81;
    border-radius: 100%;
    width: 26px;
    height: 26px;
    transform: translate3d(9vw, 14vh, 0);
    z-index: 6;
}

.lightish-red::before {
    animation: lightish-red-pseudo linear 15s alternate infinite;
    background: #f04c81;
    border: 2px solid #f04c81;
    width: 14px;
    height: 21px;
    transform: translate3d(9vw, 48vh, 0) rotate(20deg);
}

.lightish-red::after {
    animation: lightish-red-pseudo linear 20s alternate infinite;
    border: 2px solid #f04c81;
    width: 28px;
    height: 19px;
    transform: translate3d(27vw, 57vh, 0) rotate(75deg);
}

@keyframes lightish-red {
    50% {
        transform: translate3d(4vw, 39vh, 0);
    }
    100% {
        transform: translate3d(84vw, 19vh, 0);
    }
}

@keyframes lightish-red-pseudo {
    33% {
        transform: translate3d(88vw, 7vh, 0) rotate(306deg);
    }
    100% {
        transform: translate3d(-11vw, 41vh, 0) rotate(336deg);
    }
}

.pink {
    animation: pink linear 30s alternate infinite;
    border: 2px solid #ff4293;
    border-radius: 100%;
    width: 48px;
    height: 48px;
    transform: translate3d(72vw, 23vh, 0);
    z-index: 5;
}

.pink::before {
    animation: pink-pseudo linear 15s alternate infinite;
    background: #ff4293;
    border: 2px solid #ff4293;
    width: 42px;
    height: 39px;
    transform: translate3d(-9vw, -6vh, 0) rotate(360deg);
}

.pink::after {
    animation: pink-pseudo linear 20s alternate infinite;
    border: 2px solid #ff4293;
    width: 35px;
    height: 18px;
    transform: translate3d(-47vw, 69vh, 0) rotate(324deg);
}

@keyframes pink {
    50% {
        transform: translate3d(96vw, 38vh, 0);
    }
    100% {
        transform: translate3d(72vw, 28vh, 0);
    }
}

@keyframes pink-pseudo {
    33% {
        transform: translate3d(-2vw, -26vh, 0) rotate(334deg);
    }
    100% {
        transform: translate3d(-68vw, -2vh, 0) rotate(244deg);
    }
}

.playgame-main {
    flex: 1;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.playgame-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.playgame-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.offer-card {
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
}

.offer-card:hover {
    border-color: #008bf1;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.offer-card.selected {
    border-color: #008bf1;
    background-color: rgba(102, 126, 234, 0.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.6);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4);
}

.phone-input-container {
    position: relative;
}

.phone-input-container .form-control {
    padding-left: 50px;
    font-size: 1.1rem;
    height: 60px;
    border-radius: 15px;
    border: 2px solid #008bf1;
    background: rgba(255, 255, 255, 0.9);
}

.phone-input-container .phone-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #008bf1;
    font-size: 1.2rem;
    z-index: 10;
}

.btn-playgame {
    background: linear-gradient(135deg, #008bf1 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-playgame:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-playgame:disabled {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.container-fade {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.container-fade.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #008bf1;
}

.payment-summary {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #008bf1;
    color: #000;
    backdrop-filter: blur(5px);
}

.progress-bar-playgame {
    height: 8px;
    background: rgba(224, 224, 224, 0.3);
    border-radius: 4px;
    margin: 40px 0;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.progress-bar-playgame .progress {
    height: 100%;
    background: linear-gradient(135deg, #008bf1 0%, #764ba2 100%);
    width: 0%;
    transition: width 1s ease;
    border-radius: 4px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(224, 224, 224, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.step.active .step-circle {
    background: #008bf1;
    color: white;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.2);
}

.step.completed .step-circle {
    background: #4cd964;
    color: white;
}

.container-fade.hidden {
    display: none !important;
}

.text-copyright {
    margin-top: 30px;
    padding: 20px 0;
    background: #ffe200;
    border-top: 1px solid rgba(222, 226, 230, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.playgame-card.p-5 {
    padding: 2rem !important;
}

@media (max-width: 768px) {
    .playgame-card.p-5 {
        padding: 1.5rem !important;
    }

    .playgame-main {
        padding: 10px 0;
    }
}

.fa-spinner {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert i {
    vertical-align: middle;
}

.btn-playgame:disabled .fa-spinner {
    display: inline-block;
}

.customer-info-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #4cd964;
}

.customer-info-box h6 {
    color: #4cd964;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
        font-size: 0.9rem;
    }

    .swal2-title {
        font-size: 1.2rem !important;
    }
}

.dashboard-img {
    transition: transform 0.3s ease;
}

.offer-card:hover .dashboard-img {
    transform: scale(1.05);
}

.offer-check {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #4cd964;
}

.btn-check:checked + .offer-card .offer-check {
    opacity: 1;
}

.btn-check:checked + .offer-card .card {
    border: 3px solid #008bf1 !important;
    background-color: rgba(102, 126, 234, 0.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.offer-card .card {
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: rgba(255, 255, 255, 0.95);
}

.offer-card:hover .card {
    border-color: #008bf1;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.position-absolute .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .offer-card .card-body {
        padding: 1.5rem !important;
    }

    .background-animation div {
        opacity: 0.5;
    }

    .playgame-main {
        padding-top: 20px;
    }
}

.btn-check:not(:checked) + .offer-card .offer-check {
    display: none !important;
}

.btn-check:checked + .offer-card .offer-check {
    display: block !important;
}

.btn-check:checked + .offer-card .card {
    border: 2px solid #008bf1 !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

.bg-primary {
    background-color: #008bf1 !important;
    display: inline-block;
}

.playgame-card h1,
.playgame-card h2,
.playgame-card h3,
.playgame-card h4,
.playgame-card h5,
.playgame-card p,
.playgame-card span,
.playgame-card div:not(.background-animation *) {
    position: relative;
    z-index: 2;
}

.navbar {
    position: relative;
    z-index: 1000;
    background: rgba(33, 37, 41, 0.9) !important;
    backdrop-filter: blur(10px);
}

.alert {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.form-control {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

.form-control:focus {
    border-color: #008bf1;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.card {
    background: rgba(255, 255, 255, 0.95) !important;
}

.card-title {
    color: #333 !important;
}

.text-muted {
    color: #666 !important;
}

@media (max-width: 768px) {
    .background-animation div {
        opacity: 0.4;
    }
}

/* Animación para el ícono de éxito */
.success-animation i {
    animation: scaleUp 0.5s ease-in-out;
}

@keyframes scaleUp {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Estilos para los detalles del pago */
.payment-details {
    border-left: 4px solid #28a745;
}

/* Container de éxito */
#successPaymentContainer {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
