/**
 * Ediciones Castillo - Video Consent Banner
 * v1.3.0 - VPPA/CIPA Compliance
 *
 * Banner independiente del CMP general de cookies
 */

/* ============================================ */
/* Banner principal de Video Consent           */
/* ============================================ */
#ec-vc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #111;
    color: #f5f5f5;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.68, 0, 1.2);
}

#ec-vc-banner.ec-vc-show {
    transform: translateY(0);
}

#ec-vc-banner .ec-vc-icon {
    font-size: 28px;
    flex-shrink: 0;
}

#ec-vc-banner .ec-vc-text {
    flex: 1;
    min-width: 220px;
    font-size: 14px;
    line-height: 1.6;
}

#ec-vc-banner .ec-vc-text strong {
    color: #fff;
    font-size: 15px;
}

#ec-vc-banner .ec-vc-links {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

#ec-vc-banner .ec-vc-links a {
    color: #aaa;
    text-decoration: underline;
    margin-right: 12px;
    transition: color 0.2s;
}

#ec-vc-banner .ec-vc-links a:hover {
    color: #fff;
}

#ec-vc-banner .ec-vc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================ */
/* Botones del banner                           */
/* ============================================ */
.ec-vc-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.ec-vc-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ec-vc-btn-accept {
    background: #fff;
    color: #111;
}

.ec-vc-btn-reject {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}

/* ============================================ */
/* Overlay sobre los videos bloqueados          */
/* ============================================ */
.ec-vc-gate {
    position: relative;
    width: 100%;
    cursor: pointer;
    display: block;
}

.ec-vc-gate iframe {
    pointer-events: none;
    display: block;
    width: 100%;
}

.ec-vc-gate-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    transition: background 0.2s;
}

.ec-vc-gate:hover .ec-vc-gate-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.ec-vc-gate-overlay .ec-vc-play-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-left: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.ec-vc-gate:hover .ec-vc-play-icon {
    transform: scale(1.1);
}

/* ============================================ */
/* Responsive                                   */
/* ============================================ */
@media (max-width: 600px) {
    #ec-vc-banner {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    #ec-vc-banner .ec-vc-actions {
        width: 100%;
        justify-content: center;
    }

    .ec-vc-btn {
        flex: 1;
        min-width: 130px;
    }
}
