/* Estilos para el frontend - Versión minimalista */

.pdf-download-container {
    padding: 10px 0;
}

.pdf-list-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.pdf-item {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
}

.pdf-title {
    font-size: 15px;
    font-weight: normal;
    margin: 0;
    color: #0073aa;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline;
}

.pdf-title:hover {
    color: #005a87;
    text-decoration: underline;
}

.pdf-description {
    display: none;
}

.pdf-download-btn {
    background: none;
    color: #0073aa;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
    width: auto;
}

.pdf-download-btn:hover {
    color: #005a87;
    text-decoration: underline;
    background: none;
}

/* Estilos para descargas individuales */
.pdf-single-download {
    display: inline-block;
}

.pdf-single-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.pdf-single-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.pdf-single-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease;
}

.pdf-single-btn:hover {
    background: #005a87;
    text-decoration: none;
}

.pdf-single-icon {
    font-size: 20px;
}

/* Modal */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pdf-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pdf-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.pdf-modal-close:hover,
.pdf-modal-close:focus {
    color: #000;
}

.pdf-modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.pdf-modal-content p {
    color: #666;
    margin: 10px 0;
}

.pdf-modal-subtitle {
    color: #0073aa;
    font-weight: 500;
    margin: 15px 0;
}

#pdf-email-form {
    margin: 20px 0;
}

#pdf-email-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#pdf-email-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.pdf-submit-btn {
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pdf-submit-btn:hover {
    background: #005a87;
}

.pdf-privacy {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* Modal de éxito */
.pdf-success-content {
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin: 20px 0;
}

.email-sent {
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 16px;
}

.pdf-close-success {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.pdf-close-success:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-item {
        flex-wrap: wrap;
    }
    
    .pdf-modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
    
    .pdf-icon {
        font-size: 16px;
    }
    
    .pdf-download-btn,
    .pdf-title {
        font-size: 14px;
    }
}