/* Billboard Magazine Archive - Frontend Styles */
/* Modern, Dynamic, Young Design */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bma-primary: #c4122f;
    --bma-primary-light: #e8143a;
    --bma-primary-dark: #9e0f26;
    --bma-secondary: #0a0a0a;
    --bma-gold: #d4a853;
    --bma-cyan: #06b6d4;
    --bma-violet: #8b5cf6;
    --bma-bg-dark: #0f0f0f;
    --bma-bg-card: #1a1a1a;
    --bma-text: #ffffff;
    --bma-text-muted: #9ca3af;
    --bma-border: rgba(255, 255, 255, 0.1);
    --bma-gradient-1: linear-gradient(135deg, #c4122f 0%, #ff4757 50%, #c4122f 100%);
    --bma-gradient-2: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    --bma-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --bma-glow: 0 0 40px rgba(196, 18, 47, 0.3);
}

/* Base */
.bma-archive {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bma-bg-dark);
    color: var(--bma-text);
    min-height: 100vh;
    overflow-x: hidden;
}

.bma-archive *, .bma-archive *::before, .bma-archive *::after {
    box-sizing: border-box;
}

.bma-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.bma-page-wrapper {
    background: var(--bma-bg-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.bma-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    overflow: hidden;
}

.bma-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196, 18, 47, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 100%, rgba(212, 168, 83, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        var(--bma-bg-dark);
    z-index: 0;
}

.bma-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.bma-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.bma-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--bma-gold);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.bma-hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 20px;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.bma-hero-title span {
    background: var(--bma-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bma-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--bma-text-muted);
    margin: 0 0 40px;
    line-height: 1.6;
}

.bma-hero-subtitle strong {
    color: var(--bma-gold);
    font-weight: 700;
}

/* Hero Stats */
.bma-hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 6vw, 4rem);
}

.bma-hero-stat {
    text-align: center;
}

.bma-stat-value {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--bma-text);
    line-height: 1;
}

.bma-stat-text {
    font-size: 13px;
    color: var(--bma-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Floating Magazines */
.bma-hero-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bma-floating-mag {
    position: absolute;
    width: clamp(100px, 15vw, 180px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--bma-shadow);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.bma-floating-mag img {
    width: 100%;
    height: auto;
    display: block;
}

.bma-floating-mag-1 {
    top: 15%;
    left: 5%;
    transform: rotate(-12deg);
    animation: bmaFloat1 8s ease-in-out infinite;
}

.bma-floating-mag-2 {
    top: 20%;
    right: 8%;
    transform: rotate(8deg);
    animation: bmaFloat2 10s ease-in-out infinite;
}

.bma-floating-mag-3 {
    bottom: 15%;
    left: 12%;
    transform: rotate(5deg);
    animation: bmaFloat3 9s ease-in-out infinite;
}

.bma-floating-mag-4 {
    bottom: 20%;
    right: 10%;
    transform: rotate(-6deg);
    animation: bmaFloat4 11s ease-in-out infinite;
    opacity: 0.25;
}

.bma-floating-mag-5 {
    top: 35%;
    left: 2%;
    transform: rotate(10deg);
    animation: bmaFloat5 7s ease-in-out infinite;
    opacity: 0.2;
    width: clamp(80px, 12vw, 140px);
}

.bma-floating-mag-6 {
    top: 50%;
    right: 3%;
    transform: rotate(-15deg);
    animation: bmaFloat6 12s ease-in-out infinite;
    opacity: 0.2;
    width: clamp(80px, 11vw, 130px);
}

.bma-floating-mag-7 {
    bottom: 35%;
    left: 8%;
    transform: rotate(3deg);
    animation: bmaFloat7 9.5s ease-in-out infinite;
    opacity: 0.15;
    width: clamp(70px, 10vw, 120px);
}

.bma-floating-mag-8 {
    top: 8%;
    right: 15%;
    transform: rotate(14deg);
    animation: bmaFloat8 8.5s ease-in-out infinite;
    opacity: 0.2;
    width: clamp(70px, 10vw, 110px);
}

@keyframes bmaFloat1 {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-20px); }
}

@keyframes bmaFloat2 {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-15px); }
}

@keyframes bmaFloat3 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-18px); }
}

@keyframes bmaFloat4 {
    0%, 100% { transform: rotate(-6deg) translateY(0) translateX(0); }
    50% { transform: rotate(-6deg) translateY(-12px) translateX(5px); }
}

@keyframes bmaFloat5 {
    0%, 100% { transform: rotate(10deg) translateY(0); }
    50% { transform: rotate(10deg) translateY(-25px); }
}

@keyframes bmaFloat6 {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-14px); }
}

@keyframes bmaFloat7 {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-16px); }
}

@keyframes bmaFloat8 {
    0%, 100% { transform: rotate(14deg) translateY(0); }
    50% { transform: rotate(14deg) translateY(-22px); }
}

/* ============================================
   FEATURED SECTION (DESTACADAS)
   ============================================ */
.bma-featured-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, 
        rgba(196, 18, 47, 0.08) 0%, 
        transparent 100%
    );
    border-top: 1px solid rgba(196, 18, 47, 0.2);
    position: relative;
    overflow: hidden;
}

.bma-featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--bma-gradient-1);
    border-radius: 2px;
}

.bma-featured-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bma-featured-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--bma-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bma-featured-title svg {
    color: var(--bma-gold);
    animation: bmaPulse 2s ease-in-out infinite;
}

@keyframes bmaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.bma-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Featured Card */
.bma-featured-card {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.bma-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(212, 168, 83, 0.1), transparent 60%);
    pointer-events: none;
}

.bma-featured-card:hover {
    border-color: var(--bma-gold);
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 168, 83, 0.15);
}

/* Featured Cover */
.bma-featured-cover {
    position: relative;
    width: 180px;
    min-width: 180px;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 168, 83, 0.2);
}

.bma-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bma-featured-card:hover .bma-featured-cover img {
    transform: scale(1.05);
}

.bma-featured-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 80%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.bma-featured-card:hover .bma-featured-shine {
    transform: translateX(100%);
}

/* Featured Info */
.bma-featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.bma-featured-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--bma-gold) 0%, #f5d89a 100%);
    color: var(--bma-secondary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.bma-featured-card-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--bma-text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.bma-featured-card-date {
    font-size: 15px;
    color: var(--bma-primary);
    font-weight: 600;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bma-featured-card-views {
    font-size: 14px;
    color: var(--bma-text-muted);
    margin: 0 0 1.5rem;
}

.bma-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bma-primary);
    color: white;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.bma-featured-btn:hover {
    background: var(--bma-primary-light);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(196, 18, 47, 0.4);
}

.bma-featured-btn svg {
    transition: transform 0.3s ease;
}

.bma-featured-btn:hover svg {
    transform: translate(3px, -3px);
}

/* Featured Responsive */
@media (max-width: 900px) {
    .bma-featured-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .bma-featured-section {
        padding: 3rem 0;
    }
    
    .bma-featured-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .bma-featured-cover {
        width: 160px;
        min-width: 160px;
    }
    
    .bma-featured-info {
        align-items: center;
    }
    
    .bma-featured-badge-lg {
        margin-bottom: 0.75rem;
    }
    
    .bma-featured-card-title {
        font-size: 1.2rem;
    }
}

/* ============================================
   FILTER SECTION
   ============================================ */
.bma-filter-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bma-border);
    padding: 1rem 0;
}

.bma-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.bma-filter-left,
.bma-filter-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bma-filter-center {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bma-filter-center::-webkit-scrollbar {
    display: none;
}

/* View Buttons */
.bma-filter-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bma-border);
    border-radius: 12px;
    background: transparent;
    color: var(--bma-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bma-filter-btn:hover,
.bma-filter-btn.active {
    background: var(--bma-primary);
    border-color: var(--bma-primary);
    color: white;
}

/* Year Pills */
.bma-year-pills {
    display: flex;
    gap: 8px;
    padding: 4px;
}

.bma-year-pill {
    padding: 10px 20px;
    border-radius: 100px;
    background: transparent;
    border: 1px solid var(--bma-border);
    color: var(--bma-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bma-year-pill:hover {
    border-color: var(--bma-primary);
    color: var(--bma-primary);
}

.bma-year-pill.active {
    background: var(--bma-primary);
    border-color: var(--bma-primary);
    color: white;
}

/* Search Box */
.bma-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.bma-search-box svg {
    position: absolute;
    left: 14px;
    color: var(--bma-text-muted);
    pointer-events: none;
}

.bma-search-box input {
    width: 200px;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--bma-border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--bma-text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.bma-search-box input::placeholder {
    color: var(--bma-text-muted);
}

.bma-search-box input:focus {
    outline: none;
    border-color: var(--bma-primary);
    width: 260px;
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   GRID SECTION
   ============================================ */
.bma-grid-section {
    padding: 4rem 0 6rem;
}

.bma-magazines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* List View */
.bma-magazines-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.bma-magazines-grid.list-view .bma-magazine-card {
    display: flex;
    flex-direction: row;
}

.bma-magazines-grid.list-view .bma-card-cover {
    width: 140px;
    min-width: 140px;
    aspect-ratio: auto;
    height: 180px;
}

.bma-magazines-grid.list-view .bma-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

/* Magazine Card */
.bma-magazine-card {
    position: relative;
    background: var(--bma-bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bmaCardIn 0.6s ease backwards;
    animation-delay: calc(var(--animation-order, 0) * 0.05s);
}

@keyframes bmaCardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bma-magazine-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--bma-shadow), var(--bma-glow);
}

.bma-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Cover */
.bma-card-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.bma-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bma-magazine-card:hover .bma-card-cover img {
    transform: scale(1.08);
}

.bma-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Card Overlay */
.bma-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bma-magazine-card:hover .bma-card-overlay {
    opacity: 1;
}

.bma-card-actions {
    display: flex;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.bma-magazine-card:hover .bma-card-actions {
    transform: translateY(0);
}

.bma-action-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.bma-action-view {
    background: var(--bma-primary);
    color: white;
}

.bma-action-view:hover {
    background: var(--bma-primary-light);
    transform: scale(1.1);
}

.bma-action-preview {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.bma-action-preview:hover {
    background: white;
    color: var(--bma-secondary);
}

/* Featured Badge */
.bma-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--bma-gold) 0%, #f5d89a 100%);
    color: var(--bma-secondary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
    animation: bmaBadgePulse 2s ease-in-out infinite;
}

@keyframes bmaBadgePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(212, 168, 83, 0.6); }
}

/* Card Info */
.bma-card-info {
    padding: 1.25rem;
    background: var(--bma-bg-card);
}

.bma-card-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.bma-date-month {
    font-size: 13px;
    font-weight: 600;
    color: var(--bma-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bma-date-year {
    font-size: 13px;
    color: var(--bma-text-muted);
}

.bma-card-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bma-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bma-card-desc {
    margin: 0;
    font-size: 14px;
    color: var(--bma-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   EMPTY & NO RESULTS
   ============================================ */
.bma-empty,
.bma-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
}

.bma-empty-icon,
.bma-no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.bma-empty h3,
.bma-no-results h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.bma-empty p,
.bma-no-results p {
    margin: 0 0 2rem;
    color: var(--bma-text-muted);
}

.bma-btn-reset {
    padding: 14px 28px;
    background: var(--bma-primary);
    border: none;
    border-radius: 100px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bma-btn-reset:hover {
    background: var(--bma-primary-light);
    transform: translateY(-2px);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.bma-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.bma-lightbox.active {
    display: flex;
}

.bma-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: bmaFadeIn 0.3s ease;
}

@keyframes bmaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bma-lightbox-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--bma-bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--bma-shadow);
    animation: bmaScaleIn 0.3s ease;
}

@keyframes bmaScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bma-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bma-border);
}

.bma-lightbox-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bma-text);
}

.bma-lightbox-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--bma-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bma-lightbox-close:hover {
    background: var(--bma-primary);
    color: white;
}

.bma-lightbox-content {
    aspect-ratio: 4/3;
    max-height: calc(90vh - 80px);
}

.bma-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1400px) {
    /* Ocultar las revistas flotantes más pequeñas en pantallas medianas */
    .bma-floating-mag-5,
    .bma-floating-mag-6,
    .bma-floating-mag-7,
    .bma-floating-mag-8 {
        display: none;
    }
}

@media (max-width: 1024px) {
    .bma-hero {
        min-height: 60vh;
    }
    
    .bma-floating-mag {
        display: none;
    }
}

@media (max-width: 768px) {
    .bma-hero {
        padding: 4rem 1.5rem;
        min-height: auto;
    }
    
    .bma-filter-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bma-filter-left {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .bma-filter-center {
        order: 1;
        width: 100%;
        justify-content: flex-start;
    }
    
    .bma-filter-right {
        order: 2;
        width: 100%;
    }
    
    .bma-search-box input {
        width: 100%;
    }
    
    .bma-search-box input:focus {
        width: 100%;
    }
    
    .bma-magazines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .bma-magazines-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .bma-magazines-grid.list-view .bma-magazine-card {
        flex-direction: column;
    }
    
    .bma-magazines-grid.list-view .bma-card-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }
    
    .bma-card-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8) 0%,
            transparent 50%
        );
    }
    
    .bma-card-actions {
        transform: translateY(0);
    }
    
    .bma-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .bma-lightbox {
        padding: 1rem;
    }
    
    .bma-lightbox-container {
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .bma-hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .bma-hero-stat {
        min-width: 80px;
    }
    
    .bma-magazines-grid {
        grid-template-columns: 1fr;
    }
    
    .bma-year-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.bma-magazine-card.hidden {
    display: none;
}

/* Smooth filtering animation */
.bma-magazine-card {
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.bma-magazine-card.filtering-out {
    opacity: 0;
    transform: scale(0.9);
}

/* Shimmer loading effect */
@keyframes bmaShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.bma-loading {
    background: linear-gradient(
        90deg,
        var(--bma-bg-card) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        var(--bma-bg-card) 100%
    );
    background-size: 200% 100%;
    animation: bmaShimmer 1.5s infinite;
}

