.anuncio-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Estado cerrado (solo icono) */
.flotante-cerrado {
    background: linear-gradient(135deg, #06904c, #15633c);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px #06904c;
    transition: all 1s ease;
    position: relative;
    animation: pulse 7s infinite;
}

.flotante-cerrado:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px #15633cc3;
}

.icono-oferta span {
    font-size: 24px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.486));
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #15633c;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    animation: bounce 1s infinite alternate;
}

/* Estado abierto (anuncio completo) */
.flotante-abierto {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    width: 300px;
    overflow: hidden;
    display: none;
    animation: slideUp 0.3s ease;
}

.cabecera-oferta {
    background: linear-gradient(135deg, #06904c, #15633c);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabecera-oferta h3 {
    margin: 0;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-minimizar {
    background: rgba(255, 255, 255, 0.547);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-minimizar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cuerpo-oferta {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.circulo-descuento {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    animation: rotate 10s linear infinite;
}

.descuento-numero {
    font-size: 1.5em;
    line-height: 1;
}

.descuento-texto {
    font-size: 0.8em;
    margin-top: -5px;
}

.texto-oferta {
    flex: 1;
}

.texto-oferta .titulo {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.texto-oferta .descripcion {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.texto-oferta .validez {
    color: #06904c;
    font-size: 0.8em;
    font-weight: bold;
}

.btn-aprovechar {
    background: linear-gradient(135deg, #06904c, #15633c);
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-aprovechar:hover {
    background: linear-gradient(135deg, #ff5252, #ff9800);
    transform: translateY(-2px);
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .flotante-abierto {
        width: 280px;
        right: 10px;
        bottom: 10px;
    }

    .flotante-cerrado {
        width: 55px;
        height: 55px;
        right: 10px;
        bottom: 10px;
    }
}