/**
 * /assets/pdf-block.css v1.0
 * Estilo para el bloque [pdf] dentro de las notas. Diseño tipo "edición impresa" del periódico:
 * portada del PDF a la izquierda, info y botón descargar a la derecha. En móvil apila.
 */

.wh-pdf-block {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin: 32px auto;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0085C3;
    border-radius: 8px;
    align-items: center;
    max-width: 100%;
}

.wh-pdf-thumb {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wh-pdf-thumb img,
.wh-pdf-thumb amp-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.wh-pdf-thumb:empty::before {
    content: "📄";
    font-size: 64px;
    color: #cbd5e1;
}

.wh-pdf-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wh-pdf-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0085C3;
    font-weight: 700;
}

.wh-pdf-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
}

.wh-pdf-desc {
    font-family: -apple-system, 'Inter', sans-serif;
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
    margin: 4px 0;
}

.wh-pdf-meta {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.wh-pdf-block .wh-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0085C3;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin-top: 8px;
    width: fit-content;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 133, 195, 0.3);
}

.wh-pdf-block .wh-pdf-btn:hover {
    background: #006a9c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 133, 195, 0.4);
}

/* Responsive: en móvil apilar */
@media (max-width: 700px) {
    .wh-pdf-block {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    .wh-pdf-thumb {
        max-width: 200px;
        margin: 0 auto;
    }
    .wh-pdf-title {
        font-size: 20px;
    }
    .wh-pdf-btn {
        width: 100%;
        justify-content: center;
    }
}
