/* Estilos para el widget de documentos de Drive */
.drive-documents-container {
    width: 100%;
    margin: 20px 0;
}

.drive-docs-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.drive-docs-grid.columns-1 {
    grid-template-columns: 1fr;
}

.drive-docs-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.drive-docs-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.drive-docs-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.drive-doc-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.drive-doc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.drive-doc-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.drive-doc-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.drive-doc-item:hover .drive-doc-thumbnail img {
    transform: scale(1.05);
}

.drive-doc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 230, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drive-doc-item:hover .drive-doc-overlay {
    opacity: 1;
}

.drive-doc-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    border: 2px solid white;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drive-doc-link:hover {
    background: white;
    color: #0073e6;
    text-decoration: none;
}

.drive-doc-link i {
    margin-right: 8px;
}

.drive-doc-info {
    padding: 20px;
    text-align: center;
}

.drive-doc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.drive-docs-load-more {
    text-align: center;
    margin-top: 30px;
}

.drive-load-more-btn {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.3);
}

.drive-load-more-btn:hover {
    background: linear-gradient(135deg, #005bb5, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.4);
}

.drive-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: inline-block;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .drive-docs-grid.columns-3,
    .drive-docs-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .drive-doc-thumbnail {
        height: 200px;
    }

    .drive-doc-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .drive-docs-grid.columns-2,
    .drive-docs-grid.columns-3,
    .drive-docs-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .drive-doc-thumbnail {
        height: 180px;
    }

    .drive-doc-info {
        padding: 15px;
    }

    .drive-load-more-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}