.floating-ad-container {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    z-index: 99999;
    overflow: hidden;
    font-family: 'Roboto Condensed', sans-serif;
    box-sizing: border-box;
}

.floating-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
}

.floating-ad-title {
    font-size: 11px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón de cierre (Cambia a #2ecc71 si prefieres verde) */
.floating-ad-close {
    background: #e74c3c; 
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.floating-ad-close:hover {
    background: #c0392b;
}

/* Contenedores condicionales por dispositivo */
.ad-desktop {
    display: block;
    width: 300px;
    height: 250px;
    background: #000;
}

.ad-mobile {
    display: none;
    width: 320px;
    height: 50px;
    background: #000;
}

/* Adaptación móvil: Oculta el grande, muestra el pequeño 320x50 anclado abajo */
@media (max-width: 480px), (max-height: 600px) {
    .floating-ad-container {
        position: fixed !important;
        bottom: 10px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%);
        width: 320px !important;
        max-width: 100% !important;
        border-radius: 6px;
    }

    .ad-desktop {
        display: none !important;
    }

    .ad-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
}