/* Badges Premium v1.5 - CatalogoCoches.com */

/* ── Contenedor de la foto en tarjetas ─────────── */
a.skin-list-gallery {
    position: relative !important;
    display: block !important;
}

/* ── Badge ─────────────────────────────────────── */
.bp-badge-overlay {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    width: 115px !important;
    height: 115px !important;
    z-index: 999 !important;
    pointer-events: none !important;
}

.bp-badge-overlay img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* ── Popup overlay ─────────────────────────────── */
.bp-popup-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bp-popup-box {
    background: #fff;
    border-radius: 18px;
    padding: 40px 32px 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    animation: bp-slide-up 0.3s ease;
}

@keyframes bp-slide-up {
    from { transform: translateY(28px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.bp-close-btn {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.bp-close-btn:hover { background: #f0f0f0; color: #333; }

.bp-popup-icon   { font-size: 52px; margin-bottom: 10px; }
.bp-popup-title  { font-size: 22px; font-weight: 700; color: #111; margin: 0 0 10px; }
.bp-popup-text   { font-size: 15px; color: #555; margin: 0 0 28px; line-height: 1.55; }
.bp-popup-hint   { font-size: 13px; color: #999; margin: 16px 0 0; }

/* ── Botones redes ─────────────────────────────── */
.bp-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bp-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    border: none;
}
.bp-share-btn svg   { width: 20px; height: 20px; flex-shrink: 0; }
.bp-share-btn:hover { transform: translateY(-2px); opacity: 0.92; }

.bp-facebook  { background: #1877F2; }
.bp-instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* ── Toast ─────────────────────────────────────── */
.bp-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #111;
    color: #fff;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 1000000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.bp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .bp-popup-box   { padding: 28px 18px 24px; }
    .bp-popup-title { font-size: 19px; }
    .bp-badge-overlay { width: 55px !important; height: 55px !important; }
}

/* Fondo transparente forzado */
a.skin-list-gallery .bp-badge-overlay,
a.skin-list-gallery .bp-badge-overlay img {
    background: transparent !important;
    background-color: transparent !important;
}

/* Sombra suave para que el badge se vea sobre fotos oscuras */
.bp-badge-overlay {
    filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.4)) !important;
}

/* Permitir que el badge salga fuera de la foto */
.mvl-card-skins a.skin-list-gallery,
.stm-isotope-listing-item a.skin-list-gallery {
    overflow: visible !important;
}

/* Forzar overflow visible en todos los contenedores padre */
.mvl-card-skins,
.mvl-card-skins .skin_3.image,
.mvl-card-skins a.skin-list-gallery,
.stm-isotope-listing-item,
.stm-listing-directory-list-loop,
.listing-list-loop {
    overflow: visible !important;
}

/* ── Badges animados en el popup ─────────────── */
.bp-popup-icon {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 16px;
}

.bp-popup-badge {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* Los de los extremos un poco más pequeños */
.bp-popup-badge:first-child,
.bp-popup-badge:last-child {
    width: 55px;
    height: 55px;
    margin-bottom: 6px;
}

/* Animación rebote */
@keyframes bp-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.bp-bounce         { animation: bp-bounce 1.8s ease-in-out infinite; }
.bp-bounce-delay1  { animation: bp-bounce 1.8s ease-in-out infinite 0.15s; }
.bp-bounce-delay2  { animation: bp-bounce 1.8s ease-in-out infinite 0.3s; }
.bp-bounce-delay3  { animation: bp-bounce 1.8s ease-in-out infinite 0.45s; }
.bp-bounce-delay4  { animation: bp-bounce 1.8s ease-in-out infinite 0.6s; }
