/* Estilos para Ads Manager Global */

.amg-ad-container {
    z-index: 1000;
}

.amg-close-btn {
    position: absolute;
    top: 2px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 1001;
    font-weight: bold;
}

/* Anuncio Central (Home) */
#amg-floatcenter {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px;
    z-index: 1050; /* Por encima de otros flotantes */
}
#amg-floatcenter .amg-ad-content {
    display: inline-block;
    position: relative;
    padding: 5px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#amg-floatcenter .amg-close-btn {
    top: -10px;
    right: -10px;
}


/* Anuncio Izquierdo */
#amg-floatleft {
    width: auto;
    height: 0;
    text-align: left;
    position: fixed;
    top: 35px;
    left: 0px;
}
#amg-floatleft .amg-ad-content {
    position: relative;
    display: inline-block;
}
#amg-floatleft .amg-close-btn {
    left: 0px; 
}

/* Anuncio Derecho */
#amg-floatright {
    width: auto;
    height: 0;
    text-align: right;
    position: fixed;
    top: 35px;
    right: 0px;
}
#amg-floatright .amg-ad-content {
    position: relative;
    display: inline-block;
}

/* Anuncio Inferior */
#amg-floatbottom {
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 0;
    margin: 0 auto;
    z-index: 1030; /* Superior a otros flotantes */
}
#amg-floatbottom .amg-ad-content-bottom {
    position: relative;
    background: #f1f1f1; 
    padding-top: 25px; 
    border-top: 1px solid #ddd;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}
#amg-floatbottom .amg-close-btn {
    top: 2px;
    right: 50%;
    margin-right: -370px; /* Centrado aproximado relativo al contenedor */
}
#amg-floatbottom .amg-bottom-inner {
    text-align: center;
}

/* Estilos para los shortcodes insertados */
.amg-ad-slot {
    margin: 15px 0;
    text-align: center;
}


/* --- Responsive Media Queries --- */
@media (max-width: 768px) {

    /* Ocultar los flotantes izquierdo, derecho y central en móviles */
    #amg-floatleft,
    #amg-floatright,
    #amg-floatcenter {
        display: none !important;
    }

    /* Ajustar el flotante inferior para que sea menos intrusivo */
    #amg-floatbottom .amg-ad-content-bottom {
        padding: 25px 5px 5px 5px; 
    }

    /* Mover el botón de cerrar inferior para que siempre sea visible */
    #amg-floatbottom .amg-close-btn {
        right: 5px;
        margin-right: 0;
    }
}