/* --- FQ SCIENTIFIC HUB: STUDY MONITORS (v14.6) --- */
.study-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.science-window-card {
    background: rgba(1, 28, 22, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.science-window-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.science-window-card:hover {
    background: rgba(1, 28, 22, 0.85);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212, 175, 55, 0.05);
}

.science-monitor-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.science-id {
    font-size: 0.55rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 800;
}

.science-category {
    font-size: 0.55rem;
    color: var(--emerald-light);
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}

.science-img-box {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
}

.science-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1) contrast(1.1);
    transition: transform 1s ease, filter 1s ease;
}

.science-window-card:hover .science-img-box img {
    transform: scale(1.1);
    filter: saturate(1.2) contrast(1.15);
}

.science-content-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.science-content-box p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-science-read {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.science-window-card:hover .btn-science-read {
    background: var(--gold);
    color: var(--emerald-deep);
}

/* --- OVERLAY SYSTEM (v14.6: UNIFIED) --- */
.dossier-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.dossier-overlay.open {
    display: block !important;
    animation: fadeIn 0.4s ease forwards;
}

.dossier-content {
    background: rgba(1, 28, 22, 0.85); /* Mayor nivel de glass effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Borde más nítido pero sutil */
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    padding: 4rem;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6), inset 0 0 40px rgba(212, 175, 55, 0.05);
}

.close-dossier {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 2.5rem;
    z-index: 5010;
}

/* --- CHECKOUT MODAL RESPONSIVENESS (v22.3.8) --- */
.checkout-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 30px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}

@media only screen and (max-width: 1024px) {
    .dossier-overlay {
        padding: 1rem;
    }
    .checkout-card {
        padding: 1.25rem;
        border-radius: 20px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .checkout-grid > div {
        grid-column: 1 / -1 !important;
    }
    .dossier-content {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 1rem !important;
        max-height: 95vh !important;
        overflow-x: hidden !important;
    }
}
