/* ===== VENTANA DE ANUNCIO (toast flotante) ===== */
.anuncio-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: var(--color-blanco);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1500;

    /* estado inicial: oculto y desplazado hacia abajo */
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.anuncio-flotante.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.anuncio-imagen {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background-color: #e2ddf0;
}

.anuncio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.anuncio-contenido {
    padding: 15px;
}

.anuncio-contenido h4 {
    color: var(--color-primario);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.anuncio-contenido p {
    font-size: 0.85rem;
    color: var(--color-texto);
    margin-bottom: 12px;
}

.anuncio-boton {
    display: inline-block;
    background-color: var(--color-secundario);
    color: var(--color-primario);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.anuncio-boton:hover {
    opacity: 0.85;
}

.anuncio-cerrar {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-blanco);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.anuncio-cerrar:hover {
    background: rgba(0, 0, 0, 0.65);
}

/* En móvil, ocupa casi todo el ancho */
@media (max-width: 768px) {
    .anuncio-flotante {
        
display: none;
        
        left: 15px;
        right: 15px;
        width: auto;
        bottom: 15px;
    }
}