/* custom.css */
body {
    background-color: hsl(0, 0%, 8%);
    min-height: 100vh;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
    background:hsl(0, 0%, 8%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.pdf-preview-container {
    height: 300px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-text {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.4;
    min-height: 40px;
}

.btn-outline-primary {
    border-width: 2px;
    border-radius: 20px;
    padding: 0.35rem 1.25rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pdf-preview-container {
        height: 200px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .btn-outline-primary {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1400px;
    }
}


/* Estilos para las portadas */
.portada-pdf {
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.pdf-link:hover .portada-pdf {
    transform: scale(1.03);
}

.pdf-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.pdf-link::after {
    content: "Ver PDF";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.pdf-link:hover::after {
    opacity: 1;
}

.card {
    border: 1px solid rgba(0,0,0,0.125);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}