/**
 * Estilos frontend para los anuncios de AdSense
 */

/* Envoltorio del anuncio */
.anuncios-portadas-wrapper {
    display: block;
    clear: both;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

/* Alineaciones */
.anuncios-portadas-wrapper.ap-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.anuncios-portadas-wrapper.ap-align-center ins.adsbygoogle {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.anuncios-portadas-wrapper.ap-align-left {
    text-align: left;
    margin-right: auto;
}

.anuncios-portadas-wrapper.ap-align-right {
    text-align: right;
    margin-left: auto;
}

/* Ocultar según dispositivo */
@media screen and (max-width: 768px) {
    .anuncios-portadas-wrapper.ap-hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .anuncios-portadas-wrapper.ap-hide-desktop {
        display: none !important;
    }
}

/* Caja de Modo de Prueba (Sandbox / Visual Preview) */
.ap-test-placeholder {
    border: 2px dashed #3b82f6;
    background: #eff6ff;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
    color: #1e3a8a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ap-test-badge {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.ap-test-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}

.ap-test-meta {
    font-size: 12px;
    color: #64748b;
}
