/* ==========================================================================
   ESTILOS PARA PUBLICIDAD Y BANNER DE MONETIZACIÓN GOOGLE ADSENSE
   ========================================================================== */

.ad-container {
    background: var(--bg-card);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.ad-slot-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
}

/* Demo Ad Cards */
.demo-ad-content {
    width: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.demo-ad-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.demo-ad-text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.demo-ad-btn {
    background: #ffffff;
    color: #0f172a;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.demo-ad-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header Leaderboard Ad (Top Banner) */
.header-ad-banner {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}

.header-ad-banner .ad-container {
    margin: 0;
    min-height: 100px;
}

/* Sticky Footer Ad Bar */
.sticky-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-blue);
    z-index: 999;
    padding: 0.5rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-ad-wrapper {
    max-width: 970px;
    width: 100%;
    position: relative;
}

.close-sticky-ad {
    position: absolute;
    top: -12px;
    right: -10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Skyscraper Ad (160x600 Adsterra) */
.skyscraper-ad-container {
    position: fixed;
    right: 20px;
    top: 90px;
    width: 170px;
    min-height: 610px;
    z-index: 90;
    background: var(--bg-card);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-md);
}

@media (max-width: 1550px) {
    .skyscraper-ad-container {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin: 1.5rem auto;
        max-width: 728px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .demo-ad-content {
        flex-direction: column;
        text-align: center;
    }
    .demo-ad-btn {
        width: 100%;
    }
}
