/**
 * Created by GrounnyDev
 * Owner: grounnydev.com
 */

.ad-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ad-slot {
    position: relative;
    margin: 1rem auto;
    max-width: 970px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(30, 41, 59, 0.9);
    background: #0f172a;
}

.ad-slot-inner,
.ad-media-link {
    display: block;
    width: 100%;
}

.ad-image,
.ad-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    margin: 0 auto;
    background: #020817;
}

.ad-slot-banner.ad-slot-home_1 .ad-image,
.ad-slot-banner.ad-slot-home_1 .ad-video {
    max-height: 250px;
}

.ad-slot-banner.ad-slot-player_1 .ad-image,
.ad-slot-banner.ad-slot-player_1 .ad-video {
    max-height: 90px;
}

.ad-script {
    min-height: 60px;
    width: 100%;
}

.ad-close-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 5;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 9999px;
    background: rgba(2, 8, 23, 0.85);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
}

.ad-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0;
}

.ad-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid transparent;
}

.ad-cta-subscribe {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.ad-cta-vip {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.ad-cta-custom {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}

.ad-cta-btn:hover {
    transform: translateY(-1px);
}

.ad-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: min(400px, calc(100vw - 2rem));
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid #334155;
    background: #0f172a;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.ad-float-inner {
    width: 100%;
}

.ad-float-image,
.ad-float-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    background: #020817;
}

@media (max-width: 767px) {
    .ad-float {
        width: min(320px, calc(100vw - 1.5rem));
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .ad-float-image,
    .ad-float-video {
        max-height: 280px;
    }
}

.ad-slot.is-hidden,
.ad-float.is-hidden {
    display: none !important;
}

.ad-vip-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.ad-vip-card {
    max-width: 32rem;
    width: 100%;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #1e293b;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), #111827);
}

.ad-vip-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.ad-vip-card p {
    color: #94a3b8;
    line-height: 1.6;
}

.ad-vip-lead {
    margin-bottom: 1.25rem;
}

.ad-vip-benefits {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.ad-vip-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.ad-vip-benefits strong {
    color: #f1f5f9;
}

.ad-vip-benefit-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 0.1rem;
}

.ad-vip-note {
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-bottom: 1.25rem !important;
}

.ad-vip-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.ad-vip-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

/* Demo / muestra */
.ad-slot-demo,
.ad-float-demo {
    border: 2px dashed rgba(250, 204, 21, 0.65) !important;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(15, 23, 42, 0.95)) !important;
}

.ad-demo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1rem;
    min-height: 90px;
    gap: 0.35rem;
}

.ad-demo-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fde047;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.45);
}

.ad-demo-inner strong {
    font-size: 0.95rem;
    color: #f8fafc;
}

.ad-demo-inner p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.ad-demo-inner small {
    font-size: 0.7rem;
    color: #64748b;
}

.ad-cta-demo {
    position: relative;
    border: 2px dashed rgba(250, 204, 21, 0.55) !important;
    opacity: 0.95;
}

.ad-demo-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.6rem;
    font-weight: 800;
    vertical-align: middle;
    color: #fde047;
    background: rgba(0, 0, 0, 0.35);
}

.ad-buttons-row-demo {
    width: 100%;
    justify-content: center;
}

/* Tema claro */
html.theme-light .ad-slot {
    border-color: #e2e8f0;
    background: #f8fafc;
}

html.theme-light .ad-image,
html.theme-light .ad-video {
    background: #f1f5f9;
}

html.theme-light .ad-demo-marker {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.35);
    color: #1d4ed8;
}

html.theme-light .ad-floating-box {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

html.theme-light .ad-vip-card {
    border-color: #e2e8f0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), #ffffff);
}

html.theme-light .ad-vip-card h1 {
    color: #0f172a;
}

html.theme-light .ad-vip-card p {
    color: #64748b;
}
