/* ============================================================
   BFV App Styles — Extraído de index.html (Fase 1 Modularización)
   ============================================================ */

body {
    background-color: #0f172a;
    color: #e2e8f0;
}

.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hover:hover {
    transform: translateY(-3px);
    border-color: #f59e0b;
}

.anim-fade {
    animation: fadeIn 0.3s ease-in-out;
}

.scrollbar-custom::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background: #1e293b;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ESTILOS DEL STICKER DE NOVEDAD (CORREGIDO LADO IZQUIERDO) --- */
.badge-corner {
    position: absolute;
    top: 20px;
    left: -55px;
    /* Pegado a la izquierda */
    width: 170px;
    background: #ef4444;
    /* Rojo para Nuevo */
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: none;
    /* Tipo oración */
    padding: 4px 0;
    text-align: center;
    transform: rotate(-45deg);
    /* Inclinación correcta izquierda */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 20;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: latido 3s infinite;
}

/* Estilo para Actualizaciones (Azul) */
.badge-corner.blue {
    background: #3b82f6;
}

@keyframes latido {
    0% {
        transform: rotate(-45deg) scale(1);
    }

    50% {
        transform: rotate(-45deg) scale(1.05);
    }

    100% {
        transform: rotate(-45deg) scale(1);
    }
}

/* SKELETON SHIMMER: Efecto de carga para tarjetas placeholder */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-pulse {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* ============================================================
   IMÁGENES INLINE EN ARTÍCULOS — Marco Doble + Caption
   ============================================================ */
.bfv-img-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem auto;
    max-width: 600px;
    width: 100%;
    border: 3px double rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.bfv-img-frame:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
    transform: scale(1.01);
}

.bfv-img-frame img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bfv-img-caption {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    padding: 8px 12px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
    line-height: 1.4;
}

/* Responsive — Móvil */
@media (max-width: 640px) {
    .bfv-img-frame {
        max-width: 100%;
        margin: 1rem auto;
        padding: 6px;
    }

    .bfv-img-frame img {
        max-height: 350px;
    }

    .bfv-img-caption {
        font-size: 0.65rem;
        padding: 6px 8px 2px;
    }
}
